Gases and thermal processes

6 visual steps · 4 worked examples · 6 exercises with solutions

First, let’s see the idea.

How is incoming heat divided in a gas expanding at constant pressure?

Move forward one step at a time. Change the values and observe what happens.

The gas does work as it expandsV = 10 LQuasistatic and isobaric; Q enters the gas; W is done by the gas.
Drawing description

Choose the gas and pressure. The gas starts at 10 L. We use 1 mol of monatomic ideal gas, meaning particles with a single atom. The piston moves so slowly that the gas passes through equilibrium states, always at the chosen external pressure. The green piston starts at the position corresponding to 10 L. Constant absolute pressure: 100 kPa. Final volume (initial: 10 L): 15 L.

Step 1 of 6

Choose the gas and pressure

The green piston starts at the position corresponding to 10 L.

The gas starts at 10 L. We use 1 mol of a monatomic ideal gas, meaning particles consisting of a single atom. The piston moves so slowly that the gas passes through equilibrium states, always at the chosen external pressure.

Constant absolute pressure
100 kPa
Final volume (initial: 10 L)
15 L

What if you change this?

50 kPa200 kPa
5 L20 L

Before moving on

At 100 kPa, the gas expands from 10 to 15 L. Calculate W, ΔU and Q for the monatomic ideal gas.

Compare with the explanation

ΔV = 0.005 m³; W = 500 J; ΔU = 750 J; Q = 1250 J. Convention: Q enters the gas; W is done by the gas.

You decide when to mark this lesson as studied.

The gas does work as it expands

Slide the drawing to see the details.

Explore the full explanationThe foundations, principles, worked examples and all the exercises, at your own pace.

What you will understand

  • Build the relationship between pressure, volume, amount of gas and absolute temperature.
  • Connect the microscopic description to the quantities we measure.
  • Calculate work and change in internal energy with an explicit sign convention.
  • Distinguish isothermal, isobaric, isochoric and adiabatic changes.
  • Interpret cycles, efficiency and limits imposed by the second law.

Before you start

You do not need to know everything by heart. The explanation revisits the necessary ideas and shows how they connect. If a foundation is still unclear, you can return to these lessons:

Before calculating: what is the system?

Imagine a certain amount of gas in a cylinder with a piston. We will call system this gas; the piston, walls and outside air belong to the surroundings. This choice makes it possible to say whether energy enters or leaves. A closed system can exchange energy but not matter. An open system also has matter entering or leaving, and the balance needs additional terms that we will not use here.

An equilibrium state can be described by pressure p, volume V, temperature T and amount of substance n. Pressure is perpendicular force per area; volume measures occupied space; absolute temperature is expressed in kelvin. A change connects states but is not determined only by its endpoints: slow expansion with thermal exchange and expansion inside an insulated box can connect states through very different processes.

When we use a continuous curve on a p–V graph, we are usually idealising a sufficiently slow succession of near-equilibrium states. This is a quasi-static process. An explosion or free expansion does not necessarily have uniform gas pressure at each instant, so we should not invent an equilibrium curve to calculate work.

The microscopic model and the meaning of pressure

A gas consists of particles in irregular motion. When they collide with a wall, they change their momentum and exert a force on it. Macroscopic pressure results from the average effect of many collisions. If we keep volume and particle number fixed and increase thermal agitation, collisions transfer more momentum per unit time, increasing pressure.

In the ideal gas model, particle size is negligible compared with their separation, and intermolecular interactions are neglected outside collisions. Collisions are treated as elastic. This is a useful approximation for many dilute gases, far from condensation; it is not an exact description of any gas at any pressure.

For this model, the average translational kinetic energy of a particle is 3kT/2, where k is Boltzmann’s constant. The particles do not all have the same speed: there is a distribution. Temperature characterises an average of the assembly; we should not assign a macroscopic temperature to a single collision. Molecules can also store energy in rotation and vibration, so total internal energy is not always just translational energy.

Building and using pV = nRT

The number N of particles can be counted through the amount of substance n: N = nNA, with NA = 6,02214076 × 10²³ mol⁻¹. A mole contains this number of specified entities. Total mass is not n: if M is molar mass, n = m/M, using consistent units. A gas of heavier molecules can have fewer particles for the same mass.

pV = nRT = NkT

