Mechanical Engineering‹›⌂ 0:00 studied

Module 8 · 13 min read · Free chapter

The first law for closed and open systems

In short

The first law says energy is conserved: for a closed system, Q − W = ΔU. For steady flow devices the steady flow energy equation balances heat, shaft work, enthalpy, kinetic and potential energy. A throttle keeps enthalpy constant, a nozzle turns enthalpy into speed, and a turbine turns it into shaft work.

See it in 3DInside a steady-flow plant: nozzle, turbine, condenser, pump. Turn it, cut it open, or just press Watch.
What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: energy is never lost, only moved

Rub your palms together on a cold morning and they warm up. The work of your muscles became internal energy in your skin. Nothing was created and nothing was destroyed; energy only changed form and place.

That everyday fact is the first law of thermodynamics: energy is conserved. It is the energy version of a bank statement. Opening balance, plus money in, minus money out, equals the closing balance.

The law did not seem obvious in 1840. Many people still thought heat was a fluid called "caloric" that could not be made from work. James Joule's careful experiments in the 1840s showed that a fixed amount of work always produced the same heating, which ended the caloric idea and made heat and work two forms of one quantity.

This chapter states the law for a closed system, defines internal energy and enthalpy, and applies the law to common processes. It then extends the law to open systems, giving the steady-flow energy equation, which is the main tool for turbines, compressors, nozzles, boilers and valves.

Why it matters. Every power plant heat balance, every compressor rating and every nozzle design starts from the first law. Exams test it heavily: GATE ME asks numericals on SFEE almost every year, and JE papers ask which device has zero work or constant enthalpy.

The first law for a closed system

For a cycle. Joule turned a paddle wheel inside an insulated container of water using a falling weight. The water warmed up. He then let the container cool back to its starting temperature, so the system completed a cycle. Over many repeats, the work put in was always proportional to the heat given out, and in consistent units the two were equal:

∮δQ = ∮δW

For a process. Now suppose the system goes from state 1 to state 2 by path A and returns by path B. Applying the cycle rule to A + B and to C + B (another path C from 1 to 2) shows that Q − W is the same along A and along C. A quantity whose change does not depend on the path is a property. That property is the energy of the system, E:

Q−W=E2−E1Q - W = E_{2} - E_{1}

E includes internal energy U, kinetic energy and potential energy. For most closed systems at rest, kinetic and potential changes are negligible, so:

Q−W=ΔUQ - W = \Delta U, or in differential form δQ=dU+δW\delta Q = dU + \delta W

What internal energy is. U is the energy stored in the molecules: their motion, their rotation and vibration, and the forces between them. We cannot measure its absolute value, but the first law lets us measure its change exactly, which is all engineering needs.

Two impossibilities. A machine that delivers work forever with no energy input is a perpetual motion machine of the first kind (PMM1). The first law forbids it. Also, an isolated system has Q=0Q = 0 and W=0W = 0, so its energy stays constant, whatever happens inside.

Enthalpy: why a new property was needed

Heat water in an open pan. The pressure stays at atmospheric while the water expands slightly. The first law gives Q=ΔU+p(V2−V1)=(U2+pV2)−(U1+pV1)Q = \Delta U + p(V_{2} - V_{1}) = (U_{2} + pV_{2}) - (U_{1} + pV_{1}). The combination U + pV keeps appearing, so it was given its own name, enthalpy:

H=U+pVH = U + pV, and per unit mass h=u+pvh = u + pv

Since U, p and V are all properties, H is also a property. Its value in a constant-pressure process is easy to read: the heat added equals the rise in enthalpy, Q=H2−H1Q = H_{2} - H_{1}. Most heating in industry, in boilers, heat exchangers and kitchens, happens at nearly constant pressure, so enthalpy is the natural measure of heat added.

For an ideal gas both u and h depend only on temperature: du=cvdTdu = c_{v} dT and dh=cpdTdh = c_{p} dT. This holds for any process, not only constant volume or constant pressure, because u and h are functions of T alone.

Steam tables list h, not u, for a reason. Engineers mostly deal with flowing fluids, and for flowing fluids enthalpy is the quantity that enters every energy balance, as the next sections show.

The first law in common gas processes

