Thermodynamics and engines (3.11.2)
On this page
The first law of thermodynamics, also known as the law of conservation of energy, states that energy in a system can neither be created nor destroyed.
Energy can be transferred through heating, cooling, or doing work.
A system is a specific portion of space that is being studied or analysed. A system can be:
- open (can exchange both energy and matter with its surroundings)
- closed (can exchange energy but not matter with its surroundings)
- isolated (cannot exchange either energy or matter with its surroundings).
According to the first law of thermodynamics, the energy transferred to a system through heating is:
Where:
- is the energy transferred to the system, in ,
- is the change in internal energy, in , and
- is the work done by the system, in .
The energy transferred to the system can be positive or negative:
- Positive indicates energy is transferred into the system (such as through heating).
- Negative indicates energy is transferred away from the system (through cooling).
The work done by the system can be either positive or negative:
- Positive indicates work is done by the system (when a gas expands as it is heated).
- Negative indicates work is done on the system (when gas is compressed).
Internal energy is the sum of the kinetic energy and potential energy of every particle in the system.

The change in internal energy can be positive or negative.
- Positive indicates an increase in the kinetic energy and/or the potential energy of the particles. This can occur when heating a gas.
- Negative indicates a decrease in the kinetic energy and/or the potential energy of the particles. This can occur during the cooling of a gas.
Question walkthrough
Finding work and internal energy change
Uses the first law of thermodynamics Q=ΔU+W to find the work done by a gas as heat is added, and separately the internal energy change of a gas compressed in an insulated cylinder.
In a closed system, any changes that occur are non-flow processes, with no mass exchange with the surroundings. To use the first law of thermodynamics on non-flow processes, the gas inside must be considered an ideal gas.

Treating a system as an ideal gas means that:
- any collisions of particles are perfectly elastic (conserve energy), and
- there are no intermolecular forces acting between particles.
The absence of intermolecular forces implies that the system has no potential energy. Therefore, the internal energy is equal to the sum of only the kinetic energies of all the particles. This means that internal energy only depends on the temperature of the gas.
A system that acts as an ideal gas can be described through the ideal gas equation:
Where:
- is the pressure to the system, in (Pascals),
- is the volume of the system, in ,
- is the number of moles of gas,
- is the molar gas constant, equal to 8.31, and
- is the temperature of the gas, in .
In a closed system, there is no flow of gas particles into or out of the system. This means that the number of moles will be constant. Therefore, the ideal gas equation can be simplified as:
A change in the system will be compensated for by the other properties (temperature, pressure, or volume) to maintain the value of the constant. This means that any changes to the system between two states can be written as:
There are different types of processes that can occur in a thermodynamic system:
| Process | Description |
|---|---|
| Adiabatic | No heat leaves or enters the system |
| Isothermal | The temperature of the system does not change |
| Isobaric | The pressure is constant in the system |
| Isochoric | The volume of the system is constant |
The different types of processes result in different forms of the first law of thermodynamics.
It is useful to know that the term ‘iso’ comes from the Greek word ‘isos’, which means equal. Hence, for example, isothermal translates into equal temperature.
An adiabatic process occurs when no heat is exchanged between the system and its surroundings. This means that the energy transferred and the first law of thermodynamics can be rewritten as:
Where:
- is the change in internal energy in , and
- is the work done by the system in .
An example of an adiabatic process is the rapid expansion of a gas in a piston, where no heat is exchanged with the surroundings. As the gas expands rapidly, it performs positive work on its surroundings, thereby decreasing its internal energy.

