Skip to main content
NSWMaths Extension 2Syllabus dot point

How do we integrate powers and products of trigonometric functions by choosing between the Pythagorean-identity substitution, the double-angle reduction, and the product-to-sum identities?

Integrate powers and products of trigonometric functions: powers of sin and cos (odd and even), powers of tan and sec, the integral of sec x, and products of sines and cosines via product-to-sum identities

A focused answer to the HSC Maths Extension 2 dot point on trigonometric integrals. The odd and even strategies for powers of sin and cos, powers of tan and sec, the standard integrals of sec x and sec cubed x, and products via product-to-sum identities, with every result verified by differentiation.

Generated by Claude Opus 4.814 min answer

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. Powers of sine and cosine
  3. Powers of tangent and secant
  4. Products of sines and cosines: product-to-sum
  5. Choosing the method
  6. How exam questions ask about trigonometric integrals

What this dot point is asking

NESA wants you to integrate powers and products of trigonometric functions without reaching for a general-purpose substitution every time. The integrand is built only from sin\sin, cos\cos, tan\tan and sec\sec, and the skill being examined is recognition: each shape has a matching tactic, and choosing the right one turns the integral into either a polynomial in a single trig function or a sum of simple terms. Four families are examined: powers sinmxcosnxdx\int \sin^m x \cos^n x\,dx (the strategy splits on whether the exponents are odd or even); powers secmxtannxdx\int \sec^m x \tan^n x\,dx (three sub-cases plus the special integrals of tanx\tan x and secx\sec x); the standout standard results secxdx\int \sec x\,dx and sec3xdx\int \sec^3 x\,dx; and products such as sinmxcosnx\sin mx\cos nx that surrender to the product-to-sum identities.

Powers of sine and cosine

Every integral sinmxcosnxdx\int \sin^m x \cos^n x\,dx is decided by the parity of the exponents, and the reason is the derivative pairing ddxsinx=cosx\tfrac{d}{dx}\sin x = \cos x and ddxcosx=sinx\tfrac{d}{dx}\cos x = -\sin x. A substitution u=sinxu = \sin x needs a spare cosx\cos x to become dudu; a substitution u=cosxu = \cos x needs a spare sinx\sin x. An odd power always leaves exactly one such spare factor after you peel it off, and the Pythagorean identity converts the rest (now an even power) cleanly into the other function. When both powers are even there is no spare factor to peel, so substitution is dead and you drop down in degree with the double-angle identities instead.

Why the odd case always works

The peel-and-substitute move is not a lucky trick, it is forced by the structure. Suppose the power of cos\cos is odd, say cos2k+1x\cos^{2k+1}x. Detach one cosine: cos2k+1x=(cos2x)kcosx=(1sin2x)kcosx\cos^{2k+1}x = (\cos^2 x)^k\cos x = (1-\sin^2 x)^k\cos x. Now every cosine except the detached one has been turned into sines, and the lone cosx\cos x is precisely the dudu for u=sinxu = \sin x. The same logic mirrors for an odd power of sin\sin: detach one sine (it becomes du-du for u=cosxu = \cos x) and turn the remaining even power of sin\sin into cosines. The companion power of the other function comes along untouched as part of the polynomial in uu, which is why the other exponent can be anything at all in the odd case, even, odd, or zero.

Why the even case needs double angles

If both exponents are even there is no leftover single factor to serve as dudu, so no substitution rationalises the integrand. The way out is to lower the degree: cos2x=12(1+cos2x)\cos^2 x = \tfrac{1}{2}(1+\cos 2x) replaces a square by a first power of a doubled angle, which integrates directly. Squaring out a fourth power produces a cos22x\cos^2 2x, to which you apply the identity again. The mixed product sin2xcos2x\sin^2 x\cos^2 x is best handled by first writing sinxcosx=12sin2x\sin x\cos x = \tfrac{1}{2}\sin 2x, so sin2xcos2x=14sin22x=18(1cos4x)\sin^2 x\cos^2 x = \tfrac{1}{4}\sin^2 2x = \tfrac{1}{8}(1-\cos 4x), a single application that lands a constant plus one cosine.

