First Law of Thermodynamics — Energy Conservation Explained

Energy cannot be created or destroyed — the first law of thermodynamics, ΔU = Q − W. Learn sign conventions, internal energy, and real worked examples.

Quick answer

The first law of thermodynamics is energy conservation: the change in a system's internal energy equals the heat added to it minus the work it does. Energy is never created or destroyed — only moved or transformed.

ΔU=Q−W\Delta U = Q - W

Unit: All terms in joules (J)

Example: A gas absorbs 500 J of heat and expands, doing 300 J of work on a piston. Its internal energy rises by ΔU = 500 − 300 = 200 J — the gas gets hotter.

What you will learn

  • State the first law as energy conservation for thermal systems
  • Apply the physics sign convention for heat and work
  • Explain internal energy in molecular terms
  • Solve ΔU = Q − W problems with correct signs
  • Distinguish isothermal, adiabatic, and isochoric processes

Energy accounting for the universe

Every thermal process is an energy transaction, and the first law is the accountant. It says something profound yet simple: energy cannot be created or destroyed — it can only change form or move between a system and its surroundings.

For a gas in a cylinder, the energy ledger has three entries: heat flowing in, work done by expansion, and the system's own stored energy — its internal energy UU.

The equation

In the physics convention:

Sign convention (physics)

Q > 0: heat enters the system. W > 0: the system does work (e.g., gas expands and pushes a piston). A gas being compressed has W < 0 — work is done ON it, raising its internal energy.

What internal energy actually is

Internal energy is everything happening at the molecular scale: the kinetic energy of jiggling molecules (which sets the temperature), plus the potential energy stored in molecular bonds and attractions. For an ideal gas, attractions are negligible, so internal energy depends only on temperature — heat a sealed rigid tank and every joule becomes molecular motion.

Change the internal energy and you change the state of the system: hotter, higher pressure, or a different phase.

Gas in a piston absorbing heat and expanding to do workheat Q in → molecules speed upexpansion does work W on piston
Heat in, work out, internal energy keeps the balance. Compress the gas instead and work flows in, raising U.

Working the signs

Worked example. A gas absorbs 800 J of heat while expanding against a piston, doing 500 J of work. Find ΔU.

ΔU=Q−W=800−500=+300 J\Delta U = Q - W = 800 - 500 = +300\ \mathrm{J}

The gas keeps 300 J as internal energy — it ends hotter than it started. Now reverse it: compress a gas with 400 J of work while it loses 150 J of heat. Then Q=−150Q = -150, W=−400W = -400 (work done ON the gas), and:

ΔU=(−150)−(−400)=+250 J\Delta U = (-150) - (-400) = +250\ \mathrm{J}

Sign discipline is everything. Write each sign explicitly before computing.

Four special cases, one law

Four textbook processes are just the first law with terms zeroed out:

  • Isochoric (constant volume): W=0W = 0, so ΔU=Q\Delta U = Q — all heat becomes internal energy.
  • Isothermal (constant temperature, ideal gas): ΔU=0\Delta U = 0, so Q=WQ = W — heat in equals work out.
  • Adiabatic (no heat exchange): Q=0Q = 0, so ΔU=−W\Delta U = -W — expansion cools the gas.
  • Isobaric (constant pressure): W=PΔVW = P\Delta V, the full law applies.

Real engines cycle through these continuously — which is exactly what the second law then constrains.

Variables and units

SymbolNameUnitMeaning
ΔUΔUInternal energy changeJChange in microscopic stored energy
QQHeat addedJThermal energy entering the system
WWWork done by systemJMechanical energy leaving via expansion

Common mistakes

✗ The first law says heat and work are the same thing.

Heat and work are both energy transfers, but they are different kinds: heat is disordered energy flow driven by temperature difference; work is organized energy transfer by a force through a distance. The first law only says their books must balance.

✗ Internal energy and temperature are identical.

Temperature measures average molecular kinetic energy; internal energy includes that plus intermolecular potential energy and more. Two objects at the same temperature can hold very different internal energies if their masses or phases differ.

✗ If Q = W, nothing happened to the system.

The system's internal energy is unchanged, but plenty happened: energy flowed through it. An engine at steady operation takes in heat and outputs work continuously with ΔU = 0 over each cycle.

Real-world applications

  • Steam power plants: chemical energy becomes heat, heat becomes work — the first law balances every joule in the plant's energy accounts.

  • Refrigerators: electrical work drives heat from the cold interior to the warm kitchen, with energy conserved at every step.

  • Human body: food energy (Q in, chemically) becomes body heat plus the mechanical work of muscles — dietitians and physiologists both use this balance.

  • Internal combustion engines: only a fraction of fuel heat becomes shaft work; the first law tells you exactly where the rest went (exhaust and coolant).

Frequently asked questions

Is it ΔU = Q − W or ΔU = Q + W?

In physics, W is the work done BY the system (e.g., expanding gas pushing a piston), so ΔU = Q − W. In chemistry, w is work done ON the system, giving ΔU = q + w. Same physics, different bookkeeping — always check which convention your course uses.

What is internal energy, physically?

Internal energy is the total microscopic energy of a system — molecular kinetic energy (temperature) plus the potential energy of molecular interactions and bonds. For an ideal gas it depends only on temperature.

Can all heat be converted into work?

No. The first law is a conservation law, not a conversion guarantee. The second law restricts how much heat can become work — that is why heat engines need a cold reservoir and can never be 100% efficient.

What is an adiabatic process?

An adiabatic process exchanges no heat (Q = 0), so ΔU = −W: any work done comes straight out of internal energy, cooling the system. Rapid gas expansions and sound waves are nearly adiabatic.