Solveeit Logo

Question

Question: How do you integrate \(\int_{0}^{1}{{{x}^{2}}{{e}^{x}}dx}\) by integration by parts?...

How do you integrate 01x2exdx\int_{0}^{1}{{{x}^{2}}{{e}^{x}}dx} by integration by parts?

Explanation

Solution

Now we know that according to integration by parts we have u.vdx=uvdxu(vdx)dx\int{u.vdx}=u\int{vdx}-\int{u'\left( \int{vdx} \right)dx} . Hence considering x2{{x}^{2}} as u and ex{{e}^{x}} as v we can easily solve the integration. Now we will again solve the integral obtained by the same method and hence will find the solution of the equation.

Complete step by step solution:
Now we are given with the integral 01x2exdx\int_{0}^{1}{{{x}^{2}}{{e}^{x}}dx} .
To solve the integral we will use Integration by parts.
Now integration by parts tells us that the integration of u.vdx=uvdxu(vdx)dx\int{u.vdx}=u\int{vdx}-\int{u'\left( \int{vdx} \right)dx}
Now first let us understand the ILATE rule.
ILATE is an acronym for Inverse, Logarithmic, Algebraic, Trigonometric and Exponential. The rule gives us order in which the first function must be chosen.
Now in the given integral we have two functions one is x2{{x}^{2}} and ex{{e}^{x}} . Now according to ILATE rule we must take the first function as x2{{x}^{2}} and second function as ex{{e}^{x}} as algebraic functions are preferred before exponential.
Now substituting the functions in the formula for Integration by parts we get,
x2exdx=x2exdx(x2)(exdx)dx\Rightarrow \int{{{x}^{2}}{{e}^{x}}dx}={{x}^{2}}\int{{{e}^{x}}dx}-\int{\left( {{x}^{2}} \right)'\left( \int{{{e}^{x}}dx} \right)dx}
Now we know that the integration of the function ex{{e}^{x}} is ex{{e}^{x}} and the differentiation of the function x2{{x}^{2}} is 2x. Hence we get the integration as,
x2exdx=x2ex2xexdx\Rightarrow \int{{{x}^{2}}{{e}^{x}}dx}={{x}^{2}}{{e}^{x}}-\int{2x{{e}^{x}}dx}
Now taking the constant out from the integration we get,
x2exdx=x2ex2xexdx......................(1)\Rightarrow \int{{{x}^{2}}{{e}^{x}}dx}={{x}^{2}}{{e}^{x}}-2\int{x{{e}^{x}}dx}......................\left( 1 \right)
Now we will again use Integration by parts to solve xexdx\int{x{{e}^{x}}dx}
Hence we get,
xexdx=xexexdx xexdx=xexex \begin{aligned} & \Rightarrow \int{x{{e}^{x}}dx}=x{{e}^{x}}-\int{{{e}^{x}}dx} \\\ & \Rightarrow \int{x{{e}^{x}}dx}=x{{e}^{x}}-{{e}^{x}} \\\ \end{aligned}
Now substituting the value of xexdx\int{x{{e}^{x}}dx} in equation (1) we get,
x2exdx=x2ex2(xexex)+C\Rightarrow \int{{{x}^{2}}{{e}^{x}}dx}={{x}^{2}}{{e}^{x}}-2\left( x{{e}^{x}}-{{e}^{x}} \right)+C
Hence putting the limits we get,
01x2ex=[x2ex2(xexex)]01 01x2ex=[e12(e1e1)][02(0e0)] 01x2ex=e1[2] 01x2ex=e2 \begin{aligned} & \Rightarrow \int_{0}^{1}{{{x}^{2}}{{e}^{x}}}=\left[ {{x}^{2}}{{e}^{x}}-2\left( x{{e}^{x}}-{{e}^{x}} \right) \right]_{0}^{1} \\\ & \Rightarrow \int_{0}^{1}{{{x}^{2}}{{e}^{x}}}=\left[ {{e}^{1}}-2\left( {{e}^{1}}-{{e}^{1}} \right) \right]-\left[ 0-2\left( 0-{{e}^{0}} \right) \right] \\\ & \Rightarrow \int_{0}^{1}{{{x}^{2}}{{e}^{x}}}={{e}^{1}}-\left[ 2 \right] \\\ & \Rightarrow \int_{0}^{1}{{{x}^{2}}{{e}^{x}}}=e-2 \\\ \end{aligned}

Hence the solution of the given integral is e – 2.

Note: Now note that the integral by parts can also be written as udv=uvvdu\int{udv}=uv-\int{vdu} . Also note that whenever we have functions multiplied to each other we can always use integration by parts.