Since internal energy depends only on temperature, a change in temperature must occur.
The ideal gas equation can be rewritten for an adiabatic change as:
Where:
- is the pressure in the system, in ,
- is the volume of the system, in , and
- is the adiabatic constant, which depends on the gas in the system.
An isothermal process means that the temperature of the system remains constant. This means the change in internal energy is zero:
The first law of thermodynamics in an isothermal process reduces to:
Where:
- Work done by a system will be equal to the amount of heat energy supplied ( and will both be positive).
- Work done on the system will cause the system to lose that amount of heat energy ( and will both be negative).
For an isothermal process, the ideal gas equation reduces to Boyle’s law:
Where:
- is the pressure in the system, in ,
- is the volume of the system, in .
An ideal isothermal process would require the gas temperature to remain constant throughout the change. In reality, this cannot be achieved exactly because heat transfer takes time, so parts of the gas may briefly become warmer or cooler during compression or expansion.
However, a process can be treated as approximately isothermal if it happens very slowly and the container conducts heat well. This gives enough time for energy to transfer between the gas and its surroundings, keeping the gas close to thermal equilibrium.
In an isobaric process, the constant pressure and constant number of moles reduce the ideal gas equation to:
Where:
- is the volume of the system in , and
- is the temperature of the system in .
An isobaric process occurs when the pressure in the system remains constant. Any work done under constant pressure is only dependent on the change in volume:
Where:
- is the work done in ,
- is the constant pressure of the system in , and
- is the change in volume in
Therefore, the first law of thermodynamics can be rewritten as:
Where:
- is the energy transferred to the system in ,
- is the change in internal energy in .
Question walkthrough
Finding internal energy change on boiling
Uses W=PΔV to find the work done by expanding vapour as a liquid boils, then ΔU=Q−W (the first law of thermodynamics) to find the increase in internal energy.
Question walkthrough
Finding conditions after adiabatic compression
Uses P₁V₁^γ=P₂V₂^γ to find the pressure after adiabatic compression of an air bubble, then the ideal gas law to find its resulting temperature.
An isochoric process occurs when the volume is kept constant, and hence no work is done on or by the system:
This simplifies the first law of thermodynamics to:
Where:
- is the energy transferred in , and
- is the change in internal energy in .
In an isochoric process, the ideal gas equation reduces to:
Where:
- is the pressure of the system in , and
- is the temperature of the system in .
An example of an isochoric process is the heating of a gas in a rigid, sealed container, such as a pressure cooker.

As heat is added to the gas, its temperature increases, leading to a rise in pressure within the container. Since the volume does not change, no work is done on or by the gas during this process. The energy transferred as heat effectively increases the gas’s internal energy.
Pressure–volume (P–V) diagrams can represent non-flow processes. Arrows on the diagram indicate the changes that occur in the system, and the area beneath the curve shows the work done during the process.
It is useful to note that an increase in volume indicates that work is being done by the system (expansion), while a decrease in volume implies that work is being done on the system (compression).
For an adiabatic process, no energy is transferred in or out of the system and the first law of thermodynamics reduces to:
Additionally, the ideal gas equation during an adiabatic process is:
The P–V curve for such an expression has the form:

For an isothermal process, the temperature of the system is kept constant, , and the first law of thermodynamics reduces to:
Additionally, during an isothermal process, the ideal gas equation becomes:
The P–V curve for this process has the form:

The P–V curves for isothermal processes are similar to those for adiabatic processes, but they have a less steep gradient. The area under the isothermal curve is greater than that under the adiabatic curve, so the gas does more work when it expands isothermally than when it expands adiabatically.
In an isobaric process, the system’s pressure is kept constant. Hence, the P–V curve for this process has the form:

The area under isobaric P–V diagrams is the work done, where only the volume changes:
- if the volume increases, work is done by the gas,
- if the volume decreases, work is done on the gas.
In an isochoric process, the system’s volume is kept constant. Hence, the P–V curve for this process has the form:

No work is done, and the P–V curve has no area under it. For example, no work is done by or on a gas when its pressure increases from state A to state B at constant volume.
Question walkthrough
Showing a process is isothermal
Uses PV=nRT to show that pressure and volume values at two points on a p–V diagram satisfy P₁V₁=P₂V₂, confirming the process from A to B is isothermal.
Cyclic processes occur when a system undergoes two or more processes, one after the other, and returns to the original volume, temperature and pressure. The process forms a loop.