In this lesson we use R ≈ 8,314 J/(mol·K), p in Pa, V in m³, n in mol and T in K. Since Pa·m³ = N·m = J, both sides have the unit of energy. Pressure must be absolute: if a gauge measures the difference from the atmosphere, local atmospheric pressure must be added before using the equation.

For a fixed amount of ideal gas, pV/T is constant. Keeping T constant gives constant pV; keeping p constant gives constant V/T; keeping V constant gives constant p/T. These proportional relationships cannot be combined without stating what remains fixed. If the container loses gas, n changes and p₁V₁/T₁ = p₂V₂/T₂ no longer works without correction. Nor do we use Celsius in temperature ratios: 600 K is twice 300 K; 60 °C is not twice 30 °C on the absolute scale.

The first law and signs of transfers

Internal energy U is associated with the system’s microscopic degrees of freedom. It is not heat that the gas “contains”. Heat Q and work W describe energy crossing the boundary during a process. U is a state function: between the same equilibrium states, ΔU is the same even if the individual transfers differ.

ΔU = Q − W

We use positive Q when energy enters the gas because of a temperature difference, and positive W when the gas does work on the surroundings. During compression, work done by the gas is negative: the surroundings supply energy to the system. Some books define work on the gas as positive and write ΔU = Q + Won. The two conventions are equivalent because Won = −W; the mistake is changing convention halfway through.

This form assumes that the relevant changes are in internal energy and not, for example, acceleration of the entire cylinder or its rising. When those macroscopic energies vary, they must enter the total balance. The first law conserves energy, but does not by itself determine a change’s spontaneous direction.

Why work appears as area on a p–V graph

On a piston of area A, an external pressure pext exerts a force pextA. A small displacement Δx corresponds to a volume change ΔV = AΔx. Thus the work done by the gas against that pressure is approximately pextΔV. With constant external pressure, W = pext(V₂ − V₁). In a quasi-static process in mechanical equilibrium, gas pressure approaches external pressure and we can use the p(V) curve.

If pressure varies, we divide the change into small intervals and add the pΔV contributions. The limit is W = ∫p dV for the indicated quasi-static path. The area under the curve measures signed work: expansion gives positive W, compression gives negative W. Two paths with the same initial and final volumes can have different areas. Knowing ΔV alone is not enough to know W.

An isobaric expansion: the rectangular area below the pressure line corresponds to workpVV₁V₂constant pW = p(V₂ − V₁)
Height is pressure and width is volume change. Their product has unit Pa·m³, that is, joule.

In free expansion into an empty region, external pressure is zero and there is no boundary work, even though volume increases. Using the gas’s initial pressure in W = pΔV would give an improper result: that was not the external pressure resisting motion.

Four changes we must not confuse

  • Isochoric: constant volume. There is no p dV boundary work, so ΔU = Q if this is the only type of work. For a fixed amount of ideal gas, increasing T increases p.
  • Isobaric: constant pressure along the path considered. If volume changes quasi-statically, W = pΔV. Energy received can be divided between an increase in U and work.
  • Isothermal: constant temperature. For a fixed amount of ideal gas, U depends only on T, so ΔU = 0 and Q = W. This does not mean there is no heat exchange: it may be precisely that exchange that keeps temperature constant.
  • Adiabatic: Q = 0. It does not mean constant T. If the gas expands and does work, internal energy decreases. Adiabatic compression can raise temperature.

For a reversible isothermal expansion of an ideal gas, we substitute p = nRT/V into the integral and obtain W = nRT ln(V₂/V₁). The logarithm’s argument is a dimensionless ratio. For a reversible adiabatic change of an ideal gas with constant heat capacities, pVγ is constant, with γ = Cp/CV. The word reversible matters: an adiabatic free expansion does not automatically obey this relationship.

How much of the energy received raises temperature?

The molar heat capacity at constant volume CV relates ΔU and ΔT of an ideal gas over an interval where the capacity can be treated as constant: ΔU = nCVΔT. For a monatomic ideal gas, considering only translational energy, CV = 3R/2 and U = 3nRT/2. For molecules with other active degrees of freedom, the capacity differs and may vary with temperature.

At constant pressure the gas also does work. Using pΔV = nRΔT, the first law gives Q = nCVΔT + nRΔT = nCpΔT. Therefore Cp − CV = R for an ideal gas. More energy per mole and kelvin is needed when some is delivered as expansion work.