For an ideal gas in a closed system, the first law Q=ΔU+WQ = \Delta U + W with ΔU=mcv(T2−T1)\Delta U = m c_{v} (T_{2} - T_{1}) gives a complete table:

Process Work W Change ΔU Heat Q
Constant volume 0 m cᵥ ΔT m cᵥ ΔT
Constant pressure p(V2−V1)=mRΔTp(V_{2} - V_{1}) = mR\Delta T m cᵥ ΔT m cₚ ΔT
Isothermal mRT ln(V₂/V₁) 0 = W
Reversible adiabatic (p₁V₁ − p₂V₂)/(γ − 1) = −W 0
Polytropic pVⁿ = C (p₁V₁ − p₂V₂)/(n − 1) m cᵥ ΔT W (γ − n)/(γ − 1)

The polytropic heat formula. Adding W and ΔU for the polytropic case and simplifying gives Q = W (γ − n)/(γ − 1). Writing Q=mcnΔTQ = m c_{n} \Delta T defines a polytropic specific heat, cₙ = cᵥ (n − γ)/(n − 1).

This has a surprising meaning. For an expansion with 1<n<γ1 < n < \gamma, which is common in real engines, cₙ is negative. The gas receives heat yet its temperature falls, because it does more work than the heat it receives. In a compressor with 1<n<γ1 < n < \gamma, heat is rejected even as the temperature rises.

Worked example. 1 kg of air (cᵥ = 0.718, R = 0.287 kJ/(kg·K), γ=1.4\gamma = 1.4) expands from 600 K following pV1⋅3=CpV^{1} \cdot ^{3} = C until its temperature is 450 K. Work W=mR(T1−T2)n−1=0.287×1500.3=143.5W = \dfrac{mR(T_{1} - T_{2})}{n - 1} = 0.287 \times \dfrac{150}{0.3} = 143.5 kJ. ΔU=0.718×(450−600)=−107.7\Delta U = 0.718 \times (450 - 600) = -107.7 kJ. So Q=ΔU+W=35.8Q = \Delta U + W = 35.8 kJ, and the check Q = W (γ − n)/(γ − 1) = 143.5 × 0.1/0.4 = 35.9 kJ agrees.

Open systems and the steady-flow energy equation

In a turbine, steam enters, does work and leaves, hour after hour. Nothing inside changes with time, so this is steady flow. To apply the first law, we fix a control volume around the turbine and count energy carried in and out by the moving fluid.

Mass balance. In steady flow, the mass flow rate in equals the mass flow rate out:

ṁ = ρ₁A₁V1=ρ2V_{1} = \rho _{2} A₂V₂

Flow work. To push a small parcel of fluid of volume v into the control volume against pressure p, the fluid behind it must do work pv per unit mass. This flow work is energy carried across the boundary with the fluid. The fluid entering therefore brings u + pv + V²/2 + gz per unit mass, and u + pv is the enthalpy h. This is the real reason enthalpy, not internal energy, appears for flowing fluids.

The steady-flow energy equation (SFEE), per unit mass of fluid:

h1+V122+gz1+q=h2+V222+gz2+wh_{1} + \dfrac{V_{1}^{2}}{2} + g z_{1} + q = h_{2} + \dfrac{V_{2}^{2}}{2} + g z_{2} + w

Multiplying by ṁ gives the rate form: Q̇ − Ẇ = ṁ[(h₂ − h₁) + (V₂² − V₁²)/2 + g(z₂ − z₁)].

Units matter. Enthalpy is in kJ/kg, but V²/2 in m²/s² equals J/kg, so divide by 1000. A velocity of 100 m/s carries only 5 kJ/kg of kinetic energy. That is why kinetic energy is small in turbines and boilers but dominant in nozzles and jets.

SFEE at work: nozzles, turbines, compressors, boilers and valves

The power of the SFEE is that each device lets us cross out most terms. Learn which terms vanish and the numericals become two-line answers.

Device Assumptions SFEE reduces to
Nozzle q = 0, w = 0, Δz = 0 V2=2(h1−h2)+V12V_{2} = \sqrt{2(h_{1} - h_{2}) + V_{1}^{2}}
Diffuser q = 0, w = 0 h2−h1=V12−V222h_{2} - h_{1} = \dfrac{V_{1}^{2} - V_{2}^{2}}{2}
Turbine adiabatic, small ΔKE, ΔPE w=h1−h2w = h_{1} - h_{2}
Compressor or pump adiabatic win=h2−h1w_{in} = h_{2} - h_{1}
Boiler, condenser, heat exchanger w = 0, small ΔKE q=h2−h1q = h_{2} - h_{1}
Throttling valve q = 0, w = 0, small ΔKE h1=h2h_{1} = h_{2}

