Skip to main content

Trigonometric and rationalising substitutions in HSC Mathematics Extension 2: substitutions for square-root integrands, completing the square, and the t = tan(x/2) substitution

Syllabus dot point

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

HSCMaths Extension 2Further Integration (MEX-C1)12 min read

Quick answer

For a2−x2\sqrt{a^2 - x^2} use x=asin⁡θx = a\sin\theta, giving a2−x2=acos⁡θ\sqrt{a^2 - x^2} = a\cos\theta and dx=acos⁡θ dθdx = a\cos\theta\,d\theta; for a2+x2a^2 + x^2 use x=atan⁡θx = a\tan\theta. Completing the square turns ∫dxx2+bx+c\int \frac{dx}{x^2 + bx + c} into a standard arctan⁡\arctan or log form. The substitution t=tan⁡x2t = \tan\tfrac{x}{2} gives sin⁡x=2t1+t2\sin x = \frac{2t}{1+t^2}, cos⁡x=1−t21+t2\cos x = \frac{1 - t^2}{1+t^2}, dx=21+t2 dtdx = \frac{2}{1+t^2}\,dt, turning trigonometric rational integrals into algebraic ones.

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
  7. Exam-style questions

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 a2−x2\sqrt{a^2 - x^2} (and its relatives a2+x2\sqrt{a^2 + x^2} and x2−a2\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=tan⁡x2t = \tan\tfrac{x}{2}, which turns a rational function of sin⁡x\sin x and cos⁡x\cos x into an algebraic rational function of tt.

Trigonometric substitution for square roots

An integrand containing a2−x2\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: a2−x2=a2(1−sin⁡2θ)=a2cos⁡2θa^2 - x^2 = a^2(1 - \sin^2\theta) = a^2\cos^2\theta, so a2−x2=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 θ=arcsin⁡xa\theta = \arcsin\tfrac{x}{a} or, more reliably for mixed expressions, a reference right-triangle.

Key fact

Match the square root to the substitution: a2−x2\sqrt{a^2 - x^2} wants x=asin⁡θx = a\sin\theta (then a2−x2=acos⁡θ\sqrt{a^2 - x^2} = a\cos\theta); a2+x2\sqrt{a^2 + x^2} wants x=atan⁡θx = a\tan\theta (then a2+x2=asec⁡θ\sqrt{a^2 + x^2} = a\sec\theta). In every case dxdx is replaced too, and the chosen range of θ\theta keeps the square root positive. Convert the answer back to xx with a reference right-triangle. Completing the square first reduces any quadratic under a root, or in a denominator, to one of these standard forms.

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 a2−x2\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⁡θ=a2−x2a\cos\theta = \dfrac{\sqrt{a^2 - x^2}}{a}, and tan⁡θ=xa2−x2\tan\theta = \dfrac{x}{\sqrt{a^2 - x^2}}. So after integrating in θ\theta you can rewrite any leftover cos⁡θ\cos\theta, sin⁡2θ=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=1aarctan⁡xa+C,∫dxa2−x2=arcsin⁡xa+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=13arctan⁡x+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 5−4x−x2=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 ∫linearquadratic dx\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=q′2q\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 sin⁡x\sin x and cos⁡x\cos x, the rationalising substitution t=tan⁡x2t = \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

sin⁡x=2t1+t2,cos⁡x=1−t21+t2,dx=21+t2 dt.\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=tan⁡x2t = \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 ∫a2−x2 dx\int \sqrt{a^2 - x^2}\,dx" or an area under a semicircle. Use x=asin⁡θx = a\sin\theta, reduce to ∫cos⁡2θ dθ\int \cos^2\theta\,d\theta, and apply the double-angle identity.
  • "Find ∫dxa2−x2\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 ∫linearquadratic dx\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=tan⁡x2t = \tan\tfrac{x}{2}, find ..." (a rational function of sin⁡x\sin x, cos⁡x\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 technique

State the substitution and its differential on the first line ("let x=asin⁡θx = a\sin\theta, so dx=acos⁡θ dθdx = a\cos\theta\,d\theta"), and immediately show the square root collapsing (a2−x2=acos⁡θ\sqrt{a^2 - x^2} = a\cos\theta); that is usually the first mark. For a definite integral either change the limits to the new variable and integrate straight through, or keep the original limits and back-substitute, but never mix the two. When you must return a trig-substitution answer to xx, draw the reference triangle and read off each ratio rather than juggling inverse functions. When a question names the substitution, using it is compulsory, a correct answer by another route can be marked down. Keep the modulus inside any ln⁡\ln, choose θ\theta so the square root is non-negative, and keep +C+C on indefinite answers.

Evaluate ∫014−x2 dx\displaystyle\int_0^{1} \sqrt{4 - x^2}\,dx (trig substitution)

Evaluate ∫014−x2 dx\displaystyle\int_0^{1} \sqrt{4 - x^2}\,dx by trig substitution

The square root 4−x2\sqrt{4 - x^2} has the form a2−x2\sqrt{a^2 - x^2} with a=2a = 2, which signals the substitution x=2sin⁡θx = 2\sin\theta. The Pythagorean identity 1−sin⁡2θ=cos⁡2θ1 - \sin^2\theta = \cos^2\theta then eliminates the root entirely.

Apply the trigonometric substitution: Set x=2sin⁡θx = 2\sin\theta, so dx=2cos⁡θ dθdx = 2\cos\theta\,d\theta. The square root simplifies because 4−x2=4(1−sin⁡2θ)=4cos⁡2θ4 - x^2 = 4(1 - \sin^2\theta) = 4\cos^2\theta, giving 4−x2=2cos⁡θ\sqrt{4 - x^2} = 2\cos\theta (taking θ∈[0,π2]\theta \in [0, \tfrac{\pi}{2}] so cosine is non-negative).

Convert the limits of integration: Change the limits to match the new variable. When x=0x = 0: sin⁡θ=0\sin\theta = 0, so θ=0\theta = 0. When x=1x = 1: sin⁡θ=12\sin\theta = \tfrac{1}{2}, so θ=π6\theta = \tfrac{\pi}{6}. Now substitute everything:

∫014−x2 dx=∫0π/6(2cos⁡θ)(2cos⁡θ) dθ=∫0π/64cos⁡2θ dθ.\int_0^{1}\sqrt{4 - x^2}\,dx = \int_0^{\pi/6} (2\cos\theta)(2\cos\theta)\,d\theta = \int_0^{\pi/6} 4\cos^2\theta\,d\theta.

Use the double-angle identity to integrate: The power cos⁡2θ\cos^2\theta cannot be integrated directly, but the identity cos⁡2θ=12(1+cos⁡2θ)\cos^2\theta = \tfrac{1}{2}(1 + \cos 2\theta) converts it to a standard form:

∫0π/64cos⁡2θ dθ=∫0π/62(1+cos⁡2θ) dθ=[ 2θ+sin⁡2θ ]0π/6.\int_0^{\pi/6} 4\cos^2\theta\,d\theta = \int_0^{\pi/6} 2(1 + \cos 2\theta)\,d\theta = \Big[\,2\theta + \sin 2\theta\,\Big]_0^{\pi/6}.

Evaluate at the limits: At θ=π6\theta = \tfrac{\pi}{6}: 2θ=π32\theta = \tfrac{\pi}{3} and sin⁡π3=32\sin\tfrac{\pi}{3} = \tfrac{\sqrt{3}}{2}. At θ=0\theta = 0 both terms are 00. So the definite integral is

π3+32.\frac{\pi}{3} + \frac{\sqrt{3}}{2}.

As a numerical check: π3≈1.047\tfrac{\pi}{3} \approx 1.047 and 32≈0.866\tfrac{\sqrt{3}}{2} \approx 0.866, giving about 1.9131.913, a reasonable area under 4−x2\sqrt{4 - x^2} from x=0x = 0 to x=1x = 1.

Final answer: ∫014−x2 dx=π3+32\displaystyle\int_0^{1} \sqrt{4 - x^2}\,dx = \dfrac{\pi}{3} + \dfrac{\sqrt{3}}{2}.

Evaluate ∫dx(4+x2)3/2\displaystyle\int \frac{dx}{(4 + x^2)^{3/2}} using x=2tan⁡θx = 2\tan\theta and the reference triangle

Evaluate ∫dx(4+x2)3/2\displaystyle\int \frac{dx}{(4 + x^2)^{3/2}} using x=2tan⁡θx = 2\tan\theta and the reference triangle

Here the relevant form is a2+x2\sqrt{a^2 + x^2} with a=2a = 2, so the matching substitution is x=atan⁡θx = a\tan\theta. This worked example also shows the triangle doing the back-substitution.

Apply the tangent substitution: Set x=2tan⁡θx = 2\tan\theta, so dx=2sec⁡2θ dθdx = 2\sec^2\theta\,d\theta. Then 4+x2=4(1+tan⁡2θ)=4sec⁡2θ4 + x^2 = 4(1 + \tan^2\theta) = 4\sec^2\theta, so (4+x2)3/2=(4sec⁡2θ)3/2=8sec⁡3θ(4 + x^2)^{3/2} = (4\sec^2\theta)^{3/2} = 8\sec^3\theta.

Simplify the integrand to a single trig function:

∫dx(4+x2)3/2=∫2sec⁡2θ8sec⁡3θ dθ=14∫1sec⁡θ dθ=14∫cos⁡θ dθ.\int \frac{dx}{(4 + x^2)^{3/2}} = \int \frac{2\sec^2\theta}{8\sec^3\theta}\,d\theta = \frac{1}{4}\int \frac{1}{\sec\theta}\,d\theta = \frac{1}{4}\int \cos\theta\,d\theta.

Integrate in θ\theta:

14∫cos⁡θ dθ=14sin⁡θ+C.\frac{1}{4}\int \cos\theta\,d\theta = \frac{1}{4}\sin\theta + C.

Convert back to xx with the reference triangle: Since x=2tan⁡θx = 2\tan\theta, draw a right-triangle with opposite xx and adjacent 22; the hypotenuse is 4+x2\sqrt{4 + x^2}. Reading off, sin⁡θ=x4+x2\sin\theta = \dfrac{x}{\sqrt{4 + x^2}}. Therefore

∫dx(4+x2)3/2=14⋅x4+x2+C=x44+x2+C.\int \frac{dx}{(4 + x^2)^{3/2}} = \frac{1}{4}\cdot\frac{x}{\sqrt{4 + x^2}} + C = \frac{x}{4\sqrt{4 + x^2}} + C.

Final answer: ∫dx(4+x2)3/2=x44+x2+C\displaystyle\int \frac{dx}{(4 + x^2)^{3/2}} = \frac{x}{4\sqrt{4 + x^2}} + C.

Edge case: a rational trig integral with the t=tan⁡x2t = \tan\tfrac{x}{2} substitution, ∫dx1+sin⁡x\displaystyle\int \frac{dx}{1 + \sin x}

Evaluate ∫dx1+sin⁡x\displaystyle\int \frac{dx}{1 + \sin x} with the t=tan⁡x2t = \tan\tfrac{x}{2} substitution

When the integrand is a rational function of sin⁡x\sin x (or cos⁡x\cos x) with nothing to cancel, the tt-substitution rationalises it.

Apply the three t-identities: Let t=tan⁡x2t = \tan\tfrac{x}{2}, so sin⁡x=2t1+t2\sin x = \dfrac{2t}{1 + t^2} and dx=21+t2 dtdx = \dfrac{2}{1 + t^2}\,dt. The denominator becomes

1+sin⁡x=1+2t1+t2=1+t2+2t1+t2=(1+t)21+t2.1 + \sin x = 1 + \frac{2t}{1 + t^2} = \frac{1 + t^2 + 2t}{1 + t^2} = \frac{(1 + t)^2}{1 + t^2}.

Simplify to an algebraic integral: Dividing dxdx by the denominator, the 1+t21 + t^2 factors cancel:

∫dx1+sin⁡x=∫1+t2(1+t)2⋅21+t2 dt=∫2(1+t)2 dt.\int \frac{dx}{1 + \sin x} = \int \frac{1 + t^2}{(1 + t)^2}\cdot\frac{2}{1 + t^2}\,dt = \int \frac{2}{(1 + t)^2}\,dt.

Integrate by the power rule and back-substitute:

∫2(1+t)−2 dt=−21+t+C=−21+tan⁡x2+C.\int 2(1 + t)^{-2}\,dt = \frac{-2}{1 + t} + C = \frac{-2}{1 + \tan\frac{x}{2}} + C.

Final answer: ∫dx1+sin⁡x=−21+tan⁡x2+C\displaystyle\int \frac{dx}{1 + \sin x} = -\frac{2}{1 + \tan\frac{x}{2}} + C.

Common traps
Forgetting to change the limits
With a definite integral and a substitution, convert the limits to the new variable, or convert back to xx before substituting the original limits. Do not mix the two.
Dropping dxdx in the substitution
Replacing x=asin⁡θx = a\sin\theta also replaces dxdx with acos⁡θ dθa\cos\theta\,d\theta. Omitting the derivative factor gives the wrong integral.
Sign of the square root
a2cos⁡2θ=a∣cos⁡θ∣\sqrt{a^2\cos^2\theta} = a|\cos\theta|. Choose the range of θ\theta so cosine is non-negative, otherwise a sign error creeps in.
Choosing the wrong trig substitution
Use x=asin⁡θx = a\sin\theta for a2−x2\sqrt{a^2 - x^2} but x=atan⁡θx = a\tan\theta for a2+x2\sqrt{a^2 + x^2}. Matching the wrong one leaves a square root that will not simplify.
Mis-stating the t-substitution identities
It is cos⁡x=1−t21+t2\cos x = \dfrac{1 - t^2}{1 + t^2}, not 1+t21−t2\dfrac{1 + t^2}{1 - t^2}, and dx=21+t2 dtdx = \dfrac{2}{1 + t^2}\,dt. A wrong identity derails the whole problem.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

2024 HSC-style3 marks
Evaluate ∫0π/21sin⁡θ+1 dθ\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+t2 dtd\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)2⋅21+t2 dt=2(t+1)2 dt\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)−2 dt=[−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 HSC-style3 marks
Find ∫1−x5−4x−x2 dx\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(5−4x−x2)=−4−2x=2(−2−x)\frac{d}{dx}(5 - 4x - x^2) = -4 - 2x = 2(-2 - x). Write

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

So ∫1−x5−4x−x2 dx=∫−2−x5−4x−x2 dx+∫35−4x−x2 dx\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 ddx5−4x−x2=−2−x5−4x−x2\frac{d}{dx}\sqrt{5 - 4x - x^2} = \frac{-2 - x}{\sqrt{5 - 4x - x^2}}, this is exactly 5−4x−x2\sqrt{5 - 4x - x^2}.

Second integral: complete the square, 5−4x−x2=9−(x+2)25 - 4x - x^2 = 9 - (x + 2)^2. Then ∫39−(x+2)2 dx=3arcsin⁡x+23\int \frac{3}{\sqrt{9 - (x + 2)^2}}\,dx = 3\arcsin\frac{x + 2}{3}.

Combining: ∫=5−4x−x2+3arcsin⁡x+23+C\int = \sqrt{5 - 4x - x^2} + 3\arcsin\frac{x + 2}{3} + C.

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

2022 HSC-style3 marks
Using the substitution t=tan⁡x2t = \tan\frac{x}{2}, find ∫11+cos⁡x−sin⁡x dx\displaystyle\int \frac{1}{1 + \cos x - \sin x} \, dx.
Show worked answer →

With t=tan⁡x2t = \tan\frac{x}{2}: cos⁡x=1−t21+t2\cos x = \frac{1 - t^2}{1 + t^2}, sin⁡x=2t1+t2\sin x = \frac{2t}{1 + t^2}, and dx=21+t2 dtdx = \frac{2}{1 + t^2}\,dt.

Rewrite the denominator over the common denominator 1+t21 + t^2:
1+cos⁡x−sin⁡x=(1+t2)+(1−t2)−2t1+t2=2−2t1+t2=2(1−t)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(1−t)/(1+t2) dt=∫11−t dt=−ln⁡∣1−t∣+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=tan⁡x2t = \tan\frac{x}{2}: ∫=−ln⁡∣1−tan⁡x2∣+C\int = -\ln\left|1 - \tan\frac{x}{2}\right| + C.

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

Practise this

Sources & how we know this

ExamExplained