Thermodynamics Fundamentals
Thermodynamics: Study Notes
Foundations: systems, states, and energy transfer
Thermodynamics studies how heat energy is transferred and transformed into work and other forms of energy. It also describes the limits on those transformations. A gas expanding in a piston, water boiling in a kettle, and steam turning a turbine are different applications of the same basic idea: energy crosses a system boundary, and some of that energy may appear as mechanical work.
The basic vocabulary
System: The part of the universe chosen for study.
Surroundings: Everything outside the system.
Boundary: The real or imagined surface separating the system from its surroundings.
State: The system’s condition, described by its properties or parameters.
Process: A change from one state to another.
Equilibrium: A condition in which the system’s macroscopic properties are no longer changing with time.
Thermodynamic reasoning begins by defining the system and its boundary. The next question is what crosses that boundary. The main forms of transfer tracked in introductory thermodynamics are matter and energy.
Types of systems
Open system: Exchanges both matter and energy with its surroundings.
Closed system: Exchanges energy but not matter with its surroundings.
Isolated system: Exchanges neither matter nor energy with its surroundings.
An isolated system is an idealization that provides a particularly clear setting for conservation laws.
State variables and thermodynamic properties
The main variables used to describe a system include:
Pressure, P
Volume, V
Temperature, T
Internal energy, U
Amount of substance, often measured in moles, n
Properties are classified according to how they change when the system’s size changes.
Extensive properties depend on the amount or size of the system. If a system is doubled while its state remains otherwise the same, an extensive property doubles. Examples include volume, mass, and total internal energy.
Intensive properties do not depend on the amount or size of the system. Pressure and temperature are examples.
A ratio of two extensive properties is generally intensive. For example, density is mass per volume, so doubling both mass and volume leaves density unchanged.
A system is in thermal equilibrium when its macroscopic properties—including pressure, volume, temperature, and composition—are no longer changing with time. Informally, the system has settled into a stable macroscopic condition.
Adiabatic and diathermic boundaries
A boundary can determine whether heat may pass between a system and its surroundings.
An adiabatic wall prevents heat transfer. It may still move, so work can occur even though no heat crosses the wall. An insulated, movable piston is an example.
A diathermic wall allows heat to pass. If two systems are separated by such a wall and are left in contact, heat flows until they reach the same temperature.
The terms adiabatic and diathermic describe heat transfer across a boundary, not whether the boundary can move.
Work and internal energy
Pressure–volume work
When a gas expands or is compressed, it can exchange mechanical energy with its surroundings. Under the sign convention used here, work done by the system is positive.
For a constant-pressure change, the work is
For a process in which pressure changes as volume changes, the work is
On a pressure–volume (P–V) diagram, this integral is the area under the process curve between the initial and final volumes.
Expansion: Vf>Vi, so W>0. The system pushes on its surroundings.
Compression: Vf<Vi, so W<0. The surroundings do work on the system.
Work depends on the path taken between the initial and final states. Two processes can connect the same states but have different areas under their P–V curves, and therefore different work values. A P–V diagram is thus a useful record of the work associated with a process.
Internal energy
Internal energy, U, is the total microscopic energy associated with a system’s molecules. It includes:
Kinetic energy from molecular translation, rotation, vibration, and other motion.
Potential energy associated with interactions and configurations of molecules.
For an ideal gas, intermolecular forces are treated as negligible, so internal energy depends only on temperature. For real substances, internal energy can also depend on other state variables, such as pressure and volume.
Internal energy is a state function: its value depends on the system’s state, not on the path used to reach that state. Consequently, the change in internal energy between two states depends only on the endpoints, even when the heat and work transfers depend on the process.
The Zeroth and First Laws
The Zeroth Law: defining temperature
The Zeroth Law of Thermodynamics states that if system A is in thermal equilibrium with system C, and system B is also in thermal equilibrium with system C, then A and B are in thermal equilibrium with each other:
This law makes temperature a well-defined property and provides the basis for thermometers. A thermometer placed in contact with a system reaches thermal equilibrium with it, allowing the thermometer’s temperature reading to represent the system’s temperature.
The Zeroth Law is logically prior to the First and Second Laws: temperature must be defined before thermal energy changes and temperature-based laws can be described consistently.
The First Law: conservation of energy
With the sign convention that Q>0 when heat enters the system and W>0 when the system does work on its surroundings, the First Law is
In differential form,
For pressure–volume work, δW=PdV, giving
The First Law is energy bookkeeping: heat entering the system is divided between the increase in internal energy and the work done by the system. Energy is conserved; it is not created or destroyed.
The First Law tracks how energy changes, but it does not determine which direction heat will flow or whether a process can occur. Those questions are addressed by the Second Law.
Heat and work are modes of energy transfer, not properties stored in a system. A system has internal energy U; heat and work describe energy crossing its boundary during a process.
Thermodynamic processes
A thermodynamic process is described by the conditions imposed on the system as it changes state. The prefix iso- means “same,” and the rest of the name identifies the property held constant. The idealized process curves below are typically treated as quasi-static: the changes are slow enough for the system to pass through states that remain close to equilibrium.
Isothermal process: constant temperature
An isothermal process occurs at constant temperature. For a fixed amount of ideal gas, the ideal-gas law implies
which is Boyle’s law. An isotherm on a P–V diagram is a rectangular hyperbola.
For an ideal gas, internal energy depends only on temperature. Therefore, for an isothermal change,
The First Law then gives
All heat absorbed by the gas is converted into work done by the gas; during compression, work done on the gas is transferred out as heat if the temperature is to remain constant.
For an ideal gas undergoing an isothermal change, the work is
where n is the amount of gas in moles, R is the gas constant, and T is the absolute temperature. The equivalent base-10 logarithm form is
The sign follows the volume change: an isothermal expansion has positive work, while an isothermal compression has negative work.
For an ideal gas on an isotherm, PV=constant implies
The isothermal bulk modulus is therefore
Phase changes such as melting and boiling can also occur at constant temperature under appropriate conditions.
Adiabatic process: no heat transfer
An adiabatic process is one in which no heat crosses the system boundary:
For a reversible or quasi-static adiabatic change of an ideal gas, Poisson’s relations are
and
where γ=CP/CV is the ratio of the heat capacities.
Because Q=0, the First Law becomes
When an ideal gas expands adiabatically, it does positive work. Its internal energy decreases, so its temperature falls. During adiabatic compression, work is done on the gas, increasing its internal energy and temperature.
For an ideal gas, the work in an adiabatic process can be written
An adiabatic curve falls more steeply than an isothermal curve on a P–V diagram. During expansion, both the increasing volume and the decreasing temperature act to reduce pressure.
The heat transferred in an adiabatic process is zero, so the effective heat capacity along that constraint, when defined as heat transfer per temperature change, is zero. This does not mean that the temperature cannot change; it often does change substantially.
Examples of approximately adiabatic processes include rapid gas expansion, rapid compression in an insulated piston, and the propagation of sound waves in air.
Isobaric process: constant pressure
An isobaric process occurs at constant pressure. For an ideal gas,
On a P–V diagram, an isobaric process is a horizontal line. Expansion proceeds toward larger volume; compression proceeds toward smaller volume.
The work is
The First Law remains
For an ideal gas, the heat capacities satisfy Mayer’s relation
when CP and CV are molar heat capacities. The additional heat capacity at constant pressure accounts for energy used to do expansion work as well as energy that raises internal energy.
Isochoric process: constant volume
An isochoric process occurs at constant volume. For an ideal gas,
A constant-volume process appears as a vertical line on a P–V diagram. Because the volume does not change, pressure–volume work is zero:
The First Law reduces to
For an ideal gas with constant molar heat capacity CV,
Thus, heat entering the system goes into changing its internal energy; none is transferred as pressure–volume work.
Cyclic process: return to the initial state
A cyclic process carries a system through a sequence of changes and returns it to its initial state. Since internal energy is a state function, its net change over a complete cycle is zero:
The First Law therefore gives
The net work in one cycle is the area enclosed by the loop on a P–V diagram.
A clockwise cycle has positive net work done by the system and can represent a heat engine.
An anticlockwise cycle has negative net work done by the system: net work is supplied to the system, as in a refrigerator or heat pump.
For a heat engine, the thermal efficiency is the useful work output divided by the heat absorbed from the hot source.
The Second Law and entropy
Limits on heat engines and heat flow
The Second Law of Thermodynamics places limits on energy transformations that the First Law alone does not describe. In particular, no heat engine operating in a cycle can convert all the heat it absorbs into work. Some heat must be rejected to a colder reservoir.
Equivalent formulations include:
Kelvin–Planck statement: No cyclic heat engine can take heat from a single reservoir and convert it completely into work.
Clausius statement: Heat cannot, by itself, flow from a colder body to a hotter body. Transferring heat from cold to hot requires an external input of work.
These statements express the same fundamental limitation in different ways. The First Law requires energy conservation; the Second Law constrains the direction and effectiveness of energy transfer.
Entropy
Entropy, S, is a state property that characterizes the dispersal of energy and the number of microscopic arrangements consistent with a system’s macroscopic state. It is often introduced as a measure of molecular disorder or randomness, but it is more reliable to understand it through its thermodynamic definition.
For a reversible transfer of heat at absolute temperature T,
For a phase change at constant temperature,
where m is the mass and L is the latent heat per unit mass. The sign is positive when the system absorbs heat, as in melting or vaporization, and negative when it releases heat, as in freezing or condensation.
If a substance of mass m has constant specific heat capacity s while its temperature changes from T1 to T2, then
Equivalently,
Temperatures in entropy and thermal-efficiency formulas must be absolute temperatures. For an isolated system, the Second Law states that total entropy does not decrease: it increases for irreversible processes and remains constant for an ideal reversible process. This directionality gives macroscopic physical processes an arrow of time.
Reference summary of ideal-gas processes
Isothermal
Held constant: Temperature, T
Process relation: PV=constant
Internal-energy change: ΔU=0 for an ideal gas
First Law: Q=W
Adiabatic
Held constant: Heat transfer is zero, Q=0
Process relation: PVγ=constant
First Law: ΔU=−W
Isobaric
Held constant: Pressure, P
Process relation: V/T=constant
Work: W=PΔV
Heat-capacity relation: CP−CV=R for molar heat capacities
Isochoric
Held constant: Volume, V
Process relation: P/T=constant
Work: W=0
First Law: Q=ΔU
Cyclic
Defining feature: The system returns to its initial state
Net internal-energy change: ΔUcycle=0
First Law: Qnet=Wnet
Net work: Equal to the area enclosed by the cycle on a P–V diagram
Heat engines and thermal efficiency
A heat engine is a device that operates in a cycle, absorbs heat from a hot source, produces net work, and rejects some heat to a colder sink. Let Q1 denote the magnitude of heat absorbed from the hot reservoir and Q2 the magnitude of heat rejected to the cold reservoir. Over a complete cycle,
The thermal efficiency is the work output divided by the heat input:
Because the Second Law requires some heat to be rejected, an engine cannot attain 100% efficiency.
Engines are commonly grouped by where combustion occurs:
External-combustion engines: Fuel burns outside the main working body, as in a steam engine. Practical efficiencies are often around 12%–16%.
Internal-combustion engines: Fuel burns inside the engine, as in petrol and diesel engines. Representative practical efficiencies are about 26% for petrol engines and 40% for diesel engines.
Real engines fall well below ideal limits because of friction, heat leakage, and combustion that takes place in finite time.
The Carnot cycle and maximum efficiency
A Carnot engine is an ideal, reversible engine operating between a hot reservoir at absolute temperature T1 and a cold reservoir at absolute temperature T2, with T1>T2. Its cycle consists of four quasi-static processes:
Isothermal expansion at T1: The engine absorbs heat from the hot reservoir. For an ideal gas, internal energy remains constant during this isothermal step.
Adiabatic expansion: No heat enters or leaves. The gas does work and cools until it reaches T2.
Isothermal compression at T2: Heat is rejected to the cold reservoir. For an ideal gas, internal energy remains constant during this isothermal step.
Adiabatic compression: No heat enters or leaves. Work is done on the gas, raising its temperature back to T1.
Because the cycle is reversible, the heat absorbed and rejected satisfy
Substituting this ratio into the efficiency formula gives the Carnot efficiency:
Carnot’s theorem establishes two important results:
No engine working between the same two reservoir temperatures can be more efficient than a reversible Carnot engine.
All reversible engines working between the same two temperatures have the same efficiency, regardless of the working substance.
The only way to raise the ideal maximum efficiency is to increase the temperature difference between the hot source and cold sink—for example, by increasing T1 or decreasing T2. The choice of working substance does not alter the Carnot limit.
Refrigerators and heat pumps
A refrigerator is a heat engine operated in reverse. It uses external work to extract heat from a cold reservoir and transfer it to a warmer one. If Q2 is the heat extracted from the cold reservoir, Q1 is the heat delivered to the hot reservoir, and W is the work supplied, then
A heat pump uses the same kind of device; the difference is which effect is considered useful. A refrigerator is valued for cooling the cold space, whereas a heat pump is valued for warming the space receiving the rejected heat.
The coefficient of performance for a refrigerator is
For a reversible refrigerator operating between reservoirs at T1 and T2, where T1>T2,
A refrigerator’s coefficient of performance can exceed 1 because it measures heat moved from the cold reservoir per unit of work supplied; it is not a heat-engine efficiency. For a heat engine and refrigerator operating between the same two reservoirs, their ideal measures are related by
The Second Law still imposes a maximum coefficient of performance, given by the reversible Carnot value.

Ask anything
We've read this whole study set, so questions about it get the best answers.