Nozzle example. Steam enters a nozzle at low speed with h1=3,000h_{1} = 3{,}000 kJ/kg and leaves at h2=2,800h_{2} = 2{,}800 kJ/kg. Then V2=2×200×1000≈632V_{2} = \sqrt{2 \times 200 \times 1000} \approx 632 m/s. A drop of only 200 kJ/kg makes a jet faster than a bullet, which is how steam turbines get their high blade speeds.

Turbine example. Steam flows at 5 kg/s through a turbine from h1=3,200h_{1} = 3{,}200 kJ/kg to h2=2,500h_{2} = 2{,}500 kJ/kg, losing 20 kJ/s of heat. Power = ṁ(h₁ − h₂) − heat loss = 5 × 700 − 20 = 3,480 kW, or about 3.5 MW.

Throttling. When a fluid passes through a partly closed valve or a porous plug, its pressure drops with no work and almost no heat transfer, so enthalpy stays the same. For an ideal gas, constant h means constant temperature. For real fluids the temperature usually falls, which is how the expansion valve of a refrigerator makes the refrigerant cold. The rate of this change, μ=(∂T∂p)\mu = \left(\dfrac{\partial T}{\partial p}\right) at constant h, is the Joule-Thomson coefficient.

Unsteady flow and flow work in reversible processes

Filling a tank. A rigid, empty, insulated tank is connected to a supply line carrying air at temperature T_line. The valve opens and air rushes in until the pressures are equal. No work is done and no heat crosses, but mass enters carrying enthalpy h_line. The energy balance for this unsteady process is m2u2=minhlinem_{2}u_{2} = m_{in} h_{line}, and since m2=minm_{2} = m_{in}:

u2=hlineu_{2} = h_{line}, so cvT2=cpTlinec_{v}T_{2} = c_{p}T_{line} and T2=γTlineT_{2} = \gamma T_{line}

Air from a line at 300 K ends up at about 420 K in the tank. The extra heat comes from the flow work done by the line pushing the air in. This explains why a cylinder warms up during fast filling at a gas station.

Emptying a tank is the reverse: the gas left behind expands and cools, which is why a spray can gets cold.

Shaft work in reversible steady flow. For a reversible steady-flow process with negligible kinetic and potential changes, the work per unit mass is:

w = −∫ v dp

On a p–v chart, this is the area to the left of the curve, not the area under it. Compare it with closed-system work ∫p dv.

For a liquid, v is nearly constant, so pump work is simply wpump=v(p2−p1)w_{pump} = v(p_{2} - p_{1}). Pumping 1 kg of water from 0.1 bar to 100 bar needs only about 0.001 × 9,990 ≈ 10 kJ, while compressing the same mass of vapour over that range takes far more. This is why steam plants pump liquid water, not steam, back to the boiler.

Descriptive lens: how this topic is asked in written papers

Written papers test the first law in four ways:

  1. State and prove: the first law for a cycle and a process; that internal energy is a property; that enthalpy is the heat in a constant-pressure process.
  2. Derive: the SFEE from the first law and mass balance; Q=W(γ−n)γ−1Q = \dfrac{W(\gamma - n)}{\gamma - 1} for a polytropic process; T2=γTlineT_{2} = \gamma T_{line} for charging a tank.
  3. Compute: nozzle exit velocity, turbine and compressor power, heat in a boiler or condenser, and work and heat in gas processes.
  4. Explain: why throttling is isenthalpic but irreversible; why liquid is pumped instead of vapour; why PMM1 is impossible.

Practice questions (our own, not previous-year questions).

  1. Show from the first law for a cycle that the energy of a system is a property. Explain why heat and work are not properties although their difference is. (10 marks)
  2. Derive the steady-flow energy equation for a single-stream control volume and reduce it for a nozzle, a turbine and a throttling valve. (15 marks)
  3. Air enters a compressor at 1 bar, 300 K and 20 m/s and leaves at 6 bar, 500 K and 80 m/s, at 2 kg/s. Heat lost to the surroundings is 15 kW. Find the power needed. Take cp=1.005c_{p} = 1.005 kJ/(kg·K). (12 marks)

