🔥 Thermodynamics
Thermodynamics governs energy transfer. The ideal gas law links pressure, volume and temperature across a process; the first law Q = ΔU + W is the energy balance for any closed system. Together they let you analyse heating, compression and expansion of gases in engineering systems.
What you'll cover
Two focused topics building from gas state relations to full energy balance.
Ideal Gas Laws & Processes
The ideal gas law links pressure, volume and temperature for a fixed mass of gas. Different processes (constant pressure, volume or temperature) simplify the relationship in useful ways.
- PV = nRT / PV = mRT — P is absolute pressure (Pa), V is volume (m³), T is absolute temperature (K, never °C directly). n is the amount of gas in moles (SI form); R here is the universal gas constant, 8314 J/kmol·K. m is the mass of gas in kg (engineering form); R here is the specific gas constant for that gas (J/kg·K, e.g. ≈287 for air) — specific R = universal R ÷ molar mass, so it's a different number to the R used with n.
- P₁V₁/T₁ = P₂V₂/T₂ — the subscripts 1 and 2 just mean "before" and "after": the same gas's P, V and T measured at two different moments in a process.
- Zeroth law (A, B, C) — A, B and C are just three arbitrary bodies used to state the principle. If A and C reach the same temperature, and B and C also reach the same temperature, then A and B must be equal too — even though A and B were never compared directly. This is exactly what lets a thermometer (playing the role of C) measure two different objects and let you compare them.
- Isobaric — V₁/T₁ = V₂/T₂ (Charles's Law) — pressure P stays constant ("iso" = same, "baric" = pressure), so P cancels out of the combined law, leaving only V and T linked: V and T rise and fall together in direct proportion. Sanity check — heat a gas at constant pressure and it must expand (V₂ > V₁ when T₂ > T₁); if your answer shrinks the volume on heating, a value has gone in the wrong place.
- Isochoric — P₁/T₁ = P₂/T₂ (Gay-Lussac's Law) — volume V stays constant ("choric" = volume) instead, so V cancels out, leaving only P and T linked.
- Isothermal — P₁V₁ = P₂V₂ — temperature T stays constant ("thermal" = temperature), so T cancels out, leaving only P and V linked (this is Boyle's Law). ΔU is the change in internal energy — it's zero here specifically because temperature doesn't change, and for an ideal gas internal energy depends on temperature alone, not on pressure or volume.
📚 Key vocabulary
- System
- the region of matter under analysis. Closed system: fixed mass, no mass transfer. Open system (control volume): mass may cross the boundary.
- State
- the condition of a system described by its properties (P, V, T). A process changes the system from one state to another.
- Specific gas constant R
- R = R0/M (J/kg·K), where R0 = 8314 J/kmol·K is the universal gas constant and M is molar mass. For air, R ≈ 287 J/kg·K.
- Isobaric (Charles's Law)
- constant pressure process. V₁/T₁ = V₂/T₂ — volume directly proportional to absolute temperature. W = PΔV. Used for piston-cylinder devices open to atmosphere.
- Isochoric (Gay-Lussac's Law)
- constant volume process. P₁/T₁ = P₂/T₂ — pressure directly proportional to absolute temperature. No boundary work (W = 0), so all heat added changes internal energy directly.
- Isothermal
- constant temperature process. For an ideal gas ΔU = 0, so Q = W. Work is found from W = mRT ln(V₂/V₁).
The line only passes through the origin because T is measured in Kelvin (absolute zero). Plotting the same data against °C would give a straight line that does not pass through zero — always convert to Kelvin before using V∝T.
T₁ = 20 + 273 = 293 K T₂ = 80 + 273 = 353 KV₁/T₁ = V₂/T₂ (isobaric process)V₂ = V₁ × T₂/T₁ = 0.4 × 353/293 = 0.4 × 1.2048 = 0.4819 m³T₁ = 27 + 273 = 300 KT₂ = T₁ × (P₂V₂)/(P₁V₁) = 300 × (400×0.06)/(100×0.2) = 300 × 24/20 = 360 KW = mRT ln(V₂/V₁)W = 2×287×350×ln(0.4/0.15) = 200900×ln(2.667) = 200900×0.9808T = 35 + 273 = 308 KPV = mRT → m = PV/(RT) = 250000×1.2/(287×308) = 300000/88396T₁ = 15 + 273 = 288 K T₂ = 105 + 273 = 378 KV₁/T₁ = V₂/T₂V₂ = V₁ × T₂/T₁ = 1200 × 378/288 = 1200 × 1.3125🔨 Try it yourself
Now you can try these calculators with your own values.
First Law & Energy Balance
The first law of thermodynamics is a statement of energy conservation: heat added to a closed system either changes its internal energy or does work on the surroundings (or both).
📚 Key vocabulary
- Internal energy
- the sum of microscopic kinetic and potential energies of molecules. For an ideal gas: ΔU = mcvΔT, independent of the process.
- Enthalpy
- H = U + PV (J). Useful for open systems and constant-pressure processes. Q = ΔH at constant pressure.
- First law of thermodynamics
- energy cannot be created or destroyed — for a closed system, Q = ΔU + W. Sign convention: heat in is positive, work done by the system is positive.
- Boundary work
- work done by a gas as it expands (or done on it as it's compressed) by pushing against a moving boundary such as a piston: W = PΔV at constant pressure.
- Specific heat capacity
- the energy needed to raise the temperature of 1 kg of a substance by 1 K. cv (constant volume) and cp (constant pressure) differ for gases.
- Heat
- energy transferred due to a temperature difference. Not a property of the system — it's a process quantity, like work.
Constant pressure (isobaric) → W = PΔV = m(cp−cv)ΔTW = 2×(1005−718)×100 = 2×287×100 = 57400 JΔU = mcvΔT = 2×718×100 = 143600 JQ = ΔU + W = 143600 + 57400 = 201000 JQ = mcpΔT = 2×1005×100 = 201000 J ✓W = 0 (no boundary work when volume is constant)Q = ΔU + 0 = ΔU → ΔU = 45000 JΔT = ΔU / (mcv) = 45000 / (1.5×742) = 45000/1113 = 40.43 KΔU = 0 for an ideal gas at constant temperature → Q = WW = mRT ln(V₂/V₁) = 3×287×400×ln(0.5/0.2) = 344400×ln(2.5) = 344400×0.9163ΔT = 150 − 20 = 130 KΔH = mcpΔT = 1.5×1005×130 = 195975 J🔨 Try it yourself
Now you can try this calculator with your own values.
Engineering Applications
Four real engineering scenarios where ideal gas laws and the first law are used to size, check or predict equipment behaviour.
🔥 Compressed gas cylinder heating in storage
A sealed industrial gas cylinder is moved from a cold outdoor store into a heated workshop. As its temperature rises, the pressure inside climbs too — engineers must check the new pressure stays below the cylinder's rated limit before it's brought inside. This uses the combined gas law, since the cylinder is rigid (fixed volume) but both P and T change.
🧮 Calculator
📋 Slow, cooled air compression for a pneumatic system
A workshop's air compressor runs slowly enough, and is cooled well enough, that the compressed air stays at roughly constant temperature throughout the stroke — an isothermal process. Engineers need to know the work input the compressor motor must supply to compress the air from its intake volume down to the storage volume.
🧮 Calculator
⚡ Energy balance across an engine cylinder
During one stroke of an engine cylinder, heat is released by burning fuel, some of that energy leaves as useful work pushing the piston, and the rest changes the internal energy of the gas trapped inside. Given any two of Q, ΔU and W from test data, an engineer can find the third to check the cylinder's energy balance closes correctly.
🧮 Calculator
🌡️ Sizing a process water heater
A factory needs to heat a batch of water (or another fluid) from its intake temperature to a target process temperature. Before specifying the heater's power rating, an engineer must first calculate the total heat energy the batch actually requires, using its mass and specific heat capacity.
🧮 Calculator
Thermodynamics Challenge
12 randomised questions — ideal gas laws, first law and heat transfer.
🔥 Quick-fire round
Practice Questions
12 graded questions — type your answer, check, then reveal full working.
V₂ = 200×0.3×333/(303×500) = 19980/151500 = 0.1319 m³
ΔU = mcvΔT = 3×718×100 = 215400 J
W = 301500−215400 = 86100 J
ΔT = 78000/(2×650) = 60 K
V₂=0.6×450/300 = 0.9 m³
W = PΔV = 100000×0.3 = 30000 J
ΔU = 1.2×720×150 = 129600 J
Q = 129600+30000 = 159600 J
m = PV/(RT) = 180000×0.9/(260×318) = 162000/82680 = 1.96 kg
V₂ = 0.5×398/298 = 0.6678 m³
W = PΔV = 120000×0.1678 = 20136 J
ΔU = 1.0×718×100 = 71800 J
Q = 71800+20136 = 91936 J