PYQ Vault

HSC Maths · Indefinite Integration

Integrals of Trigonometric Functions

Powers of sin, cos and tan, ratios with shifted angles, and denominators in sin x, cos x or their squares, each with its own rewriting or substitution that turns it into a standard integral.

Why this matters

55 questions, five of them from board papers: sin(x + a) over cos(x − b) (2024 and 2025), and in 2026 √(1 + sin 2x), sin x over sin 3x, and 2 over 3 + 2 sin²x + 5 cos²x. The textbook rows are Exercise 3.2(A) Part II, the trigonometric items of Exercise 3.2(B) and many Miscellaneous items.

Concept 1 of 4: Powers of sin, cos, tan and sec

An odd power of cos x keeps one cos x aside to be the derivative of sin x; the even power left over is written in sin x with cos² x = 1 − sin² x. The same idea works for sin x with cos x as the new variable, and for tan x with sec² x as the derivative. Then everything is a polynomial in t.

Definition

  • ∫tan⁡x dx=log⁡∣sec⁡x∣+c\int \tan x\,dx = \log|\sec x| + c, ∫cot⁡x dx=log⁡∣sin⁡x∣+c\int \cot x\,dx = \log|\sin x| + c.
  • ∫sec⁡x dx=log⁡∣sec⁡x+tan⁡x∣+c\int \sec x\,dx = \log|\sec x + \tan x| + c, ∫cosec⁡x dx=log⁡∣cosec⁡x−cot⁡x∣+c\int \operatorname{cosec} x\,dx = \log|\operatorname{cosec} x - \cot x| + c.
  • Odd power of cos⁡x\cos x: keep one cos⁡x\cos x, change the rest with cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x, put t=sin⁡xt = \sin x.
  • Odd power of sin⁡x\sin x: keep one sin⁡x\sin x, use sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x, put t=cos⁡xt = \cos x.
  • Powers of tan⁡x\tan x: tan⁡nx=tan⁡n−2x(sec⁡2x−1)\tan^n x = \tan^{n-2}x(\sec^2 x - 1); put t=tan⁡xt = \tan x where sec⁡2x\sec^2 x appears.
  • sin⁡mxcos⁡m+2x=tan⁡mxsec⁡2x\dfrac{\sin^m x}{\cos^{m+2} x} = \tan^m x\sec^2 x: put t=tan⁡xt = \tan x.

Odd power of cos x

∫cos⁡2k+1x dx=∫(1−t2)k dt,t=sin⁡x\int \cos^{2k+1}x\,dx = \int (1 - t^2)^k\,dt, \qquad t = \sin x

Worked example

Evaluate ∫sin⁡3xcos⁡2x dx\int \sin^3 x\cos^2 x\,dx.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 3.2(A) II (12)Moderate

Example 1 · Indefinite Integration · Integrals of Trigonometric Functions

Integrate the following functions w. r. t. x :
∫cos⁡7x dx\int \cos^7 x\, dx

The integral of sec x is not log sec x

∫sec⁡x dx=log⁡∣sec⁡x+tan⁡x∣+c\int \sec x\,dx = \log|\sec x + \tan x| + c, and ∫tan⁡x dx=log⁡∣sec⁡x∣+c\int \tan x\,dx = \log|\sec x| + c. Mixing these two is a common slip.

Choosing the wrong t

For an odd power of cos⁡x\cos x, the spare cos⁡x\cos x is the derivative of sin⁡x\sin x, so t=sin⁡xt = \sin x. Putting t=cos⁡xt = \cos x leaves a sin⁡x\sin x that cannot be written in tt without a root.

Concept 2 of 4: Shifted angles and splitting the numerator

In sin(x + a) over cos(x − b), the top angle is the bottom angle plus a constant: x + a = (x − b) + (a + b). Expanding the sine of that sum splits the fraction into a constant and a tan, and both integrate at once. The same idea handles a sin x + b cos x over c sin x + d cos x: write the top as so much of the bottom plus so much of the derivative of the bottom.

Definition

  • For sin⁡(x+a)cos⁡(x−b)\dfrac{\sin(x+a)}{\cos(x-b)}: write x+a=(x−b)+(a+b)x + a = (x - b) + (a + b) and expand: the fraction is sin⁡(a+b)+cos⁡(a+b)tan⁡(x−b)\sin(a+b) + \cos(a+b)\tan(x-b).
  • For cos⁡xsin⁡(x−a)\dfrac{\cos x}{\sin(x-a)}: write x=(x−a)+ax = (x - a) + a in the same way.
  • For asin⁡x+bcos⁡xcsin⁡x+dcos⁡x\dfrac{a\sin x + b\cos x}{c\sin x + d\cos x}: write the numerator as A(denominator)+Bddx(denominator)A(\text{denominator}) + B\dfrac{d}{dx}(\text{denominator}); the answer is Ax+Blog⁡∣denominator∣+cAx + B\log|\text{denominator}| + c.
  • 11−tan⁡x\dfrac{1}{1 - \tan x} or 12+3tan⁡x\dfrac{1}{2 + 3\tan x}: write tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} first, then split as above.
  • Products of sines and cosines become sums. From tan⁡3x=tan⁡(2x+x)\tan 3x = \tan(2x + x): tan⁡3xtan⁡2xtan⁡x=tan⁡3x−tan⁡2x−tan⁡x\tan 3x\tan 2x\tan x = \tan 3x - \tan 2x - \tan x.

