PYQ Vault

HSC Maths · Indefinite Integration

Special Integrals of Quadratic Forms

Six standard results for 1 over x² ± a², a² − x² and their square roots, with completing the square to bring any quadratic to one of these forms.

Why this matters

38 questions, four of them from board papers: proofs of the integrals of 1/(a² − x²) (2018) and 1/√(x² + a²) (2019), an MCQ on 1/(9x² + 1) (2019), and 1/(25 − 9x²) to evaluate (2025). The textbook rows are Exercise 3.2(B) Part I, its solved examples and one Miscellaneous item.

Concept 1 of 3: The six standard integrals and their proofs

These six results are the end point of most longer questions in the chapter: after a substitution or completing the square, the integral lands on one of them. Learn them as three pairs, and learn how each is proved, because the board asks for the proofs as questions in their own right.

Definition

  • ∫dxx2+a2=1atan⁡−1xa+c\int \dfrac{dx}{x^2 + a^2} = \dfrac{1}{a}\tan^{-1}\dfrac{x}{a} + c
  • ∫dxx2−a2=12alog⁡∣x−ax+a∣+c\int \dfrac{dx}{x^2 - a^2} = \dfrac{1}{2a}\log\left|\dfrac{x - a}{x + a}\right| + c
  • ∫dxa2−x2=12alog⁡∣a+xa−x∣+c\int \dfrac{dx}{a^2 - x^2} = \dfrac{1}{2a}\log\left|\dfrac{a + x}{a - x}\right| + c
  • ∫dxa2−x2=sin⁡−1xa+c\int \dfrac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\dfrac{x}{a} + c
  • ∫dxx2+a2=log⁡∣x+x2+a2∣+c\int \dfrac{dx}{\sqrt{x^2 + a^2}} = \log\left|x + \sqrt{x^2 + a^2}\right| + c
  • ∫dxx2−a2=log⁡∣x+x2−a2∣+c\int \dfrac{dx}{\sqrt{x^2 - a^2}} = \log\left|x + \sqrt{x^2 - a^2}\right| + c
  • Proof of the third: 1a2−x2=1(a−x)(a+x)=12a[1a−x+1a+x]\dfrac{1}{a^2 - x^2} = \dfrac{1}{(a - x)(a + x)} = \dfrac{1}{2a}\left[\dfrac{1}{a - x} + \dfrac{1}{a + x}\right].
  • Integrate: 12a[−log⁡∣a−x∣+log⁡∣a+x∣]+c\dfrac{1}{2a}\left[-\log|a - x| + \log|a + x|\right] + c, then combine the logs.
  • Proof of the fifth: put x=atan⁡θx = a\tan\theta, so dx=asec⁡2θ dθdx = a\sec^2\theta\,d\theta and x2+a2=asec⁡θ\sqrt{x^2 + a^2} = a\sec\theta.
  • The integral becomes ∫sec⁡θ dθ=log⁡∣sec⁡θ+tan⁡θ∣+c1\int \sec\theta\,d\theta = \log|\sec\theta + \tan\theta| + c_1.
  • Put back sec⁡θ=x2+a2a\sec\theta = \dfrac{\sqrt{x^2 + a^2}}{a}, tan⁡θ=xa\tan\theta = \dfrac{x}{a}: log⁡∣x+x2+a2∣−log⁡a+c1\log\left|x + \sqrt{x^2 + a^2}\right| - \log a + c_1, and c=c1−log⁡ac = c_1 - \log a.
  • When x2x^2 has a coefficient, take it out first: 19x2+1=19⋅1x2+19\dfrac{1}{9x^2 + 1} = \dfrac{1}{9}\cdot\dfrac{1}{x^2 + \frac{1}{9}}.

Two of the six

∫dxa2−x2=12alog⁡∣a+xa−x∣+c,∫dxx2+a2=log⁡∣x+x2+a2∣+c\int \frac{dx}{a^2 - x^2} = \frac{1}{2a}\log\left|\frac{a+x}{a-x}\right| + c, \qquad \int \frac{dx}{\sqrt{x^2 + a^2}} = \log\left|x + \sqrt{x^2 + a^2}\right| + c

Worked example

Evaluate ∫116−9x2 dx\int \dfrac{1}{\sqrt{16 - 9x^2}}\,dx.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 11Easy

Example 1 · Indefinite Integration · Special Integrals of Quadratic Forms

Evaluate: ∫125−9x2dx\int\frac{1}{25 - 9x^{2}}dx.

Not taking out the coefficient of x²

∫dx4x2+1\int \dfrac{dx}{4x^2 + 1} is 12tan⁡−12x+c\dfrac{1}{2}\tan^{-1}2x + c, not tan⁡−12x+c\tan^{-1}2x + c. Take the 4 out, then a=12a = \dfrac{1}{2}.

Mixing up x² − a² and a² − x²

For x2−a2x^2 - a^2 the log holds x−ax+a\dfrac{x - a}{x + a}; for a2−x2a^2 - x^2 it holds a+xa−x\dfrac{a + x}{a - x}. Both have 12a\dfrac{1}{2a} in front.

A proof that hides the constant

In the proof by x=atan⁡θx = a\tan\theta, a term −log⁡a-\log a appears. Say that it is a constant and joins cc; leaving it unexplained makes the proof look wrong.

