In electron liquids, the compressibility $K$ is defined as $\frac{1}{K}=-V\left(\frac{\partial P}{\partial V}\right)_N=n^2\frac{\partial \mu}{\partial n}$, where $P$, $V$, $n$ and $\mu$ are pressure, volume, density and chemical potential. However, in thermodynamics we learned, I can only find the definition of isothermal and isentropic compressibility: $$\kappa_T=-\frac{1}{V}\left(\frac{\partial V}{\partial P} \right)_T$$ $$\kappa_S=-\frac{1}{V}\left(\frac{\partial V}{\partial P} \right)_S$$ which have the relation $\kappa_T/\kappa_S=\gamma$, where $\gamma$ is the Heat capacity ratio $c_P/c_V$.
My question is
What is the relation between compressibility defined in electron liquid and that defined in thermodynamics?
If I want to get the compressibility of electron liquid in thermodynamics' view, what should I have? the free energy? the internal energy? ...