How Do You Solve Integrals Using Integration By Parts?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
Slimsta
Messages
189
Reaction score
0

Homework Statement


1.[tex]$\int x^ne^xdx$[/tex]
2.[tex]$\int \sin ^nxdx$[/tex]


Homework Equations


[tex]$ \displaystyle \Large \int fg dx = fg - \int gf' dx$[/tex]


The Attempt at a Solution


1. f=xn
g'=ex
g=ex
f'=nxn-1

then just plug it in the formula? i tried but i don't get the right answer..

2. i have no idea how to even start..
the antiderivative of sinnx is [(sinx)n+1]/(n+1) ?
 
Physics news on Phys.org
No, the anti-derivative of sinn(x) is NOT sinn+1(x)/(n+1)!

Integrating [itex]\int x^n e^x dx[/itex] is very easy- but tedious. Let u= xn, dv= ex dx. Then du= n xn-1 dx and v= ex.

[tex]\int x^n e^x dx= x^ne^x- n\int x^{n-1}e^x dx[/tex]
That is the same as you started with but the exponent on x is one less. Repeat n-1 more times until the exponent is 0!

As for (2), how you do that depends on whether n is even or odd. If n is odd, it is easy. If n= 2m+1, then the integral is
[tex]\int sin^{2m+1}(x) dx= \int (sin^2(x))^m sin(x)dx= \int (1- cos^2(x))^msin(x) dx[/tex]
and letting u= cos(x) reduces it to
[tex]-\int (1- u^2)^m du[/tex]

If n is even, use the trig identity [itex]sin^2(x)= (1/2)(1- cos(2x))[/itex] repeatedly until you have reduced to power 1.