Laws of Thermodynamics

First and second laws of thermodynamics, PV diagrams, and thermodynamic processes

⚙️ Laws of Thermodynamics

First Law of Thermodynamics

Energy conservation for thermodynamic systems:

ΔU=QW\Delta U = Q - W

where:

  • ΔU\Delta U = change in internal energy (J)
  • QQ = heat added to system (J)
  • WW = work done BY system (J)

Sign Conventions:

Heat (Q):

  • Q>0Q > 0: Heat added to system (absorbed)
  • Q<0Q < 0: Heat removed from system (released)

Work (W):

  • W>0W > 0: System does work on surroundings (expansion)
  • W<0W < 0: Work done on system (compression)

Internal Energy (ΔU):

  • ΔU>0\Delta U > 0: Energy increases, temperature rises
  • ΔU<0\Delta U < 0: Energy decreases, temperature falls

💡 Key Insight: Energy can enter as heat or leave as work, but total energy is conserved.


Internal Energy

Internal energy is the total kinetic and potential energy of all molecules.

For an ideal gas: U=32nRTU = \frac{3}{2}nRT

where:

  • nn = number of moles
  • RR = 8.31 J/(mol·K)
  • TT = absolute temperature (K)

For ideal gas: ΔU\Delta U depends ONLY on temperature change! ΔU=32nRΔT\Delta U = \frac{3}{2}nR\Delta T


Work in Thermodynamic Processes

For gas expansion/compression:

W=PΔVW = P\Delta V

where:

  • PP = pressure (Pa)
  • ΔV=VfVi\Delta V = V_f - V_i (m³)

On a PV diagram: Work = area under curve

  • Expansion (ΔV>0\Delta V > 0): W>0W > 0 (system does work)
  • Compression (ΔV<0\Delta V < 0): W<0W < 0 (work done on system)

Thermodynamic Processes

1. Isothermal (Constant Temperature)

  • ΔT=0\Delta T = 0ΔU=0\Delta U = 0
  • First Law: Q=WQ = W
  • All heat becomes work
  • For ideal gas: PV=PV = constant

2. Adiabatic (No Heat Transfer)

  • Q=0Q = 0
  • First Law: ΔU=W\Delta U = -W
  • Work comes from/goes to internal energy
  • Temperature changes!
  • Example: Rapid compression/expansion

3. Isobaric (Constant Pressure)

  • P=P = constant
  • W=PΔVW = P\Delta V
  • Q=ΔU+PΔVQ = \Delta U + P\Delta V
  • Example: Piston free to move

4. Isochoric (Constant Volume)

  • ΔV=0\Delta V = 0W=0W = 0
  • First Law: Q=ΔUQ = \Delta U
  • All heat changes internal energy
  • Example: Rigid container

PV Diagrams

Pressure-Volume (PV) diagrams show thermodynamic processes:

  • Horizontal line: Isobaric (constant P)
  • Vertical line: Isochoric (constant V)
  • Curve: Isothermal or adiabatic

Work = area under curve

  • Clockwise cycle: Net work done BY system (W > 0)
  • Counter-clockwise: Net work done ON system (W < 0)

Second Law of Thermodynamics

Heat flows spontaneously from hot to cold, not the reverse (without external work).

Equivalently: Entropy of an isolated system always increases.

Entropy (S): Measure of disorder/randomness

  • Natural processes increase total entropy
  • Energy becomes more spread out, less useful

Implications:

  1. No perfect heat engine: Can't convert all heat to work
  2. No perfect refrigerator: Can't transfer heat from cold to hot without work
  3. Time's arrow: Explains why time has a direction

Heat Engines

Convert heat into mechanical work:

Efficiency: e=WQH=QHQCQH=1QCQHe = \frac{W}{Q_H} = \frac{Q_H - Q_C}{Q_H} = 1 - \frac{Q_C}{Q_H}

