1.7.26Thermodynamics

Thermodynamic potentials — U, H, F, G (preview)

1,957 words9 min readdifficulty · medium1 backlinks

1. Starting point: the First Law and internal energy UU

WHY this form? First law: dU=δQδWdU = \delta Q - \delta W. For a reversible path δQ=TdS\delta Q = T\,dS (definition of entropy) and δW=pdV\delta W = p\,dV. Substitute: dU=TdSpdV.dU = T\,dS - p\,dV.

This equation is the mother of all potentials. Reading it as U=U(S,V)U=U(S,V), the natural variables of UU are ==S and V====S \text{ and } V==, because dUdU is naturally expressed in terms of dSdS and dVdV.


2. The trick that builds all the others: the Legendre transform

HOW it works. We have T=(U/S)VT = (\partial U/\partial S)_V. To switch from SS to TT, define a new function by subtracting TSTS: F=UTS.F = U - TS. Then dF=dUTdSSdT=(TdSpdV)TdSSdT=SdTpdV.dF = dU - T\,dS - S\,dT = (T\,dS - p\,dV) - T\,dS - S\,dT = -S\,dT - p\,dV. The TdST\,dS terms cancel, leaving dFdF in terms of dTdT and dVdV. That's the whole magic.

The same trick swapping pdV+Vdp-p\,dV \to +V\,dp uses +pV+pV.


3. The four potentials (derive each d()d(\cdot))

Derivation of dHdH: H=U+pVdH=dU+pdV+Vdp=(TdSpdV)+pdV+Vdp=TdS+Vdp.H=U+pV \Rightarrow dH = dU + p\,dV + V\,dp = (T\,dS - p\,dV)+p\,dV+V\,dp = T\,dS+V\,dp. Why this step? The pdV-p\,dV from dUdU cancels the +pdV+p\,dV from d(pV)d(pV).

Derivation of dFdF: done above. Why? Subtracting TSTS kills the TdST\,dS term, promoting TT to a natural variable.

Derivation of dGdG: G=U+pVTSG=U+pV-TS, combine both tricks: dG=dU+pdV+VdpTdSSdT=SdT+Vdp.dG = dU + p\,dV+V\,dp - T\,dS - S\,dT = -S\,dT + V\,dp. Why? Both TdST\,dS and pdVp\,dV cancel, leaving the lab-friendly pair (T,p)(T,p).

Figure — Thermodynamic potentials — U, H, F, G (preview)

4. WHY each potential is minimized — equilibrium meaning

Held constant Minimized potential Lab situation
S,VS,V UU isolated, rigid (rare)
S,pS,p HH adiabatic, constant pressure
T,VT,V FF thermostat, rigid box
T,pT,p GG thermostat, open to atmosphere (chemistry!)

5. Worked examples


6. Common mistakes


Recall Feynman: explain to a 12-year-old

Energy is like money in your wallet. But how much you can actually spend depends on the rules of where you are. In a hot room (fixed temperature) a "tax" called TSTS gets taken away — what's left to spend is the free energy FF. If the room can also push on you with air pressure, you must also reserve some money for that (pVpV), and what's left is GG. Each "wallet" (U,H,F,GU,H,F,G) is just your energy after accounting for which taxes apply in your situation, and the system always settles where its relevant wallet is smallest.


Flashcards

