Consider a single one-dimensional harmonic oscillator of angular frequency \( \omega \), in equilibrium at temperature \( T = \left( k_B \beta \right)^{-1 }\). The states of the harmonic oscillator are all non-degenerate having energy \( E_n = \left( n + \frac{1}{2} \right) \hbar \omega \) with equal probability, where \( n \) is the quantum number. The Helmholtz free energy of the oscillator is