The First Law of Thermodynamics is conservation of energy applied to heat and work. Its mathematical statement fits on one line: ΔU = Q − W. But behind this compact equation lies one of the most important insights in 19th-century physics — that heat and work are not fundamentally different things. They are both simply ways of transferring energy across a system’s boundary. Understanding this equivalence changed how we build engines, understand the human body, and predict the behaviour of every gas on Earth.

ΔU = Q − WThe First Law
1843Joule’s experiments
JUnit for heat, work, energy
3State variables: U, Q, W

1. Internal Energy — What Is U?

The internal energy U of a system is the total kinetic and potential energy of all its molecules. For an ideal monatomic gas, internal energy is purely kinetic — the random translational motion of its atoms. For more complex substances, internal energy also includes rotational energy of molecules, vibrational energy of bonds, and the potential energy stored between molecules.

Internal energy is a state function: its value depends only on the current state of the system (temperature, pressure, volume, composition) — not on how the system arrived at that state. This is a crucial property. Whether you heated a gas quickly or slowly, compressed it first and then heated it, or any other path — if it ends at the same temperature and pressure, it has the same internal energy.

⚡ State Function vs Path Function

Internal energy U is a state function — defined by the current state, not how you got there.

Heat Q and Work W are path functions — they depend on the process taken, not just the start and end states. Two processes connecting the same initial and final states can involve completely different amounts of heat and work — as long as their difference (Q − W) is the same.


2. The First Law — Statement and Meaning

⚡ The First Law of Thermodynamics

The change in internal energy of a system equals the heat added to the system minus the work done by the system.

ΔU = Q − W
Change in internal energy = heat added to system − work done by system
ΔU = change in internal energy (J) Q = heat added to system (J) W = work done by system (J)

This is simply conservation of energy. The internal energy of a system changes only when energy crosses its boundary — either as heat (Q) or as work (W). Add heat without letting the system do work, and all the heat increases internal energy. Let the system expand and do work without adding heat, and it loses internal energy.

💡

Sign Convention Matters: Some textbooks write ΔU = Q + W where W is work done on the system (opposite sign convention). Always check which convention is being used. In this article: Q > 0 means heat flows INTO the system; W > 0 means the system does work ON its surroundings (like expanding gas pushing a piston outward).


3. Heat — What It Is and What It Isn’t

Heat (Q) is energy in transit driven by a temperature difference. It flows spontaneously from regions of higher temperature to lower temperature and stops when temperatures equalise. Heat is not something a system “contains” — it is energy crossing a boundary.

This distinction matters enormously. A hot object has high internal energy — not “lots of heat.” Heat is the process of energy transfer, not a stored quantity. Once energy has been transferred by heat and absorbed by the system, it becomes internal energy — not heat.

Sign of QMeaningEffect on SystemExample
Q > 0Heat flows INTO systemInternal energy increasesHeating water on a stove
Q < 0Heat flows OUT of systemInternal energy decreasesCooling a hot metal in cold water
Q = 0Adiabatic process — no heat exchangeAll energy change is via workRapid compression of gas in insulated cylinder

4. Work Done by a Gas

For a gas in a cylinder with a movable piston, work is done when the gas expands or is compressed. The work done by the gas against a constant external pressure p over a volume change ΔV is:

W = pΔV
Work done by gas at constant pressure (isobaric process)
p = pressure (Pa = N/m²) ΔV = change in volume (m³)
Sign of WMeaningEffect on SystemExample
W > 0System does work on surroundingsInternal energy decreasesGas expanding, pushing piston out
W < 0Surroundings do work on systemInternal energy increasesGas compressed by external pressure
W = 0Isochoric (constant volume) processAll energy change is via heatHeating gas in rigid sealed container

5. The Four Thermodynamic Processes

ProcessConditionSimplificationExample
IsothermalConstant temperature (ΔT = 0)For ideal gas: ΔU = 0, so Q = WSlow compression in contact with heat reservoir
AdiabaticNo heat exchange (Q = 0)ΔU = −W (work comes entirely from internal energy)Rapid compression, insulated cylinder
IsobaricConstant pressureW = pΔV, ΔU = Q − pΔVGas heated in piston at atmospheric pressure
IsochoricConstant volume (W = 0)ΔU = Q (all heat → internal energy)Gas heated in sealed rigid container

6. Worked Examples

Worked Example 1Gas expanding in a cylinder

