We begin with the differential equation x(1−x2)dxdy+(3x2−1)y=4x3. Dividing by x(1−x2) rewrites it in standard linear form as dxdy+x(1−x2)3x2−1⋅y=1−x24x2.
To find the integrating factor, we set P(x)=x(1−x2)3x2−1 and decompose it into partial fractions. Since 1−x2=−(x−1)(x+1), we write x(x−1)(x+1)−(3x2−1)=xA+x−1B+x+1C. Setting x=0 gives (−1)(1)1=A⟹A=−1, setting x=1 gives 1⋅2−2=B⟹B=−1, and setting x=−1 gives −1⋅(−2)−2=C⟹C=−1. Thus P(x)=−x1−x−11−x+11.
Integrating, we get ∫P(x)dx=−ln∣x∣−ln∣x−1∣−ln∣x+1∣=−ln∣x(x2−1)∣, so the integrating factor is IF=e∫Pdx=x(x2−1)1.
Multiplying the standard form by the integrating factor, the left side becomes dxd(x(x2−1)y), while the right side simplifies as 1−x24x2⋅x(x2−1)1=−(x2−1)4x2⋅x(x2−1)1=(x2−1)2−4x.
To integrate the right side, we use the substitution u=x2−1 and du=2xdx, yielding ∫(x2−1)2−4xdx=−2∫u2du=u2=x2−12+C. Hence x(x2−1)y=x2−12+C, which leads to y=2x+Cx(x2−1).
Applying the initial condition y(2)=−2 gives −2=2(2)+C(2)(4−1)=4+6C, so 6C=−6⟹C=−1. Therefore y=2x−x(x2−1)=2x−x3+x=3x−x3.
Finally, evaluating at x=3 yields y(3)=3(3)−33=9−27=−18, so the correct answer is Option A: −18.