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

F=UT0S

where, T=T0 is fixed

dF=dQ+dWT0dS dFdWdF0

for a mechanically isolated system, ie. V is fixed

dH0 dG0

PX284 - F2b - aside on lagrange multipliers

Pi|UTS+λiPi|=0 Pj(iEiPi+kBTiPilnPi+λiPi)=0Ej+kBT(lnPj+1)+λ=0lnPj=EjkBTλkBT1Pj=Aexp(EjkBT)

where, A=1Z