First law for closed systems

The first law for cycles and processes of closed systems, internal energy and enthalpy, specific heats of ideal gases, and energy balances for rigid tanks, piston–cylinders and polytropic processes.

Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

The first law is energy bookkeeping: nothing is created or lost, it only moves across the boundary as heat or work or is stored inside the system. For a closed system — a charge in an engine cylinder, gas in a pressure vessel, an air spring — it turns a physical description into one equation you can solve for the unknown temperature, heat or work. Every cycle analysis later in the subject is built on it.

Key ideas

First law for a cycle. Joule's experiments showed that when a closed system executes a cycle, the net heat supplied equals the net work delivered: ∮δQ = ∮δW. No machine can produce net work over a cycle without an equal net heat input — a perpetual-motion machine of the first kind (PMM1) is impossible.

First law for a process. Since ∮(δQ − δW) = 0 for every cycle, the quantity (δQ − δW) is the change of a property — the total energy E. For a process 1→2:

  • Q − W = ΔE = ΔU + ΔKE + ΔPE
  • For a stationary closed system (the usual case) ΔKE = ΔPE = 0, so Q − W = ΔU.

Q and W are path functions; ΔU is a property change and depends only on the end states. That is why you can find ΔU along any convenient path.

Internal energy is the energy stored in the molecular structure — translational, rotational and vibrational kinetic energy plus intermolecular potential energy. For an ideal gas it depends on temperature only (Joule's free-expansion experiment), so du = cv·dT for any process of an ideal gas, not just constant-volume ones.

Enthalpy H = U + pV is a property, convenient whenever pressure is constant. For a closed system at constant pressure with only boundary work, Q = ΔH. For an ideal gas dh = cp·dT.

Specific heats. cv = (∂u/∂T)v, cp = (∂h/∂T)p. For an ideal gas cp − cv = R and γ = cp/cv. For air at room temperature cp ≈ 1.005 kJ/(kg·K), cv ≈ 0.718 kJ/(kg·K), γ ≈ 1.4. Solids and liquids are nearly incompressible, so cp ≈ cv = c.

Special cases.

  • Constant volume: W = 0, so Q = ΔU = m·cv·ΔT.
  • Constant pressure: W = p·ΔV, so Q = ΔH = m·cp·ΔT.
  • Isothermal ideal gas: ΔU = 0, so Q = W.
  • Adiabatic: Q = 0, so W = −ΔU (expansion cools the gas).
  • Isolated system: Q = W = 0, so E is constant.
  • Stirring (paddle-wheel) or electrical work is work input, W < 0 in the work-by-system convention.

Polytropic ideal-gas process pVⁿ = C. Combining W = mR(T₁ − T₂)/(n − 1) with ΔU gives Q = W·(γ − n)/(γ − 1). For 1 < n < γ, heat is added during expansion even though the gas cools.

Formulas

∮δQ = ∮δW (cycle) Q − W = ΔU + ΔKE + ΔPE (closed system, process) ΔU = m·cv·(T₂ − T₁) (ideal gas, any process) ΔH = m·cp·(T₂ − T₁) (ideal gas, any process) H = U + p·V cp − cv = R, γ = cp / cv Q = W·(γ − n) / (γ − 1) (ideal-gas polytropic process)

  • Q: heat added to the system, kJ; W: work done by the system, kJ
  • U, H: internal energy and enthalpy, kJ (u, h per kg: kJ/kg)
  • m: mass, kg; T: absolute temperature, K
  • cv, cp: specific heats at constant volume and pressure, kJ/(kg·K)
  • R: specific gas constant, kJ/(kg·K); γ: ratio of specific heats; n: polytropic index

Worked examples

Example 1 (standard). A rigid tank holds 0.5 kg of air at 300 K. A paddle wheel does 20 kJ of work on the air while 5 kJ of heat leaks out. Find the final temperature. cv = 0.718 kJ/(kg·K).

  1. Rigid tank: no boundary work. Paddle work is input, so W = −20 kJ. Heat leaves, so Q = −5 kJ.
  2. ΔU = Q − W = −5 − (−20) = +15 kJ
  3. ΔU = m·cv·(T₂ − T₁) → T₂ − T₁ = 15 / (0.5 × 0.718) = 41.78 K
  4. T₂ = 300 + 41.78 = 341.8 K

Example 2 (GATE level). 0.2 kg of air at 300 K expands in a piston–cylinder following pV¹·³ = C until its volume triples. Find the work, the change in internal energy and the heat transfer. R = 0.287, cv = 0.718 kJ/(kg·K).

  1. T₂ = T₁·(V₁/V₂)ⁿ⁻¹ = 300 × (1/3)⁰·³ = 215.77 K
  2. W = m·R·(T₁ − T₂)/(n − 1) = 0.2 × 0.287 × 84.23 / 0.3 = 16.12 kJ
  3. ΔU = m·cv·(T₂ − T₁) = 0.2 × 0.718 × (−84.23) = −12.10 kJ
  4. Q = ΔU + W = −12.10 + 16.12 = +4.02 kJ (heat added)
  5. Cross-check: Q = W(γ − n)/(γ − 1) = 16.12 × 0.1/0.4 = 4.03 kJ (taking γ = 1.4; the tiny difference is because 1.005/0.718 = 1.3997).

Answer: W = 16.1 kJ, ΔU = −12.1 kJ, Q = +4.0 kJ

Common mistakes

  • Mixing sign conventions: if W is "work done on the system", the law is ΔU = Q + W.
  • Using ΔU = m·cv·ΔT only for constant-volume processes. For an ideal gas it holds for every process.
  • Using cv where cp is needed (constant-pressure heating), or vice versa.
  • Treating paddle-wheel or electrical work as positive.
  • Assuming the gas cools only when heat is removed — adiabatic expansion cools it too.
  • Writing Q = ΔH for a process that is not at constant pressure.

For GATE AE

Expect numericals combining the first law with ideal-gas processes: rigid tanks with stirring or electrical work, constant-pressure heating with a piston, and polytropic expansion asking for Q given n and γ. Conceptual questions test PMM1, internal energy as a function of T for an ideal gas, and Q = ΔH at constant pressure. Practise fixing the sign of each interaction before writing numbers.

Quick check

  1. A closed system receives 300 J of heat and does 100 J of work. Find ΔU.
  2. In a cycle a system receives 50 kJ of heat. What is the net work?
  3. For an ideal gas undergoing an isothermal process, what is ΔU?
  4. Air at constant pressure is heated from 300 K to 400 K. Find the heat per kg (cp = 1.005 kJ/(kg·K)).
  5. In an adiabatic expansion, does the temperature of an ideal gas rise or fall?

Answers: 1. 200 J. 2. 50 kJ. 3. Zero. 4. 100.5 kJ/kg. 5. It falls.

Try answering each one aloud before you open it.

  1. 1.What is the first law of thermodynamics for closed systems?Concept

    The first law of thermodynamics for closed systems states that the change in internal energy of a system is equal to the heat added to the system minus the work done by the system. Mathematically, it is expressed as ΔU = Q - W, where ΔU is the change in internal energy, Q is the heat added, and W is the work done by the system.

  2. 2.Explain the significance of the first law of thermodynamics in engineering applications.Concept

    The first law of thermodynamics is significant in engineering because it provides a fundamental principle for energy conservation. It helps engineers design systems like engines, refrigerators, and power plants by ensuring that energy input, output, and losses are accounted for. This law is crucial for optimizing efficiency and performance in various engineering applications.

  3. 3.How does the first law of thermodynamics apply to a piston-cylinder assembly?Application

    Take the gas in the cylinder as a closed system: Q − W = ΔU, with W the boundary work ∫p dV done as the piston moves. If heat is added at constant pressure, part of it raises the internal energy and part leaves as boundary work, so Q = ΔH = m·cp·ΔT for an ideal gas. If the piston is locked (constant volume), W = 0 and all the heat goes into internal energy, Q = m·cv·ΔT. The heat needed for the same temperature rise is therefore larger at constant pressure.

  4. 4.Why is it important to consider boundary work in closed systems?Application

    Boundary work is important in closed systems because it represents the work done by the system as it expands or contracts against external pressure. This work is a key component in the energy balance of the system, affecting the internal energy change. Ignoring boundary work can lead to incorrect calculations of energy changes and system performance.

  5. 5.What happens if no heat is added to a closed system? How does the first law apply?Application

    If no heat is added to a closed system, the first law of thermodynamics simplifies to ΔU = -W. This means that any work done by the system results in a decrease in internal energy. The system's energy change is solely due to the work done, as there is no heat transfer to compensate for energy loss.

  6. 6.In what scenarios might the first law of thermodynamics be violated in a closed system?Application

    The first law of thermodynamics cannot be violated in a closed system as it is a fundamental law of nature. However, apparent violations might occur due to measurement errors, incorrect assumptions, or unaccounted energy transfers. Ensuring accurate measurements and considering all energy interactions is crucial to uphold the law.

  7. 7.Calculate the change in internal energy for a closed system where 500 J of heat is added and 200 J of work is done by the system.Numerical

    Using the first law of thermodynamics, ΔU = Q - W. Here, Q = 500 J and W = 200 J. Therefore, ΔU = 500 J - 200 J = 300 J. The change in internal energy is 300 J.

  8. 8.A closed system undergoes a process where the internal energy decreases by 150 J and 50 J of work is done on the system. How much heat is transferred?Numerical

    Using the first law of thermodynamics, ΔU = Q - W. Here, ΔU = -150 J (since it decreases) and W = -50 J (work done on the system is negative). Rearranging gives Q = ΔU + W = -150 J + (-50 J) = -200 J. Therefore, 200 J of heat is removed from the system.

  9. 9.Why is it necessary to consider both heat and work interactions in the first law of thermodynamics for closed systems?Application

    Considering both heat and work interactions is necessary because they are the primary modes of energy transfer in closed systems. The first law accounts for these interactions to ensure energy conservation. Ignoring either can lead to incorrect predictions of system behavior and energy changes, affecting design and analysis accuracy.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?