Canonical ensemble and partition function

Assumption

Target

We want to find for -th microstates that maximizes maximize entropy

Derivation

Use the Lagrange multiplier method, (note here we have equations…)

With Sterling’s approximation, we have

Then we will have

This is also how we get the partition function .

We will realize that .

Other thermodynamic functions