The given differential equation is(x2+1)y′−2xy=(x4+2x2+1)cosx,y(0)=1
Step 1: Write it in standard linear form y′+P(x)y=Q(x).
Divide by (x2+1):
y′−x2+12xy=x2+1x4+2x2+1cosx.
Notice that x4+2x2+1=(x2+1)2, so the right-hand side simplifies to(x2+1)cosx.
Thusy′−x2+12xy=(x2+1)cosx−(1)
Step 2: Find the integrating factor (I.F.).
For y′+P(x)y=Q(x), I.F. is e∫P(x)dx.
Here P(x)=−x2+12x.
ThereforeI.F.=e∫−x2+12xdx=e−ln(x2+1)=x2+11.
Step 3: Multiply equation −(1) by the I.F.
x2+11y′−(x2+1)22xy=cosx
The left side is the derivative of x2+1y because
dxd(x2+1y)=(x2+1)2y′(x2+1)−y(2x)=x2+11y′−(x2+1)22xy.
Hencedxd(x2+1y)=cosx.(Integrate)
Step 4: Integrate both sides.
x2+1y=∫cosxdx=sinx+C
Thereforey(x)=(x2+1)(sinx+C).
Step 5: Apply the initial condition y(0)=1.
At x=0,
1=(02+1)(sin0+C)=1⋅(0+C)=C.
So C=1.
Hence the required solution isy(x)=(x2+1)(sinx+1).
Step 6: Evaluate ∫−33y(x)dx.
∫−33y(x)dx=∫−33(x2+1)(sinx+1)dx
=∫−33(x2+1)sinxdx+∫−33(x2+1)dx−(2)
Case 1: ∫−33(x2+1)sinxdx
(x2+1) is even, sinx is odd ⟹ their product is odd.
The integral of an odd function over [−a,a] is 0.
So this part contributes 0.
Case 2: ∫−33(x2+1)dx=∫−33x2dx+∫−331dx
Even function property:
∫−33x2dx=2∫03x2dx=2[3x3]03=2⋅327=18.
Constant term:
∫−331dx=6.
Therefore the second integral equals 18+6=24.
Combining both cases in −(2):
∫−33y(x)dx=0+24=24.
Thus the value of ∫−33y(x)dx is 24, which corresponds to Option A.