where:

  • QHQ_H = heat absorbed from hot reservoir
  • QCQ_C = heat expelled to cold reservoir
  • W=QHQCW = Q_H - Q_C = useful work output

Maximum efficiency (Carnot engine): emax=1TCTHe_{max} = 1 - \frac{T_C}{T_H}

Temperatures in Kelvin!

💡 Key: Efficiency always < 100%. Some heat must be expelled.


Refrigerators and Heat Pumps

Move heat from cold to hot (requires work):

Coefficient of Performance (COP): COPrefrigerator=QCWCOP_{refrigerator} = \frac{Q_C}{W} COPheatpump=QHWCOP_{heat pump} = \frac{Q_H}{W}

Higher COP = more efficient


Problem-Solving Strategy

  1. Identify the process: Isothermal, adiabatic, isobaric, isochoric
  2. Apply First Law: ΔU=QW\Delta U = Q - W
  3. Use process-specific relationships:
    • Isothermal: ΔU=0\Delta U = 0
    • Adiabatic: Q=0Q = 0
    • Isobaric: W=PΔVW = P\Delta V
    • Isochoric: W=0W = 0
  4. For ideal gas: ΔU=32nRΔT\Delta U = \frac{3}{2}nR\Delta T
  5. Watch signs for Q and W!

Common Mistakes

❌ Wrong sign for Q or W ❌ Using Celsius instead of Kelvin for Carnot efficiency ❌ Forgetting ΔU = 0 for isothermal process ❌ Confusing heat added vs. heat expelled in engines ❌ Assuming all heat can be converted to work (violates 2nd Law)

📚 Practice Problems

1Problem 1easy

Question:

A gas absorbs 500 J of heat and does 300 J of work. What is the change in internal energy?

💡 Show Solution

Given:

  • Heat absorbed: Q=+500Q = +500 J (positive, added to system)
  • Work done by system: W=+300W = +300 J (positive, expansion)

Find: Change in internal energy ΔU\Delta U

Solution:

Apply First Law: ΔU=QW\Delta U = Q - W ΔU=500300=200 J\Delta U = 500 - 300 = 200 \text{ J}

Answer: Internal energy increases by 200 J

The gas gained 500 J as heat but lost 300 J doing work, net gain of 200 J.

2Problem 2easy

Question:

A gas absorbs 500 J of heat and does 300 J of work. What is the change in internal energy?

💡 Show Solution

Given:

  • Heat absorbed: Q=+500Q = +500 J (positive, added to system)
  • Work done by system: W=+300W = +300 J (positive, expansion)

Find: Change in internal energy ΔU\Delta U

Solution:

Apply First Law: ΔU=QW\Delta U = Q - W ΔU=500300=200 J\Delta U = 500 - 300 = 200 \text{ J}

Answer: Internal energy increases by 200 J

The gas gained 500 J as heat but lost 300 J doing work, net gain of 200 J.

3Problem 3medium

Question:

An ideal gas undergoes an isothermal expansion at 300 K. It absorbs 800 J of heat. (a) What is the change in internal energy? (b) How much work does the gas do?

💡 Show Solution

Given:

  • Process: Isothermal (constant T = 300 K)
  • Heat absorbed: Q=+800Q = +800 J

Find: (a) ΔU\Delta U, (b) WW

Solution:

Part (a): Change in internal energy

For isothermal process with ideal gas: ΔT=0ΔU=0\Delta T = 0 \Rightarrow \Delta U = 0

Part (b): Work done

Apply First Law: ΔU=QW\Delta U = Q - W 0=800W0 = 800 - W W=800 JW = 800 \text{ J}

Answer:

  • (a) ΔU=0\Delta U = 0 (temperature constant)
  • (b) W=800W = 800 J (all heat converted to work!)

In isothermal expansion, all absorbed heat becomes work.

4Problem 4medium

Question:

An ideal gas undergoes an isothermal expansion at 300 K. It absorbs 800 J of heat. (a) What is the change in internal energy? (b) How much work does the gas do?

