# Basic Integration by parts

1. Aug 28, 2011

### PCSL

1. The problem statement, all variables and given/known data
problem: $\int$2arctanx dx
2$\int$arctan dx

u=arctanx
du=1/(1+x2)
v=x
dv=dx

xarctanx-$\int$x/(1+x2)

integrate by parts a second time...

u=x
du=dx
v=arctanx
dv=1/1+x2

xarctanx-$\int$arctanx

My final answer I get it 2xarctanx-2xarctanx+2/x2+1 which is obviously wrong. Thanks.

2. Aug 28, 2011

### rock.freak667

Don't go integration by parts here, just do a substitution of u=1+x2

3. Aug 28, 2011

### PCSL

Thanks, I got the answer. This may seem like a dumb question, but how come integration by parts didn't work for this part?

4. Aug 28, 2011

### HallsofIvy

Staff Emeritus
My final answer I get it 2xarctanx-2xarctanx+2/x2+1 which is obviously wrong. Thanks.[/QUOTE]
Because [itex]2/(x^ 1) is the derivative of arctan(x), not the integral.

Your choice of "u" and "dv" are just the results you got from the first integration by parts so you are just reversing the first integration. What you would correctly get is
$$x arctan(x)- x arctan(x)+ \int arctan(x)dx= \int arctan(x)dx$$
exactly what you started with.