PX284 - F2a - systems with fixed T and V or canonical ensemble

F=U−T0S

where, T=T0 is fixed

dF=dQ+dW−T0dS ∴dF≤dW⟹dF≤0

for a mechanically isolated system, ie. V is fixed

dH≤0 dG≤0

PX284 - F2b - aside on lagrange multipliers

∇→Pi|U−TS+λ∑iPi|=0 ∂∂Pj(∑iEiPi+kBT∑iPiln⁡Pi+λ∑iPi)=0Ej+kBT(ln⁡Pj+1)+λ=0ln⁡Pj=−EjkBT−λkBT−1Pj=Aexp⁡(−EjkBT)

where, A=1Z