\documentclass{article}
\usepackage{amsmath}
\title{Complete Statistical Mechanics: Canonical Ensemble}
\begin{document}
\maketitle

\section{Canonical Ensemble}

The canonical ensemble fixes $T,V,N$. Its partition function

$$
Z=\sum_i e^{-\beta E_i}
$$

generates thermodynamics through $F=-k_BT\ln Z$.

\end{document}
