Skip to main content
ExamExplained
NSW · Maths Extension 2
Maths Extension 2 study scene
§-Syllabus dot point
NSWMaths Extension 2Syllabus dot point

How do trigonometric and rationalising substitutions transform integrals containing square roots or awkward rational functions into standard forms?

Evaluate integrals using trigonometric substitution and the t = tan(x/2) substitution, including completing the square to reach standard inverse-trigonometric and logarithmic forms

A focused answer to the HSC Maths Extension 2 dot point on substitution integration. Trigonometric substitutions for square roots with a reference triangle, completing the square to standard forms, and the t = tan(x/2) substitution for rational trigonometric integrals, with verified worked examples.

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Trigonometric substitution for square roots
  3. Completing the square to reach standard forms
  4. Splitting a numerator to expose the derivative of the root
  5. The t = tan(x/2) substitution
  6. How exam questions ask about these substitutions

What this dot point is asking

NESA wants you to evaluate integrals that are not immediately standard by choosing a substitution that simplifies the integrand. Three related techniques are examined: trigonometric substitutions that clear a square root of the form a2x2\sqrt{a^2 - x^2} (and its relatives a2+x2\sqrt{a^2 + x^2} and x2a2\sqrt{x^2 - a^2}); completing the square to reduce a quadratic under a root or in a denominator to a standard inverse-trigonometric or logarithmic form; and the rationalising substitution t=tanx2t = \tan\tfrac{x}{2}, which turns a rational function of sinx\sin x and cosx\cos x into an algebraic rational function of tt.

Trigonometric substitution for square roots

An integrand containing a2x2\sqrt{a^2 - x^2} becomes a clean trigonometric expression under the substitution

x=asinθ,dx=acosθdθ.x = a\sin\theta, \qquad dx = a\cos\theta\,d\theta.

The reason this works is the Pythagorean identity: a2x2=a2(1sin2θ)=a2cos2θa^2 - x^2 = a^2(1 - \sin^2\theta) = a^2\cos^2\theta, so a2x2=acosθ\sqrt{a^2 - x^2} = a\cos\theta (taking θ[π2,π2]\theta \in [-\tfrac{\pi}{2}, \tfrac{\pi}{2}] so that cosine is non-negative and the square root stays positive). The substitution is engineered so that the awkward square root collapses to a single trig factor. After integrating in θ\theta, convert back to xx using either the inverse relation θ=arcsinxa\theta = \arcsin\tfrac{x}{a} or, more reliably for mixed expressions, a reference right-triangle.

The reference right-triangle for converting back

The cleanest way to turn a θ\theta-answer back into xx is to draw the substitution as a right-triangle. For x=asinθx = a\sin\theta, sine is opposite over hypotenuse, so put the opposite side equal to xx and the hypotenuse equal to aa. Pythagoras then gives the adjacent side as a2x2\sqrt{a^2 - x^2}, and every trig function of θ\theta can be read straight off the triangle.

Reference right triangle for the substitution x equals a sine thetaA right triangle with angle theta at the lower left. The side opposite theta has length x, the hypotenuse has length a, and the side adjacent to theta has length the square root of a squared minus x squared. From this triangle, sine theta equals x over a, cosine theta equals root a squared minus x squared over a, and tangent theta equals x over root a squared minus x squared. θ x √(a²−x²) a

Reading off the triangle, sinθ=xa\sin\theta = \dfrac{x}{a}, cosθ=a2x2a\cos\theta = \dfrac{\sqrt{a^2 - x^2}}{a}, and tanθ=xa2x2\tan\theta = \dfrac{x}{\sqrt{a^2 - x^2}}. So after integrating in θ\theta you can rewrite any leftover cosθ\cos\theta, sin2θ=2sinθcosθ\sin 2\theta = 2\sin\theta\cos\theta, and similar terms purely in xx without wrestling with nested inverse functions. For the companion form x=atanθx = a\tan\theta you draw the same kind of triangle with opposite xx, adjacent aa, and hypotenuse a2+x2\sqrt{a^2 + x^2}.

Completing the square to reach standard forms

Two standard integrals from the reference sheet are

dxa2+x2=1aarctanxa+C,dxa2x2=arcsinxa+C.\int \frac{dx}{a^2 + x^2} = \frac{1}{a}\arctan\frac{x}{a} + C, \qquad \int \frac{dx}{\sqrt{a^2 - x^2}} = \arcsin\frac{x}{a} + C.

