Given :
xdx=(x2y−y3)dy⟹(x2y−y3)dydx=x ........... (1)
Let R(x,y)=−x and S(x,y)=x2y−y3
This is not an exact equation, because
d(R(x,y))dx=−1 and 2xy=d(S(x,y))dx
Therefore taking integrating factor u above become exact.
⇒d(uR(x,y))dx=d(uS(x,y))dx⇒dudxu=−2y
Integrating both sides w.r.t x
logu=−2logy⟹logu=−logy2⟹u=1y2
Multiplying both sides of (1) by u, we get
1y2(x2y−y3)dydx=xy2
Let P(x,y)=−xy2 and Q(x,y)=x2y−y3
Define f(x,y) such that d(f(x,y))dx=P(x,y) and d(f(x,y))dy=Q(x,y)
Then, the solution will be given by f(x,y)=c where c is constant
Now,
Integrating d(f(x,y))dx w.r.t x in order to find f(x,y)
f(x,y)=−x22y2+g(y)
where g(y) is an arbitrary function of y.
Differentiating f(x,y) w.r.t to y in order to find g(y)
d(f(x,y))dx=ddy(−x22y2+g(y))=x2y3+dg(y)dy
Substituting d(f(x,y))dx in Q(x,y)
x2y3+dg(y)dy=−y+x2y3⇒dg(y)dy=−y
Integrate dg(y)dy w.r.t y
g(y)=−y22
Substitute g(y) in f(x,y)
f(x,y)=−y22−x22y2
Then solution is
−y22−x22y2=c
It passes through (0,2) gives c=−2
Then for x=4
(y(4))2(4−(y(4))2)=16