Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Physics 2
  3. ›9 Thermodynamics
  4. ›9.4 First law of thermodynamics

AP Physics 2 · Unit 9 · Thermodynamics

9.4 First law of thermodynamics

State the first law of thermodynamics and use it to calculate changes in internal energy, heat, and work for a gas.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/5Internal energy is the energy stored within a system
  1. 1Internal energy is the energy stored within a system
  2. 2Heat and work are the two ways to change internal energy
  3. 3The first law says internal energy changes by heat plus work
  4. 4Work on a gas equals minus pressure times volume change
  5. 5Four special processes simplify the first law
  6. Check your recall
  7. Practice: 10 questions
1

Part 1 of 5: Internal energy is the energy stored within a system

Push the plunger of a bicycle pump, and the barrel warms. To analyze this, choose the gas inside the pump as the system. Everything else, including the plunger and the outside air, is the surroundings.

The gas particles have kinetic energy from their motion and potential energy from their interactions. The sum is the internal energy UUU of the gas. For an ideal gas, particle interactions are negligible, so UUU depends only on temperature.

When the temperature rises, the internal energy rises. When the temperature is constant, the internal energy of an ideal gas stays constant.

Key terms · tap one for its definition

system

The object or collection of objects chosen for analysis; forces from outside it are treated as external.

internal energy

The internal energy of a system is the total kinetic and potential energy of its particles, measured in joules (J).

Part 1 done

2

Part 2 of 5: Heat and work are the two ways to change internal energy

Energy can enter the pump’s gas in two ways. Heat QQQ is energy transferred because of a temperature difference. Work is energy transferred by a force acting through a displacement.

We write WWW for the work done on the system. Compressing a gas does positive work on it. When a gas expands, it does work on its surroundings, so WWW is negative. Heat and work describe transfers, and neither is stored in the system. Both are measured in joules, like all energy quantities. Keeping signs consistent prevents most errors in later steps.

Sign conventions used with the first law.

QuantityPositive whenNegative when
QQQenergy enters the systemenergy leaves the system
WWWthe surroundings do work on the systemthe system does work on the surroundings
ΔU\Delta UΔUinternal energy increasesinternal energy decreases
Quantity
QQQ
Positive when
energy enters the system
Negative when
energy leaves the system
Quantity
WWW
Positive when
the surroundings do work on the system
Negative when
the system does work on the surroundings
Quantity
ΔU\Delta UΔU
Positive when
internal energy increases
Negative when
internal energy decreases

Key term

work

For a constant force, W=Fdcos⁡θW=Fd\cos\thetaW=Fdcosθ; a scalar measured in joules, equal to the energy transferred by that force.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the equation for the first law of thermodynamics, with WWW the work done on the system.
Show answer and explanation

Answer: B · Worked explanation

The first law says the change in internal energy equals the heat added plus the work done on the system. The form with a minus sign belongs to the convention where W is the work done by the system, which does not match this definition. A product or quotient of Q and W is not an energy sum.
3

Part 3 of 5: The first law says internal energy changes by heat plus work

Now combine the two transfers. Energy is conserved, so the system’s energy changes only by what crosses its boundary. This idea is the first law of thermodynamics: ΔU=Q+W\Delta U=Q+WΔU=Q+W.

Here ΔU\Delta UΔU is the final internal energy minus the initial internal energy. Heat QQQ is positive when it enters. Work WWW is positive when it is done on the system.

Suppose a gas absorbs 100 J of heat and has 40 J of work done on it. Its internal energy rises by 140 J.

Exam tip

Write your sign convention before substituting. Heat in and work done on the gas are positive. Heat out and work done by the gas are negative.

Key term

first law of thermodynamics

The first law of thermodynamics states that a system’s change in internal energy equals the heat added to it plus the work done on it: ΔU=Q+W\Delta U=Q+WΔU=Q+W.

Part 3 done

4

Part 4 of 5: Work on a gas equals minus pressure times volume change

