Video lessonsIB Maths AA

Integral of arctan x by parts, and the +1 trick for x arctan x

∫arctan x dx = x·arctan x − ½ln(1+x²) + C; the value from 0 to 1 is π/4 − ½ln2 ≈ 0.439; ∫x·arctan x dx = ½(x²+1)arctan x − x/2 + C.

View on YouTube

The question

(a) Use integration by parts to find ∫arctan⁡x dx\int \arctan x \, dx. (4 marks)

(b) Hence find the exact value of ∫01arctan⁡x dx\int_{0}^{1} \arctan x \, dx. (2 marks)

(c) Find ∫xarctan⁡x dx\int x \arctan x \, dx. (3 marks)

The solution

  1. 01Integration by parts replaces one integral with another, so uu should be the term that gets simpler when differentiated; a lone function such as arctan⁡x\arctan x can be written as arctan⁡x⋅1\arctan x \cdot 1.
  2. 02For part (a), take u=arctan⁡xu = \arctan x, so dudx=11+x2\frac{du}{dx} = \frac{1}{1+x^{2}}, and dvdx=1\frac{dv}{dx} = 1, so v=xv = x.
  3. 03Substituting into ∫u dvdx dx=uv−∫v dudx dx\int u\,\frac{dv}{dx}\,dx = uv - \int v\,\frac{du}{dx}\,dx gives ∫arctan⁡x dx=xarctan⁡x−∫x1+x2 dx\int \arctan x\,dx = x\arctan x - \int \frac{x}{1+x^{2}}\,dx.
  4. 04The remaining integral has a numerator equal to half the derivative of the denominator, so it integrates to 12ln⁡(1+x2)\tfrac{1}{2}\ln(1+x^{2}) with no modulus needed, since 1+x21+x^{2} is always positive, giving ∫arctan⁡x dx=xarctan⁡x−12ln⁡(1+x2)+C\int \arctan x\,dx = x\arctan x - \tfrac{1}{2}\ln(1+x^{2}) + C. Differentiating checks this: the product rule gives arctan⁡x+x1+x2\arctan x + \frac{x}{1+x^{2}}, and the log term's derivative removes that second piece, leaving arctan⁡x\arctan x.
  5. 05For part (b), apply the result from part (a) between 0 and 1: at x=1x=1, arctan⁡1=π4\arctan 1 = \frac{\pi}{4} and the log term is 12ln⁡2\tfrac{1}{2}\ln 2; at x=0x=0 every term is zero, giving ∫01arctan⁡x dx=π4−12ln⁡2≈0.439\int_{0}^{1}\arctan x\,dx = \frac{\pi}{4} - \frac{1}{2}\ln 2 \approx 0.439, which is sensible since arctan⁡x\arctan x rises from 0 to about 0.785 on that interval.
  6. 06For part (c), the usual choice keeps u=arctan⁡xu = \arctan x and takes dvdx=x\frac{dv}{dx} = x, so v=x22v = \frac{x^{2}}{2}; this gives ∫xarctan⁡x dx=x22arctan⁡x−12∫x21+x2 dx\int x\arctan x\,dx = \frac{x^{2}}{2}\arctan x - \frac{1}{2}\int \frac{x^{2}}{1+x^{2}}\,dx, and since x21+x2=1−11+x2\frac{x^{2}}{1+x^{2}} = 1 - \frac{1}{1+x^{2}} is top-heavy, dividing first and integrating gives 12[(x2+1)arctan⁡x−x]+C\tfrac{1}{2}\left[(x^{2}+1)\arctan x - x\right] + C.
  7. 07Since vv can be any antiderivative, choosing v=x2+12v = \frac{x^{2}+1}{2} instead (still dvdx=x\frac{dv}{dx}=x) makes v dudx=x2+12⋅11+x2=12v\,\frac{du}{dx} = \frac{x^{2}+1}{2}\cdot\frac{1}{1+x^{2}} = \frac{1}{2}, so the brackets cancel and ∫xarctan⁡x dx=x2+12arctan⁡x−x2+C\int x\arctan x\,dx = \frac{x^{2}+1}{2}\arctan x - \frac{x}{2} + C follows in half the lines, with no division or collecting of terms.
  8. 08Use the usual vv when dudx\frac{du}{dx} is simple, such as a power or a constant; look for the shortcut when dudx\frac{du}{dx} is a fraction, since a well-chosen constant in vv can cancel its denominator.

Answer
∫arctan x dx = x·arctan x − ½ln(1+x²) + C; the value from 0 to 1 is π/4 − ½ln2 ≈ 0.439; ∫x·arctan x dx = ½(x²+1)arctan x − x/2 + C.

← IB worked solutions, on video

Find out what is costing the marks.

One to one, online, on Google Meet.

Book a first session