💡 Show Solution

Given:

  • Process: Isothermal (constant T = 300 K)
  • Heat absorbed: Q=+800Q = +800 J

Find: (a) ΔU\Delta U, (b) WW

Solution:

Part (a): Change in internal energy

For isothermal process with ideal gas: ΔT=0ΔU=0\Delta T = 0 \Rightarrow \Delta U = 0

Part (b): Work done

Apply First Law: ΔU=QW\Delta U = Q - W 0=800W0 = 800 - W W=800 JW = 800 \text{ J}

Answer:

  • (a) ΔU=0\Delta U = 0 (temperature constant)
  • (b) W=800W = 800 J (all heat converted to work!)

In isothermal expansion, all absorbed heat becomes work.

5Problem 5hard

Question:

A Carnot engine operates between a hot reservoir at 500 K and a cold reservoir at 300 K. (a) What is its maximum efficiency? (b) If it absorbs 1000 J from the hot reservoir, how much work does it do? (c) How much heat is expelled to the cold reservoir?

💡 Show Solution

Given:

  • Hot reservoir: TH=500T_H = 500 K
  • Cold reservoir: TC=300T_C = 300 K
  • Heat absorbed: QH=1000Q_H = 1000 J

Solution:

Part (a): Maximum efficiency

For Carnot engine: emax=1TCTH=1300500e_{max} = 1 - \frac{T_C}{T_H} = 1 - \frac{300}{500} emax=10.6=0.4=40%e_{max} = 1 - 0.6 = 0.4 = 40\%

Part (b): Work output

e=WQHe = \frac{W}{Q_H} W=eQH=(0.4)(1000)=400 JW = e \cdot Q_H = (0.4)(1000) = 400 \text{ J}

Part (c): Heat expelled

Energy conservation: QH=W+QCQ_H = W + Q_C QC=QHW=1000400=600 JQ_C = Q_H - W = 1000 - 400 = 600 \text{ J}

Verification: e=1QCQH=16001000=0.4e = 1 - \frac{Q_C}{Q_H} = 1 - \frac{600}{1000} = 0.4

Answer:

  • (a) Maximum efficiency: 40%
  • (b) Work done: 400 J
  • (c) Heat expelled: 600 J

Even the perfect Carnot engine can't achieve 100% efficiency!

6Problem 6hard

Question:

A Carnot engine operates between a hot reservoir at 500 K and a cold reservoir at 300 K. (a) What is its maximum efficiency? (b) If it absorbs 1000 J from the hot reservoir, how much work does it do? (c) How much heat is expelled to the cold reservoir?

💡 Show Solution

Given:

  • Hot reservoir: TH=500T_H = 500 K
  • Cold reservoir: TC=300T_C = 300 K
  • Heat absorbed: QH=1000Q_H = 1000 J

Solution:

Part (a): Maximum efficiency

For Carnot engine: emax=1TCTH=1300500e_{max} = 1 - \frac{T_C}{T_H} = 1 - \frac{300}{500} emax=10.6=0.4=40%e_{max} = 1 - 0.6 = 0.4 = 40\%

Part (b): Work output

e=WQHe = \frac{W}{Q_H} W=eQH=(0.4)(1000)=400 JW = e \cdot Q_H = (0.4)(1000) = 400 \text{ J}

Part (c): Heat expelled

Energy conservation: QH=W+QCQ_H = W + Q_C QC=QHW=1000400=600 JQ_C = Q_H - W = 1000 - 400 = 600 \text{ J}

Verification: e=1QCQH=16001000=0.4e = 1 - \frac{Q_C}{Q_H} = 1 - \frac{600}{1000} = 0.4

Answer:

  • (a) Maximum efficiency: 40%
  • (b) Work done: 400 J
  • (c) Heat expelled: 600 J

Even the perfect Carnot engine can't achieve 100% efficiency!