We are tasked with evaluating the integral
I=∫01f(x)g(x)dx. Substituting our expressions for
f(x) and
g(x), we obtain:
I=∫01ex(x2−ex)dx
Expanding the integrand, we split the integral into two distinct parts:
I=∫01x2exdx−∫01e2xdx
We define these as
I1 and
I2, respectively.
To solve
I1=∫x2exdx, we apply the Integration by Parts formula
∫udv=uv−∫vdu. Choosing
u=x2 and
dv=exdx, we get:
I1=x2ex−∫2xexdx
Applying Integration by Parts a second time to
∫2xexdx with
u=2x and
dv=exdx, we find the antiderivative:
I1=ex(x2−2x+2)
Evaluating this from
0 to
1:
I1=[e1(1−2+2)]−[e0(0−0+2)]=e−2
Finally, we combine our results to find
I=I1−I2:
I=(e−2)−(2e2−1)
Expanding and simplifying the expression:
I=e−2−2e2+21=e−2e2−23