How do you find x2e1xdx using integration by parts?

x2e1xdx

The answer is supposedly x2e1x2xe1x2e1x+C, but I don't understand how it came to be.

Please explain. Thanks in advance!

1 Answer
Apr 21, 2018

x2e1xdx=x2e1x2xe1x2e1x+C

Explanation:

We'll make the following selections:

u=x2

Take its differential:

du=2xdx

dv=e1xdx

Take its integral:

v=e1xdx=e1x

Apply the integration by parts formula.

uvvdu=x2e1x2xe1xdx

The negatives cancel each other out.

=x2e1x+2xe1xdx

For 2xe1xdx we're going to have to apply integration by parts again, making the following selections:

u=2x

du=2dx

dv=e1xdx

v=e1x

uvvdu=2xe1x+2e1xdx

e1xdx=e1x, so we get

2xe1xdx=2xe1x2e1x

Thus, the entire integral becomes

x2e1xdx=x2e1x2xe1x2e1x+C, adding in the constant of integration.