Dove's LibraryDove's Library

1.4 - The First Law of Thermodynamics

Internal Energy

The internal energy of a system is the kinetic energy of all the objects making up the system plus the potential energy stored in how those objects are arranged.
U=KEinternal+PEinternalU = KE_{\text{internal}} + PE_{\text{internal}}

Internal Energy of an Ideal Gas

For an ideal gas: - The atoms don’t interact through conservative forces, so there are no intermolecular forces. - That means there’s no internal potential energy. - So the internal energy is just the sum of all the kinetic energies.
For an ideal monatomic gas:
U=32nRT=32NkBTU = \frac{3}{2}nRT = \frac{3}{2}Nk_B T
where: - UU = internal energy (J) - nn = number of moles - RR = 8.31 J/(mol·K) - NN = number of molecules - kBk_B = 1.38 × 10⁻²³ J/K - TT = temperature (K)
The big takeaway: for an ideal gas, UU depends only on temperature.

Internal vs. External Energy

Changing a system’s internal energy can change its internal structure and behavior without moving the system’s center of mass at all.
  • Internal energy is about microscopic motion and configuration.
  • External energy is about macroscopic motion, like the kinetic energy of the center of mass or potential energy in an external field.
Example: a sealed box of gas rides on a train moving at 30 m/s. The box's center of mass has kinetic energy, but that's external energy, so the gas inside isn't any hotter than in an identical box sitting on the platform. Now heat the box on the platform: its internal energy and temperature go up (the atoms move faster), but the box itself doesn't start moving.

The First Law of Thermodynamics

The first law is really just conservation of energy, rewritten to include energy transferred by work, heating, or cooling.
ΔU=Q+W\Delta U = Q + W
where: - ΔU\Delta U = change in internal energy (J) - QQ = energy transferred by heating or cooling (J) - WW = work done on the system (J)
The sign conventions are: - Q>0Q > 0: heat added to the system (heating) - Q<0Q < 0: heat removed from the system (cooling) - W>0W > 0: work done on the system (compression) - W<0W < 0: work done by the system (expansion)
An energy flow diagram shows the same rules as a picture. Draw the system as a box and draw an arrow for each energy transfer across its boundary. Arrows into the box are positive and arrows out are negative.
1.4 - The First Law of Thermodynamics

Isolated System

For an isolated system, where no energy goes in or out:
ΔU=0\Delta U = 0
The total energy stays constant.

Closed System

For a closed system, the change in internal energy equals the heat transferred plus the work done on the system. Energy can come and go through heat and work, but mass can’t enter or leave.

Work Done On or By a Gas

The work done on a system by external pressure that changes its volume is:
W=−PΔVW = -P\Delta V
where: - WW = work done on the system (J) - PP = external pressure (Pa) - ΔV=Vf−Vi\Delta V = V_f - V_i = change in volume (m³)
Reading the signs: - Compression (ΔV<0\Delta V < 0) gives W>0W > 0, so work is done on the system. - Expansion (ΔV>0\Delta V > 0) gives W<0W < 0, so work is done by the system.
Keep in mind that W=−PΔVW = -P\Delta V is the work on the system. The work by the system is +PΔV+P\Delta V.
W=−PΔVW = -P\Delta V uses a constant pressure, or the average pressure if it changes during the process. When the pressure changes, you can also get the work from the area under the PV graph (next section).

Worked Example: Gas Under a Piston