Powers of tangent and secant

The integral secmxtannxdx\int \sec^m x \tan^n x\,dx is governed by the two derivative facts ddxtanx=sec2x\tfrac{d}{dx}\tan x = \sec^2 x and ddxsecx=secxtanx\tfrac{d}{dx}\sec x = \sec x\tan x, together with the Pythagorean identity in its tangent form 1+tan2x=sec2x1 + \tan^2 x = \sec^2 x. Each derivative fact is the dudu of a substitution, and the question is which spare factor the integrand can afford to give up.

The two special integrals you must know

For tanxdx\int \tan x\,dx, write tanx=sinxcosx\tan x = \dfrac{\sin x}{\cos x}. The numerator is the negative derivative of the denominator, so the integral is a logarithm:

tanxdx=sinxcosxdx=lncosx+C.\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx = -\ln|\cos x| + C.

For secxdx\int \sec x\,dx there is a famous device: multiply top and bottom by secx+tanx\sec x + \tan x. The new numerator is then exactly the derivative of the new denominator, because ddx(secx+tanx)=secxtanx+sec2x=secx(secx+tanx)\tfrac{d}{dx}(\sec x + \tan x) = \sec x\tan x + \sec^2 x = \sec x(\sec x + \tan x). So

secxdx=secx(secx+tanx)secx+tanxdx=secxtanx+sec2xsecx+tanxdx=lnsecx+tanx+C.\int \sec x\,dx = \int \frac{\sec x(\sec x + \tan x)}{\sec x + \tan x}\,dx = \int \frac{\sec x\tan x + \sec^2 x}{\sec x + \tan x}\,dx = \ln|\sec x + \tan x| + C.

Both of these are on the standard-integrals reference sheet for Extension 2, but you should be able to reproduce the secx\sec x derivation, because the same multiply-by-the-conjugate idea is what unlocks sec3xdx\int \sec^3 x\,dx.

Products of sines and cosines: product-to-sum

When the integrand is a product of trigonometric functions of different multiples of xx, such as sin3xcos2x\sin 3x\cos 2x or cos5xcos3x\cos 5x\cos 3x, there is no useful Pythagorean factor to peel. Instead, convert the product into a sum of single trig functions, each of which integrates immediately. The three identities follow from adding or subtracting the compound-angle formulas:

sinAcosB=12[sin(AB)+sin(A+B)],\sin A\cos B = \tfrac{1}{2}\big[\sin(A-B) + \sin(A+B)\big],

cosAcosB=12[cos(AB)+cos(A+B)],\cos A\cos B = \tfrac{1}{2}\big[\cos(A-B) + \cos(A+B)\big],

sinAsinB=12[cos(AB)cos(A+B)].\sin A\sin B = \tfrac{1}{2}\big[\cos(A-B) - \cos(A+B)\big].

The only one easy to misremember is the last: sinAsinB\sin A\sin B has a minus sign and the order is cos(AB)cos(A+B)\cos(A-B) - \cos(A+B). After converting, each term is sin(kx)\sin(kx) or cos(kx)\cos(kx), which integrates to 1kcos(kx)\mp\tfrac{1}{k}\cos(kx) or 1ksin(kx)\tfrac{1}{k}\sin(kx). These integrals are the bridge to the harder Extension 2 material on summing trigonometric series and on roots of unity, where the same products appear.

Choosing the method

The whole topic is recognition. Read the integrand and ask, in order:

