Question:
Use integration by parts to find int((x^n)(e^x)dx)?
Harrison C
2009-05-15 11:42:44 UTC
N is any real number

here's where I get stuck

u=x^n and dv = e^x(dx)
du = nx^n-1dx and v=e^x

int((x^n)(e^x)dx) = (x^n)(e^x) - int((e^x)(nx^n-1))
again
u = e^x and dv = nx^n-1dx
du = e^xdx and v=x^n
so int((e^x)(nx^n-1) = (e^x)(x^n) - int((x^n)(e^x)(dx)
int((x^n)(e^x)dx) = (x^n)(e^x) - (e^x)(x^n) + int((x^n)(e^x)(dx)
so 0 = 0????

help?
Three answers:
2009-05-15 11:48:41 UTC
The second time you use integration by parts you must use

u = n*x^(n-1) and dv = e^x



You will have to use integration by parts n times, each time with dv = e^x.

This steadily reduces the power of x down to zero.



Of course, you can't do it an unspecified number of times, so do three or four and look for a pattern so that you can express the answer as a summation.
2009-05-15 11:50:18 UTC
∫ (x^n)(e^x) dx



Integration by parts:



∫ uv' dx = uv - ∫ u'v dx



Let; u = x^n , v' = e^x



Then; u' = nx^(n-1) , v = e^x



Giving; ∫ (x^n)(e^x) dx = (x^n)(e^x) - ∫ (nx^(n-1))(e^x) dx



Now we see that we have an additional integral to deal with:



When dealt with we get the following given that you call assign u to nx^(n-1) and v' to e^x (I think you did the opposite, assigning u to e^x and v' to nx^(n-1). This resulted in you ending up with an expression identical to your inital expression, due to the - sign they canceled and you got 0:



Well, back to the proble... as I was saying... when dealing with this last integral properly we get the following ;)



∫ (x^n)(e^x) dx = (x^n)(e^x) - (nx^(n-1))(e^x) + ∫ (n(n-1)x^(n-1))(e^x) dx



So we get another integral... yaay... hmm...



Well, upon thinking, we realize that we will end up getting the below expression, as we will repeatedly be left with yet another integral. We will solve these integrals until we are left with the integral of k(e^x) dx (k = konstant = n!). All the working is shown below:



∫ (x^n)(e^x) dx = (x^n)(e^x) - (nx^(n-1))(e^x) + .... - n(n-1)*...*(n-(n-3))(n-(n-2)) + ∫ [n(n-1)*...*(n-(n-2))(n-(n-1))]x^(n-n)(e^x) dx



Note that * indicates multiplication, and that the dots (....) indicates the rest of the terms. They follow the same pattern as the before terms (the exponent of x decreases and the number in from of x increases).



The last integral in our expression so far...



∫ k(e^x) dx , where k = n(n-1)*...*(n-(n-2))(n-(n-1)) = n!



... becomes...



∫ n!(e^x) dx = n!(e^x) + C



So our final expression is gonna be:



∫ (x^n)(e^x) dx = (x^n)(e^x) - (nx^(n-1))(e^x) + .... - n(n-1)*...*(n-(n-3))(n-(n-2)) + n!(e^x) + C



Note that n! is the same as n(factorial) which is:



n(n-1)(n-2) * ... * (n-(n-2)) * (n-(n-1))



If n = 6, then n! = 6(5)(4)(3)(2)(1) = 720



ALSO NOTE THAT THE LAST TERMS OF OUR EXPRESSION ARE EITHER GOING TO BE ADDED OR SUBTRACTED DEPENDING ON WHETHER N IS EVEN OR ODD!



So we should write it using ∓ signs:



∫ (x^n)(e^x) dx = (x^n)(e^x) - (nx^(n-1))(e^x) + .... ∓ (3 n(n-1)*...*(n-(n-3))(n-(n-2)) ± n!(e^x) + C



Hope you were able to hang in there! :P



Writing such expressions on the pc is difficult and it becomes hard to read :(



I liked the problem... however, I lack the skills and knolwedge needed to solve this one in a simpler way :P



Hope my way was cool and reasonable enough though ;)
Gregory P
2009-05-15 11:58:23 UTC
by switching the u and v functions at u/v sub step #2 you undo what you did in u/v sub step #1, and discover the ancient truth that 0 does in fact equal 0. it happens to everyone at somepoint that they find this truth, but it doesn't seem satisfying (especially since hw is due in 10 minutes).



anyway, here's my suggestion. Switch your u and dv in step 2. This will result in the integral to be computed (all the way on the right in each successive int by parts step) to be getting simpler



so

v=nx^n-1 and du = e^x(dx)

then

dv=n*n-1x^n-2 and u=e^x



thus



int((x^n)(e^x)dx) = (x^n)(e^x) - int((e^x)(nx^n-1))

=(x^n)(e^x) -nx^(n-1)* e^x +int(e^x * n*n-1*x^n-2)



this will keep going until n-k is zero... and x^n-k=x^0=1 and the leftmost integral becomes int(n! * e^x)=n!e^x+C .... btw that's n factorial... for n!



summing it all up we have



int((x^n)(e^x)dx)=

(x^n)(e^x) -nx^(n-1) * e^x + n(n-1)x^(n-2)*e^x -n(n-1)(n-2)x^(n-3)*e^X + ..... +

(-1)^(n-1)*n(n-1)(n-2)...(4)(3)(2)x^n*e^x-(n-1) + n!e^x +C


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...