Efficient Integration by Parts: Solving \int x^2*cosx dx with Step-by-Step Guide

Aerosion
Messages
52
Reaction score
0

Homework Statement



\int x^2*cosx dx

Homework Equations


The Attempt at a Solution



Okay, so I started by making...
u=x^2
du=2x
dv=cos(x)
v=-sin(x)

Then I made the rudimentary equation:

\int x^2 * cos(x) dx = -x^2*sin(x) + \int 2x * sin(x) dx

Then I took the last integration problem (the one all the way on the right) and did integration by parts on that one again, to make:

u=2x
du=2
dv=sin(x)
v=-cos(x)

to make...

\int x^2 * cos(x) dx = -x^2 * sin(x) + 2x * sin(x) + \int 2 * cos(x) dx

I evaluated the last integration problem to be -2*sin(x), and got a final answer of sin(x)(-x^2+2x-2) (after factoring). Of course, my calculator says this is wrong, so where'd I mess up?

Thanks. (I'm getting better with Latex, btw)
 
Last edited:
Physics news on Phys.org
In your first step, if dv=cos(x)dx, then v=sin(x) (no minus sign).
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top