First Order ODE/y dx + (x^2 y - x) dy = 0/Proof 1

Theorem
This can also be presented in the form:
 * $\dfrac {\mathrm d y} {\mathrm d x} + \dfrac y {x^2 y - x}$

Proof
We note that $(1)$ is in the form:
 * $M \left({x, y}\right) \mathrm d x + N \left({x, y}\right) \mathrm d y = 0$

but that $(1)$ is not exact.

So, let:
 * $M \left({x, y}\right) = y$
 * $N \left({x, y}\right) = x^2 y - x$

Let:
 * $P \left({x, y}\right) = \dfrac {\partial M} {\partial y} - \dfrac {\partial N} {\partial x}$

Thus:

It can be observed that:

Thus $\dfrac {P \left({x, y}\right)} {N \left({x, y}\right)}$ is a function of $x$ only.

So Integrating Factor for First Order ODE: Function of One Variable can be used:


 * $\mu \left({x}\right) = e^{\int g \left({x}\right) \mathrm d x}$

Hence:

Thus an integrating factor for $(1)$ has been found:
 * $\mu = \dfrac 1 {x^2}$

which yields, when multiplying it throughout $(1)$:
 * $\dfrac y {x^2} \, \mathrm d x + \left({y - \dfrac 1 x}\right) \, \mathrm d y = 0$

which is now exact.

By First Order ODE: $\dfrac y {x^2} \, \mathrm d x + \left({y - \dfrac 1 x}\right) \, \mathrm d y = 0$, it solution is:
 * $\dfrac {y^2} 2 - \dfrac y x = C$