Problem: 850 J of heat is added to a gas. The gas expands, doing 320 J of work on the piston. What is the change in internal energy?

1
Identify: Q = +850 J (heat added to system), W = +320 J (work done by system on piston)
2
Apply First Law: ΔU = Q − W = 850 − 320 = 530 J
✓ ΔU = +530 J. The internal energy increases by 530 J — the remaining 320 J did useful work pushing the piston.
Worked Example 2Compression with heat loss

Problem: A piston compresses a gas, doing 700 J of work on it. Simultaneously, 250 J of heat escapes to the surroundings. What is ΔU?

1
Q = −250 J (heat leaves system — negative). W = −700 J (work done ON system, not BY system — negative in our convention)
2
ΔU = Q − W = (−250) − (−700) = −250 + 700 = +450 J
✓ ΔU = +450 J. The internal energy INCREASES even though heat was lost, because the compression added more energy than heat removal took away. The gas is hotter after compression.
Worked Example 3Adiabatic process

Problem: A gas undergoes adiabatic compression — no heat is exchanged. The surroundings do 1,200 J of work on the gas. What happens to internal energy?

1
Q = 0 (adiabatic). W = −1,200 J (work done on system)
2
ΔU = Q − W = 0 − (−1,200) = +1,200 J
✓ ΔU = +1,200 J. All the work done by compression goes directly into increasing internal energy — the gas heats up significantly. This is why a bicycle pump gets warm and why diesel engines ignite fuel by compression alone.

7. Real-World Applications

🚂

Steam Engine

Heat (Q) is added from burning fuel; the expanding steam does work (W) on the pistons. ΔU = Q − W governs every stroke of the engine.

🧊

Refrigerator

Work is done on the refrigerant gas (compression). Heat is extracted from inside the fridge and expelled outside. Energy is moved, not destroyed.

🫁

Human Lungs

Breathing involves work done by chest muscles (W) and heat exchange with inhaled air (Q). The first law governs respiratory thermodynamics.

🔥

Diesel Engine

Rapid adiabatic compression (Q = 0) raises air temperature above diesel’s ignition point — no spark plug needed. Pure first law thermodynamics.


8. Common Misconceptions

✗ Misconception 1

“Heat and temperature are the same thing.” Temperature is a measure of average molecular kinetic energy. Heat is the flow of energy due to a temperature difference. A swimming pool at 20°C contains far more thermal energy than a cup of boiling water at 100°C — even though the water has a higher temperature — because the pool has vastly more mass and therefore more total molecular kinetic energy.

✗ Misconception 2

“The first law says energy is conserved, so perpetual motion machines are theoretically possible.” The first law prohibits machines that create energy (perpetual motion of the first kind). The second law goes further — it also prohibits machines that convert heat to work with 100% efficiency. Both laws together rule out all perpetual motion machines, in principle and in practice.


9. Frequently Asked Questions

What is the difference between heat and internal energy? +
Internal energy (U) is what a system contains — the total kinetic and potential energy of its molecules. Heat (Q) is the process of energy transfer driven by a temperature difference. When heat flows into a system, it becomes internal energy. You cannot say a system “has heat” — only that it has internal energy and that heat may have flowed in or out during a process.
Why is there a minus sign in ΔU = Q − W? +
The sign convention reflects that heat added increases internal energy (positive contribution) while work done BY the system decreases it (negative contribution). Think of it this way: if you add heat to a gas and let it expand and do work, the gas’s internal energy increases by the heat added minus the work done. The gas “spent” some of the added energy on doing work.
What is the second law of thermodynamics? +
The second law states that the total entropy (disorder) of an isolated system never decreases. Practically, this means heat spontaneously flows only from hot to cold, and no heat engine can convert heat to work with 100% efficiency. While the first law says energy is conserved, the second law determines which energy transformations are actually possible in practice. Energy may be conserved, but it tends toward less useful, more disordered forms.

Conclusion

The First Law of Thermodynamics, ΔU = Q − W, is one of the most powerful equations in all of science. It tells us that internal energy changes only through heat transfer or work — and that these two mechanisms, though physically different, are equivalent ways of transferring energy. Heat and work are interconvertible; energy is conserved.

The four special processes — isothermal, adiabatic, isobaric, isochoric — each simplify the first law in different ways, and together they describe the full range of thermodynamic behaviour of gases. Master the sign conventions and the physical meaning of each term, and the rest of thermodynamics becomes dramatically more accessible.