📘 CodingMarble Learn

First Law of Thermodynamics

Internal energy U is the total energy of the molecules inside a system. It changes in only two ways: by heat Q (energy that flows because of a temperature difference) and by work W (energy moved by a force, like a moving piston). First law: ΔQ = ΔU + ΔW. Heat given to a gas partly raises its internal energy and partly lets it do work. Work by a gas at constant pressure is PΔV. For an ideal gas Cp − Cv = R.

🎬 Step-by-step story

  1. Gas in a cylinder. The blue balls are molecules. Their total energy of motion is the internal energy U. The bar on the right shows U.
  2. The piston is locked. A flame gives heat Q. The gas cannot push anything, so all of Q goes into U. Molecules move faster. ΔU = Q.
  3. Now no flame, and the walls are insulated. We push the piston down. Work done on the gas also raises U. Heat is not the only way to warm a gas.
  4. Piston free, flame on. Heat Q splits into two parts: ΔU (gas gets hotter) and W (gas lifts the piston). Q = ΔU + W. This is the first law.
  5. Work by the gas: the piston rises by Δh, the volume grows by ΔV = AΔh. At steady pressure P, W = PΔV. At constant pressure, extra heat is needed for this work, so Cp is bigger than Cv.
  6. Your turn: set the heat Q and how far the piston may rise. Watch the three bars always balance: Q = ΔU + W.

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

🤔 Common doubts, cleared

Does a hot gas contain more heat?

A hot gas has more internal energy. "Heat" is only the energy that flows in or out. Watch the U bar grow when the flame is on.

How can a gas get hot without any flame?

By doing work on it. Pushing the piston in gives the molecules energy, so U rises even with insulated walls.

Where does the heat go when the piston is free?

Part of it raises U, part lifts the piston as work. The two bars add up to the heat bar.

Why is work equal to PΔV?

Force on the piston = P × A; it moves Δh; work = P × A × Δh = P × ΔV.

Why is Cp bigger than Cv?

At constant pressure the gas also does work lifting the piston, so extra heat is needed for the same temperature rise.

Can ΔU be negative while heat is given?

Yes, if the gas does more work than the heat it receives. Try Q small and a big rise in the free-play step.

Internal energy

Every gas is made of tiny molecules that are always moving. Internal energy U is the total energy of all these molecules (energy of motion and, in real gases, energy of their pulls on each other). It does not include the motion of the whole container.

For an ideal gas, U depends only on temperature. Hotter gas → faster molecules → bigger U.

U is a state variable: it depends only on the present state, not on the past.

Heat and work: two ways to change U

Heat (Q) is energy that flows between the system and surroundings because of a temperature difference. A flame warms the gas.

Work (W) is energy moved by a force through a distance, without needing a temperature difference. A piston pushed in by your hand warms the gas.

Heat and work are not "stored" in a body. They are energy in transit. A body has internal energy; it does not "have" heat or work. That is why Q and W are not state variables: they depend on the path.

Joule showed that a fixed amount of work always makes the same warming as a fixed amount of heat. So heat is just a form of energy, measured in joules (1 cal = 4.186 J).

The first law of thermodynamics

The first law is the law of conservation of energy for heat and work:

ΔQ = ΔU + ΔW

Sign rules (NCERT style)

(Some chemistry books write ΔU = q + w with w = work done on the gas. It is the same law with a different sign for W.)

Special cases: in a cycle ΔU = 0 so Q = W. If no heat enters (insulated), ΔU = −W.

Work done by a gas: W = PΔV

Let gas at pressure P push a piston of area A through a small distance Δx. Force = PA, so work = PA × Δx. But A × Δx is the increase in volume ΔV. So

W = P ΔV (when P stays constant)

If P changes, W = the area under the P–V curve. Expansion (ΔV > 0) → gas does positive work. Compression → negative work.

Specific heats of a gas and Cp − Cv = R

Molar specific heat = heat needed to raise the temperature of 1 mol by 1 K. For a gas it depends on how we heat it.

