The specific heat capacity as I recall from thermodynamics(and as Wikipedia defines it) is defined as
$$C_v= \frac{1}{M}\frac{dQ}{dT}$$
$C_v$ is specific heat capacity at constant volume, M is the mass
In statistical mechanics, after deriving the Boltzmann-Gibbs probability measure, the canonical partition function Z and defining the Helmholtz free energy, they start proving the thermodynamic relations from these equations. At some point the following equation is used, which I like to know how to obtain, it must be a thermodynamical thing, since they are not proving it
$$C_v= \left.\frac{\partial \langle H \rangle}{\partial T}\right|_{V,N}= \left.\frac{\partial U}{\partial T}\right|_{V,N} $$
H is the Hamiltonian of the system, and usually they put =E, where E is the energy, I think that they are not using U, to distinguish it from the thermodynamical internal energy, since when constructing the theory we don't know beforehand if they coincide, then we prove they do
I am not familiar with the second one, can it be proved using thermodynamics? How does one get from the first one to the second one?