Question
Evaluate:
∫x2+a2dx
State the result and derive it from first principles using a trigonometric substitution.
Solution — Step by Step
The denominator is a sum of squares — no factoring will help here. The trick is to see that x2+a2 can be rewritten as a2(a2x2+1), which hints at a substitution involving tanθ.
Let x=atanθ. Then:
dx=asec2θdθ
Substitute into the denominator:
x2+a2=a2tan2θ+a2=a2(tan2θ+1)=a2sec2θ
The integral becomes:
∫a2sec2θasec2θdθ=∫a1dθ=aθ+C
The sec2θ terms cancel cleanly — that’s exactly why we chose x=atanθ.
Since x=atanθ, we have tanθ=ax, so θ=tan−1(ax).
∫x2+a2dx=a1tan−1(ax)+C
Final Answer:
∫x2+a2dx=a1tan−1(ax)+C
Why This Works
The substitution x=atanθ is not magic — it’s the natural choice because tan2θ+1=sec2θ is the only Pythagorean identity that converts a sum of squares into a perfect square in the denominator. If we’d tried x=asinθ, we’d get a2(1−sin2θ)=a2cos2θ, which handles a2−x2, not x2+a2.
The a1 factor in the answer comes from factoring a2 out of the denominator. Students who forget this factor lose a mark every single time — more on that below.
This result is a standard formula listed in NCERT Part 2, and in JEE Main it appears in two forms: the pure integral and as a step inside a larger problem (partial fractions, completing the square). Memorise the formula, but derive it once so you understand where it comes from.
Alternative Method
We can also verify this by differentiating the result directly — a useful check in exams.
Let F(x)=a1tan−1(ax). Differentiate using the chain rule:
F′(x)=a1⋅1+(ax)21⋅a1=a21⋅a2+x2a2=x2+a21
This confirms the formula without going through the substitution — and it’s how you can verify any standard integral in 30 seconds.
In JEE Main 2023, this integral appeared inside a partial fractions problem where students had to decompose (x+1)(x2+4)1. After splitting, one piece was x2+41, directly matching this formula with a=2. Recognising standard forms under pressure is what separates 160+ scorers.
Common Mistake
The most common error: writing the answer as tan−1(ax)+C, forgetting the a1 coefficient entirely.
This happens because students memorise ∫1+x2dx=tan−1x+C (where a=1), and then apply it without adjusting for general a. If the denominator is x2+9, the answer is 31tan−1(3x)+C, not tan−1(3x)+C.
Quick check: differentiate your answer. If you get back x2+a21, you’re right.