📘 CodingMarble Learn

Second Law of Thermodynamics, Heat Engines and Refrigerators

The first law says energy is conserved; the second law says which way heat and energy can go. Heat flows by itself only from hot to cold (Clausius). No engine can turn all the heat it takes into work; some must be thrown into a colder body (Kelvin–Planck). A heat engine takes Q₁ from a hot source, does work W and rejects Q₂: efficiency η = W/Q₁ = 1 − Q₂/Q₁. A refrigerator uses work W to move Q₂ from cold to hot: COP α = Q₂/W. The best possible engine, the Carnot engine, has η = 1 − T₂/T₁.

🎬 Step-by-step story

  1. A hot tank (red, top) and a cold tank (blue, bottom) are joined by a metal rod. Heat flows down, from hot to cold. It never flows up by itself. This is the Clausius idea.
  2. Put an engine in between. It takes heat Q₁ from the hot tank, gives out work W (the wheel turns) and throws heat Q₂ into the cold tank. Q₁ = W + Q₂. Efficiency η = W/Q₁.
  3. Can we cut the pipe to the cold tank, so Q₂ = 0 and all heat becomes work? The engine stops. No engine can have 100% efficiency. This is the Kelvin–Planck statement.
  4. Run it backwards: a refrigerator. A motor gives work W. It pulls heat Q₂ out of the cold box and dumps Q₁ = Q₂ + W into the warm room. Heat goes uphill only when work is paid.
  5. The Carnot engine is the best possible engine between two temperatures. Its efficiency depends only on them: η = 1 − T₂/T₁ (in kelvin). Bigger gap, better engine.
  6. Your turn: change T₁ and T₂, and switch engine or fridge. Watch the arrow widths: Q₁ always equals W + Q₂.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why can't heat flow from cold to hot by itself if energy is still conserved?

Energy conservation allows it, but nature has a direction. Molecules of the hot body share energy with the cold one until it is spread evenly; it never gathers back by itself. Watch the dots only go down the rod.

Why must an engine throw away heat Q₂?

To repeat the cycle the gas must be brought back to its start. Compressing it back needs it to be cooler, which means giving heat to a cold body. Without the sink the engine cannot complete a cycle.

Where does the energy for the work come from?

From the hot source. Of Q₁ taken in, W goes out as work and the rest Q₂ goes to the sink: Q₁ = W + Q₂. See the arrow widths.

How can a fridge have a COP more than 1? Isn't that free energy?

The fridge does not make energy; it moves it. With a small W it can move a larger Q₂, and the room gets Q₂ + W. Nothing is created.

Why does Carnot efficiency depend only on temperatures?

For a reversible cycle Q₂/Q₁ = T₂/T₁, whatever gas is used. So η = 1 − T₂/T₁. Change T₁ and T₂ in the 3D and see nothing else matters.

Can we make η = 100% by making T₂ = 0 K?

In theory yes, but absolute zero can never be reached, so no real sink is at 0 K. Try making T₂ very small: η approaches but never reaches 100%.

Why we need a second law

The first law allows many things that never happen. A cup of tea could get hotter by taking heat from the cooler room; energy would still be conserved. A ship could run by taking heat from the sea and turning all of it into work. These never happen.

The second law of thermodynamics tells us the direction in which natural processes go, and sets a limit on how much heat can become work.

Heat engines and efficiency

A heat engine is a device that turns heat into work again and again, working in a cycle. It has three parts:

In a cycle ΔU = 0, so by the first law W = Q₁ − Q₂.

Efficiency η = W/Q₁ = 1 − Q₂/Q₁.

Examples: steam engine, petrol and diesel engines, thermal power station.

Refrigerators and heat pumps

A refrigerator is a heat engine run backwards. Work W from the compressor makes the working gas take heat Q₂ from the cold inside and give heat Q₁ = Q₂ + W to the warm room.

Coefficient of performance α = Q₂/W = Q₂/(Q₁ − Q₂).

α can be more than 1 (typical fridges: 2–6), but it can never be infinite, because W can never be zero. A heat pump uses the same idea to warm a room with heat taken from cold outside air.

Statements of the second law

Kelvin–Planck statement

No process is possible whose only result is to take heat from a reservoir and turn it completely into work. In other words, no engine can have 100% efficiency; it must reject some heat Q₂ to a colder body.

Clausius statement

No process is possible whose only result is to move heat from a colder body to a hotter body. In other words, a perfect refrigerator (W = 0) is impossible; heat flows uphill only when work is done.

Both say the same thing

