I am self-studying Elements of Gasdynamics by Liepmann and Roshko. The authors define the specific heats of a gas at constant volume and at constant pressure as $$ c_v=\left(\frac{\partial q}{\partial T}\right)_v $$ $$ c_p=\left(\frac{\partial q}{\partial T}\right)_p $$
The author states that the specific internal energy is a state variable, so $e=e(v,T)$ and using calculus and the first law, we can write $$ de=\frac{\partial e}{\partial v}dv+\frac{\partial e}{\partial T}dT=dq-pdv $$
From this, the author states \begin{align} c_v&=\frac{\partial e}{\partial T}\\ c_p&=\frac{\partial e}{\partial T} +\left(\frac{\partial e}{\partial v}+ p\right)\left(\frac{\partial v}{\partial T}\right)_p \end{align}
How can I derive these last two expressions relating the specific internal energy and the specific heats? I am not the best with differentials.
Note: This question asks something related, but I was hoping to get some help showing how the differentials are manipulated to get from one expression to the other.