The total work done by the system is the area inside the loop. In the example above, the gas undergoes:
- isobaric expansion from state 1 to state 2,
- isochoric cooling from state 2 to state 3,
- isobaric compression from state 3 to state 4, and
- isochoric heating from state 4 back to state 1.
It is important to note that cyclical processes can be repeated; this is the principle behind engines. For this, the energy done by the system is greater than the energy done on the system.
An internal combustion engine has multiple cylinders that convert the chemical energy in the fuel into mechanical energy through combustion. Each cylinder is filled with air, which is trapped by tight-fitting pistons.
The gas inside the cylinder expands at a high temperature and compresses at a lower temperature, moving the piston up or down in the process.
The energy needed to compress the gas is less than the energy released when the gas expands. This results in a net energy output by the system.
Internal combustion engines are used in cars. A four-stroke petrol engine burns fuel once every four strokes of the internal piston. A stroke is a single movement of the pistons, either up or down.

The engine’s cylinder (or system) undergoes a sequence of events to produce energy. This is called the Otto cycle.
The Otto cycle describes the sequence a cylinder undergoes in a combustion engine.

- Induction: The piston starts at the top and moves down, increasing the system’s volume. This allows more gas to be drawn into the inlet valve. The pressure remains constant.
- Compression: The inlet valve is closed, and the piston moves back up. This does work on the gas. This is done in an adiabatic process, where the volume decreases and the pressure increases.
At the end of the stroke, the fuel–air mixture inside the cylinder is ignited by a spark plug. The temperature and pressure suddenly increase at an almost constant volume. - Power (Expansion): The gas ignites, and high pressure forces the piston back down the cylinder, and the expanding gas does work. The pressure reduces as the piston is forced back down.
- Exhaust: The piston comes back up the cylinder, and the burnt gas is forced out of an exhaust valve.
Indicator diagrams are the equivalent of thermodynamic P–V diagrams for engines. They are used to calculate the power and efficiency of engines.
Indicator diagrams have two forms:
- theoretical: used to model engines, with some assumptions, and
- real: created from actual data, recorded using a pressure sensor and a transducer in the cylinder.
The indicator diagram for a four-stroke petrol engine uses the assumptions that:
- The same gas is cycled through the engine.
- All pressure and temperature changes are instantaneous.
- All expansion and compression occurs adiabatically.
- There is no friction in the engine.
- The heat source is external.
An example of a theoretical indicator diagram looks like:

This is a cyclical process.
- gas is compressed adiabatically.
- ignition occurs and heat is supplied, the volume stays constant.
- gas expands adiabatically.
- system is cooled at a constant volume.
The cycle forms a loop. The work done by the gas equals the area inside the loop.
The real indicator diagram for the four-stroke petrol engine is shown below.
The cyclical process is described below:
- air is taken in (induction).
- the gas is compressed (spark is induced near the end of the stroke).
- the gas expands.
- air is pushed out of the system (exhaust).
The work done by the air-fuel mixture is the area enclosed in the loop.
It is important to note that the work done on the real indicator diagram is always less than the loop enclosed on a theoretical indicator diagram, as the assumptions discount energy losses in the system.
There are key differences between the theoretical and real indicator diagrams for the four-stroke petrol engine.
The main differences between theoretical and real-life diagrams are:
- The corners of real diagrams are rounded. This is because it takes time for the valves to open and shut; the theoretical diagram assumes this is instantaneous.
- The heating and cooling in real diagrams do not occur at constant volume.
- Expansion and compression in real diagrams are not adiabatic, as heat transfer occurs during the piston’s strokes.
- In a real engine, the gas is not pure air. It has exhaust fumes in it, too.
- In the theoretical diagram, the induction and exhaust strokes are not included.
Diesel engines are different from petrol engines. They still use a four-stroke system, but the process cycle is different.

