The simplest case to study is that of a finite-dimensional Hilbert space, in which one does not encounter complications like phase transitions or spontaneous symmetry breaking. The density matrix of a thermal state is given by