Key idea: The square root inside tan−1 is removed by the substitution x=t2. The new integrand 2ttan−1t is a product, so we use integration by parts, ∫udv=uv−∫vdu, taking u=tan−1t because its derivative is a simple algebraic fraction.
Step 1 — Substitute to remove the square root.
Put x=t, so x=t2 and dx=2tdt.
I=∫tan−1xdx
I=∫2ttan−1tdt
Step 2 — Set up integration by parts.
We take u=tan−1t and dv=2tdt, so du=1+t2dt, and v=t2.
I=t2tan−1t−∫1+t2t2dt
Step 3 — Simplify the remaining fraction.
The degree of the numerator equals the degree of the denominator, so we divide first. Adding and subtracting 1 in the numerator does this.
1+t2t2=1+t2(1+t2)−1
1+t2t2=1−1+t21
Step 4 — Integrate the remaining part.
The integral of 1 is t, and the integral of 1+t21 is tan−1t.
∫1+t2t2dt=t−tan−1t
Step 5 — Put the pieces together.
We subtract this result from the first term of Step 2 and collect the tan−1t terms.