Given,
dxdy+ex(x2−2)y=(x2−2x)(x2−2)e2x
This is a linear differential equation of the form
dxdy+P(x)y=Q(x)
where
P(x)=ex(x2−2)
Now,
∫P(x)dx=∫ex(x2−2)dx
Observe that
dxd[ex(x2−2x)]=ex(x2−2)
Hence,
∫ex(x2−2)dx=ex(x2−2x)
Therefore, integrating factor is
IF=eex(x2−2x)
Multiplying throughout by the integrating factor,
dxd(yeex(x2−2x))=(x2−2x)(x2−2)e2x⋅eex(x2−2x)
Let
t=ex(x2−2x)
Then,
dt=ex(x2−2)dx
So,
∫tetdt=(t−1)et+C
Hence,
yeex(x2−2x)=(ex(x2−2x)−1)eex(x2−2x)+C
Therefore,
y=ex(x2−2x)−1+Ce−ex(x2−2x)
Using
y(0)=0
we get
0=0−1+C
C=1
Hence,
y=ex(x2−2x)−1+e−ex(x2−2x)
Now, at
x=2
y(2)=e2(4−4)−1+e0
=0−1+1=0
Hence,
0