A vertical cylinder holds an ideal monatomic gas under a frictionless piston with a mass of 4.0 kg and an area of 2.0×10−32.0 \times 10^{-3} m². The air above the piston is at atmospheric pressure, 1.0×1051.0 \times 10^5 Pa. The gas is heated slowly and the piston rises 5.0 cm. Use g=9.8g = 9.8 m/s² (the value on the AP Physics 2 equation sheet).
Step 1: pressure of the gas. The piston isn't accelerating, so the gas pushes up exactly as hard as the atmosphere and gravity push down:
PA=PatmA+mg⇒P=Patm+mgA=1.0×105 Pa+(4.0 kg)(9.8 m/s2)2.0×10−3 m2=1.2×105 PaPA = P_{\text{atm}}A + mg \quad\Rightarrow\quad P = P_{\text{atm}} + \frac{mg}{A} = 1.0 \times 10^5 \text{ Pa} + \frac{(4.0 \text{ kg})(9.8 \text{ m/s}^2)}{2.0 \times 10^{-3} \text{ m}^2} = 1.2 \times 10^5 \text{ Pa}
Nothing in that equation changes as the piston slowly rises, so the process is isobaric.
Step 2: work done on the gas.
ΔV=AΔh=(2.0×10−3 m2)(0.050 m)=1.0×10−4 m3\Delta V = A\Delta h = (2.0 \times 10^{-3} \text{ m}^2)(0.050 \text{ m}) = 1.0 \times 10^{-4} \text{ m}^3W=−PΔV=−(1.2×105 Pa)(1.0×10−4 m3)=−12 JW = -P\Delta V = -(1.2 \times 10^5 \text{ Pa})(1.0 \times 10^{-4} \text{ m}^3) = -12 \text{ J}
It's negative because the gas expands and does 12 J of work on its surroundings. Check: lifting the piston takes mgΔh=1.96mg\Delta h = 1.96 J, and pushing back the atmosphere takes PatmΔV=10P_{\text{atm}}\Delta V = 10 J, for a total of about 12 J.
Step 3: internal energy and heating. For a monatomic ideal gas, U=32nRT=32PVU = \frac{3}{2}nRT = \frac{3}{2}PV, so at constant pressure ΔU=32PΔV\Delta U = \frac{3}{2}P\Delta V:
ΔU=32(12 J)=18 JQ=ΔU−W=18 J−(−12 J)=30 J\Delta U = \frac{3}{2}(12 \text{ J}) = 18 \text{ J} \qquad Q = \Delta U - W = 18 \text{ J} - (-12 \text{ J}) = 30 \text{ J}
Of the 30 J added by heating, 18 J stays in the gas as internal energy and 12 J leaves as work.

PV Diagrams

Pressure-volume graphs, or PV diagrams, are how we picture thermodynamic processes.
Axes: Pressure (vertical) vs. Volume (horizontal)
Show process as curve/line connecting initial and final states.
Key features: - State represented by point (P, V) - Process represented by path between states - Different paths between same endpoints represent different processes
1.4 - The First Law of Thermodynamics

Isotherms

Lines of constant temperature on a PV diagram are called isotherms.
For an ideal gas, PV=nRT=constantPV = nRT = \text{constant}, which gives: - Hyperbolic curves. - Higher temperature curves that sit farther from the origin.

Work on a PV Diagram

The absolute value of the work done on a gas equals the area underneath the pressure-versus-volume curve.
∣W∣=Area under P-V curve|W| = \text{Area under P-V curve}
The direction tells you the sign: - If the volume decreases (moving right to left), W>0W > 0, so work is done on the system. - If the volume increases (moving left to right), W<0W < 0, so work is done by the system.

Worked Example: Work as Area