A diatomic gas near temperatures where translation and rotation are active may have CV approximately 5R/2. This is an approximation for a particular regime, not a universal temperature-independent property. Always check the model and heat capacity given before using memorised numbers.

Cycles, heat engines and the second law

In a cycle, the system returns to its initial state, so the total change in internal energy is zero. Net work equals net heat received. On a quasi-static p–V graph, it corresponds to the area enclosed by the cycle, with its sign depending on the direction of travel.

A cyclic heat engine receives energy Qq from a hot source, delivers part as work and rejects an amount of energy Qf to a cold source. Here Qq and Qf represent positive magnitudes: W = Qq − Qf and η = W/Qq. Efficiency is a ratio; an engine with efficiency 0,40 delivers 40% of the energy received as net work.

The second law rules out a cyclic engine whose only effect is to take heat from a single source and convert all of it into work. Between reservoirs at Tq and Tf, the reversible Carnot limit is ηmax = 1 − Tf/Tq, with absolute temperatures. Friction, finite temperature differences and other irreversible processes make actual performance lower than the ideal limit.

Entropy helps quantify this irreversibility. In a reversible process, the small entropy change is dS = δQrev/T. The total entropy of an isolated system does not decrease. It is not energy disappearing: energy is conserved, but the ability to obtain useful work may decrease. This introduction prepares the topic; calculating entropies for general processes requires careful definitions of states, boundaries and reversible reference paths.

Worked examples, without skipping steps

Follow the reasoning first. Then cover the solution and try to reconstruct it in your own words.

Example 1

Determine a state without mixing scales

An ideal sample contains 0,50 mol at 300 K and occupies 12,0 L. Calculate absolute pressure.
  1. Convert volume: 12,0 L = 0,0120 m³. Amount n is already in mol and T in K.
  2. Isolate the unknown in pV = nRT: p = nRT/V. The relationship describes the state and does not require knowledge of the previous path.
  3. Substitute: p = 0,50 × 8,314 × 300 / 0,0120 = 103925 Pa.
Result
p ≈ 1,04 × 10⁵ Pa, or 104 kPa, absolute.
Check the result
The product mol × J/(mol·K) × K, divided by m³, gives J/m³ = Pa. A value near one atmosphere is plausible for these data.

Example 2

Heat without allowing expansion

One mole of monatomic ideal gas in a rigid container is heated from 290 K to 370 K. Neglect other work and calculate ΔU and Q.
  1. The change is ΔT = 80 K. A rigid container means ΔV = 0 and boundary work W = 0.
  2. In this model, CV = 3R/2. Then ΔU = 1 × 1,5 × 8,314 × 80 = 997,68 J.
  3. Apply ΔU = Q − W. Since W = 0, Q = ΔU and is positive: energy entered the gas.
Result
ΔU = Q ≈ 998 J; W = 0.
Check the result
Final temperature was not used instead of ΔT. Final pressure is higher because p/T is constant at fixed volume and amount.

Example 3

An expansion with a complete balance

A gas expands quasi-statically at 120 kPa from 3,0 L to 5,0 L, receiving 600 J as heat. Calculate work and ΔU.
  1. Convert p = 1,20 × 10⁵ Pa and ΔV = 2,0 × 10⁻³ m³. Volume increases: work done by the gas will be positive.
  2. W = pΔV = 1,20 × 10⁵ × 2,0 × 10⁻³ = 240 J.
  3. ΔU = Q − W = 600 − 240 = 360 J. The energy received was divided between internal energy and work.
Result
W = +240 J and ΔU = +360 J.
Check the result
The balance closes: 600 J = 360 J + 240 J. It would be incorrect to identify all the heat received with an increase in internal energy.

Example 4

Actual efficiency and ideal limit

A cyclic engine receives 1500 J from a reservoir at 600 K and rejects 900 J to another at 300 K. Do these data respect the Carnot limit?
  1. In a cycle, ΔU = 0. Net work is 1500 − 900 = 600 J.
  2. Efficiency is η = 600/1500 = 0,40, or 40%.
  3. The limit between these temperatures is 1 − 300/600 = 0,50, or 50%. Since 40% is below 50%, this limit is not violated.
