# Solving an integral

1. Homework Statement
Find the integral of x(e^-x) evaluated at 1 to inf

2. Homework Equations
int by parts

3. The Attempt at a Solution
I tried setting u=e^-x and dv=x dx
So then du=-(e^-x)(-1)=e^-x
and v= (x^2)/2
When plugging in uv - integral (v du)
I get another product for the integral which (x^2)/2 * (e^-x)

How do I get out of this?

Related Calculus and Beyond Homework Help News on Phys.org
Try the other substitution. u=x and dv=e^-xdx.
A good rule of thumb for IBP is to try to choose u to be the part with the "simplest" derivative.
In your case, choosing u=e^-x has du/dx = -e^-x which is not really simpler, but has the same "complexity". But choosing u=x has du/dx=1, which is just a constant (can't get much simpler than that).

So would the integral (the dv) of e^-x just be e^-x?

almost. Whenever you do an integral (without the limits), you can check if it is right by taking the derivative of your answer. If you are right, then you should get back the function you were integrating.

Okay, so I just took the derivative of e^-x and I got back e^-x. How come e^-x wouldn't be the antiderivative then?

Don't forget to use the chain rule on the exponent (-x).
$${de^{-x}\over dx}=-e^{-x}$$.

In detail
$${de^{-x}\over dx}={de^u \over du}{du\over dx}$$

where $$u=-x$$.

Isn't it d/dx (e^-x) = -(e^-x)(-1) = e^-x?

rock.freak667
Homework Helper
Isn't it d/dx (e^-x) = -(e^-x)(-1) = e^-x?
$$\frac{d}{dx}(e^{f(x)})=f'(x)e^{f(x)}$$

in this case f(x)=-x and hence f'(x)=-1