integration by parts: int [ x cos^2(x) ] dx

Amandar

New member
Joined
Feb 7, 2008
Messages
10
So the question I'm working on is..

\(\displaystyle \int {x {cos^2}x dx\)

and I was using u = cos2x\displaystyle {cos^2}x so du = -2cosxsinxdx
and dv = xdx so v = x2/2\displaystyle {x^2}/2

so I've gotten...

(x2/2)cos2x(x2/2)(2cosxsinx)dx\displaystyle ({x^2}/2){cos^2}x - \int ({x^2}/2)(-2cosxsinx)dx
than taking the -2 out of the integral
(x2/2)cos2x+2(x2/2)(cosxsinx)dx\displaystyle ({x^2}/2){cos^2}x +2 \int ({x^2}/2)(cosxsinx)dx
and than i was thinking let u = sinx so du would be cosxdx, but the x2/2\displaystyle {x^2}/2 is there. ive done like a million of these the past few hours and now I'm started to get confused lol. Thanks for any help in advance
 
Re: integration by parts

use the identity ...

cos2x=1+cos(2x)2\displaystyle \cos^2{x} = \frac{1 + \cos(2x)}{2}

your integral becomes ...

xcos2xdx=x1+cos(2x)2=x2dx+12xcos(2x)dx\displaystyle \int x\cos^2{x} \, dx = \int x \frac{1 + \cos(2x)}{2} = \int \frac{x}{2} \, dx + \frac{1}{2}\int x \cos(2x) \, dx

now do parts with the last integral term ... let u=x\displaystyle u = x and dv=cos(2x)dx\displaystyle dv = \cos(2x) \, dx.
 
Top