I calculated the partial differential of $y^2$ with respect to $x$. I thought this would be $0$ since no $x$ is present in the equation, so $x$ must be $1$. The derivative of $1$ is $0$, so $y^2*0 = 0$. The answer is $y^2$ though.
Why is this partial derivative not $0$? What am I missing?
The complete equation is $\dfrac{dm}{dx} = y^2$
context: This is a calculation to find if the differential equation $xydx+y^2dy=0$ is exact or not. I am calculating $\dfrac{dm}{dy}$ and $\dfrac{dm}{dx}$ to see if it is exact. The calculation above is $\dfrac{dm}{dx}$ .