📘 CodingMarble Learn

First Law of Thermodynamics: System, Heat, Work and ΔU

Thermodynamics tracks energy. The part we study is the system; the rest is the surroundings; the wall between them is the boundary. A system can be open, closed or isolated. Internal energy U is the total energy stored in the system. It changes only in two ways: by heat q or by work w. The first law says ΔU = q + w (IUPAC signs: q and w are positive when energy goes INTO the system). U is a state function; q and w are path functions. For expansion against a constant outside pressure, w = −p_ext ΔV; for a reversible isothermal expansion of an ideal gas, w = −2.303 nRT log(V₂/V₁).

🎬 Step-by-step story

  1. Look at the gas in the cylinder. This gas is the system. The room around it is the surroundings. The cylinder wall is the boundary.
  2. The gas goes from state A to state B by two paths. The heat and work are different each time. But the change in energy ΔU is the same. So U is a state function.
  3. A flame heats the gas. The tiny particles move faster. The gas now stores more energy. Heat going in is positive: q > 0.
  4. Now push the piston down. We do work on the gas, so w > 0 and the particles speed up. When the gas pushes the piston up, it does work, and w is negative.
  5. Put both together: ΔU = q + w. The gas takes 50 J of heat and does 20 J of work. It keeps 30 J. That is the first law.
  6. Your turn. Move the q and w sliders and pick the system type. Watch the green ΔU bar and the particle speed.

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

🤔 Common doubts, cleared

Where exactly is the boundary?

It is the wall that separates the system from the surroundings: here, the cylinder wall and the piston. It can be real or imaginary.

Why is U called a state function when q and w change?

In the 3D, both paths start at A and end at B. q and w differ, but q + w (= ΔU) is the same, 40 J. U only cares about the end points.

Why do the particles move faster when heated?

Heat energy goes into the gas and becomes kinetic energy of the particles. Faster particles mean higher internal energy and higher temperature.

Why is the work negative when the gas expands?

The gas uses its own energy to push the piston up, so energy leaves the system. Energy leaving is negative in the IUPAC convention.

Can ΔU be zero when heat is given?

Yes. If the gas gives out as much work as the heat it takes in (w = −q), ΔU = 0. Set q = +50 and w = −50 in free play.

Why does an isolated system have ΔU = 0?

No heat and no work can cross the boundary, so q = 0 and w = 0. Pick 'Isolated' in free play: the bars stay at zero.

System, surroundings and boundary

Thermodynamics is the study of energy changes, mainly heat and work. We pick the part we want to study and call it the system. Everything else is the surroundings. The real or imaginary wall that separates them is the boundary. System + surroundings = the universe.

Three types of system

Special kinds of process

State of a system and state functions

We describe a system by a few measurable values: pressure p, volume V, temperature T and amount n. These are state variables. Once they are fixed, the system is in a definite state.

A state function depends only on the start state and the end state, not on how you got there. Examples: U, H, S, G, p, V, T. A path function depends on the route. Heat q and work w are path functions.

Hill example: your height gain from the foot to the top of a hill is fixed (state function). The distance you walk depends on the road you choose (path function).

That is why we write ΔU (a change between two states) but just q and w (amounts along one path), never Δq or Δw.

Internal energy, heat and work

Internal energy (U) is the total energy stored inside the system: motion of particles, energy in chemical bonds, attractions between particles and more. We cannot measure U itself, only the change ΔU = U₂ − U₁.

Two ways to change U

Pressure–volume work

When a gas expands against a constant outside pressure p_ext: w = −p_ext (V₂ − V₁) = −p_ext ΔV. Expansion (ΔV > 0) gives negative w. Compression gives positive w.

First law of thermodynamics: ΔU = q + w

The first law is the law of conservation of energy: energy of an isolated system stays constant; it can change form but cannot be made or destroyed. For any closed system: ΔU = q + w.

Special cases

In the exam