What is the fundamental differential of UU?
dU=TdSpdVdU = T\,dS - p\,dV (natural variables S,VS,V)
Define enthalpy HH and give dHdH.
H=U+pVH=U+pV; dH=TdS+VdpdH=T\,dS+V\,dp (natural variables S,pS,p)
Define Helmholtz free energy and give dFdF.
F=UTSF=U-TS; dF=SdTpdVdF=-S\,dT-p\,dV (natural variables T,VT,V)
Define Gibbs free energy and give dGdG.
G=U+pVTSG=U+pV-TS; dG=SdT+VdpdG=-S\,dT+V\,dp (natural variables T,pT,p)
Which potential is minimized at constant T,pT,p?
Gibbs free energy GG (the chemistry case)
Which potential is minimized at constant T,VT,V?
Helmholtz free energy FF
Why does enthalpy matter for constant-pressure heat?
At dp=0dp=0, dH=TdS=δQdH=T\,dS=\delta Q, so ΔH\Delta H is heat absorbed
Express SS and VV from G(T,p)G(T,p).
S=(G/T)pS=-(\partial G/\partial T)_p, V=(G/p)TV=(\partial G/\partial p)_T
What is a Legendre transform doing here?
Swapping a variable for its conjugate by subtracting their product, to change natural variables
State the Maxwell relation from FF.
(S/V)T=(p/T)V(\partial S/\partial V)_T=(\partial p/\partial T)_V
What does "free" in free energy mean?
Maximum work extractable at fixed TT (and pp for GG); not "costless"

Connections

  • First Law of Thermodynamics — source of dU=TdSpdVdU=TdS-pdV
  • Entropy and the Second Law — why minimization replaces maximization
  • Maxwell Relations — direct consequence of exact differentials of U,H,F,GU,H,F,G
  • Legendre Transform — the mathematical engine
  • Heat Capacities Cp and CvCp=(H/T)pC_p=(\partial H/\partial T)_p, Cv=(U/T)VC_v=(\partial U/\partial T)_V
  • Gibbs Free Energy and Chemical EquilibriumΔG<0\Delta G<0 spontaneity

Concept Map

gives

mother equation

natural vars

swaps variable for conjugate

add pV

subtract TS

subtract TS

natural vars

natural vars

natural vars

minimum at fixed T,p

First and Second Law

dU = TdS - pVdV

Internal energy U

S and V

Legendre transform

Enthalpy H

Helmholtz F

Gibbs G

S and p

T and V

T and p

Equilibrium state

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, thermodynamic potential ka matlab hai ek energy-jaisa quantity (U,H,F,GU, H, F, G) jiska minimum batata hai ki system equilibrium me kahan settle hoga — bilkul jaise ball valley ke neeche tak roll karke ruk jaati hai. Lekin twist ye hai: kaunsa potential minimize hoga ye depend karta hai ki tum lab me kya constant rakh rahe ho. Agar temperature aur pressure fix hain (jaise open beaker, room temperature — yani chemistry), to Gibbs free energy GG boss hai.

Sab kuch nikalta hai ek hi master equation se: dU=TdSpdVdU = T\,dS - p\,dV. Ab problem ye hai ki entropy SS ko lab me directly control karna mushkil hai, par temperature TT ko thermostat se easily control kar sakte ho. To hum Legendre transform ka trick use karte hain — variable ko uske partner se swap karne ke liye unka product subtract/add kar dete hain. TSTS subtract karo to F=UTSF = U - TS banta hai aur TdST\,dS term cancel ho jaata hai, leaving dF=SdTpdVdF = -S\,dT - p\,dV. Isi tarah pVpV add karke HH aur dono milake GG banta hai.

"Free energy" me "free" ka matlab muft nahi hai bhai — iska matlab hai kitna useful kaam nikaal sakte ho fixed temperature pe. TSTS wala part second law ke kaaran "lock" ho jaata hai, use nahi kar sakte. Chemistry me ΔG<0\Delta G < 0 ho to reaction apne aap (spontaneously) chalti hai — isliye GG itna important hai. Aur ek bonus: in potentials ke exact differential se Maxwell relations nikalti hain, jisse hard-to-measure cheezein (jaise S/V\partial S/\partial V) easy cheezon (jaise p/T\partial p/\partial T) se replace ho jaati hain. Yahi 80/20 hai — chaar definitions yaad rakho, baaki sab derive ho jayega.

Go deeper — visual, from zero

Test yourself — Thermodynamics

Connections