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.8·14 min answer·
Reviewed by: AI editorial process; not yet individually human-reviewed
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, cos, tan and 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 (the strategy splits on whether the exponents are odd or even); powers ∫secmxtannxdx (three sub-cases plus the special integrals of tanx and secx); the standout standard results ∫secxdx and ∫sec3xdx; and products such as sinmxcosnx that surrender to the product-to-sum identities.
Powers of sine and cosine
Every integral ∫sinmxcosnxdx is decided by the parity of the exponents, and the reason is the derivative pairing dxdsinx=cosx and dxdcosx=−sinx. A substitution u=sinx needs a spare cosx to become du; a substitution u=cosx needs a spare sinx. 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 is odd, say cos2k+1x. Detach one cosine: cos2k+1x=(cos2x)kcosx=(1−sin2x)kcosx. Now every cosine except the detached one has been turned into sines, and the lone cosx is precisely the du for u=sinx. The same logic mirrors for an odd power of sin: detach one sine (it becomes −du for u=cosx) and turn the remaining even power of sin into cosines. The companion power of the other function comes along untouched as part of the polynomial in u, 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 du, so no substitution rationalises the integrand. The way out is to lower the degree: cos2x=21(1+cos2x) replaces a square by a first power of a doubled angle, which integrates directly. Squaring out a fourth power produces a cos22x, to which you apply the identity again. The mixed product sin2xcos2x is best handled by first writing sinxcosx=21sin2x, so sin2xcos2x=41sin22x=81(1−cos4x), a single application that lands a constant plus one cosine.
Powers of tangent and secant
The integral ∫secmxtannxdx is governed by the two derivative facts dxdtanx=sec2x and dxdsecx=secxtanx, together with the Pythagorean identity in its tangent form 1+tan2x=sec2x. Each derivative fact is the du 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, write tanx=cosxsinx. The numerator is the negative derivative of the denominator, so the integral is a logarithm:
∫tanxdx=∫cosxsinxdx=−ln∣cosx∣+C.
For ∫secxdx there is a famous device: multiply top and bottom by secx+tanx. The new numerator is then exactly the derivative of the new denominator, because dxd(secx+tanx)=secxtanx+sec2x=secx(secx+tanx). So
Both of these are on the standard-integrals reference sheet for Extension 2, but you should be able to reproduce the secx derivation, because the same multiply-by-the-conjugate idea is what unlocks ∫sec3xdx.
Products of sines and cosines: product-to-sum
When the integrand is a product of trigonometric functions of different multiples of x, such as sin3xcos2x or cos5xcos3x, 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=21[sin(A−B)+sin(A+B)],
cosAcosB=21[cos(A−B)+cos(A+B)],
sinAsinB=21[cos(A−B)−cos(A+B)].
The only one easy to misremember is the last: sinAsinB has a minus sign and the order is cos(A−B)−cos(A+B). After converting, each term is sin(kx) or cos(kx), which integrates to ∓k1cos(kx) or k1sin(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" or "∫sin5xdx" (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" 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π.
"Find ∫tan4xdx" / "∫sec4xtan2xdx" (powers of tan and sec). Decide on the reserved factor from the parity rule, convert with 1+tan2x=sec2x, substitute.
"Find ∫secxdx" or "∫sec3xdx." Quote (or, for sec3x, derive by parts) the standard result; these are flagged so you produce the log term and the 21(secxtanx+ln∣secx+tanx∣) form exactly.
"By converting to a sum, find ∫sin3xcosxdx" (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.
Show worked answer →
The power of sin is odd, so peel one factor of sinx and convert the rest with sin2x=1−cos2x:
sin3x=sinx(1−cos2x).
Substitute u=cosx, so du=−sinxdx. The limits change: x=0⇒u=1, and x=2π⇒u=0. Then
Mark notes: 1 mark for peeling a sinx and using sin2x=1−cos2x, 1 mark for the substitution with corrected limits, 1 mark for the exact value 32.
HSC Ext 2 (representative)3 marksFind the exact value of ∫0π/4sec2xtan3xdx.
Show worked answer →
The power of sec is even (m=2), so reserve the sec2x as the differential and substitute u=tanx, with du=sec2xdx. The limits change: x=0⇒u=0, and x=4π⇒u=tan4π=1. Then
∫0π/4sec2xtan3xdx=∫01u3du=[41u4]01=41.
Mark notes: 1 mark for reserving sec2x and choosing u=tanx, 1 mark for changing the limits, 1 mark for the value 41.
HSC Ext 2 (representative)2 marksBy first converting the product to a sum, find ∫cos3xcosxdx.
Show worked answer →
Use cosAcosB=21[cos(A−B)+cos(A+B)] with A=3x, B=x:
Mark notes: 1 mark for the correct product-to-sum conversion, 1 mark for integrating both terms with +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.
Show worked solution →
Recognise the type. This is an even power of sin, so the odd-power substitution is not available. Use the power-reduction (double-angle) identity instead.
Evaluate at the limits. At x=2π: x=2π and sin2x=sinπ=0. At x=0 both terms vanish. So the value is 21⋅2π=4π.
Answer:∫0π/2sin2xdx=4π (about 0.785).
Mark notes: 1 mark for the power-reduction identity, 1 mark for the correct exact value.
foundation2 marksFind ∫cos3xdx.
Show worked solution →
Recognise the type. The power of cos is odd, so peel off one factor of cosx and convert the rest to sin.
Peel and convert. Write cos3x=cosx(1−sin2x) using cos2x=1−sin2x.
Substituteu=sinx, so du=cosxdx:
∫cos3xdx=∫(1−u2)du=u−31u3+C.
Back-substituteu=sinx:
∫cos3xdx=sinx−31sin3x+C.
Mark notes: 1 mark for peeling a cosx and using the Pythagorean identity, 1 mark for the integrated answer with +C.
core3 marksFind ∫sin3xcos2xdx.
Show worked solution →
Recognise the type.sin appears to an odd power, so work with sin: peel one sinx and turn the remaining sin2x into 1−cos2x.
Peel and convert.sin3xcos2x=sinx(1−cos2x)cos2x.
Substituteu=cosx, so du=−sinxdx, i.e. sinxdx=−du:
∫sin3xcos2xdx=∫(1−u2)u2(−du)=−∫(u2−u4)du.
Integrate the polynomial.
−∫(u2−u4)du=−31u3+51u5+C.
Back-substituteu=cosx:
∫sin3xcos2xdx=−31cos3x+51cos5x+C.
Mark notes: 1 mark for choosing to work with 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.
Show worked solution →
Recognise the type. A pure power of tan. Split off tan2x=sec2x−1 to expose a sec2x factor (whose integral pairs with tanx).
Split with the Pythagorean identity.
tan3x=tanx(sec2x−1)=tanxsec2x−tanx.
Integrate each piece. For the first, u=tanx gives ∫tanxsec2xdx=21tan2x. For the second, ∫tanxdx=−ln∣cosx∣. So
∫tan3xdx=21tan2x+ln∣cosx∣+C.
Evaluate from 0 to 4π. At x=4π: tan4π=1 and cos4π=21, so the bracket is 21+ln21=21−21ln2. At x=0: 21(0)+ln1=0.
Answer:∫0π/4tan3xdx=21−21ln2 (about 0.153).
Mark notes: 1 mark for the tan2x=sec2x−1 split, 1 mark for the antiderivative, 1 mark for the exact value.
core3 marksUsing a product-to-sum identity, find ∫sin4xcos2xdx.
Show worked solution →
Recognise the type. A product of a sine and a cosine of different multiples of x. Convert it to a sum with sinAcosB=21[sin(A−B)+sin(A+B)].
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.
exam4 marksShow that ∫0π/4sec4xtan2xdx=158.
Show worked solution →
Recognise the type. Powers of sec and tan with an even power of sec (m=4). Save one sec2x for the differential and turn the rest into tan using sec2x=1+tan2x.
Reserve a sec2x. Write sec4x=sec2x⋅sec2x=(1+tan2x)sec2x, so
sec4xtan2x=(1+tan2x)tan2xsec2x.
Substituteu=tanx, so du=sec2xdx. The limits change: x=0⇒u=0, and x=4π⇒u=tan4π=1. Then
So the integral equals 158 as required (about 0.533).
Mark notes: 1 mark for reserving a sec2x factor, 1 mark for sec2x=1+tan2x and the substitution, 1 mark for changing the limits, 1 mark for the evaluation to 158.
exam3 marksFind ∫sec5xtanxdx.
Show worked solution →
Recognise the type. Powers of sec and tan where the power of tan is odd (n=1). Reserve the factor secxtanx for the differential and write everything else in terms of secx.
Reserve secxtanx. Split off one secx and the single tanx:
sec5xtanx=sec4x⋅(secxtanx).
Substituteu=secx, so du=secxtanxdx:
∫sec5xtanxdx=∫u4du=51u5+C.
Back-substituteu=secx:
∫sec5xtanxdx=51sec5x+C.
Mark notes: 1 mark for reserving the secxtanx factor, 1 mark for the u=secx substitution, 1 mark for the back-substituted answer with +C.