Heat is easy to read from a problem, but work needs a formula. When the pressure PPP stays constant, the work done on a gas is W=−PΔVW=-P\Delta VW=−PΔV.

Here ΔV\Delta VΔV is the final volume minus the initial volume. Expansion gives ΔV>0\Delta V>0ΔV>0, so WWW is negative. Compression gives ΔV<0\Delta V<0ΔV<0, so WWW is positive.

Figure 1. The shaded area under a constant-pressure process has magnitude equal to the work done.

On a graph of pressure against volume, the area under the process line has magnitude ∣W∣|W|∣W∣.

Common mistake

Do not drop the minus sign in W=−PΔVW=-P\Delta VW=−PΔV. Without it, an expanding gas would appear to gain energy from its surroundings.

Worked example

Expanding gas at constant pressure

A gas at a constant pressure of 200 kPa expands from 2.0 L to 5.0 L while absorbing 800 J of heat. Find the work done on the gas and the change in its internal energy.
  1. 1
    Convert units: ΔV=(5.0−2.0) L=3.0×10−3 m3\Delta V=(5.0-2.0)\,\mathrm{L}=3.0\times10^{-3}\,\mathrm{m^3}ΔV=(5.0−2.0)L=3.0×10−3m3 and P=2.00×105 PaP=2.00\times10^{5}\,\mathrm{Pa}P=2.00×105Pa.
  2. 2
    Use W=−PΔVW=-P\Delta VW=−PΔV.
  3. 3
    Substitute: W=−(2.00×105 Pa)(3.0×10−3 m3)=−6.0×102 JW=-(2.00\times10^{5}\,\mathrm{Pa})(3.0\times10^{-3}\,\mathrm{m^3})=-6.0\times10^{2}\,\mathrm{J}W=−(2.00×105Pa)(3.0×10−3m3)=−6.0×102J.
  4. 4
    Apply the first law with Q=+800 JQ=+800\,\mathrm{J}Q=+800J: ΔU=Q+W=800 J+(−600 J)=+2.0×102 J\Delta U=Q+W=800\,\mathrm{J}+(-600\,\mathrm{J})=+2.0\times10^{2}\,\mathrm{J}ΔU=Q+W=800J+(−600J)=+2.0×102J.

Answer: The work done on the gas is −6.0×102 J-6.0\times10^{2}\,\mathrm{J}−6.0×102J, and the internal energy rises by 2.0×102 J2.0\times10^{2}\,\mathrm{J}2.0×102J.

Part 4 done

Quick check

One question on the part you just read

Easy

A gas is compressed by a piston. Identify the sign of the work done on the gas.
Show answer and explanation

Answer: C · Worked explanation

Compression makes ΔV\Delta VΔV negative, so W=−PΔVW=-P\Delta VW=−PΔV is positive. The surroundings transfer energy to the gas. Negative work describes an expanding gas, which does work on its surroundings. Temperature may change as a result of the work, but it does not set the sign.
5

Part 5 of 5: Four special processes simplify the first law

Some processes hold one quantity fixed, which removes a term from the first law. These four appear often with gases. Recognizing the process lets you cross out terms immediately.

Four common gas processes.

ProcessWhat stays fixedResult
Isothermaltemperature TTTΔU=0\Delta U=0ΔU=0, so Q=−WQ=-WQ=−W
Isochoricvolume VVVW=0W=0W=0, so ΔU=Q\Delta U=QΔU=Q
Isobaricpressure PPPW=−PΔVW=-P\Delta VW=−PΔV
Adiabaticno heat transferQ=0Q=0Q=0, so ΔU=W\Delta U=WΔU=W
Process
Isothermal
What stays fixed
temperature TTT
Result
ΔU=0\Delta U=0ΔU=0, so Q=−WQ=-WQ=−W
Process
Isochoric
What stays fixed
volume VVV
Result
W=0W=0W=0, so ΔU=Q\Delta U=QΔU=Q
Process
Isobaric
What stays fixed
pressure PPP
Result
W=−PΔVW=-P\Delta VW=−PΔV
Process
Adiabatic
What stays fixed
no heat transfer
Result
Q=0Q=0Q=0, so ΔU=W\Delta U=WΔU=W

