3.3.19.1 Example
ydx+x(x2y1)dy=0M(x,y)+N(x,y)y=0

Where

My=1Nx=3x2y1

Hence not exact. Trying the above 3 methods shows it is not possible to find an integrating factor. But by inspection let I=yx3. Then the ode becomes

yIdx+Ix(x2y1)dy=0yyx3dx+yx3x(x2y1)dy=0y2x3dx+(y2yx2)dy=0M(x,y)+N(x,y)y=0

Where

M=y2x3N=(y2yx2)

Now we see that the ode is exact by checking:

My=2yx3Nx=(2yx3)=2yx3

Since ode is now exact, we need to find ϕ from

(3)ϕx=M(4)ϕy=N

From (3)

ϕx=y2x3

Therefore

ϕ=Mdx+f(y)=y2x3dx+f(y)=y2x3dx+f(y)=y2x22+f(y)(5)=y22x2+f(y)

Where f(y) is arbitrary function to be found. Taking derivative of the above w.r.t. y gives

ϕy=ddy(y22x2+f(y))=yx2+f(y)

Comparing the above to (4) shows that

N=yx2+f(y)y2yx2=yx2+f(y)f(y)=y2

Hence

f(y)=y2dy=y33+c

Substituting this into (5) gives

ϕ=y22x2+f(y)=y22x2+y33+c

Since ϕ is also constant function then we can simplify the above to

y22x2+y33=C3y22x2y3=6x2C3y22x2y3=x2C1