Derivation of Cp − Cv = R (Mayer's relation)

Heat 1 mol by ΔT at constant pressure. First law: CpΔT = ΔU + PΔV.

ΔU is the same as at constant volume (U depends only on T): ΔU = CvΔT.

From PV = RT at constant P: PΔV = RΔT.

So CpΔT = CvΔT + RΔT, which gives Cp − Cv = R.

Exam tip: this derivation (2–3 marks) and numericals on ΔQ = ΔU + ΔW are asked almost every year.

Try it at home

Rub your palms fast for 10 seconds. They feel warm. You did work, and it became internal energy. Now pump a bicycle tyre ten times and touch the pump's bottom: warm again. Work done on air raises its U, just like heat does.

Key formulas and definitions

Worked examples

1. A gas absorbs 500 J of heat and does 200 J of work. Find the change in internal energy.

ΔU = ΔQ − ΔW = 500 − 200 = 300 J. Internal energy rises by 300 J.

2. 800 J of work is done on a gas and it gives out 300 J of heat. Find ΔU.

Work on the gas: ΔW = −800 J. Heat given out: ΔQ = −300 J. ΔU = ΔQ − ΔW = −300 − (−800) = +500 J.

3. A gas at a constant pressure of 2 × 10⁵ Pa expands from 1 L to 4 L. Find the work done by it.

ΔV = 3 L = 3 × 10⁻³ m³. W = PΔV = 2 × 10⁵ × 3 × 10⁻³ = 600 J.

4. In the example above the gas also received 1500 J of heat. By how much did its internal energy change?

ΔU = ΔQ − ΔW = 1500 − 600 = 900 J.

5. 2 mol of an ideal gas is heated from 300 K to 350 K at constant volume. Cv = 20.8 J mol⁻¹ K⁻¹. Find the heat supplied.

At constant volume W = 0, so ΔQ = ΔU = nCvΔT = 2 × 20.8 × 50 = 2080 J.

6. The same 2 mol is heated from 300 K to 350 K at constant pressure. Find the heat needed and the work done (R = 8.3).

Cp = Cv + R = 29.1 J mol⁻¹ K⁻¹. ΔQ = nCpΔT = 2 × 29.1 × 50 = 2910 J. ΔU = 2080 J (same as before). W = ΔQ − ΔU = 830 J. Check: nRΔT = 2 × 8.3 × 50 = 830 J. ✓

7. A gas goes through a full cycle and returns to its starting state. It absorbs 1200 J in total. How much net work does it do?

In a cycle ΔU = 0 (U is a state variable). So ΔW = ΔQ = 1200 J.

Common mistakes

Practice quiz

1. The first law of thermodynamics is based on conservation of:
2. A gas absorbs 100 J and does 40 J of work. ΔU is:
3. Which is a state variable?
4. At constant volume, the work done by a gas is:
5. For an ideal gas Cp − Cv equals:

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 first law of thermodynamics in simple words?

Energy is never lost. Heat given to a system goes into raising its internal energy and into the work it does: ΔQ = ΔU + ΔW.

What is internal energy?

The total energy of the molecules inside a system. For an ideal gas it depends only on temperature.

Why is Cp − Cv = R?

At constant pressure the gas does extra work PΔV = RΔT per mole, so it needs R more heat per mole per kelvin.

Where this is taught

ItalySecondaria di secondo grado – classe 3ªClassical physics
ItalySecondaria di secondo grado – classe 3ªClassical physics
ItalySecondaria di secondo grado – classe 4ªClassical physics
ItalySecondaria di secondo grado – classe 4ªClassical physics
PolandLiceum ogólnokształcące, klasa IIThermodynamics
PolandLiceum ogólnokształcące, klasa IIThermodynamics
RomaniaClasa a X-aElements of thermodynamics
Spain1º BachilleratoEnergy
Ukraine10 класMolecular physics and thermodynamics
Ukraine10 класMolecular physics and thermodynamics
CBSE (India)Class 11Chemical Thermodynamics
CBSE (India)Class 11Thermodynamics
England (GCSE, A level)Year 133.11 Engineering physics
USA (Common Core, NGSS, AP)Grade 11Thermodynamics and Electrochemistry
USA (Common Core, NGSS, AP)Grade 12Thermodynamics
USA (Common Core, NGSS, AP)Grade 12Energy
South Korea고등학교 2학년Heat and energy
South Korea고등학교 3학년Western science
South Korea고등학교 3학년Mechanical interactions
FranceTerminaleEnergy
FranceTerminalePhysics-chemistry: Energy conversions and transfers
FranceTerminaleLab sciences: Systems and processes
Russia10 классThermodynamics and heat engines
Russia10 классThermodynamics
China高三Selective 3 Ch.3 Laws of thermodynamics

Learn first

Learn next

Related lessons

All Physics lessons