Answer plan for question 3.

  • SFEE rate form: Q̇ − Ẇ = ṁ[cₚ(T₂ − T₁) + (V₂² − V₁²)/2000].
  • Enthalpy rise: 1.005 × 200 = 201 kJ/kg. Kinetic energy rise: 6400−4002000=3\dfrac{6400 - 400}{2000} = 3 kJ/kg.
  • With Q̇ = −15 kW: −15 − Ẇ = 2 × (201 + 3) = 408, so Ẇ = −423 kW.
  • State the result: the compressor needs about 423 kW of power input; the negative sign confirms work is done on the air.

Quick revision

  • For a cycle ∮δQ = ∮δW, and for a process Q − W = ΔE (≈ ΔU for a closed system at rest).
  • Internal energy is a property, and a PMM1 is impossible.
  • Enthalpy is H=U+pVH = U + pV, so Q=ΔHQ = \Delta H at constant pressure and Q=ΔUQ = \Delta U at constant volume.
  • For an ideal gas, Δu=cvΔT\Delta u = c_{v}\Delta T and Δh=cpΔT\Delta h = c_{p}\Delta T in any process.
  • In a polytropic process Q=W(γ−n)γ−1Q = \dfrac{W(\gamma - n)}{\gamma - 1}, and cₙ is negative when 1<n<γ1 < n < \gamma.
  • The SFEE is h1+V122+gz1+q=h2+V222+gz2+wh_{1} + \dfrac{V_{1}^{2}}{2} + gz_{1} + q = h_{2} + \dfrac{V_{2}^{2}}{2} + gz_{2} + w, and kinetic energy in kJ/kg is V²/2000.
  • A nozzle gives V2=2ΔhV_{2} = \sqrt{2\Delta h}, a turbine gives w=h1−h2w = h_{1} - h_{2}, and a boiler gives q=h2−h1q = h_{2} - h_{1}.
  • Throttling keeps h constant, is irreversible, and leaves an ideal gas at the same temperature.
  • Charging an empty tank gives T2=γTlineT_{2} = \gamma T_{line}, and reversible steady-flow work is −∫v dp.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 15 answered

  1. For a closed system executing a cycle, the first law states:

  2. For a closed system, ignoring kinetic and potential energy, Q − W equals:

  3. A perpetual motion machine of the first kind violates:

  4. In a constant-pressure process of a closed system (only pdV work), the heat added equals the change in:

  5. Enthalpy is defined as:

  6. In an isothermal expansion of an ideal gas, the heat supplied is:

  7. For an ideal gas in a polytropic process pVn=CpV^{n} = C, the heat transfer is:

  8. The polytropic index n=∞n = \infty represents a:

  9. Flow work per unit mass of a fluid entering a control volume is:

  10. A fluid velocity of 100 m/s corresponds to a kinetic energy of about:

  11. In a throttling process the quantity that stays constant is:

  12. Steam enters a nozzle at negligible velocity and its enthalpy falls by 200 kJ/kg. The exit velocity is about:

  13. For an adiabatic steam turbine with negligible kinetic and potential energy changes, the work output per kg is:

  14. An evacuated insulated rigid tank is filled with air from a line at temperature T. The final air temperature in the tank is:

  15. For a reversible steady-flow process with negligible KE and PE changes, the work per unit mass is:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What stays constant in throttling?

Enthalpy. No work, negligible heat and small velocity change leave h₁ = h₂.

Why is cp greater than cv for a gas?

At constant pressure part of the heat does expansion work, so more heat is needed per degree; cp − cv = R.

What is a perpetual motion machine of the first kind?

A machine that produces work without any energy input. The first law forbids it.

What is enthalpy?

h = u + pv, the internal energy plus flow work, convenient for open systems.

More in this module: Thermodynamics

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 syllabus, ME Mechanical Engineering (IIT Guwahati)
  2. BPSC Assistant Engineer (Mechanical), Advt 30/2025, and Bihar Engineering Service Class-II Recruitment Rules 2019, Papers 5-6
  3. NPTEL Applied Thermodynamics (IIT Guwahati, 112103275)