In an isothermal process, an ideal gas keeps its internal energy because its temperature is constant. Work done on the gas leaves as heat. In an isochoric process, the gas cannot expand or be compressed, so no work is done.

Common mistake

Adiabatic does not mean constant temperature. With Q=0Q=0Q=0, work still changes the internal energy, so the temperature changes.

Go deeperInternal energy of a monatomic gas

For an ideal gas of single atoms, internal energy is the total translational kinetic energy: U=NKavg=32NkBTU=NK_\mathrm{avg}=\frac{3}{2}Nk_\mathrm{B}TU=NKavg​=23​NkB​T.

The change is then ΔU=32NkBΔT\Delta U=\frac{3}{2}Nk_\mathrm{B}\Delta TΔU=23​NkB​ΔT. Molecules that rotate store extra energy, so their internal energy is larger at the same temperature.

Note read

Check your recall[13 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Describe[3 marks]

    Describe the first law of thermodynamics in words, and write it as an equation with the sign convention for each quantity.

    Show mark schemeHide mark scheme

    Model answer

    The change in a system’s internal energy equals the heat added plus the work done on it, so energy is conserved: ΔU=Q+W\Delta U=Q+WΔU=Q+W. Heat is positive when it enters, and work is positive when done on the system.

    • 1 mark for stating that internal energy changes by the heat added plus the work done on the system, as energy conservation
    • 1 mark for writing ΔU=Q+W\Delta U=Q+WΔU=Q+W
    • 1 mark for giving the signs: QQQ positive when heat enters and WWW positive when work is done on the system
  2. 2.Calculate[3 marks]

    Calculate the work done on a gas that is compressed at a constant pressure of 1.5×105 Pa1.5\times10^{5}\,\mathrm{Pa}1.5×105Pa from 4.0×10−3 m34.0\times10^{-3}\,\mathrm{m^3}4.0×10−3m3 to 1.0×10−3 m31.0\times10^{-3}\,\mathrm{m^3}1.0×10−3m3.

    Show mark schemeHide mark scheme

    Model answer

    ΔV=1.0×10−3−4.0×10−3=−3.0×10−3 m3\Delta V=1.0\times10^{-3}-4.0\times10^{-3}=-3.0\times10^{-3}\,\mathrm{m^3}ΔV=1.0×10−3−4.0×10−3=−3.0×10−3m3. W=−PΔV=−(1.5×105)(−3.0×10−3)=+4.5×102 JW=-P\Delta V=-(1.5\times10^{5})(-3.0\times10^{-3})=+4.5\times10^{2}\,\mathrm{J}W=−PΔV=−(1.5×105)(−3.0×10−3)=+4.5×102J.

    • 1 mark for finding ΔV=−3.0×10−3 m3\Delta V=-3.0\times10^{-3}\,\mathrm{m^3}ΔV=−3.0×10−3m3
    • 1 mark for substituting into W=−PΔVW=-P\Delta VW=−PΔV
    • 1 mark for obtaining +4.5×102 J+4.5\times10^{2}\,\mathrm{J}+4.5×102J with a positive sign
  3. 3.Determine[2 marks]

    Determine the change in internal energy of a gas that absorbs 300 J of heat while doing 120 J of work on its surroundings.

    Show mark schemeHide mark scheme

    Model answer

    Work done by the gas is negative, so W=−120 JW=-120\,\mathrm{J}W=−120J. ΔU=Q+W=300 J−120 J=+180 J\Delta U=Q+W=300\,\mathrm{J}-120\,\mathrm{J}=+180\,\mathrm{J}ΔU=Q+W=300J−120J=+180J.

    • 1 mark for using W=−120 JW=-120\,\mathrm{J}W=−120J for work done by the gas
    • 1 mark for obtaining ΔU=+180 J\Delta U=+180\,\mathrm{J}ΔU=+180J
  4. 4.Explain[3 marks]

    Explain why the temperature of an ideal gas rises when it is compressed rapidly in an insulated cylinder.

    Show mark schemeHide mark scheme

    Model answer

    No heat enters or leaves, so Q is zero. Compression does positive work on the gas, so its internal energy increases. For an ideal gas, internal energy depends only on temperature, so the temperature rises.

    • 1 mark for stating that Q = 0 because the cylinder is insulated
    • 1 mark for stating that positive work is done on the gas, so internal energy increases
    • 1 mark for linking the increase in internal energy of an ideal gas to a rise in temperature
  5. 5.Identify[2 marks]

    Identify the change in internal energy of an ideal gas in an isothermal process, and the relationship between Q and W.

    Show mark schemeHide mark scheme

    Model answer

    The change in internal energy is zero, because temperature is constant. Then Q=−WQ=-WQ=−W.

    • 1 mark for identifying that the change in internal energy is zero
    • 1 mark for identifying that Q=−WQ=-WQ=−W

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·Identify[1 mark]

Identify what the internal energy of an ideal gas depends on.
Show answer and explanation

Answer: D · Worked explanation

An ideal gas has negligible particle interactions, so its internal energy is just the particles’ kinetic energy, which depends only on temperature. Pressure and volume can both change while temperature, and so internal energy, stays fixed. Internal energy is set by the state, not by the path taken.
4.

Medium·Determine[2 marks]

A gas absorbs 500 J of heat while 200 J of work is done on it. Determine the change in its internal energy.
Show answer and explanation

Answer: B · Worked explanation

Both transfers add energy: ΔU=Q+W=500 J+200 J=+700 J\Delta U=Q+W=500\,\mathrm{J}+200\,\mathrm{J}=+700\,\mathrm{J}ΔU=Q+W=500J+200J=+700J. The value +300 J+300\,\mathrm{J}+300J comes from subtracting the work, which would be right only if the gas had done the work. Ignoring the work gives +500 J+500\,\mathrm{J}+500J. Check the sign of each transfer first: heat entering and work done on the gas both add to the internal energy, so the result must be larger than either input.
5.

Medium·Calculate[2 marks]

A gas expands at a constant pressure of 1.0×105 Pa1.0\times10^{5}\,\mathrm{Pa}1.0×105Pa, and its volume increases by 2.0×10−3 m32.0\times10^{-3}\,\mathrm{m^3}2.0×10−3m3. Calculate the work done on the gas.
Show answer and explanation

Answer: D · Worked explanation

W=−PΔV=−(1.0×105)(2.0×10−3)=−2.0×102 JW=-P\Delta V=-(1.0\times10^{5})(2.0\times10^{-3})=-2.0\times10^{2}\,\mathrm{J}W=−PΔV=−(1.0×105)(2.0×10−3)=−2.0×102J. The sign is negative because the gas pushes outward and does work on its surroundings. The positive value drops the minus sign. The value −2.0×105 J-2.0\times10^{5}\,\mathrm{J}−2.0×105J treats the volume change as 2.0 instead of 2.0×10−32.0\times10^{-3}2.0×10−3. A quick check supports this: an expanding gas must give up energy to its surroundings, so a negative value is the only sensible sign.
6.

Medium·Determine[2 marks]

A sealed rigid container of ideal gas absorbs 400 J of heat. Determine the change in internal energy of the gas.
Show answer and explanation

Answer: C · Worked explanation

A rigid container cannot change volume, so ΔV=0\Delta V=0ΔV=0 and W=0W=0W=0. Then ΔU=Q=+400 J\Delta U=Q=+400\,\mathrm{J}ΔU=Q=+400J and the gas warms. A zero change applies to a constant-temperature process, not a constant-volume one. Nothing in the first law doubles the heat to give 800 J.
7.

Medium·Predict[2 marks]

An ideal gas expands rapidly inside an insulated cylinder, so no heat enters or leaves. Predict what happens to its temperature.
Show answer and explanation

Answer: D · Worked explanation

With Q=0Q=0Q=0, the first law gives ΔU=W\Delta U=WΔU=W. The expanding gas does work on its surroundings, so WWW is negative and UUU falls. For an ideal gas, lower internal energy means lower temperature. Zero heat does not mean constant temperature, which would require ΔU=0\Delta U=0ΔU=0.
8.

Hard·Determine[2 marks]

A gas at a constant pressure of 2.0×105 Pa2.0\times10^{5}\,\mathrm{Pa}2.0×105Pa expands from 1.0×10−3 m31.0\times10^{-3}\,\mathrm{m^3}1.0×10−3m3 to 4.0×10−3 m34.0\times10^{-3}\,\mathrm{m^3}4.0×10−3m3 while absorbing 1200 J of heat. Determine the change in internal energy.
Show answer and explanation

Answer: D · Worked explanation

The work is W=−PΔV=−(2.0×105)(3.0×10−3)=−6.0×102 JW=-P\Delta V=-(2.0\times10^{5})(3.0\times10^{-3})=-6.0\times10^{2}\,\mathrm{J}W=−PΔV=−(2.0×105)(3.0×10−3)=−6.0×102J. Then ΔU=1200 J+(−600 J)=+6.0×102 J\Delta U=1200\,\mathrm{J}+(-600\,\mathrm{J})=+6.0\times10^{2}\,\mathrm{J}ΔU=1200J+(−600J)=+6.0×102J. Treating the work as positive gives +1.8×103 J+1.8\times10^{3}\,\mathrm{J}+1.8×103J, a sign error. Ignoring the work gives +1.2×103 J+1.2\times10^{3}\,\mathrm{J}+1.2×103J. Doing the work step first keeps the signs straight, because the result for the internal energy then follows directly from the first law.
9.

Hard·Determine[2 marks]

An ideal gas is compressed slowly while its temperature stays constant. The surroundings do 300 J of work on the gas. Determine the heat Q for the gas.
Show answer and explanation

Answer: B · Worked explanation

Constant temperature means ΔU=0\Delta U=0ΔU=0 for an ideal gas. Then 0=Q+W0=Q+W0=Q+W, so Q=−W=−300 JQ=-W=-300\,\mathrm{J}Q=−W=−300J, meaning 300 J of heat leaves the gas. Zero heat would describe an adiabatic process, in which the temperature would rise. A positive value would add energy that the gas would have to keep.
10.

Hard·Predict[2 marks]

An ideal gas loses 150 J of heat to its surroundings while 50 J of work is done on it. Predict what happens to its temperature.
Show answer and explanation

Answer: C · Worked explanation

Heat leaving is Q=−150 JQ=-150\,\mathrm{J}Q=−150J and work on the gas is W=+50 JW=+50\,\mathrm{J}W=+50J. Then ΔU=−150 J+50 J=−100 J\Delta U=-150\,\mathrm{J}+50\,\mathrm{J}=-100\,\mathrm{J}ΔU=−150J+50J=−100J, so internal energy and temperature fall. Looking only at the work would suggest a rise. The value −200 J-200\,\mathrm{J}−200J comes from subtracting the work instead of adding it.

Keep going

Next topic9.5 Specific heat and thermal conductivityPrevious topic9.3 Thermal energy transfer and equilibrium

More in Unit 9 · Thermodynamics

  1. 9.1Kinetic theory of temperature and pressureNotes · 10 questions
  2. 9.2The ideal gas lawNotes · 10 questions
  3. 9.3Thermal energy transfer and equilibriumNotes · 10 questions
  4. 9.4First law of thermodynamicsNotes · 10 questions
  5. 9.5Specific heat and thermal conductivityNotes · 10 questions
  6. 9.6Entropy and the second lawNotes · 10 questions

All AP Physics 2 topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/5 read

  1. 1Internal energy is the energy stored within a system
  2. 2Heat and work are the two ways to change internal energy
  3. 3The first law says internal energy changes by heat plus work
  4. 4Work on a gas equals minus pressure times volume change
  5. 5Four special processes simplify the first law
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe