Given x(1−x2)dxdy+(3x2y−y−4x3)=0
(x−x3)dxdy+(3x2−1)y=4x3
dxdy+(x−x3)(3x2−1)y=(x−x3)4x3
This is a linear differential equation of the form dxdy+Py=Q
Here IF=e∫Pdx=e∫x−x33x2−1dx
Let x−x3=t⇒IF=e∫−tdt
=e−lnt=t1
∴IF=x−x31
So the general solution of the differential equation will be
y×IF=∫Q×IFdx
y(x−x31)=∫x−x34x3×(x−x3)1dx
=∫(x−x3)24x3dx
=∫(1−x2)24xdx
Now let I=∫(1−x2)24xdx
Substituting 1−x2=z
I=2∫z2−dz
=−2(−z1)+c=1−x22+c
Hence the solution of the differential equation becomes
x−x3y=1−x22+c
At x=2,y=−2
2−8−2=1−42+c
31=3−2+c
∴c=1
Hence the particular solution will be x−x3y=1−x22+1
Put x=3
3−27y=1−92+1
−24y=−41+1
−24y=43
y=43(−24)=−18