An ideal monatomic gas is taken around the cycle A → B → C → D → A shown on the right. The left graph shows only the first step. A handy unit fact: 1 kPa·L = (103 Pa)(10−3 m3)(10^3 \text{ Pa})(10^{-3} \text{ m}^3) = 1 J.
1.4 - The First Law of Thermodynamics
A → B (isobaric expansion). The work is the shaded rectangle under the path:
∣WAB∣=PΔV=(3.0×105 Pa)(6.0×10−3 m3−2.0×10−3 m3)=1.2×103 J|W_{AB}| = P\Delta V = (3.0 \times 10^5 \text{ Pa})(6.0 \times 10^{-3} \text{ m}^3 - 2.0 \times 10^{-3} \text{ m}^3) = 1.2 \times 10^3 \text{ J}
The volume increases, so the gas does the work: WAB=−1.2×103W_{AB} = -1.2 \times 10^3 J.
B → C and D → A (isovolumetric). A vertical line has no area under it, so W=0W = 0 for both.
C → D (isobaric compression).
WCD=−PΔV=−(1.0×105 Pa)(2.0×10−3 m3−6.0×10−3 m3)=+4.0×102 JW_{CD} = -P\Delta V = -(1.0 \times 10^5 \text{ Pa})(2.0 \times 10^{-3} \text{ m}^3 - 6.0 \times 10^{-3} \text{ m}^3) = +4.0 \times 10^2 \text{ J}
The whole cycle. Add the steps: Wnet=−1200+0+400+0=−8.0×102W_{\text{net}} = -1200 + 0 + 400 + 0 = -8.0 \times 10^2 J. That matches the area enclosed by the loop, (2.0×105 Pa)(4.0×10−3 m3)=8.0×102(2.0 \times 10^5 \text{ Pa})(4.0 \times 10^{-3} \text{ m}^3) = 8.0 \times 10^2 J, with a negative sign because the loop runs clockwise.
  • Clockwise loop: the gas does net work on its surroundings, so Wnet<0W_{\text{net}} < 0. This is how an engine works.
  • Counterclockwise loop: the surroundings do net work on the gas, so Wnet>0W_{\text{net}} > 0.
First law for the cycle. The gas ends in the same state it started in, so it's back at the same temperature and ΔU=0\Delta U = 0. That means Qnet=−Wnet=+8.0×102Q_{\text{net}} = -W_{\text{net}} = +8.0 \times 10^2 J: over one cycle, the gas takes in 800 J more by heating than it gives off by cooling.
Temperatures from the graph. Since PV=nRTPV = nRT, the temperature is proportional to PVPV. A and C both have PV=600PV = 600 J, so they're at the same temperature and sit on the same isotherm (the dashed curve). B has the largest PVPV (1800 J), so it's the hottest state, and D (200 J) is the coldest. If TA=300T_A = 300 K, then TB=900T_B = 900 K and TD=100T_D = 100 K.

Special Thermodynamic Processes

1. Isovolumetric (Constant Volume)

  • ΔV=0\Delta V = 0
  • W=−PΔV=0W = -P\Delta V = 0
  • ΔU=Q\Delta U = Q, so all the heat goes into changing internal energy.
  • Shows up as a vertical line on a PV diagram.

2. Isobaric (Constant Pressure)

  • P=constantP = \text{constant}
  • W=−PΔVW = -P\Delta V
  • ΔU=Q+W\Delta U = Q + W
  • Shows up as a horizontal line on a PV diagram.

3. Isothermal (Constant Temperature)

  • T=constantT = \text{constant}
  • ΔU=0\Delta U = 0, since for an ideal gas UU only depends on TT.
  • Q=−WQ = -W, so the heat added equals the work done by the system.
  • Shows up as a hyperbolic curve on a PV diagram.

4. Adiabatic (No Heat Transfer)

  • Q=0Q = 0, since the system is thermally isolated.
  • ΔU=W\Delta U = W
  • Work changes the internal energy directly.
  • Shows up as a steeper curve than an isotherm on a PV diagram.

Recognizing the Process

The physical setup tells you which special case you have:
  • Rigid, sealed container: the volume can't change, so the process is isovolumetric.
  • Piston that slides freely with the same load on it (its weight plus the atmosphere): the pressure stays constant, so the process is isobaric.
  • Slow process with the gas touching a large reservoir (like a big water bath): energy has time to flow in or out by heating or cooling, so the temperature stays constant. The process is isothermal.
  • Insulated container, or a process so fast there's no time for heating or cooling: Q=0Q = 0, so the process is adiabatic.