- Induction: only air is drawn in through the intake valve; a petrol engine intakes a mixture of petrol and air.
- Compression: The air is compressed to a high temperature, which vaporises and ignites the diesel fuel pumped directly into the cylinder through an injector.
- Power (Expansion): The gas ignites, and high pressure forces the piston back down the cylinder, and the expanding gas does work. The pressure reduces as the piston is forced back down.
- Exhaust: The piston comes back up the cylinder, and the burnt gas is forced out of an exhaust valve.
It is important to note that the power and exhaust stages are the same as a petrol engine.
A diesel engine has a theoretical indicator diagram that looks like:

- gas in compressed in an adiabatic process.
- the gas is heated at a constant pressure.
- the gas expands adiabatically.
- the system cools at a constant volume.
In reality, the actual indicator diagram of a diesel engine looks like:
The induction and exhaust processes occur at a constant pressure. The work done is the area enclosed by the loop.
Diesel engines are generally more efficient than petrol engines. Efficiency in internal combustion engines is closely related to the compression ratio during the compression stroke.

The compression ratio on an indicator diagram is the ratio:
- Diesel engines have a larger, more efficient compression ratio, allowing the higher pressures and temperatures needed for self-ignition.
- Petrol engines use a spark plug and must avoid high pressure and temperature to prevent pre-ignition (self-ignition), which can be caused by carbon buildup.
Producing diesel engines is more expensive because they must withstand higher pressures. However, petrol engines pose greater environmental issues, producing more hydrocarbons, and than diesel engines, even with a catalytic converter.
All efficiencies are just a measure of how much of the input power is converted to useful output power.
Input power is the total power supplied to the engine by the fuel. It is the energy content of the fuel consumed per unit time. It can be calculated as:
Where:
- Input power is measured in Watts (W).
- Calorific value is the amount of energy stored in the fuel.
- For liquid fuel it is measured in
- For gas fuel it is measured in
- The flow rate is the amount of fuel added to the engine per second.
- For liquid fuel, it is measured in
- For gas fuel it is measured in
Other units may be used.
Indicated power is the net work done by the engine per second. It is a measure of the power being generated in a cylinder of the engine. Indicated power depends on the number of cycles (strokes) per second:
In a four-stroke engine, one complete cycle of operation consists of four distinct strokes: induction, compression, power, and exhaust. The entire cycle requires two revolutions of the crankshaft. This is because:
- the induction and compression strokes take one revolution, and
- the power and exhaust strokes take one revolution.

The indicated power is equal to the work done by the engine per second. The work done equals the area of the main P–V loop on the indicator diagram. Hence, the overall indicated power of an engine is:
Question walkthrough
Finding indicated power from p-V diagram
Counts squares on a p–V indicator diagram to find the net work done per cycle, then multiplies by cycles per second (from crankshaft speed) to find the indicated power of a Lenoir engine.
Brake power (or output power) is the overall power output by the engine. In any real engine, there are frictional forces that must be overcome.
Part of the indicated power is used to do this, called the friction power. This results in the brake power being lower than the idealised indicated power:
There is an alternative way to calculate the brake power (or output power), using the rotational power of the engine:
Where:
- is the brake power in ,
- is the torque produced by the engine, in and
- is the angular velocity of the engine, in .
Engine efficiency can be measured in three ways:
| Type | Expression | Description |
|---|---|---|
| Mechanical efficiency | Measures energy lost in the system due to the motion of mechanical parts (e.g. friction between moving components). | |
| Thermal efficiency | Measures how efficiently the engine converts the chemical potential energy of the fuel into work done on the piston. | |
| Overall efficiency | The engine’s overall efficiency. |
It is important to note that:
Question walkthrough
Finding overall engine efficiency
Uses brake power (indicated power minus friction losses) and input power (from fuel flow rate and calorific value) to find a heat engine’s overall efficiency as a percentage.
The second law of thermodynamics states that no real engine can convert all the heat it takes in into useful work; some energy will always be lost as waste heat.
Additionally, the second law requires that a heat engine operate between a heat source (such as a hot engine) and a heat sink (such as the air or water). For the engine to work well, it needs to draw heat from the hot source and release some heat to the cooler sink, leading to inefficiencies.

