Integration by Parts of Inverse Tangent

Click For Summary
SUMMARY

The forum discussion centers on evaluating the indefinite integral of \(\int x \arctan{x} \, dx\) using integration by parts. The original poster (OP) attempted the integration by letting \(u = x\) and \(dv = \arctan{x}\), leading to an incorrect solution. A more effective approach involves setting \(u = \arctan{x}\) and \(dv = x \, dx\), which simplifies the integration process. The correct final result is \(\int x \arctan{x} \, dx = \frac{1}{2} (x^2 + 1) \arctan{x} - \frac{1}{2} x + C\).

PREREQUISITES
  • Understanding of integration by parts, specifically the formula \(\int u \, dv = uv - \int v \, du\).
  • Familiarity with the inverse tangent function, \(\arctan{x}\).
  • Basic knowledge of logarithmic functions and their properties.
  • Ability to perform algebraic manipulation and substitution in integrals.
NEXT STEPS
  • Study the integration by parts technique in greater depth, focusing on various applications.
  • Learn how to evaluate integrals involving inverse trigonometric functions, particularly \(\arctan{x}\).
  • Explore common mistakes in integration and how to avoid them, particularly in substitution methods.
  • Practice solving more complex integrals that combine polynomial and logarithmic functions.
USEFUL FOR

Students studying calculus, particularly those focusing on integration techniques, as well as educators seeking to clarify common pitfalls in integration by parts.

James98765
Messages
30
Reaction score
0

Homework Statement


I must evaluate the indefinite integral:
\int x \arctan{x} dx


Homework Equations


I am using the following format to perform the integration:
\int u dv = uv - \int v du

The Attempt at a Solution


I have tried working the problem substituting x in for u and arctan in for dv and here is my work:

Let \ u=x; \ du = dx
Let \ v = \arctan{x} - \frac{1}{2} \ln{(1 + x^2)}; \ dv = \arctan{x}
\int x \arctan{x} dx = x (x \arctan{x} - \frac{1}{2} \ln{(1 + x^2)}) - \int (x \arctan{x} - \frac{1}{2} \ln{(1 + x^2)}) dx
2 \int \arctan{x} dx = x (x \arctan{x} - \frac{1}{2} \ln{(1 + x^2)}) + \int \frac{1}{2} \ln{(1 + x^2)} dx

I then apply another integration by parts technique:

Let \ u = \frac{1}{2} \ln{(1 + x^2)}; \ Let \ du = \frac{x}{1 + x^2} dx
Let \ v = x; \ Let \ dv = dx
\int \frac{1}{2} \ln{(1 + x^2)} dx = \frac{1}{2} x \ln{(1 + x^2)} - \int \frac{x}{1 + x^2} dx
\int \frac{1}{2} \ln{(1 + x^2)} dx = \frac{1}{2} x \ln{(1 + x^2)} - \frac{1}{2} \ln{(1 + x^2)}

I then substitute the second integration into the first and obtain:

\int x \arctan{x} dx = x (x \arctan{x} - \frac{1}{2} \ln{(1 + x^2)}) - \frac{1}{2} x \ln{(1 + x^2)} - \frac{1}{2} \ln{(1 + x^2)}
2 \int x \arctan{x} dx = x^2 \arctan{x} - \frac{1}{2} \ln{(1 + x^2)}
\int x \arctan{x} dx = \frac{1}{2} x^2 \arctan{x} - \frac{1}{4} \ln{(1 + x^2)} + C

The answer in the back of the book is:

\int x \arctan{x} dx = \frac{1}{2} (x^2 + 1) \arctan{x} - \frac{1}{2} x + C

I just can't seem to find out what I am doing wrong with my integration. I graphed both the book's answer and my answer on a graphing calculator and found my answer to be wrong by a little but not by much. Could somebody show me where my technique is flawed? I don't see how the book's answer doesn't contain any natural logarthmic functions. Thank you!
-James
 
Last edited:
Physics news on Phys.org
Ok, obviously you messed up the things.

First let u=arctan(x), and dv=x

What are du and v?

What do you think you should do next?

Regards.
 
Last edited:
Thanks for your help. Just after you responded I found my mistake. I have tried using the substitution you recommended before but I kept getting the wrong answer because of a small math error. Now I have found it. Thanks!
-James
 
Ok, obviously you messed up the things.

First let u=arctan(x), and v=x

What are du and dv?

What do you think you should do next?

Regards.

The mistake is not so obvious in fact although cumbersome his first partial integration was correct. Also using your suggestion you would get \int \arctan x dx yet the integral he needs to solve is \int x\arctan x dx. The best way to do this would be u=arctan(x) and v=1/2 x^2.That said the OPs method works as well it is just more difficult. This is where you made the error:
\int \frac{1}{2} \ln{(1 + x^2)} dx = \frac{1}{2} x \ln{(1 + x^2)} - \int \frac{x}{1 + x^2} dx

It should be:
<br /> \frac{1}{2} x \ln{(1 + x^2)} - \int \frac{x^2}{1 + x^2} dx
 
Last edited:
Thank you. That helps a lot. I have been looking at that for a long time and just couldn't find the mistake.
 
Cyosis said:
The mistake is not so obvious in fact although cumbersome his first partial integration was correct. Also using your suggestion you would get \int \arctan x dx yet the integral he needs to solve is \int x\arctan x dx. The best way to do this would be u=arctan(x) and v=1/2 x^2.

Yep, sorry I made typo. I meant u=arctan(x) and dv=x, so that v=x^2/2

Regards.

James98765 said:
Thank you. That helps a lot. I have been looking at that for a long time and just couldn't find the mistake.

You're welcome! :smile:
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
7K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K