How exam questions ask about trigonometric integrals

  • "Find cos3xdx\int \cos^3 x\,dx" or "sin5xdx\int \sin^5 x\,dx" (a single odd power). Peel one factor, convert the rest with the Pythagorean identity, substitute. The companion power can be absent (as here) or present.
  • "Evaluate 0π/2cos4xdx\int_0^{\pi/2}\cos^4 x\,dx" or any even power / even-by-even product. Power-reduction identities; apply twice for a fourth power, and remember the standard results 0π/2cos2=0π/2sin2=π4\int_0^{\pi/2}\cos^2 = \int_0^{\pi/2}\sin^2 = \tfrac{\pi}{4}.
  • "Find tan4xdx\int \tan^4 x\,dx" / "sec4xtan2xdx\int \sec^4 x\tan^2 x\,dx" (powers of tan and sec). Decide on the reserved factor from the parity rule, convert with 1+tan2x=sec2x1+\tan^2 x = \sec^2 x, substitute.
  • "Find secxdx\int \sec x\,dx" or "sec3xdx\int \sec^3 x\,dx." Quote (or, for sec3x\sec^3 x, derive by parts) the standard result; these are flagged so you produce the log term and the 12(secxtanx+lnsecx+tanx)\tfrac{1}{2}(\sec x\tan x + \ln|\sec x+\tan x|) form exactly.
  • "By converting to a sum, find sin3xcosxdx\int \sin 3x\cos x\,dx" (a product of different multiples). Product-to-sum, then integrate term by term.
  • "Hence find ..." after a part that proved an identity. The earlier part hands you the identity to substitute; use it rather than starting over.

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.

HSC Ext 2 (representative)3 marksFind the exact value of 0π/2sin3xdx\displaystyle\int_0^{\pi/2} \sin^3 x \, dx.
Show worked answer →

The power of sin\sin is odd, so peel one factor of sinx\sin x and convert the rest with sin2x=1cos2x\sin^2 x = 1 - \cos^2 x:

sin3x=sinx(1cos2x)\sin^3 x = \sin x\,(1 - \cos^2 x).

Substitute u=cosxu = \cos x, so du=sinxdxdu = -\sin x\,dx. The limits change: x=0u=1x = 0 \Rightarrow u = 1, and x=π2u=0x = \tfrac{\pi}{2} \Rightarrow u = 0. Then

0π/2sin3xdx=10(1u2)(du)=01(1u2)du=[u13u3]01=113=23.\displaystyle\int_0^{\pi/2}\sin^3 x\,dx = \int_1^0 (1 - u^2)(-\,du) = \int_0^1 (1 - u^2)\,du = \left[u - \tfrac{1}{3}u^3\right]_0^1 = 1 - \tfrac{1}{3} = \tfrac{2}{3}.

Mark notes: 1 mark for peeling a sinx\sin x and using sin2x=1cos2x\sin^2 x = 1 - \cos^2 x, 1 mark for the substitution with corrected limits, 1 mark for the exact value 23\tfrac{2}{3}.

HSC Ext 2 (representative)3 marksFind the exact value of 0π/4sec2xtan3xdx\displaystyle\int_0^{\pi/4} \sec^2 x \tan^3 x \, dx.
Show worked answer →

The power of sec\sec is even (m=2m = 2), so reserve the sec2x\sec^2 x as the differential and substitute u=tanxu = \tan x, with du=sec2xdxdu = \sec^2 x\,dx. The limits change: x=0u=0x = 0 \Rightarrow u = 0, and x=π4u=tanπ4=1x = \tfrac{\pi}{4} \Rightarrow u = \tan\tfrac{\pi}{4} = 1. Then

0π/4sec2xtan3xdx=01u3du=[14u4]01=14.\displaystyle\int_0^{\pi/4}\sec^2 x\tan^3 x\,dx = \int_0^1 u^3\,du = \left[\tfrac{1}{4}u^4\right]_0^1 = \tfrac{1}{4}.

Mark notes: 1 mark for reserving sec2x\sec^2 x and choosing u=tanxu = \tan x, 1 mark for changing the limits, 1 mark for the value 14\tfrac{1}{4}.

