PX284 - E1b - entropy

S=−kB∑iPiln⁡Pi Pi=exp⁡(−βEi)Z∴ln⁡Pi=−βEi−ln⁡Z⟹S=kB∑iPi(βEi+ln⁡Z)=kB(βU+ln⁡Z)

note: U=∑iEiPi and ∑iPi=1