Let $\phi$(x, y) be a function of variables x,y. I am trying to prove that if the total derivative d$\phi$ = $\phi_x dx + \phi_y dy$ is 0, then the partial derivatives $\phi_x , \phi_y$ are 0. The informal argument in the book goes like this
$\phi_x dx + \phi_y dy$ = 0
(1) $\rightarrow\phi_x + \phi_y \frac{dy}{dx}$ = 0
(2) $\rightarrow \phi_x = 0$
(3) $\rightarrow \phi$ is a function of only y
(4) $\rightarrow \phi_y = 0$
Any elucidating details would be appreciated, for I'm not sure if I follow any of this proof, especially how (1) implies (2).