When the quadratic in the denominator (or under the root) is not already in this shape, complete the square first to expose it. For instance x2+4x+13=(x+2)2+9=(x+2)2+32x^2 + 4x + 13 = (x + 2)^2 + 9 = (x + 2)^2 + 3^2, so

dxx2+4x+13=dx(x+2)2+32=13arctanx+23+C.\int \frac{dx}{x^2 + 4x + 13} = \int \frac{dx}{(x+2)^2 + 3^2} = \frac{1}{3}\arctan\frac{x + 2}{3} + C.

The substitution u=x+2u = x + 2 makes the standard form explicit, but with practice you can read it straight off the completed square. The same idea handles a quadratic under a root, turning it into the arcsin\arcsin form, as in the 2023 HSC question above where 54xx2=9(x+2)25 - 4x - x^2 = 9 - (x + 2)^2.

Splitting a numerator to expose the derivative of the root

A frequent exam pattern is linearquadraticdx\displaystyle\int \frac{\text{linear}}{\sqrt{\text{quadratic}}}\,dx. The trick is to split the linear numerator into a piece proportional to the derivative of the quadratic plus a constant. The derivative piece integrates directly to a square root (since ddxq=q2q\tfrac{d}{dx}\sqrt{q} = \tfrac{q'}{2\sqrt{q}}), and the constant piece is finished by completing the square to an arcsin\arcsin. This is exactly the structure of the 2023 HSC question, and recognising it saves you from attempting a full trig substitution where a clever split is faster.

The t = tan(x/2) substitution

For an integral that is a rational function of sinx\sin x and cosx\cos x, the rationalising substitution t=tanx2t = \tan\tfrac{x}{2} (the Weierstrass, or t-formula, substitution) converts everything to a rational function of tt, which can then be finished with partial fractions or a standard form. The identities are

sinx=2t1+t2,cosx=1t21+t2,dx=21+t2dt.\sin x = \frac{2t}{1 + t^2}, \qquad \cos x = \frac{1 - t^2}{1 + t^2}, \qquad dx = \frac{2}{1 + t^2}\,dt.

After substituting, the integrand becomes algebraic. Convert back at the end using t=tanx2t = \tan\tfrac{x}{2}. For a definite integral, change the limits to tt-values instead (for example x=π2x = \tfrac{\pi}{2} gives t=tanπ4=1t = \tan\tfrac{\pi}{4} = 1), which avoids back-substitution entirely.

How exam questions ask about these substitutions

  • "Evaluate a2x2dx\int \sqrt{a^2 - x^2}\,dx" or an area under a semicircle. Use x=asinθx = a\sin\theta, reduce to cos2θdθ\int \cos^2\theta\,d\theta, and apply the double-angle identity.
  • "Find dxa2x2\int \dfrac{dx}{\sqrt{a^2 - x^2}} / dxa2+x2\int \dfrac{dx}{a^2 + x^2}" off the reference sheet. Quote the standard arcsin\arcsin or arctan\arctan form directly.
  • A quadratic under a root or in a denominator that is not standard. Complete the square first, then read off the arcsin\arcsin or arctan\arctan.
  • "Find linearquadraticdx\int \dfrac{\text{linear}}{\sqrt{\text{quadratic}}}\,dx." Split the numerator into (derivative of the quadratic) plus a constant; one part gives a square root, the other an arcsin\arcsin.
  • "Using the substitution t=tanx2t = \tan\tfrac{x}{2}, find ..." (a rational function of sinx\sin x, cosx\cos x). Apply the three t-identities, simplify to an algebraic integral, then finish and back-substitute.
  • "Hence find the exact value ..." (definite). Change limits to the new variable, integrate, evaluate; "exact" means surds, π\pi, ln\ln stay, no decimals.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2024 HSC3 marksEvaluate 0π/21sinθ+1dθ\displaystyle\int_0^{\pi/2} \frac{1}{\sin\theta + 1} \, d\theta.
Show worked answer →

Use the substitution t=tanθ2t = \tan\frac{\theta}{2}, so sinθ=2t1+t2\sin\theta = \frac{2t}{1 + t^2} and dθ=21+t2dtd\theta = \frac{2}{1 + t^2}\,dt. When θ=0\theta = 0, t=0t = 0; when θ=π2\theta = \frac{\pi}{2}, t=tanπ4=1t = \tan\frac{\pi}{4} = 1.

Denominator: sinθ+1=2t1+t2+1=2t+1+t21+t2=(t+1)21+t2\sin\theta + 1 = \frac{2t}{1 + t^2} + 1 = \frac{2t + 1 + t^2}{1 + t^2} = \frac{(t + 1)^2}{1 + t^2}.

So the integrand times dθd\theta becomes 1+t2(t+1)221+t2dt=2(t+1)2dt\frac{1 + t^2}{(t + 1)^2} \cdot \frac{2}{1 + t^2}\,dt = \frac{2}{(t + 1)^2}\,dt.

Therefore the integral =012(t+1)2dt=[2t+1]01=1(2)=1= \int_0^1 2(t + 1)^{-2}\,dt = \left[\frac{-2}{t + 1}\right]_0^1 = -1 - (-2) = 1.

Mark notes: 1 mark for the t=tanθ2t = \tan\frac{\theta}{2} substitution and new limits, 1 mark for simplifying to 2(t+1)2\frac{2}{(t + 1)^2}, 1 mark for evaluating the definite integral to 11.

2023 HSC3 marksFind 1x54xx2dx\displaystyle\int \frac{1 - x}{\sqrt{5 - 4x - x^2}} \, dx.
Show worked answer →

Split the numerator so part of it matches the derivative of the expression under the root. Note ddx(54xx2)=42x=2(2x)\frac{d}{dx}(5 - 4x - x^2) = -4 - 2x = 2(-2 - x). Write

1x=(2x)+31 - x = (-2 - x) + 3.

So 1x54xx2dx=2x54xx2dx+354xx2dx\int \frac{1 - x}{\sqrt{5 - 4x - x^2}}\,dx = \int \frac{-2 - x}{\sqrt{5 - 4x - x^2}}\,dx + \int \frac{3}{\sqrt{5 - 4x - x^2}}\,dx.

First integral: since ddx54xx2=2x54xx2\frac{d}{dx}\sqrt{5 - 4x - x^2} = \frac{-2 - x}{\sqrt{5 - 4x - x^2}}, this is exactly 54xx2\sqrt{5 - 4x - x^2}.

Second integral: complete the square, 54xx2=9(x+2)25 - 4x - x^2 = 9 - (x + 2)^2. Then 39(x+2)2dx=3arcsinx+23\int \frac{3}{\sqrt{9 - (x + 2)^2}}\,dx = 3\arcsin\frac{x + 2}{3}.

Combining: =54xx2+3arcsinx+23+C\int = \sqrt{5 - 4x - x^2} + 3\arcsin\frac{x + 2}{3} + C.

Mark notes: 1 mark for splitting 1x1 - x to expose the derivative 2x-2 - x, 1 mark for the square-root term, 1 mark for completing the square and the 3arcsinx+233\arcsin\frac{x + 2}{3} term.

2022 HSC3 marksUsing the substitution t=tanx2t = \tan\frac{x}{2}, find 11+cosxsinxdx\displaystyle\int \frac{1}{1 + \cos x - \sin x} \, dx.
Show worked answer →

With t=tanx2t = \tan\frac{x}{2}: cosx=1t21+t2\cos x = \frac{1 - t^2}{1 + t^2}, sinx=2t1+t2\sin x = \frac{2t}{1 + t^2}, and dx=21+t2dtdx = \frac{2}{1 + t^2}\,dt.

Rewrite the denominator over the common denominator 1+t21 + t^2:
1+cosxsinx=(1+t2)+(1t2)2t1+t2=22t1+t2=2(1t)1+t21 + \cos x - \sin x = \frac{(1 + t^2) + (1 - t^2) - 2t}{1 + t^2} = \frac{2 - 2t}{1 + t^2} = \frac{2(1 - t)}{1 + t^2}.

So the integral becomes 2/(1+t2)2(1t)/(1+t2)dt=11tdt=ln1t+C\int \frac{2/(1 + t^2)}{2(1 - t)/(1 + t^2)}\,dt = \int \frac{1}{1 - t}\,dt = -\ln|1 - t| + C.

Substituting back t=tanx2t = \tan\frac{x}{2}: =ln1tanx2+C\int = -\ln\left|1 - \tan\frac{x}{2}\right| + C.

Mark notes: 1 mark for the standard t=tanx2t = \tan\frac{x}{2} substitutions, 1 mark for simplifying the denominator to 2(1t)1+t2\frac{2(1 - t)}{1 + t^2}, 1 mark for integrating to ln1tanx2+C-\ln\left|1 - \tan\frac{x}{2}\right| + C.

ExamExplained