Concept 2 of 3: Completing the square

Any quadratic ax² + bx + c can be written as a times a square plus or minus a constant. Once it is in that shape, the shifted variable x + h plays the part of x in one of the six standard results.

Definition

  • Take the coefficient of x2x^2 out: ax2+bx+c=a(x2+bax+ca)ax^2 + bx + c = a\left(x^2 + \dfrac{b}{a}x + \dfrac{c}{a}\right) (take a\sqrt{a} out of a root).
  • If the coefficient of x2x^2 is negative, take −1-1 out first.
  • Add and subtract the square of half the coefficient of xx.
  • Write the quadratic as (x+h)2+k2(x + h)^2 + k^2, (x+h)2−k2(x + h)^2 - k^2 or k2−(x+h)2k^2 - (x + h)^2.
  • Use the standard result with x+hx + h in place of xx, and put back.

Completing the square

x2+px+q=(x+p2)2+(q−p24)x^2 + px + q = \left(x + \frac{p}{2}\right)^2 + \left(q - \frac{p^2}{4}\right)

Worked example

Evaluate ∫1x2+6x+13 dx\int \dfrac{1}{x^2 + 6x + 13}\,dx.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 3.2(B) I (xi)Moderate

Example 2 · Indefinite Integration · Special Integrals of Quadratic Forms

Evaluate the following :
∫11+x−x2 dx\int \frac{1}{1 + x - x^2} \, dx

Completing the square with the x² coefficient still inside

For 2x2+4x+102x^2 + 4x + 10, take the 2 out first: 2[(x+1)2+4]2[(x + 1)^2 + 4]. Halving the 4 without doing so gives the wrong shift.

A sign slip with −x²

3+2x−x2=4−(x−1)23 + 2x - x^2 = 4 - (x - 1)^2, a difference a2−u2a^2 - u^2. Writing it as (x−1)2−4(x - 1)^2 - 4 leads to the wrong standard result.

Concept 3 of 3: A substitution that leads to a special integral

Many integrands are special integrals in disguise: the quadratic is in eˣ, sin x or tan x instead of x, and its derivative sits in the numerator. Put t equal to that function and the integral becomes one of the six.

Definition

  • Look for a quadratic in f(x)f(x) with f′(x)f'(x) as a factor of the numerator; put t=f(x)t = f(x).
  • ex1−e2x\dfrac{e^x}{\sqrt{1 - e^{2x}}}: put t=ext = e^x. sec⁡2x…tan⁡x…\sec^2 x\sqrt{\dots\tan x\dots}: put t=tan⁡xt = \tan x. sin⁡2x(quadratic in sin⁡2x)\dfrac{\sin 2x}{(\text{quadratic in } \sin^2 x)}: put t=sin⁡2xt = \sin^2 x.
  • 1asin⁡x+bcos⁡x+c\dfrac{1}{a\sin x + b\cos x + c}: put t=tan⁡x2t = \tan\dfrac{x}{2}. 1asin⁡2x+bcos⁡2x+c\dfrac{1}{a\sin^2 x + b\cos^2 x + c}: divide by cos⁡2x\cos^2 x, put t=tan⁡xt = \tan x.
  • After the substitution, complete the square in tt if needed and use a standard result.

Reduce, then use a standard result

∫f′(x) dx[f(x)]2+a2=1atan⁡−1f(x)a+c\int \frac{f'(x)\,dx}{[f(x)]^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{f(x)}{a} + c

Worked example

Evaluate ∫cos⁡xsin⁡2x+4sin⁡x+5 dx\int \dfrac{\cos x}{\sin^2 x + 4\sin x + 5}\,dx.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · 3.2B SolvedEx.9Hard

Example 3 · Indefinite Integration · Special Integrals of Quadratic Forms

∫ex2e−x−ex dx\int \frac{e^{\frac{x}{2}}}{\sqrt{e^{-x} - e^{x}}}\, dx

Substituting without the derivative present

t=sin⁡xt = \sin x works only if cos⁡x dx\cos x\,dx is there to become dtdt. Check the numerator before you choose tt.

Stopping at t

tan⁡−1(t+2)\tan^{-1}(t + 2) is not the answer to a question in xx. Put t=sin⁡xt = \sin x back in the last line.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • The six standard integrals and their proofs

    Two of the six

    ∫dxa2−x2=12alog⁡∣a+xa−x∣+c,∫dxx2+a2=log⁡∣x+x2+a2∣+c\int \frac{dx}{a^2 - x^2} = \frac{1}{2a}\log\left|\frac{a+x}{a-x}\right| + c, \qquad \int \frac{dx}{\sqrt{x^2 + a^2}} = \log\left|x + \sqrt{x^2 + a^2}\right| + c
  • Completing the square

    Completing the square

    x2+px+q=(x+p2)2+(q−p24)x^2 + px + q = \left(x + \frac{p}{2}\right)^2 + \left(q - \frac{p^2}{4}\right)
  • A substitution that leads to a special integral

    Reduce, then use a standard result

    ∫f′(x) dx[f(x)]2+a2=1atan⁡−1f(x)a+c\int \frac{f'(x)\,dx}{[f(x)]^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{f(x)}{a} + c

Watch out for (7)

Test yourself on Indefinite Integration

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.