Work Step by Step
The first equation has a regular derivative with respect to $x$ and $c$ is a constant. The second equation has a partial derivative with respect to $x$ and $y$ is treated as a constant. Thus any variable (such as $y$) can essentially become a constant (i.e. $c$) when taking a partial derivative. The end result is the same and we get similar formulas.