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 (U)
The internal energy of an ideal gas is the total kinetic energy of all its molecules:
U=23nRT(monatomic ideal gas)
Key facts:
U depends only on temperature for an ideal gas
If T increases → U increases
If T stays constant → ΔU=0
is a — it depends only on the current state, not on how the gas got there
Change in Internal Energy
ΔU=23nRΔT
For any process where T doesn't change (isothermal): ΔU=0.
For any process where T rises: ΔU>0.
Work Done by a Gas
When a gas expands, it pushes on its surroundings and does positive work. When a gas is compressed, work is done on the gas (negative work by gas).
Isobaric Process (Constant Pressure)
W=PΔV
where ΔV=Vf.
Sign Convention Check ✅
PV Diagram Concepts 📊
Work Calculation Drill 🔧
All processes are isobaric (constant pressure). Give magnitude and correct sign.
P=100 kPa, gas expands from 3.0 L to 8.0 L. Work by gas (in J)?
P=250 kPa, gas compresses from 10.0 L to 4.0 L. Work by gas (in J)?
A gas at 150 kPa does 450 J of work while expanding. What is ΔV (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
ΔU=Q−W
or equivalently:
Q=ΔU+
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 the cycle tells you whether you have an engine or a refrigerator.
Work = Area Under the Curve
On a PV diagram, work done by the gas during any process equals the area under the path from Vi to Vf:
Part 4: Heat Engines & Efficiency
🏭 Heat Engines & Efficiency
Part 4 of 7 — Turning Heat into Work
A heat engine absorbs heat from a hot reservoir, converts some of it to useful work, and dumps the rest into a cold reservoir. No engine can convert ALL heat to work — this is one of the most profound results in physics.
How a Heat Engine Works
Every heat engine operates between two thermal reservoirs:
Hot reservoir (temperature TH): supplies heat QH to the engine
Part 5: Second Law & Entropy
🌌 The Second Law & Entropy
Part 5 of 7 — Nature's Arrow of Time
The Second Law of Thermodynamics tells us which processes can happen spontaneously and which cannot. It introduces entropy, a measure of disorder that always increases in the universe.
The Second Law of Thermodynamics
There are several equivalent statements of the Second Law:
Clausius Statement
Heat cannot spontaneously flow from a cold object to a hot object without external work being done.
Kelvin-Planck Statement
No cyclic process can convert heat entirely into work (there must always be waste heat).
Entropy Statement
The total entropy of an isolated system can never decrease; it can only increase or remain the same.
ΔSuniverse
Part 6: Refrigerators & Heat Pumps
❄️ Refrigerators & Heat Pumps
Part 6 of 7 — Running a Heat Engine in Reverse
A refrigerator is essentially a heat engine running backward: instead of using heat to produce work, it uses work to move heat from cold to hot. Heat pumps use the same principle to heat buildings efficiently.
How a Refrigerator Works
A refrigerator uses work input to extract heat from a cold reservoir (inside the fridge) and dump it into a hot reservoir (the kitchen):
Cold reservoir (TC): heat Q is absorbed from the cold interior
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
Process
Constant
W
ΔU
Q
PV Shape
Isobaric
U
state variable
−
Vi
Sign Conventions
Situation
ΔV
W
Meaning
Gas expands
>0
>0
Gas does work ON surroundings
Gas compresses
<0
<0
Surroundings do work ON gas
Volume constant
=0
=0
No work done
PV Diagram Preview
On a Pressure vs. Volume (PV) diagram, the work equals the area under the curve between the initial and final states.
Moving right on the PV diagram → expansion → W>0
Moving left → compression → W<0
W
where:
ΔU = change in internal energy of the gas
Q = heat added to the gas (positive if heat flows IN)
W = work done by the gas (positive if gas expands)
What It Says
The heat added to a system goes into two places: increasing internal energy and doing work.
If you add 500 J of heat and the gas does 200 J of work expanding, then ΔU=500−200=300 J goes into raising the temperature.
Sign Summary
Quantity
Positive means...
Negative means...
Q
Heat flows INTO gas
Heat flows OUT of gas
W
Gas expands (does work on surroundings)
Gas compressed (work done on gas)
ΔU
Temperature increases
Temperature decreases
First Law Applied to Special Processes
1. Isothermal Process (T = constant)
ΔU=0 (internal energy depends only on T)
Q=W
All heat added is converted to work (or vice versa)
2. Adiabatic Process (Q=0, no heat exchange)
ΔU=−W
If the gas expands (W>0): ΔU<0 → temperature drops
If the gas compresses (): → temperature
3. Isochoric (Isovolumetric) Process (V = constant)
W=0 (no volume change → no work)
ΔU=Q
All heat goes directly into changing internal energy (temperature)
4. Isobaric Process (P = constant)
W=PΔV
ΔU=Q−PΔV
Heat goes into both internal energy AND work
Process Identification 🔍
First Law Application ⚡
First Law Drill 🔧
Apply ΔU=Q−W to each scenario.
Q=1200 J, W=500 J. Find ΔU (in J).
A gas does 300 J of work while its internal energy decreases by 100 J. Find Q (in J).
An adiabatic compression does 600 J of work on the gas (W=−600 J by the gas). Find ΔU (in J).
W=∫ViVfPdV=area under curve
Different Processes on PV Diagrams
Process
PV Shape
Work
Isobaric (P = const)
Horizontal line
W=PΔV (rectangle)
Isochoric (V = const)
Vertical line
W=0 (no area)
Isothermal (T = const)
Curved (hyperbola: PV=nRT)
Area under curve
Adiabatic (Q=0)
Steeper curve than isothermal
Area under curve
The Adiabatic Curve
An adiabat is steeper than an isotherm passing through the same point because PVγ=const (where γ>1) drops off faster than PV=const.
Thermodynamic Cycles
A cycle returns the gas to its original state, so ΔUcycle=0.
From the First Law for a complete cycle:
Qnet=Wnet
Net Work = Enclosed Area
The net work done in a cycle equals the area enclosed by the cycle on a PV diagram.
Direction Matters!
Direction
Name
Net Work
Energy Flow
Clockwise
Heat engine
Wnet>0 (work OUT)
Converts heat to work
Counterclockwise
Refrigerator/heat pump
(work IN)
How to Calculate Net Work for a Cycle
Find the area enclosed by the cycle
If clockwise → W>0
If counterclockwise → W<0
For rectangular cycles: Wnet=ΔP×ΔV
Cycle Direction Quiz 🔄
PV Diagram Reading 📈
PV Diagram Calculation Drill 📊
An isobaric expansion at P=150 kPa from V=2.0 L to V=6.0 L. Work done by gas (in J)?
A rectangular clockwise cycle with ΔP=100 kPa and ΔV=5.0 L. Net work per cycle (in J)?
A gas completes a clockwise cycle with net work = 400 J. If QH=1000 J of heat is absorbed from the hot reservoir, how much heat QC is rejected to the cold reservoir (in J)?
Match the Process to Its PV Shape 🎯
Cold reservoir (temperature TC): receives waste heat QC from the engine
Net work output: Wnet=QH−QC
Energy Conservation (First Law for a Cycle)
Since ΔU=0 for a complete cycle:
QH=Wnet+QC
Efficiency
The thermal efficiency measures what fraction of input heat becomes useful work:
e=QHWnet=QHQH−QC1−QHQC
Efficiency is always between 0 and 1 (or 0% and 100%).
Since QC>0 (you must dump some waste heat), efficiency is always less than 100%.
The Carnot Engine
The Carnot engine is a theoretical engine that achieves the maximum possible efficiency between two given temperatures. It consists of two isothermal and two adiabatic processes.
Carnot Efficiency
eCarnot=1−THTC
where temperatures must be in Kelvin.
Key Facts About Carnot Efficiency
No real engine can exceed Carnot efficiency
eCarnot increases when TH increases or T decreases
Why 100% Efficiency is Impossible
The Second Law (coming in Part 5) forbids converting heat entirely into work in a cyclic process. There must always be waste heat QC>0. This is a fundamental limit of nature, not an engineering limitation.
Efficiency Concepts 🔍
Carnot Limit ⚠️
Efficiency Calculation Drill 🔧
A heat engine absorbs QH=2000 J and does W=600 J of work. What is the efficiency (in %)?
What is the Carnot efficiency of an engine operating between TH=500 K and TC=200 K (in %)?
A Carnot engine operates between 800 K and 200 K. If it absorbs 1000 J per cycle, how much work does it produce (in J)?
≥
0
All three statements are equivalent — if one is violated, all are violated.
Entropy (S)
Entropy is a measure of the number of microscopic arrangements (microstates) consistent with the macroscopic state. More microstates → higher entropy → more "disorder."
Entropy Change
For a reversible process at constant temperature:
ΔS=TQ
where T is in Kelvin and Q is the heat transferred.
Key Properties
Entropy is a state variable (path-independent for the system)
Units: J/K
Adding heat to a system increases its entropy
Removing heat decreases its entropy
Spontaneous processes always increase the total entropy of the universe
Reversible vs. Irreversible Processes
Type
ΔSuniverse
Example
Reversible
=0
Ideal Carnot cycle
Irreversible
All real processes are irreversible → entropy of the universe always increases.
Heat Death of the Universe
If entropy always increases, the universe will eventually reach a state of maximum entropy — uniform temperature everywhere, no energy gradients, no ability to do work. This is called the "heat death" of the universe.
Second Law Concepts 🔍
Entropy Calculations 📐
Entropy Change Drill 🔧
Use ΔS=Q/T (with T in Kelvin).
600 J of heat is added to a reservoir at 300 K. What is ΔS of the reservoir (in J/K)?
800 J of heat flows from a 400 K reservoir to a 200 K reservoir. What is ΔSuniverse (in J/K)?
A Carnot engine absorbs 2000 J at 500 K and rejects heat at 250 K. How much heat is rejected QC (in J)?
C
Work input (W): electrical energy drives the compressor
Hot reservoir (TH): heat QH is released into the room
Energy Conservation
QH=QC+W
The heat expelled into the room is MORE than the heat removed from inside — that's why the back of your fridge feels warm!
Coefficient of Performance (COP) — Refrigerator
For a refrigerator, we want to maximize cooling per unit of work:
COPfridge=WQC=QH−QCQC
Note: COP can be greater than 1 (unlike efficiency). A typical fridge has COP ≈ 3–5, meaning each joule of work removes 3–5 joules of heat.
Maximum COP (Carnot Refrigerator)
COPCarnot, fridge=TH−TCTC
Heat Pumps
A heat pump is the same device as a refrigerator, but the goal is reversed: we want to heat the hot reservoir (the building) by extracting heat from the cold reservoir (outside air).
COP — Heat Pump
COPheat pump=WQH=QH−QCQH
Maximum COP (Carnot Heat Pump)
COPCarnot, HP=TH−T
Useful Relationship
COPheat pump=COPfridge+1
This makes sense: QH/W=QC/W+W/.
Real-World Applications
Air conditioners: refrigerators that cool indoor air
Heat pumps: heat buildings by extracting heat from outdoor air (even cold air has thermal energy!)
Geothermal heat pumps: use the stable ground temperature as a reservoir — very efficient
A heat pump with COP = 4 delivers 4 kW of heating for every 1 kW of electricity — far better than a space heater (COP = 1)
Refrigerator & Heat Pump Concepts 🔍
Engine vs. Refrigerator ⚖️
COP Calculation Drill 🔧
A refrigerator removes 600 J from the cold reservoir using 200 J of work. What is its COP?
What is the maximum COP of a refrigerator operating between TC=250 K and TH=300 K?
A Carnot heat pump operates between TC=270 K and TH=300 K. What is its COP?
P
PΔV
Q−PΔV
ΔU+PΔV
Horizontal line
Isochoric
V
0
Q
ΔU
Vertical line
Isothermal
T
Q
0
W
Hyperbola (PV=const)
Adiabatic
Q=0
−ΔU
−W
0
Steep curve (PVγ=const)
Quick Decision Guide
Temperature doesn't change? → Isothermal → ΔU=0
No heat exchange? → Adiabatic → Q=0
Volume doesn't change? → Isochoric → W=0
Pressure doesn't change? → Isobaric → W=PΔV
Complete Cycle
For any complete cycle: ΔU=0, so Qnet=Wnet=enclosed area on PV diagram.