# Video: Finding the Integration of a Function Involving an Exponential Function Using Integration by Parts Twice

Determine ∫2𝑥²𝑒^(𝑥 + 2) d𝑥.

04:41

### Video Transcript

Determine the indefinite integral of two 𝑥 squared times by 𝑒 to the 𝑥 plus two with respect to 𝑥.

First, we notice that we have a factor of two inside our integral. So we can factor this out of the integral. This leaves us with two times the indefinite integral of 𝑥 squared times by 𝑒 to the 𝑥 plus two with respect to 𝑥. In order to integrate this integral, we need to use integration by parts. When using integration by parts, we’re using the formula which tells us that the integral of 𝑢 times d𝑣 d𝑥 with respect to 𝑥 is equal to 𝑢 times 𝑣 minus the integral of d𝑢 d𝑥 times 𝑣 with respect to 𝑥.

From our integral, we need to choose a 𝑢 and a d𝑣 d𝑥. When picking our 𝑢 here, we want to pick a term which would decrease in magnitude when differentiated. And when picking our d𝑣 by d𝑥, we want to pick a term which would decrease or stay the same when integrated. And so therefore, we will pick 𝑢 equals 𝑥 squared. And d𝑣 by d𝑥 is equal to 𝑒 to the 𝑥 plus two.

So now, we can find d𝑢 by d𝑥 by differentiating 𝑢 with respect to 𝑥. And so that’s the same as differentiating 𝑥 squared with respect to 𝑥. So this gives us two 𝑥. And then, in order to find 𝑣, we simply integrate d𝑣 by d𝑥. And so that’s the same as integrating 𝑒 to the 𝑥 plus two with respect to 𝑥. And since this is an exponential term, this is simply 𝑒 to the 𝑥 plus two. So now, we have our integral in the form of the integral of 𝑢 times d𝑣 by d𝑥 d𝑥 since 𝑥 squared is 𝑢 and 𝑒 to the 𝑥 plus two is d𝑣 by d𝑥.

Now, we’re ready to use integration by parts. Using the formula and remembering our constant term, multiplying the integral, we get that this is equal to two times by 𝑥 squared 𝑒 to the 𝑥 plus two minus the integral of two 𝑥 𝑒 to the 𝑥 plus two with respect to 𝑥. Now, we notice that we have another factor of two inside our integral, which can be moved and factored out of the integral. Next, we look at our integral again. And we notice that we can’t integrate this directly. So we will need to use integration by parts again.

So we can choose 𝑢 and d𝑣 by d𝑥 similarly to before, giving us 𝑢 equals 𝑥. And d𝑣 by d𝑥 is equal to 𝑥 plus two. Now, we can find d𝑢 by d𝑥 and 𝑣 by differentiating 𝑢 and integrating d𝑣 by d𝑥. This leaves us with d𝑢 by d𝑥 is equal to one. And 𝑣 is equal to 𝑒 to the 𝑥 plus two.

And now, we’re ready to use integration by parts again, remembering that our 𝑥 term is 𝑢 and our 𝑒 to the 𝑥 plus two term is d𝑣 by d𝑥. This leaves us with two times by 𝑥 squared 𝑒 to the 𝑥 plus two minus two times by 𝑥 𝑒 to the 𝑥 plus two minus the integral of 𝑒 to the 𝑥 plus two with respect to 𝑥. And now, we have the integral of 𝑒 to the 𝑥 plus two with respect to 𝑥, which we know how to integrate.

Our next step here is to perform this integration. Since we’re integrating an exponential term here, it is just equal to itself. And so this leaves us with two times by 𝑥 squared 𝑒 to the 𝑥 plus two minus two 𝑥 times by 𝑒 to the 𝑥 plus two minus 𝑒 to the 𝑥 plus two. And now, since this was an indefinite integral, we mustn’t forget to add on our constant of integration 𝑐. Finally, we notice that we have an 𝑒 to the 𝑥 plus two, multiplying each term. And so we can factor this out here. Now, all that remains to do is to expand this minus two times by 𝑥 minus one bracket.

So we obtain a final answer that the indefinite integral of two 𝑥 squared times 𝑒 to the 𝑥 plus two with respect to 𝑥 is equal to two times by 𝑒 to the 𝑥 plus two times by 𝑥 squared minus two 𝑥 plus two plus 𝑐.