Splitting the angle

sin⁡(x+a)cos⁡(x−b)=sin⁡(a+b)+cos⁡(a+b)tan⁡(x−b)\frac{\sin(x+a)}{\cos(x-b)} = \sin(a+b) + \cos(a+b)\tan(x-b)

Worked example

Evaluate ∫sin⁡xsin⁡(x+a) dx\int \dfrac{\sin x}{\sin(x + a)}\,dx.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2024 · Q. 23Hard

Example 2 · Indefinite Integration · Integrals of Trigonometric Functions

Evaluate : ∫sin⁡(x+a)cos⁡(x−b)dx\int \frac{\sin(x + a)}{\cos(x - b)} dx

Expanding the wrong angle

Expanding sin⁡(x+a)\sin(x + a) and cos⁡(x−b)\cos(x - b) separately gives a fraction that does not simplify. Write the top angle in terms of the bottom angle, then expand only the top.

The sign of the integral of tan

∫tan⁡(x−b) dx=−log⁡∣cos⁡(x−b)∣=log⁡∣sec⁡(x−b)∣\int \tan(x - b)\,dx = -\log|\cos(x - b)| = \log|\sec(x - b)|. Writing +log⁡∣cos⁡(x−b)∣+\log|\cos(x - b)| is the slip that costs the last mark.

Concept 3 of 4: Denominators in sin²x and cos²x

When the denominator holds sin² x and cos² x (and perhaps a constant), dividing top and bottom by cos² x turns everything into tan x and sec² x. The sec² x on top is exactly dt for t = tan x, and the bottom becomes a quadratic in t. One standard result then finishes it.

Definition

  • Divide numerator and denominator by cos⁡2x\cos^2 x.
  • In the denominator, replace sec⁡2x\sec^2 x by 1+tan⁡2x1 + \tan^2 x (a constant cc becomes csec⁡2xc\sec^2 x).
  • Put t=tan⁡xt = \tan x, dt=sec⁡2x dxdt = \sec^2 x\,dx: the integral becomes ∫dtpt2+q\int \dfrac{dt}{pt^2 + q}.
  • Finish with ∫dtt2+k2=1ktan⁡−1tk\int \dfrac{dt}{t^2 + k^2} = \dfrac{1}{k}\tan^{-1}\dfrac{t}{k} or ∫dtk2−t2=12klog⁡∣k+tk−t∣\int \dfrac{dt}{k^2 - t^2} = \dfrac{1}{2k}\log\left|\dfrac{k + t}{k - t}\right| (both proved with the special integrals).
  • sin⁡xsin⁡3x=13−4sin⁡2x\dfrac{\sin x}{\sin 3x} = \dfrac{1}{3 - 4\sin^2 x} and cos⁡2x+3sin⁡2x=cos⁡2x+2sin⁡2x\cos 2x + 3\sin^2 x = \cos^2 x + 2\sin^2 x are of this type once rewritten.

Divide by cos² x

∫dxasin⁡2x+bcos⁡2x=∫sec⁡2x dxatan⁡2x+b=∫dtat2+b,t=tan⁡x\int \frac{dx}{a\sin^2 x + b\cos^2 x} = \int \frac{\sec^2 x\,dx}{a\tan^2 x + b} = \int \frac{dt}{at^2 + b}, \qquad t = \tan x

Worked example

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

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 32Hard

Example 3 · Indefinite Integration · Integrals of Trigonometric Functions

Evaluate : ∫23+2sin⁡2x+5cos⁡2xdx\int \frac{2}{3 + 2\sin^{2} x + 5\cos^{2} x} dx

Using t = tan(x/2) for squares

The half-angle substitution is for first powers, asin⁡x+bcos⁡x+ca\sin x + b\cos x + c. With sin⁡2x\sin^2 x and cos⁡2x\cos^2 x, divide by cos⁡2x\cos^2 x and put t=tan⁡xt = \tan x; the half-angle route also works but is long and error-prone.

Forgetting the constant term becomes c sec² x

