Laws of Thermodynamics - Complete Interactive Lesson
Part 1: Internal Energy & Work
🔥 Internal Energy & Work Done by a Gas
Part 1 of 7 — The Energy of Molecules
Thermodynamics connects heat, work, and internal energy. Before we state the laws, we need to understand what these quantities mean and how gases do work.
Internal Energy ()
The internal energy of an ideal gas is the total kinetic energy of all its molecules:
Key facts:
- depends only on temperature for an ideal gas
- If increases → increases
- If stays constant →
- is a state variable — it depends only on the current state, not on how the gas got there
Change in Internal Energy
For any process where doesn't change (isothermal): .
For any process where rises: .
Work Done on a Gas
The AP Physics 2 equation sheet uses for the work done on the gas by its surroundings.
When a gas expands, it pushes on its surroundings: the gas does positive work, so the work done on the gas is negative. When a gas is compressed, the surroundings push on it and the work done on the gas is positive.
Isobaric Process (Constant Pressure)
where . The work done by the gas is , which is always the opposite of .
📝 Convention note: Many chemistry and engineering texts define as the work done BY the gas (). The physics is the same; the AP Physics 2 equation sheet uses done ON the gas.
Sign Conventions
| Situation | (on gas) | Meaning | |
|---|---|---|---|
| Gas expands | Gas does work ON surroundings | ||
| Gas compresses | Surroundings do work ON gas | ||
| Volume constant | No work done |
PV Diagram Preview
On a Pressure vs. Volume (PV) diagram, the magnitude of the work equals the area under the curve between the initial and final states.
- Moving right on the PV diagram → expansion → (the gas does positive work)
- Moving left → compression → (work is done on the gas)
Sign Convention Check ✅
PV Diagram Concepts 📊
Work Calculation Drill 🔧
All processes are isobaric (constant pressure). is the work done on the gas (AP convention). Give magnitude and correct sign.
-
kPa, gas expands from 3.0 L to 8.0 L. Work done on the gas, (in J)?
-
kPa, gas compresses from 10.0 L to 4.0 L. Work done on the gas, (in J)?
-
A gas at 150 kPa does 450 J of work while expanding. What is (in L)?
Part 2: First Law of Thermodynamics
⚡ The First Law of Thermodynamics
Part 2 of 7 — Energy Conservation for Thermal Systems
The First Law is simply conservation of energy applied to thermodynamic systems. It connects heat, work, and internal energy in one powerful equation.
The First Law
or equivalently:
where:
- = change in internal energy of the gas
- = heat added to the gas (positive if heat flows IN)
- = work done on the gas (positive if the gas is compressed); for a gas,
📝 Convention note: Many chemistry and engineering texts use with done BY the gas. The physics is the same; the AP Physics 2 equation sheet uses done ON the gas.
What It Says
The internal energy of a system changes by the energy that enters it as heat plus the energy that enters it as work.
If you add 500 J of heat and the gas does 200 J of work expanding, then J and J goes into raising the temperature.
Sign Summary
| Quantity | Positive means... | Negative means... |
|---|---|---|
| Heat flows INTO gas | Heat flows OUT of gas | |
| Gas compressed (work done on gas) | Gas expands (does work on surroundings) | |
| Temperature increases | Temperature decreases |
First Law Applied to Special Processes
<div class="my-8 rounded-2xl border border-cyan-200/80 dark:border-cyan-700/60 bg-gradient-to-br from-cyan-50 via-white to-blue-50 dark:from-cyan-950/30 dark:via-gray-900 dark:to-blue-950/30 p-6 shadow-lg"> <p class="m-0 text-base md:text-lg font-semibold text-cyan-900 dark:text-cyan-100"> Quick frame: every process is still <code>ΔU = Q + W</code> (W = work done on the gas). What changes is which term gets locked. </p> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-5 my-8"> <div class="rounded-2xl border border-amber-200 dark:border-amber-700/60 bg-gradient-to-br from-amber-50 to-orange-50 dark:from-amber-950/30 dark:to-orange-950/30 p-5 shadow-md"> <h3 class="mt-0 mb-2 text-xl font-extrabold text-amber-900 dark:text-amber-100">1) Isothermal (<em>T</em> constant)</h3> <p class="mb-3 text-amber-900/90 dark:text-amber-100/90">Temperature stays fixed, so internal energy does not change.</p> <ul class="my-0 space-y-1.5 text-amber-900 dark:text-amber-100"> <li><code>ΔU = 0</code></li> <li><code>Q = -W</code></li> <li>Heat in equals the work done by the gas (or vice versa)</li> </ul> </div> <div class="rounded-2xl border border-rose-200 dark:border-rose-700/60 bg-gradient-to-br from-rose-50 to-red-50 dark:from-rose-950/30 dark:to-red-950/30 p-5 shadow-md"> <h3 class="mt-0 mb-2 text-xl font-extrabold text-rose-900 dark:text-rose-100">2) Adiabatic (<em>Q</em> = 0)</h3> <p class="mb-3 text-rose-900/90 dark:text-rose-100/90">No heat crosses the boundary, so energy change comes entirely from work.</p> <ul class="my-0 space-y-1.5 text-rose-900 dark:text-rose-100"> <li><code>ΔU = W</code></li> <li>Expand (<code>W < 0</code>) ⇒ <code>ΔU < 0</code> ⇒ gas cools</li> <li>Compress (<code>W > 0</code>) ⇒ <code>ΔU > 0</code> ⇒ gas warms</li> </ul> </div> <div class="rounded-2xl border border-emerald-200 dark:border-emerald-700/60 bg-gradient-to-br from-emerald-50 to-lime-50 dark:from-emerald-950/30 dark:to-lime-950/30 p-5 shadow-md"> <h3 class="mt-0 mb-2 text-xl font-extrabold text-emerald-900 dark:text-emerald-100">3) Isochoric (<em>V</em> constant)</h3> <p class="mb-3 text-emerald-900/90 dark:text-emerald-100/90">Volume does not change, so the gas cannot do pressure-volume work.</p> <ul class="my-0 space-y-1.5 text-emerald-900 dark:text-emerald-100"> <li><code>W = 0</code></li> <li><code>ΔU = Q</code></li> <li>All added heat changes internal energy (temperature)</li> </ul> </div> <div class="rounded-2xl border border-indigo-200 dark:border-indigo-700/60 bg-gradient-to-br from-indigo-50 to-sky-50 dark:from-indigo-950/30 dark:to-sky-950/30 p-5 shadow-md"> <h3 class="mt-0 mb-2 text-xl font-extrabold text-indigo-900 dark:text-indigo-100">4) Isobaric (<em>P</em> constant)</h3> <p class="mb-3 text-indigo-900/90 dark:text-indigo-100/90">Pressure stays fixed while the system may expand or compress.</p> <ul class="my-0 space-y-1.5 text-indigo-900 dark:text-indigo-100"> <li><code>W = -PΔV</code></li> <li><code>ΔU = Q + W = Q - PΔV</code></li> <li>Heat splits between raising <em>U</em> and doing boundary work</li> </ul> </div> </div>Memory trick: isothermal locks , adiabatic locks , isochoric locks , and isobaric locks .
Process Identification 🔍
First Law Application ⚡
First Law Drill 🔧
Apply ( = work done on the gas) to each scenario.
-
J and J (the gas expands, doing 500 J of work). Find (in J).
-
A gas does 300 J of work while its internal energy decreases by 100 J. Find (in J).
-
An adiabatic compression does 600 J of work on the gas ( J). Find (in J).
Part 3: PV Diagrams
📊 PV Diagrams Deep Dive
Part 3 of 7 — Reading Work from Graphs
PV diagrams are the essential tool for analyzing thermodynamic processes. The area under the curve tells you the work, and the direction of a cycle tells you the sign of the net work done on the gas.
Work = Area Under the Curve
On a PV diagram, the work done by the gas during any process equals the area under the path from to :
The AP equation sheet's is the work done on the gas, which is the negative of this: . So = area under the curve, and whenever the gas expands.
Different Processes on PV Diagrams
| Process | PV Shape | Work on gas, |
|---|---|---|
| Isobaric ( = const) | Horizontal line | (rectangle) |
| Isochoric ( = const) | Vertical line | (no area) |
| Isothermal ( = const) | Curved (hyperbola: ) | = area under curve |
| Adiabatic () | Steeper curve than isothermal | = area under curve |
The Adiabatic Curve
An adiabat is steeper than an isotherm passing through the same point. Along an isotherm, only the growing volume lowers the pressure. In an adiabatic expansion the gas does work with no energy coming in by heating, so its internal energy and temperature also fall, and the pressure drops faster.
Thermodynamic Cycles
A cycle returns the gas to its original state, so .
From the First Law (, with = work done on the gas) for a complete cycle:
In words: the net heat absorbed equals the net work done by the gas.
Net Work = Enclosed Area
The net work done by the gas in a cycle equals the area enclosed by the cycle on a PV diagram. The net work done on the gas, , has the same magnitude and the opposite sign.
Direction Matters!
| Direction | Name | Net Work on Gas | Energy Flow |
|---|---|---|---|
| Clockwise | Engine-type cycle | (gas does net work on its surroundings) | Net energy enters the gas by heating () |
| Counterclockwise | Refrigerator-type cycle | (surroundings do net work on the gas) | Net energy leaves the gas by heating () |
How to Calculate Net Work for a Cycle
- Find the area enclosed by the cycle (this is the magnitude)
- If clockwise → the gas does positive net work, so
- If counterclockwise → net work is done on the gas, so
For rectangular cycles:
Cycle Direction Quiz 🔄
PV Diagram Reading 📈
PV Diagram Calculation Drill 📊
-
An isobaric expansion at kPa from L to L. Work done on the gas, (in J, with sign)?
-
A rectangular clockwise cycle with kPa and L. Net work done by the gas per cycle (in J)?
-
A gas completes a clockwise cycle in which the gas does 400 J of net work. During some steps it gains 1000 J by heating. How much energy does it lose by heating during the other steps (in J)?
Match the Process to Its PV Shape 🎯
Part 4: Energy Accounting Around a Cycle
🔄 Energy Accounting Around a Cycle
Part 4 of 7 — Tracking , and Step by Step
AP Physics 2 free-response questions love a gas taken around a closed loop on a PV diagram. To analyze one, you track three quantities for every step: the work done on the gas, the change in internal energy, and the energy transferred by heating. The first law ties them together on every leg.
The Three Tools
1. Work on the gas, , from the graph. is the area under the leg. Expansion (moving right) makes ; compression (moving left) makes ; a vertical leg has . For a horizontal leg, .
2. Internal energy, , from the endpoints. For a monatomic ideal gas, , and since :
So you can find straight from the pressures and volumes at the two ends of a leg.
3. Heating, , from the first law.
Unit Shortcut
, so products of kPa and L are already in joules.
Whole-Cycle Rule
The gas ends where it started, so and
The net energy added by heating equals the net work the gas does, which is the area enclosed by the loop.
Sign Check 🔍
Worked Example: A Rectangular Cycle
A monatomic ideal gas goes clockwise around this cycle:
| State | (L) | (kPa) | (J) |
|---|---|---|---|
| A | 2.0 | 100 | 200 |
| B | 2.0 | 300 | 600 |
| C | 6.0 | 300 | 1800 |
| D | 6.0 | 100 | 600 |
A→B is constant volume, B→C is constant pressure, C→D is constant volume, and D→A is constant pressure.
| Step | (on gas) | ||
|---|---|---|---|
| A→B | J | J | |
| B→C | J | J | J |
| C→D | J | J | |
| D→A | J | J | J |
| Cycle | J | J |
Checks:
- sums to zero, as it must for a cycle.
- J .
- The enclosed area is J, matching the net work done by the gas.
The gas takes in J by heating and gives out J by cooling; the 800 J difference leaves as net work. Heat engines run cycles like this one, but engine-efficiency formulas are not part of AP Physics 2.
Temperature at a Glance
Since for a fixed amount of gas, the hottest state is the one with the largest (state C here) and the coldest has the smallest (state A).
Cycle Step Drill 🔧
A monatomic ideal gas goes from state A ( L, kPa) to state B ( L, kPa) at constant pressure.
-
Work done on the gas during A→B (in J, with sign)
-
Change in internal energy during A→B (in J)
-
Energy transferred to the gas by heating during A→B (in J)
Exit Quiz
Part 5: Second Law & Entropy
🌌 The Second Law & Entropy
Part 5 of 7 — Nature's Arrow of Time
The first law says energy is conserved. It does not say which way energy will move. A hot pan cools in a cold kitchen; the kitchen never spontaneously heats the pan. The Second Law of Thermodynamics explains this one-way behavior using a quantity called entropy. AP Physics 2 treats entropy qualitatively: you reason about whether it increases, decreases, or stays the same, rather than calculating it.
The Second Law of Thermodynamics
The total entropy of an isolated system can never decrease. It stays constant only if every process the system undergoes is reversible.
What It Predicts About Heating
Energy transfers by thermal processes spontaneously from a higher-temperature system to a lower-temperature system, never the reverse. Moving energy from cold to hot is possible, but only if something else does work (as a refrigerator's compressor does).
Why, at the Molecular Level
When atoms of two systems collide, energy is most likely to pass from the higher-energy atom to the lower-energy atom. After many collisions, the most probable state by far is the one in which both systems have the same temperature. Energy flowing from cold to hot is not forbidden by any single collision; it is just overwhelmingly improbable for the whole system.
Second Law Concepts 🔍
What Entropy Describes
Entropy can be described in two equivalent ways:
- The tendency of energy to spread out. Energy that starts concentrated in one place (a hot spot, a fast-moving object) tends to disperse among more atoms and more locations.
- The unavailability of energy to do work. Once energy has spread out evenly, there is no temperature difference left to drive a useful process, even though the total energy is unchanged.
Key Properties
| Property | What it means |
|---|---|
| State function | Entropy depends only on the current state of a system, not on how it got there |
| Maximum at equilibrium | An isolated system has its greatest entropy once it reaches thermodynamic equilibrium |
| Isolated systems | Move spontaneously toward equilibrium, so their entropy rises (or, ideally, stays the same) |
| Closed systems | Can lose entropy if energy is transferred out, but the surroundings then gain at least as much |
Reversible vs. Irreversible
A reversible process is an idealization that could run backward with no change to the rest of the universe; the total entropy stays constant. Every real process is irreversible and increases the total entropy. Examples:
- A hot block and a cold block reaching a common temperature
- A gas rushing into an empty chamber when a valve opens
- Friction turning kinetic energy into internal energy
- A drop of dye spreading through a glass of water
AP Physics 2 asks for qualitative reasoning about entropy only. Calculations such as are not tested.
Entropy Reasoning 🧠
Entropy Direction Drill 🔧
For each situation, choose what happens to the entropy named.
Part 6: Same Endpoints, Different Paths
🛤️ Same Endpoints, Different Paths
Part 6 of 7 — State Functions vs. Path-Dependent Energy Transfers
Internal energy belongs to a state; heating and work belong to a process. That difference explains a classic AP question: a gas goes from state A to state B along two different paths — which quantities are the same, and which are not?
Two Paths Between the Same States
A monatomic ideal gas starts at state A ( L, kPa) and ends at state B ( L, kPa). Notice that J at both states, so A and B are at the same temperature.
Path 1: expand at constant pressure (300 kPa) from 2.0 L to 6.0 L, then cool at constant volume down to 100 kPa.
Path 2: cool at constant volume from 300 kPa to 100 kPa, then expand at constant pressure (100 kPa) to 6.0 L.
| Quantity | Path 1 | Path 2 | Same or different? |
|---|---|---|---|
| (on gas) | J | J | Different |
| Same | |||
| J | J | Different |
The Lesson
- depends only on the endpoints, because internal energy is a function of state (for an ideal gas, of temperature alone).
- and depend on the path, because they describe how energy crossed the boundary along the way. A path at higher pressure means more area under the curve, so more work.
- A third path, the smooth isotherm from A to B, would have between 400 J and 1200 J, because its curve lies between the two paths.
Path Reasoning Check 🧠
Reasoning Without Numbers
Many AP questions give no numbers at all. Decide each sign from the physical situation, then let the first law fill in the last one.
| Situation | (on gas) | and | |
|---|---|---|---|
| A bicycle pump is pushed in quickly (no time for heating) | (compression) | (adiabatic) | , gas warms |
| Gas in an insulated cylinder pushes a piston out | (expansion) | (adiabatic) | , gas cools |
| Gas is compressed slowly in a cylinder sitting in an ice bath | (must lose energy) | , isothermal | |
| A valve opens and gas rushes into an empty, insulated chamber | (pushes on nothing) | , temperature unchanged |
Two Facts About Internal Energy
- An ideal gas has no internal potential energy, because its atoms do not interact except during collisions. Its internal energy is the total kinetic energy of the atoms, for a monatomic gas.
- Internal energy does not include the motion of the container. A sealed tank of gas on a moving truck has the same internal energy as the same tank at rest, because the truck's motion moves the center of mass of the gas without changing the random motion of its atoms.
Sign Reasoning Drill 🎯
Choose the sign of the named quantity for each process of an ideal gas.
Exit Quiz
Part 7: Synthesis & AP Review
🎯 Synthesis & AP Review
Part 7 of 7 — Putting It All Together
Let's compare all four thermodynamic processes, review PV diagram analysis, and tackle the kinds of problems you'll see on the AP Physics 2 exam.
The Four Processes — Complete Comparison
All entries use the AP form , where is the work done on the gas.
| Process | Constant | (on gas) | PV Shape | ||
|---|---|---|---|---|---|
| Isobaric | Horizontal line | ||||
| Isochoric | Vertical line | ||||
| Isothermal | Hyperbola () | ||||
| Adiabatic | Steeper than an isotherm |
Quick Decision Guide
- Temperature doesn't change? → Isothermal →
- No heat exchange? → Adiabatic →
- Volume doesn't change? → Isochoric →
- Pressure doesn't change? → Isobaric →
Complete Cycle
For any complete cycle: , so . The net work done BY the gas (equal to ) is the enclosed area on the PV diagram, positive for a clockwise cycle.
Common AP Mistakes to Avoid
❌ Mistake 1: Using °C where absolute temperature is needed
and require kelvins: . (A temperature change is the same in °C and K.)
❌ Mistake 2: Confusing sign conventions
Many chemistry and engineering texts use with done BY the gas. The physics is the same; the AP Physics 2 equation sheet uses done ON the gas (, with ). If a question asks for the work done BY the gas, that quantity is .
❌ Mistake 3: Thinking means is constant
For an ideal gas, (true). But this is specific to ideal gases.
❌ Mistake 4: Assuming adiabatic = isothermal
Adiabatic () means no heat exchange. Isothermal () means constant temperature. An adiabatic expansion causes temperature to DROP.
❌ Mistake 5: Treating and like state functions
Only is fixed by the endpoints. Two paths between the same states can involve very different work and heating.
❌ Mistake 6: Saying a system's entropy can never decrease
That rule is for isolated systems. A closed system that loses energy to its surroundings can lose entropy, as long as the surroundings gain at least as much.
Process Identification Mastery 🔍
AP-Style Analysis 📝
Process Property Match 🎯
For each scenario, identify the correct result.
Final Mastery Drill 🏆
Use J/(mol·K).
-
A gas is compressed at constant temperature while 300 J of work is done on it. Find , the energy transferred to the gas by heating (in J, with sign).
-
Two moles of a monatomic ideal gas are heated at constant volume from 300 K to 400 K. Find (in J, nearest whole number).
-
A gas goes once around a clockwise cycle that encloses an area of 350 J on its PV diagram. Find the net energy transferred to the gas by heating (in J).