If a perfect engine existed, we could use its work to run a fridge and the pair together would move heat from cold to hot with no outside work, breaking Clausius. So breaking one statement breaks the other: they are equivalent.

Carnot engine and Carnot's theorem

The Carnot engine is an ideal reversible engine between a source at T₁ and a sink at T₂. Its working gas goes round the Carnot cycle:

  1. isothermal expansion at T₁ (takes Q₁),
  2. adiabatic expansion (T₁ → T₂),
  3. isothermal compression at T₂ (gives out Q₂),
  4. adiabatic compression (T₂ → T₁), back to the start.

For this cycle Q₂/Q₁ = T₂/T₁, so

η(Carnot) = 1 − T₂/T₁ (T in kelvin).

Carnot's theorem: (a) no engine between two given temperatures can be more efficient than a Carnot engine; (b) all reversible engines between the same two temperatures have the same efficiency, whatever the working substance.

η = 1 only if T₂ = 0 K, which cannot be reached, so 100% efficiency is impossible. For a Carnot fridge, α = T₂/(T₁ − T₂).

Exam tip: 2–3 mark questions ask for the two statements, efficiency/COP numericals, and the four steps of the Carnot cycle.

Try it

Put your hand near the back grill of a running fridge (do not touch the wires). It is warm: that is Q₁ = Q₂ + W being dumped into your kitchen. In the 3D, set T₂ close to T₁ and watch the Carnot efficiency drop towards zero.

Key formulas and definitions

Worked examples

1. An engine takes 1000 J of heat and does 300 J of work per cycle. Find its efficiency and the heat rejected.

η = W/Q₁ = 300/1000 = 0.3 = 30%. Q₂ = Q₁ − W = 700 J.

2. An engine rejects 600 J for every 800 J it takes. Find its efficiency.

η = 1 − Q₂/Q₁ = 1 − 600/800 = 0.25 = 25%.

3. Find the efficiency of a Carnot engine working between 127 °C and 27 °C.

T₁ = 400 K, T₂ = 300 K. η = 1 − 300/400 = 0.25 = 25%.

4. A refrigerator takes 300 J from the inside using 100 J of work. Find its COP and the heat given to the room.

α = Q₂/W = 300/100 = 3. Q₁ = Q₂ + W = 400 J.

5. A Carnot engine has an efficiency of 40% with a sink at 300 K. Find the source temperature.

0.4 = 1 − 300/T₁ ⇒ 300/T₁ = 0.6 ⇒ T₁ = 500 K (227 °C).

6. A Carnot fridge keeps its freezer at −23 °C in a 27 °C room. Find its COP. How much work removes 5000 J from the freezer?

T₂ = 250 K, T₁ = 300 K. α = T₂/(T₁ − T₂) = 250/50 = 5. W = Q₂/α = 5000/5 = 1000 J.

7. An inventor claims an engine between 500 K and 300 K that takes 1000 J and gives 450 J of work. Is it possible?

Best possible (Carnot) η = 1 − 300/500 = 40%, so at most 400 J of work. The claim of 450 J (45%) breaks the second law. Not possible.

Common mistakes

Practice quiz

1. Efficiency of a heat engine is:
2. The Kelvin–Planck statement says:
3. A Carnot engine works between 600 K and 300 K. Its efficiency is:
4. COP of a refrigerator is:
5. Carnot engine efficiency depends on:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the second law of thermodynamics in simple words?

Heat flows by itself only from hot to cold, and no engine can turn all the heat it takes into work.

What is the efficiency of a Carnot engine?

η = 1 − T₂/T₁, where T₁ and T₂ are the source and sink temperatures in kelvin.

What is the coefficient of performance of a refrigerator?

α = Q₂/W: heat removed from the cold inside for each joule of work. For a Carnot fridge α = T₂/(T₁ − T₂).

Where this is taught

PolandLiceum ogólnokształcące, klasa IIThermodynamics
RomaniaClasa a X-aElements of thermodynamics
Spain2º BachilleratoMechanical systems
Ukraine10 класMolecular physics and thermodynamics
CBSE (India)Class 11Thermodynamics
USA (Common Core, NGSS, AP)Grade 12Thermodynamics
South Korea고등학교 2학년Heat and energy
South Korea고등학교 2학년Force and energy
South Korea고등학교 3학년Mechanics and energy
Russia10 классThermodynamics and heat engines
Russia10 классThermodynamics
China高三Selective 3 Ch.3 Laws of thermodynamics

Learn first

Learn next

Related lessons

All Physics lessons