I was doing some practice problems that my professor had sent us and I have not been able to figure out one of them. The given equation is:
$-y^2dx +x^2dy = 0$
He then asks us to verify that:
$ u(x, y) = \frac{1}{(x-y)^2}$
is an integrating factor.
I multiplied through to get:
$\frac{-y^2}{(x-y)^2}dx + \frac{x^2}{(x-y)^2}dy = 0$
However, the partial derivatives of these do not equal each other so I am a bit confused...
$$\frac{\partial}{\partial y}\frac{-y^2}{(x-y)^2}=\frac{\partial}{\partial x}\frac{x^2}{(x-y)^2}=\frac{2xy}{(y-x)^3}$$
Then the partial derivatives is equal.