HSC Ext 2 (representative)2 marksBy first converting the product to a sum, find cos3xcosxdx\displaystyle\int \cos 3x \cos x \, dx.
Show worked answer →

Use cosAcosB=12[cos(AB)+cos(A+B)]\cos A\cos B = \tfrac{1}{2}\big[\cos(A - B) + \cos(A + B)\big] with A=3xA = 3x, B=xB = x:

cos3xcosx=12[cos2x+cos4x].\cos 3x\cos x = \tfrac{1}{2}\big[\cos 2x + \cos 4x\big].

Integrate each term:

cos3xcosxdx=12[12sin2x+14sin4x]+C=14sin2x+18sin4x+C.\displaystyle\int \cos 3x\cos x\,dx = \tfrac{1}{2}\left[\tfrac{1}{2}\sin 2x + \tfrac{1}{4}\sin 4x\right] + C = \tfrac{1}{4}\sin 2x + \tfrac{1}{8}\sin 4x + C.

Mark notes: 1 mark for the correct product-to-sum conversion, 1 mark for integrating both terms with +C+C.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marksFind the exact value of 0π/2sin2xdx\displaystyle\int_0^{\pi/2} \sin^2 x \, dx.
Show worked solution →

Recognise the type. This is an even power of sin\sin, so the odd-power substitution is not available. Use the power-reduction (double-angle) identity instead.

Apply the identity. Since sin2x=12(1cos2x)\sin^2 x = \frac{1}{2}(1 - \cos 2x),

0π/2sin2xdx=120π/2(1cos2x)dx=12[x12sin2x]0π/2.\int_0^{\pi/2} \sin^2 x \, dx = \frac{1}{2}\int_0^{\pi/2} (1 - \cos 2x)\, dx = \frac{1}{2}\left[\, x - \frac{1}{2}\sin 2x \,\right]_0^{\pi/2}.

Evaluate at the limits. At x=π2x = \frac{\pi}{2}: x=π2x = \frac{\pi}{2} and sin2x=sinπ=0\sin 2x = \sin\pi = 0. At x=0x = 0 both terms vanish. So the value is 12π2=π4\frac{1}{2}\cdot\frac{\pi}{2} = \frac{\pi}{4}.

Answer: 0π/2sin2xdx=π4\displaystyle\int_0^{\pi/2} \sin^2 x \, dx = \frac{\pi}{4} (about 0.7850.785).

Mark notes: 1 mark for the power-reduction identity, 1 mark for the correct exact value.

foundation2 marksFind cos3xdx\displaystyle\int \cos^3 x \, dx.
Show worked solution →

Recognise the type. The power of cos\cos is odd, so peel off one factor of cosx\cos x and convert the rest to sin\sin.

Peel and convert. Write cos3x=cosx(1sin2x)\cos^3 x = \cos x \,(1 - \sin^2 x) using cos2x=1sin2x\cos^2 x = 1 - \sin^2 x.

Substitute u=sinxu = \sin x, so du=cosxdxdu = \cos x \, dx:

cos3xdx=(1u2)du=u13u3+C.\int \cos^3 x \, dx = \int (1 - u^2)\, du = u - \frac{1}{3}u^3 + C.

Back-substitute u=sinxu = \sin x:

cos3xdx=sinx13sin3x+C.\int \cos^3 x \, dx = \sin x - \frac{1}{3}\sin^3 x + C.

Mark notes: 1 mark for peeling a cosx\cos x and using the Pythagorean identity, 1 mark for the integrated answer with +C+C.

core3 marksFind sin3xcos2xdx\displaystyle\int \sin^3 x \cos^2 x \, dx.
Show worked solution →

Recognise the type. sin\sin appears to an odd power, so work with sin\sin: peel one sinx\sin x and turn the remaining sin2x\sin^2 x into 1cos2x1 - \cos^2 x.

