I found this problem on a past exam from my ODE course.
Solve the ODE $$(x^2y - 1)dy - (xy^2-1)dx=0$$
First off, I rearranged to get a form that resembles an exact ODE:
$$(1-xy^2)dx + (x^2y -1)dy = 0$$
But since, $P'_y=-2xy \neq 2xy = Q'_x$, the ODE isn't exact. So I thought the integrating factor method for exact ODEs might be the right approach here. I tried finding and/or guessing the integrating factor in various ways but none of them worked.
I also tried rearranging the equation to get a $\frac{dy}{dx}=\frac{xy^2-1}{x^2y-1}$ form or see if something else will pop up, but that also seemingly led nowhere.
Does anyone have a clue how to solve this? Thanks.