It is important to note that a heat engine cannot work solely on the principle of the first law of thermodynamics. If no work is done, then no power can be generated. Frictional forces mean that an engine can not be 100% efficient.
All engines must have a source and a sink to obey the second law of thermodynamics. For the engine to work well, it needs to draw heat from the hot source and release some heat to the cooler sink.

The main features of a source–sink engine:
- Heat energy is transferred from the hot source at temperature to the heat engine.
- Some of the energy is transferred into work – but there are losses.
- The remaining energy is transferred to the sink at a lower temperature .
The relation between the three quantities can be written as:
We calculate the efficiency of an engine using the ratio of the supplied heat energy and the useful work output:
The maximum theoretical efficiency is calculated by assuming the system uses an ideal gas. We can rewrite the above equation as:
Where
- is the temperature of the source, and
- is the temperature of the sink.
The theoretical efficiency will always exceed the actual efficiency as real heat engines have imitations:
- Work is done internally to overcome friction.
- Incomplete fuel combustion limits the temperature rise in the engine.
- Useful power is wasted to drive internal motors and pumps.
- The fuel mixture is not an ideal gas.
The processes in a heat engine are irreversible, so energy is always dissipated in the system.
Question walkthrough
Finding heat engine efficiency
Uses efficiency=(Q_H−Q_C)/Q_H to find a heat engine’s efficiency as a percentage from the heat input and the heat rejected to the sink.
Heat engines are inefficient. The amount of energy transferred to the sink is usually higher than the useful work output .
To counteract this, methods have been developed to maximise and minimise the energy transferred to the sink or to utilise this wasted energy. An example of this are combined heat and power (CHP) schemes.

CHP schemes take advantage of the large amount of heat transferred from power stations to cooling towers by redirecting it for use in homes and local businesses.
Reverse heat engines transfer heat energy from a cold sink to a hotter source.
The second law of thermodynamics states that heat naturally flows from hot to cold, so to go the opposite direction, work must be done.
Examples of reverse heat engines include:
- Refrigerators or air conditioning units: They extract energy from the cold region (the sink) by pumping heat into the room (the source).
- Heat pumps: They transfer energy to the hot region (a house) by cooling the outdoors.
The efficiency of a reverse heat engine depends on its purpose. A coefficient of performance (COP) is used to measure the efficiency of an engine. It describes how effectively the reverse heat engine transfers heat per unit of work. COP is not the same as efficiency and can have values greater than 1.
| Device | Formula | Description |
|---|---|---|
| Refrigerator (general) |
Ratio of heat extracted from the cold reservoir to the work input. The second form follows from the first law: | |
| Refrigerator (Maximum theoretical) |
Theoretical maximum COP. Real refrigerators fall below this value. | |
| Heat pump (general) |
Ratio of heat delivered to the hot reservoir to the work input. Always exactly 1 greater than the refrigerator COP, so is always ≥ 1. | |
| Heat pump (maximum theoretical) |
Theoretical maximum COP for a heat pump. Real heat pumps fall below this value |
Where:
- and are the energy extracted from the cold reservoir and delivered to the hot reservoir respectively, in ,
- is the work inputted in , and
- and are the temperatures of the cold and hot reservoir respectively, in .
Question walkthrough
Finding refrigerator coefficient of performance
Uses a heat engine’s efficiency and the first law of thermodynamics Q_H=Q_C+W to find the coefficient of performance of the same engine run in reverse as a refrigerator.


