Result
W = 600 J; η = 40%; reversible limit of 50%.
Check the result
The comparison does not prove that any construction with these numbers is feasible; it only checks a necessary condition imposed by thermodynamics.

Now try it yourself

There is no timer. Write what you know, choose a relationship and justify each step. Hints and solutions are available whenever you need them.

Exercise 1

A sample at 100 kPa, 2,0 L and 300 K changes to 3,0 L and 450 K without losing gas. Determine the new pressure.
A hint
With a fixed amount, compare pV/T in the two states.
See the worked solution

p₂ = p₁(V₁/V₂)(T₂/T₁) = 100 × (2/3) × (450/300) = 100 kPa. The temperature rise offsets the volume increase in this case. Using volumes in the same unit is allowed because they appear only in a ratio.

Exercise 2

A gas undergoes adiabatic compression. The surroundings do 180 J of work on it. What is ΔU?
A hint
This lesson’s W is work done by the gas, not work done on the gas.
See the worked solution

Adiabatic means Q = 0. Since the gas receives work, W = −180 J. Thus ΔU = 0 − (−180) = +180 J. For a fixed amount of ideal gas with positive heat capacity, temperature rises.

Exercise 3

An isothermal expansion of ideal gas does 250 J of work. The gas does not warm up; does that imply Q = 0?
A hint
Relate the ideal gas’s internal energy to temperature.
See the worked solution

No. For the ideal gas in this change, ΔU = 0. The first law gives 0 = Q − 250, so Q = +250 J. Energy entering as heat leaves as work, keeping internal energy constant.

Exercise 4

On a p–V graph, a constant-pressure compression has V₂ smaller than V₁. What is the sign of W? What about free expansion into a vacuum?
A hint
Distinguish the sign of ΔV from the presence of resisting external pressure.
See the worked solution

For quasi-static compression, W = p(V₂ − V₁) is negative. In free expansion, external pressure is zero, so W = 0 even though volume increases. We must not apply the initial internal pressure to that second process.

Exercise 5

An engine between 500 K and 300 K claims 60% efficiency. Is that compatible with a cyclic heat engine operating only between these sources?
A hint
Calculate the reversible limit before discussing technical details.
See the worked solution

ηmax = 1 − 300/500 = 0,40. The claimed efficiency, 0,60, exceeds the limit and is incompatible with the stated conditions. There may be an error in measurement, the definition of efficiency or the description of the sources; it is not an improvement that surpasses the second law.

Exercise 6

Compare two paths between the same states: along one, Q = 400 J and W = 100 J; along the other, W = 160 J. What is the heat along the second path?
A hint
Internal energy is a state function; Q and W depend on the process.
See the worked solution

Along the first path ΔU = 400 − 100 = 300 J. Along the second, the same change must apply: 300 = Q₂ − 160. Therefore Q₂ = 460 J. Heat differs, but the state change is the same.

Mistakes worth avoiding

Using Celsius in a temperature ratio.
Convert to kelvin. The scale origin changes ratios such as T₂/T₁, although intervals in °C and K have the same size.
Adiabatic means constant temperature.
Adiabatic means no heat transfer. Work can change internal energy and temperature.
ΔU always equals heat received.
Only in that simple form when the total work considered is zero. First write ΔU = Q − W with signs defined.
Any volume increase allows W = initial p × ΔV.
Work depends on the path and external pressure. That multiplication does not describe free expansion.
Conserving energy is enough for any engine to operate.
The second law and efficiency limits between reservoirs must also be respected.

The essentials to take with you

  • An ideal gas state obeys pV = nRT, with absolute pressure and temperature in kelvin.
  • Heat and work are transfers; internal energy is a state property.
  • The convention ΔU = Q − W uses positive work when done by the gas.
  • Quasi-static work is a signed area on the p–V graph.
  • Isothermal and adiabatic describe different conditions.
  • In a cycle ΔU = 0, but net work and net heat can be non-zero.
  • The Carnot limit uses absolute temperatures and is not the efficiency of every real engine.

If you still cannot explain one of these ideas, return to the corresponding section and work through an example again. Recognising the difficulty is part of studying.

References for further study

Text and examples prepared for this learning path. These sources help check the principles and continue studying:

The organisation by school year is a study proposal. Pedagogical review by teachers remains a stage of the project.