Peel and convert. sin3xcos2x=sinx(1cos2x)cos2x\sin^3 x \cos^2 x = \sin x\,(1 - \cos^2 x)\cos^2 x.

Substitute u=cosxu = \cos x, so du=sinxdxdu = -\sin x \, dx, i.e. sinxdx=du\sin x \, dx = -\,du:

sin3xcos2xdx=(1u2)u2(du)=(u2u4)du.\int \sin^3 x \cos^2 x \, dx = \int (1 - u^2)u^2 \,(-\,du) = -\int (u^2 - u^4)\, du.

Integrate the polynomial.

(u2u4)du=13u3+15u5+C.-\int (u^2 - u^4)\, du = -\frac{1}{3}u^3 + \frac{1}{5}u^5 + C.

Back-substitute u=cosxu = \cos x:

sin3xcos2xdx=13cos3x+15cos5x+C.\int \sin^3 x \cos^2 x \, dx = -\frac{1}{3}\cos^3 x + \frac{1}{5}\cos^5 x + C.

Mark notes: 1 mark for choosing to work with sin\sin (odd power) and peeling, 1 mark for the substitution and polynomial, 1 mark for the back-substituted answer.

core3 marksFind the exact value of 0π/4tan3xdx\displaystyle\int_0^{\pi/4} \tan^3 x \, dx.
Show worked solution →

Recognise the type. A pure power of tan\tan. Split off tan2x=sec2x1\tan^2 x = \sec^2 x - 1 to expose a sec2x\sec^2 x factor (whose integral pairs with tanx\tan x).

Split with the Pythagorean identity.

tan3x=tanx(sec2x1)=tanxsec2xtanx.\tan^3 x = \tan x\,(\sec^2 x - 1) = \tan x \sec^2 x - \tan x.

Integrate each piece. For the first, u=tanxu = \tan x gives tanxsec2xdx=12tan2x\int \tan x \sec^2 x \, dx = \frac{1}{2}\tan^2 x. For the second, tanxdx=lncosx\int \tan x \, dx = -\ln|\cos x|. So

tan3xdx=12tan2x+lncosx+C.\int \tan^3 x \, dx = \frac{1}{2}\tan^2 x + \ln|\cos x| + C.

Evaluate from 00 to π4\frac{\pi}{4}. At x=π4x = \frac{\pi}{4}: tanπ4=1\tan\frac{\pi}{4} = 1 and cosπ4=12\cos\frac{\pi}{4} = \frac{1}{\sqrt 2}, so the bracket is 12+ln12=1212ln2\frac{1}{2} + \ln\frac{1}{\sqrt 2} = \frac{1}{2} - \frac{1}{2}\ln 2. At x=0x = 0: 12(0)+ln1=0\frac{1}{2}(0) + \ln 1 = 0.

Answer: 0π/4tan3xdx=1212ln2\displaystyle\int_0^{\pi/4} \tan^3 x \, dx = \frac{1}{2} - \frac{1}{2}\ln 2 (about 0.1530.153).

Mark notes: 1 mark for the tan2x=sec2x1\tan^2 x = \sec^2 x - 1 split, 1 mark for the antiderivative, 1 mark for the exact value.

core3 marksUsing a product-to-sum identity, find sin4xcos2xdx\displaystyle\int \sin 4x \cos 2x \, dx.
Show worked solution →

Recognise the type. A product of a sine and a cosine of different multiples of xx. Convert it to a sum with sinAcosB=12[sin(AB)+sin(A+B)]\sin A \cos B = \frac{1}{2}\big[\sin(A - B) + \sin(A + B)\big].

Convert to a sum. With A=4xA = 4x, B=2xB = 2x:

sin4xcos2x=12[sin2x+sin6x].\sin 4x \cos 2x = \frac{1}{2}\big[\sin 2x + \sin 6x\big].

Integrate term by term.