Example (adiabatic compression): a piston is pushed quickly into an insulated cylinder holding 0.500 mol of ideal monatomic gas, doing 250 J of work on the gas. Since Q=0Q = 0, ΔU=W=+250\Delta U = W = +250 J. For a monatomic ideal gas ΔU=32nRΔT\Delta U = \frac{3}{2}nR\Delta T, so the temperature rises by
ΔT=2ΔU3nR=2(250 J)3(0.500 mol)(8.31 J/(mol\cdotpK))=40.1 K\Delta T = \frac{2\Delta U}{3nR} = \frac{2(250 \text{ J})}{3(0.500 \text{ mol})(8.31 \text{ J/(mol·K)})} = 40.1 \text{ K}
No energy was added by heating, but the gas still got hotter, because work alone raised its internal energy. This is how a fire syringe works: pushing the plunger in fast heats the trapped air enough to light a small piece of cotton. Run the process the other way (a fast adiabatic expansion) and the gas cools.

Practice Problems

1. An ideal monatomic gas at 300 K has 2.0 mol. What is its internal energy?
2. A gas absorbs 500 J of heat and does 300 J of work. What is the change in internal energy?
3. A gas is compressed from 3.0 L to 1.0 L at a constant pressure of 200 kPa. How much work is done on the gas?
4. In the isothermal expansion of an ideal gas, the gas does 400 J of work. How much heat gets absorbed?
5. Which produces the bigger temperature increase: (a) adding 100 J at constant volume, or (b) adding 100 J at constant pressure? Assume it’s the same gas.

Solutions

1.
U=32nRT=32(2.0)(8.31)(300)=7480 JU = \frac{3}{2}nRT = \frac{3}{2}(2.0)(8.31)(300) = 7480 \text{ J}
2.
The gas does 300 J of work, so the work done on the gas is W=−300W = -300 J.
ΔU=Q+W=500+(−300)=200 J\Delta U = Q + W = 500 + (-300) = 200 \text{ J}
3.
Convert first:
ΔV=1.0−3.0=−2.0\Delta V = 1.0 - 3.0 = -2.0 L =−2.0×10−3= -2.0 \times 10^{-3} m³.
W=−PΔV=−(200×103)(−2.0×10−3)=400 JW = -P\Delta V = -(200 \times 10^3)(-2.0 \times 10^{-3}) = 400 \text{ J}
The work done on the gas is 400 J, positive because it’s a compression.
4.
Isothermal for an ideal gas means ΔU=0\Delta U = 0.
ΔU=Q+W\Delta U = Q + W0=Q+(−400)0 = Q + (-400)Q=400 JQ = 400 \text{ J}
The heat absorbed matches the work done by the gas.
5.(a) Constant volume: W=0W = 0, so ΔU=Q=100\Delta U = Q = 100 J.
(b) Constant pressure: W<0W < 0 because the gas expands, so ΔU=Q+W=100+W<100\Delta U = Q + W = 100 + W < 100 J.
At constant volume, all the heat goes into internal energy, which raises the temperature. At constant pressure, some of the heat gets spent doing work, so less goes into internal energy.
Answer: constant volume gives the bigger temperature increase.

Common Mistakes

  • Getting the sign of work wrong. W=−PΔVW = -P\Delta V is the work on the system, so an expansion (ΔV>0\Delta V > 0) gives a negative WW.
  • Confusing work done on the system versus by it. Watch the signs, because some textbooks use the opposite convention.
  • Thinking isothermal means no energy change. ΔU=0\Delta U = 0, but QQ and WW are both nonzero. They just cancel.
  • Forgetting the ideal gas assumption. U=32nRTU = \frac{3}{2}nRT only holds for an ideal monatomic gas.
  • Using the wrong units. Pressure in Pa, volume in m³. Convert L to m³ by multiplying by 10⁻³.
  • Confusing internal energy with heat. UU is a state function, while QQ is an energy transfer. The link is ΔU=Q+W\Delta U = Q + W.
  • Forgetting the exam's monatomic convention. On the AP exam, ideal gases are monatomic unless a problem says otherwise, so use U=32nRTU = \frac{3}{2}nRT. (Gases made of molecules, like N2\text{N}_2 and O2\text{O}_2, also store energy in rotation, so their internal energy is larger, but that's beyond this course.)
  • Forgetting how to read the area. The magnitude of work is the area under the PV curve, but the sign depends on the direction.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.