The differential equation is dxdy+(1+x2)22xy=xe1+x21 with y(0)=0.
Find the integrating factor.
I.F.=e∫(1+x2)22xdx
Let u=1+x2, du=2xdx:
∫(1+x2)22xdx=∫u2du=−u1=−1+x21
I.F.=e−1+x21
Solve.
y⋅e−1+x21=∫x⋅e1+x21⋅e−1+x21dx=∫xdx=2x2+C
Using y(0)=0: 0=0+C, so C=0.
y=2x2e1+x21
Find f(x).
f(x)=y(x)⋅e−1+x21=2x2
Find the area enclosed between f(x)=2x2 and y−x=4 (i.e., y=x+4).
Find intersection points: 2x2=x+4⇒x2−2x−8=0⇒(x−4)(x+2)=0.
x=−2 and x=4.
Area=∫−24[(x+4)−2x2]dx
=∫−24(x+4−2x2)dx=[2x2+4x−6x3]−24
At x=4: 8+16−664=24−332=372−32=340.
At x=−2: 2−8+68=−6+34=3−18+4=−314.
Area=340−(−314)=354=18
The answer is 18.