In 2+sin⁡2x2 + \sin^2 x, dividing by cos⁡2x\cos^2 x turns the 2 into 2sec⁡2x=2+2tan⁡2x2\sec^2 x = 2 + 2\tan^2 x. Writing it as plain 2 gives the wrong quadratic in tt.

Concept 4 of 4: Denominators a sin x + b cos x + c: the substitution t = tan(x/2)

Every sine and cosine of x can be written in t = tan(x/2) without roots. So a denominator of first powers of sin x and cos x becomes a quadratic in t, and dx brings its own 1 + t² to cancel. Then complete the square and use a standard result.

Definition

  • Put t=tan⁡x2t = \tan\dfrac{x}{2}. Then sin⁡x=2t1+t2\sin x = \dfrac{2t}{1 + t^2}, cos⁡x=1−t21+t2\cos x = \dfrac{1 - t^2}{1 + t^2} and dx=2 dt1+t2dx = \dfrac{2\,dt}{1 + t^2}.
  • Multiply the denominator through by 1+t21 + t^2; the integral becomes ∫2 dt(quadratic in t)\int \dfrac{2\,dt}{(\text{quadratic in } t)}.
  • Complete the square in tt and use ∫dtt2+k2\int \dfrac{dt}{t^2 + k^2}, ∫dtt2−k2\int \dfrac{dt}{t^2 - k^2} or ∫dtk2−t2\int \dfrac{dt}{k^2 - t^2}.
  • For the angle 2x2x, put t=tan⁡xt = \tan x: sin⁡2x=2t1+t2\sin 2x = \dfrac{2t}{1+t^2}, cos⁡2x=1−t21+t2\cos 2x = \dfrac{1 - t^2}{1 + t^2}, dx=dt1+t2dx = \dfrac{dt}{1 + t^2}.
  • With no constant term, asin⁡x+bcos⁡x=rsin⁡(x+α)a\sin x + b\cos x = r\sin(x + \alpha) with r=a2+b2r = \sqrt{a^2 + b^2} is quicker: the integral becomes 1r∫cosec⁡(x+α) dx\dfrac{1}{r}\int \operatorname{cosec}(x + \alpha)\,dx.

Half-angle substitution

t=tan⁡x2:sin⁡x=2t1+t2,cos⁡x=1−t21+t2,dx=2 dt1+t2t = \tan\frac{x}{2}: \quad \sin x = \frac{2t}{1+t^2}, \quad \cos x = \frac{1-t^2}{1+t^2}, \quad dx = \frac{2\,dt}{1+t^2}

Worked example

Evaluate ∫15+3sin⁡x dx\int \dfrac{1}{5 + 3\sin x}\,dx.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 3.2(B) II (ii)Moderate

Example 4 · Indefinite Integration · Integrals of Trigonometric Functions

Integrate the following functions w. r. t. x :
∫14−5cos⁡x dx\int \frac{1}{4 - 5\cos x} \, dx

Dropping the 2 in dx

dx=2 dt1+t2dx = \dfrac{2\,dt}{1 + t^2}. Forgetting the 2 halves the whole answer.

Putting back tan x instead of tan(x/2)

The substitution was t=tan⁡x2t = \tan\dfrac{x}{2}, so the last line must read tan⁡x2\tan\dfrac{x}{2}. For an angle 2x2x, where t=tan⁡xt = \tan x, it is the other way round.

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 (4)

  • Powers of sin, cos, tan and sec

    Odd power of cos x

    ∫cos⁡2k+1x dx=∫(1−t2)k dt,t=sin⁡x\int \cos^{2k+1}x\,dx = \int (1 - t^2)^k\,dt, \qquad t = \sin x
  • Shifted angles and splitting the numerator

    Splitting the angle

    sin⁡(x+a)cos⁡(x−b)=sin⁡(a+b)+cos⁡(a+b)tan⁡(x−b)\frac{\sin(x+a)}{\cos(x-b)} = \sin(a+b) + \cos(a+b)\tan(x-b)
  • Denominators in sin²x and cos²x

    Divide by cos² x

    ∫dxasin⁡2x+bcos⁡2x=∫sec⁡2x dxatan⁡2x+b=∫dtat2+b,t=tan⁡x\int \frac{dx}{a\sin^2 x + b\cos^2 x} = \int \frac{\sec^2 x\,dx}{a\tan^2 x + b} = \int \frac{dt}{at^2 + b}, \qquad t = \tan x
  • Denominators a sin x + b cos x + c: the substitution t = tan(x/2)

    Half-angle substitution

    t=tan⁡x2:sin⁡x=2t1+t2,cos⁡x=1−t21+t2,dx=2 dt1+t2t = \tan\frac{x}{2}: \quad \sin x = \frac{2t}{1+t^2}, \quad \cos x = \frac{1-t^2}{1+t^2}, \quad dx = \frac{2\,dt}{1+t^2}

Watch out for (8)

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.