Expect 1-mark questions on definitions and sign conventions, 2–3 mark numericals on ΔU = q + w and w = −p_ext ΔV, and a derivation of reversible work. The unit Thermodynamics carries about 9 marks in CBSE Class 11.

Try it at home: the bicycle pump test

Close the nozzle of a bicycle pump with your thumb and push the handle down quickly 10 times. Touch the bottom of the pump. It feels warm. You did work on the air (w > 0) so fast that heat had no time to escape (almost adiabatic, q ≈ 0). So ΔU = w > 0 and the air got hotter. Now in the 3D, set q = 0 and slide w to +60 J: the particles speed up in the same way.

Key formulas and definitions

Worked examples

1. A gas absorbs 200 J of heat and 150 J of work is done on it. Find ΔU.

q = +200 J (heat in). w = +150 J (work on the gas). ΔU = q + w = 200 + 150 = +350 J. The internal energy rises by 350 J.

2. A system gives out 60 J of heat and does 40 J of work on the surroundings. Find ΔU.

Heat out: q = −60 J. Work done by the system: w = −40 J. ΔU = −60 + (−40) = −100 J. The system loses 100 J.

3. A gas expands from 2 L to 7 L against a constant outside pressure of 1.5 bar. Find the work in joules.

ΔV = 7 − 2 = 5 L. w = −p_ext ΔV = −1.5 × 5 = −7.5 L bar. 1 L bar = 100 J, so w = −750 J. Negative because the gas does work.

4. In the same expansion (Example 3), the gas absorbs 1000 J of heat. Find ΔU.

q = +1000 J, w = −750 J. ΔU = q + w = 1000 − 750 = +250 J.

5. 2 mol of an ideal gas expand isothermally and reversibly at 300 K from 10 L to 100 L. Find w, q and ΔU.

w = −2.303 nRT log(V₂/V₁) = −2.303 × 2 × 8.314 × 300 × log(10). log 10 = 1, so w = −11 488 J ≈ −11.49 kJ. For an ideal gas at constant T, ΔU = 0. So q = −w = +11.49 kJ.

6. 1 mol of an ideal gas expands isothermally at 300 K from 1 L to 5 L (a) into vacuum, (b) against a constant 2 bar, (c) reversibly. Compare the work.

(a) Free expansion: p_ext = 0 → w = 0. (b) w = −2 × (5 − 1) = −8 L bar = −800 J. (c) w = −2.303 × 1 × 8.314 × 300 × log 5 = −5744 × 0.699 ≈ −4015 J. The reversible path gives the most work (in size): 4015 J > 800 J > 0. In all three ΔU = 0 because T is constant, so q = −w each time.

7. In an adiabatic process 500 J of work is done on a gas. Find q and ΔU. Will the gas get hotter or cooler?

Adiabatic means q = 0. w = +500 J. ΔU = 0 + 500 = +500 J. U rises, so the gas gets hotter (like the bicycle pump).

Common mistakes

Practice quiz

1. A system where only energy (not matter) can cross the boundary is:
2. Which is NOT a state function?
3. The first law in IUPAC form is:
4. For an adiabatic process:
5. A gas expands into vacuum. The work done is:

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 cannot be made or destroyed. The change in a system's internal energy equals the heat added plus the work done on it: ΔU = q + w.

Why is ΔU = q + w in chemistry and not q − w?

Chemistry uses the IUPAC sign rule: work done on the system is positive. Many physics books count work done by the system as positive, which gives ΔU = q − w (or ΔQ = ΔU + ΔW). Both describe the same fact.

What is the difference between a state function and a path function?

A state function (U, H, p, V, T) depends only on the start and end states. A path function (q, w) depends on how the change is carried out.

Where this is taught

CBSE (India)Class 11Chemical Thermodynamics
CBSE (India)Class 11Thermodynamics
USA (Common Core, NGSS, AP)Grade 11Thermochemistry

Learn first

Learn next

Related lessons

All Chemistry lessons