Why is change in volume ($dV$) is not taken as zero when we use heat capacity at constant volume ($C_v$) in first law of thermodynamics equation.
$$dQ = C_v dT + pdV$$
Here $$C_v = (dQ/dT) = \text{constant}$$ since $dQ = dU$ (since $dV =
0$).
Therefore
$$C_v = (dU/dT) = constant$$
So why in first equation, $dV$ is not taken as zero?