sin4xcos2xdx=12[12cos2x16cos6x]+C=14cos2x112cos6x+C.\int \sin 4x \cos 2x \, dx = \frac{1}{2}\left[-\frac{1}{2}\cos 2x - \frac{1}{6}\cos 6x\right] + C = -\frac{1}{4}\cos 2x - \frac{1}{12}\cos 6x + C.

Mark notes: 1 mark for the correct product-to-sum identity, 1 mark for the converted integrand, 1 mark for integrating each term correctly with +C+C.

exam4 marksShow that 0π/4sec4xtan2xdx=815\displaystyle\int_0^{\pi/4} \sec^4 x \tan^2 x \, dx = \frac{8}{15}.
Show worked solution →

Recognise the type. Powers of sec\sec and tan\tan with an even power of sec\sec (m=4m = 4). Save one sec2x\sec^2 x for the differential and turn the rest into tan\tan using sec2x=1+tan2x\sec^2 x = 1 + \tan^2 x.

Reserve a sec2x\sec^2 x. Write sec4x=sec2xsec2x=(1+tan2x)sec2x\sec^4 x = \sec^2 x \cdot \sec^2 x = (1 + \tan^2 x)\sec^2 x, so

sec4xtan2x=(1+tan2x)tan2xsec2x.\sec^4 x \tan^2 x = (1 + \tan^2 x)\tan^2 x \, \sec^2 x.

Substitute u=tanxu = \tan x, so du=sec2xdxdu = \sec^2 x \, dx. The limits change: x=0u=0x = 0 \Rightarrow u = 0, and x=π4u=tanπ4=1x = \frac{\pi}{4} \Rightarrow u = \tan\frac{\pi}{4} = 1. Then

0π/4sec4xtan2xdx=01(1+u2)u2du=01(u2+u4)du.\int_0^{\pi/4} \sec^4 x \tan^2 x \, dx = \int_0^1 (1 + u^2)u^2 \, du = \int_0^1 (u^2 + u^4)\, du.

Integrate and evaluate.

01(u2+u4)du=[13u3+15u5]01=13+15=5+315=815.\int_0^1 (u^2 + u^4)\, du = \left[\frac{1}{3}u^3 + \frac{1}{5}u^5\right]_0^1 = \frac{1}{3} + \frac{1}{5} = \frac{5 + 3}{15} = \frac{8}{15}.

So the integral equals 815\frac{8}{15} as required (about 0.5330.533).

Mark notes: 1 mark for reserving a sec2x\sec^2 x factor, 1 mark for sec2x=1+tan2x\sec^2 x = 1 + \tan^2 x and the substitution, 1 mark for changing the limits, 1 mark for the evaluation to 815\frac{8}{15}.

exam3 marksFind sec5xtanxdx\displaystyle\int \sec^5 x \tan x \, dx.
Show worked solution →

Recognise the type. Powers of sec\sec and tan\tan where the power of tan\tan is odd (n=1n = 1). Reserve the factor secxtanx\sec x \tan x for the differential and write everything else in terms of secx\sec x.

Reserve secxtanx\sec x \tan x. Split off one secx\sec x and the single tanx\tan x:

sec5xtanx=sec4x(secxtanx).\sec^5 x \tan x = \sec^4 x \cdot (\sec x \tan x).

Substitute u=secxu = \sec x, so du=secxtanxdxdu = \sec x \tan x \, dx:

sec5xtanxdx=u4du=15u5+C.\int \sec^5 x \tan x \, dx = \int u^4 \, du = \frac{1}{5}u^5 + C.

Back-substitute u=secxu = \sec x:

sec5xtanxdx=15sec5x+C.\int \sec^5 x \tan x \, dx = \frac{1}{5}\sec^5 x + C.

Mark notes: 1 mark for reserving the secxtanx\sec x \tan x factor, 1 mark for the u=secxu = \sec x substitution, 1 mark for the back-substituted answer with +C+C.

Related dot points