Skip to main content

Trigonometric integrals in HSC Mathematics Extension 2: powers of sine and cosine (odd and even strategies), powers of tangent and secant, the integral of sec x and sec cubed x, and products of sines and cosines via product-to-sum identities

Syllabus dot point

“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”

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

Quick answer

For ∫sin⁡mxcos⁡nx dx\int \sin^m x \cos^n x\,dx: if a power is odd, peel one factor off that function, convert the rest with sin⁡2+cos⁡2=1\sin^2 + \cos^2 = 1, and substitute; if both even, use the power-reduction identities cos⁡2x=12(1+cos⁡2x)\cos^2 x = \tfrac{1}{2}(1+\cos 2x) and sin⁡2x=12(1−cos⁡2x)\sin^2 x = \tfrac{1}{2}(1-\cos 2x). For ∫sec⁡mxtan⁡nx dx\int \sec^m x \tan^n x\,dx: even mm, reserve sec⁡2x\sec^2 x and substitute u=tan⁡xu=\tan x; odd nn, reserve sec⁡xtan⁡x\sec x\tan x and substitute u=sec⁡xu=\sec x; otherwise integrate by parts. Memorise ∫tan⁡x dx=−ln⁡∣cos⁡x∣\int\tan x\,dx=-\ln|\cos x|, ∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣\int\sec x\,dx=\ln|\sec x+\tan x| and ∫sec⁡3x dx=12(sec⁡xtan⁡x+ln⁡∣sec⁡x+tan⁡x∣)\int\sec^3 x\,dx=\tfrac{1}{2}(\sec x\tan x+\ln|\sec x+\tan x|). For products of different multiples, convert to a sum with the product-to-sum identities, then integrate term by term.

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

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 ∫sin⁡mxcos⁡nx dx\int \sin^m x \cos^n x\,dx (the strategy splits on whether the exponents are odd or even); powers ∫sec⁡mxtan⁡nx dx\int \sec^m x \tan^n x\,dx (three sub-cases plus the special integrals of tan⁡x\tan x and sec⁡x\sec x); the standout standard results ∫sec⁡x dx\int \sec x\,dx and ∫sec⁡3x dx\int \sec^3 x\,dx; and products such as sin⁡mxcos⁡nx\sin mx\cos nx that surrender to the product-to-sum identities.

Powers of sine and cosine

Every integral ∫sin⁡mxcos⁡nx dx\int \sin^m x \cos^n x\,dx is decided by the parity of the exponents, and the reason is the derivative pairing ddxsin⁡x=cos⁡x\tfrac{d}{dx}\sin x = \cos x and ddxcos⁡x=−sin⁡x\tfrac{d}{dx}\cos x = -\sin x. A substitution u=sin⁡xu = \sin x needs a spare cos⁡x\cos x to become dudu; a substitution u=cos⁡xu = \cos x needs a spare sin⁡x\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.

Key fact

For ∫sin⁡mxcos⁡nx dx\displaystyle\int \sin^m x \cos^n x\,dx:

  • At least one exponent odd: peel one factor off the odd-power function, rewrite the remaining even power with sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1, then substitute (u=cos⁡xu=\cos x if you peeled a sin⁡x\sin x, or u=sin⁡xu=\sin x if you peeled a cos⁡x\cos x). The result is a polynomial integral.
  • Both exponents even: use the power-reduction identities cos⁡2x=12(1+cos⁡2x)\cos^2 x = \tfrac{1}{2}(1+\cos 2x) and sin⁡2x=12(1−cos⁡2x)\sin^2 x = \tfrac{1}{2}(1-\cos 2x) (and, for a product, sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \tfrac{1}{2}\sin 2x) to halve the degree, then integrate; repeat if a squared cosine remains.

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 cos⁡2k+1x\cos^{2k+1}x. Detach one cosine: cos⁡2k+1x=(cos⁡2x)kcos⁡x=(1−sin⁡2x)kcos⁡x\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 cos⁡x\cos x is precisely the dudu for u=sin⁡xu = \sin x. The same logic mirrors for an odd power of sin⁡\sin: detach one sine (it becomes −du-du for u=cos⁡xu = \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: cos⁡2x=12(1+cos⁡2x)\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 cos⁡22x\cos^2 2x, to which you apply the identity again. The mixed product sin⁡2xcos⁡2x\sin^2 x\cos^2 x is best handled by first writing sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \tfrac{1}{2}\sin 2x, so sin⁡2xcos⁡2x=14sin⁡22x=18(1−cos⁡4x)\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 ∫sec⁡mxtan⁡nx dx\int \sec^m x \tan^n x\,dx is governed by the two derivative facts ddxtan⁡x=sec⁡2x\tfrac{d}{dx}\tan x = \sec^2 x and ddxsec⁡x=sec⁡xtan⁡x\tfrac{d}{dx}\sec x = \sec x\tan x, together with the Pythagorean identity in its tangent form 1+tan⁡2x=sec⁡2x1 + \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.

Key fact

For ∫sec⁡mxtan⁡nx dx\displaystyle\int \sec^m x \tan^n x\,dx:

  • mm even (and m≥2m \ge 2): reserve one sec⁡2x\sec^2 x as the differential, convert the rest with sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x, then substitute u=tan⁡xu = \tan x.
  • nn odd: reserve one sec⁡xtan⁡x\sec x\tan x as the differential, convert the remaining (now even) power of tan⁡\tan with tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1, then substitute u=sec⁡xu = \sec x.
  • mm odd and nn even (so neither reservation works): integrate by parts, which produces a reduction; this is exactly how ∫sec⁡3x dx\int \sec^3 x\,dx is obtained.

Two special cases sit underneath: ∫tan⁡x dx=−ln⁡∣cos⁡x∣+C\displaystyle\int \tan x\,dx = -\ln|\cos x| + C and ∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle\int \sec x\,dx = \ln|\sec x + \tan x| + C.

The two special integrals you must know

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

∫tan⁡x dx=∫sin⁡xcos⁡x dx=−ln⁡∣cos⁡x∣+C.\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx = -\ln|\cos x| + C.

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

∫sec⁡x dx=∫sec⁡x(sec⁡x+tan⁡x)sec⁡x+tan⁡x dx=∫sec⁡xtan⁡x+sec⁡2xsec⁡x+tan⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+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 sec⁡x\sec x derivation, because the same multiply-by-the-conjugate idea is what unlocks ∫sec⁡3x dx\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 sin⁡3xcos⁡2x\sin 3x\cos 2x or cos⁡5xcos⁡3x\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:

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

cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)],\cos A\cos B = \tfrac{1}{2}\big[\cos(A-B) + \cos(A+B)\big],

sin⁡Asin⁡B=12[cos⁡(A−B)−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: sin⁡Asin⁡B\sin A\sin B has a minus sign and the order is cos⁡(A−B)−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:

Exam technique
Decision order
(1) Is it a product of different angles like sin⁡mxcos⁡nx\sin mx\cos nx? Use product-to-sum. (2) Is it sin⁡mxcos⁡nx\sin^m x\cos^n x? Check parity: an odd power means peel-and-substitute, both even means power-reduction. (3) Is it sec⁡mxtan⁡nx\sec^m x\tan^n x? Even sec⁡\sec power reserves sec⁡2x\sec^2 x (sub u=tan⁡xu=\tan x); odd tan⁡\tan power reserves sec⁡xtan⁡x\sec x\tan x (sub u=sec⁡xu=\sec x); the leftover odd-sec⁡\sec, even-tan⁡\tan case is integration by parts.
Show the structural step for the mark
Write the line that exposes the method: the peeled factor with the Pythagorean conversion (cos⁡3x=cos⁡x(1−sin⁡2x)\cos^3 x = \cos x(1-\sin^2 x)), the reserved sec⁡2x\sec^2 x or sec⁡xtan⁡x\sec x\tan x, or the product-to-sum line. That line is usually the first mark; jumping to a uu-substitution without it can be marked down.
Definite integrals
when you substitute u=sin⁡xu=\sin x, u=cos⁡xu=\cos x, u=tan⁡xu=\tan x or u=sec⁡xu=\sec x, change the limits to uu-values and finish in uu, rather than back-substituting. Keep +C+C on every indefinite answer, and keep the modulus inside every ln⁡\ln. "Find the exact value" means surds, π\pi and ln⁡\ln stay; no decimals.

How exam questions ask about trigonometric integrals

  • "Find ∫cos⁡3x dx\int \cos^3 x\,dx" or "∫sin⁡5x dx\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π/2cos⁡4x dx\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π/2cos⁡2=∫0π/2sin⁡2=π4\int_0^{\pi/2}\cos^2 = \int_0^{\pi/2}\sin^2 = \tfrac{\pi}{4}.
  • "Find ∫tan⁡4x dx\int \tan^4 x\,dx" / "∫sec⁡4xtan⁡2x dx\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+tan⁡2x=sec⁡2x1+\tan^2 x = \sec^2 x, substitute.
  • "Find ∫sec⁡x dx\int \sec x\,dx" or "∫sec⁡3x dx\int \sec^3 x\,dx." Quote (or, for sec⁡3x\sec^3 x, derive by parts) the standard result; these are flagged so you produce the log term and the 12(sec⁡xtan⁡x+ln⁡∣sec⁡x+tan⁡x∣)\tfrac{1}{2}(\sec x\tan x + \ln|\sec x+\tan x|) form exactly.
  • "By converting to a sum, find ∫sin⁡3xcos⁡x dx\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.
Integrate an odd power: ∫sin⁡5xcos⁡2x dx\displaystyle\int \sin^5 x \cos^2 x\,dx

Integrate the odd power ∫sin⁡5xcos⁡2x dx\displaystyle\int \sin^5 x \cos^2 x\,dx

Here sin⁡\sin has the odd power (m=5m = 5) and cos⁡\cos the even power (n=2n = 2). The odd power decides everything: work with sin⁡\sin, peel one factor, and convert the rest to cos⁡\cos so that the substitution u=cos⁡xu = \cos x takes over.

Peel one sine and convert the rest. Detach a single sin⁡x\sin x and turn the remaining sin⁡4x\sin^4 x into cosines with sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x:

sin⁡5xcos⁡2x=sin⁡x (sin⁡2x)2cos⁡2x=sin⁡x (1−cos⁡2x)2cos⁡2x.\sin^5 x \cos^2 x = \sin x\,(\sin^2 x)^2\cos^2 x = \sin x\,(1 - \cos^2 x)^2\cos^2 x.

Substitute u=cos⁡xu = \cos x. Then du=−sin⁡x dxdu = -\sin x\,dx, so sin⁡x dx=− du\sin x\,dx = -\,du, and every remaining factor is a function of uu:

∫sin⁡5xcos⁡2x dx=∫(1−u2)2u2 (− du)=−∫(1−2u2+u4)u2 du.\int \sin^5 x \cos^2 x\,dx = \int (1 - u^2)^2 u^2\,(-\,du) = -\int (1 - 2u^2 + u^4)u^2\,du.

Expand to a polynomial. Multiplying through by u2u^2,

−∫(u2−2u4+u6) du.-\int (u^2 - 2u^4 + u^6)\,du.

Integrate term by term.

−(13u3−25u5+17u7)+C=−13u3+25u5−17u7+C.-\left(\frac{1}{3}u^3 - \frac{2}{5}u^5 + \frac{1}{7}u^7\right) + C = -\frac{1}{3}u^3 + \frac{2}{5}u^5 - \frac{1}{7}u^7 + C.

Back-substitute u=cos⁡xu = \cos x.

∫sin⁡5xcos⁡2x dx=−13cos⁡3x+25cos⁡5x−17cos⁡7x+C.\int \sin^5 x \cos^2 x\,dx = -\frac{1}{3}\cos^3 x + \frac{2}{5}\cos^5 x - \frac{1}{7}\cos^7 x + C.

Differentiating this back returns sin⁡5xcos⁡2x\sin^5 x\cos^2 x exactly, which confirms the result.

Final answer: ∫sin⁡5xcos⁡2x dx=−13cos⁡3x+25cos⁡5x−17cos⁡7x+C\displaystyle\int \sin^5 x \cos^2 x\,dx = -\frac{1}{3}\cos^3 x + \frac{2}{5}\cos^5 x - \frac{1}{7}\cos^7 x + C.

Integrate an even power: ∫0π/2cos⁡4x dx\displaystyle\int_0^{\pi/2} \cos^4 x\,dx

Evaluate the even power ∫0π/2cos⁡4x dx\displaystyle\int_0^{\pi/2} \cos^4 x\,dx

The power of cos⁡\cos is even and there is no sin⁡\sin factor to peel, so substitution is unavailable. Reduce the degree with the power-reduction identity, applied twice.

Reduce once. Using cos⁡2x=12(1+cos⁡2x)\cos^2 x = \tfrac{1}{2}(1 + \cos 2x) and squaring,

cos⁡4x=(1+cos⁡2x2)2=14(1+2cos⁡2x+cos⁡22x).\cos^4 x = \left(\frac{1 + \cos 2x}{2}\right)^2 = \frac{1}{4}\big(1 + 2\cos 2x + \cos^2 2x\big).

Reduce the squared cosine again. The term cos⁡22x\cos^2 2x is still even, so apply the identity once more with angle 2x2x: cos⁡22x=12(1+cos⁡4x)\cos^2 2x = \tfrac{1}{2}(1 + \cos 4x). Substituting,

cos⁡4x=14(1+2cos⁡2x+1+cos⁡4x2)=38+12cos⁡2x+18cos⁡4x.\cos^4 x = \frac{1}{4}\left(1 + 2\cos 2x + \frac{1 + \cos 4x}{2}\right) = \frac{3}{8} + \frac{1}{2}\cos 2x + \frac{1}{8}\cos 4x.

Integrate term by term.

∫cos⁡4x dx=38x+14sin⁡2x+132sin⁡4x+C.\int \cos^4 x\,dx = \frac{3}{8}x + \frac{1}{4}\sin 2x + \frac{1}{32}\sin 4x + C.

Evaluate from 00 to π2\tfrac{\pi}{2}. At x=π2x = \tfrac{\pi}{2}: sin⁡2x=sin⁡π=0\sin 2x = \sin\pi = 0 and sin⁡4x=sin⁡2π=0\sin 4x = \sin 2\pi = 0, so only the first term survives, giving 38⋅π2=3π16\tfrac{3}{8}\cdot\tfrac{\pi}{2} = \tfrac{3\pi}{16}. At x=0x = 0 every term is 00.

Final answer: ∫0π/2cos⁡4x dx=3π16\displaystyle\int_0^{\pi/2} \cos^4 x\,dx = \frac{3\pi}{16} (about 0.5890.589). As a sanity check, the average value of cos⁡4x\cos^4 x over a quarter period is 38\tfrac{3}{8}, and 38×π2=3π16\tfrac{3}{8}\times\tfrac{\pi}{2} = \tfrac{3\pi}{16} as found.

Powers of tangent: ∫tan⁡4x dx\displaystyle\int \tan^4 x\,dx

Integrate the power of tangent ∫tan⁡4x dx\displaystyle\int \tan^4 x\,dx

There is no sec⁡\sec factor here (m=0m = 0), and n=4n = 4 is even, so neither standard reservation applies directly. The way in is the Pythagorean identity tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1, which trades two powers of tan⁡\tan for a sec⁡2x\sec^2 x (a ready differential) at a cost of a lower power of tan⁡\tan. This is a reduction in disguise.

Split off a tan⁡2x\tan^2 x. Write tan⁡4x=tan⁡2x (sec⁡2x−1)=tan⁡2xsec⁡2x−tan⁡2x\tan^4 x = \tan^2 x\,(\sec^2 x - 1) = \tan^2 x\sec^2 x - \tan^2 x, so

∫tan⁡4x dx=∫tan⁡2xsec⁡2x dx−∫tan⁡2x dx.\int \tan^4 x\,dx = \int \tan^2 x\sec^2 x\,dx - \int \tan^2 x\,dx.

First integral by substitution. With u=tan⁡xu = \tan x, du=sec⁡2x dxdu = \sec^2 x\,dx:

∫tan⁡2xsec⁡2x dx=∫u2 du=13u3=13tan⁡3x.\int \tan^2 x\sec^2 x\,dx = \int u^2\,du = \frac{1}{3}u^3 = \frac{1}{3}\tan^3 x.

Second integral, reduce again. Apply the identity once more: tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1, so

∫tan⁡2x dx=∫(sec⁡2x−1) dx=tan⁡x−x.\int \tan^2 x\,dx = \int (\sec^2 x - 1)\,dx = \tan x - x.

Combine.

∫tan⁡4x dx=13tan⁡3x−(tan⁡x−x)+C=13tan⁡3x−tan⁡x+x+C.\int \tan^4 x\,dx = \frac{1}{3}\tan^3 x - (\tan x - x) + C = \frac{1}{3}\tan^3 x - \tan x + x + C.

Differentiating back gives sec⁡2xtan⁡2x−sec⁡2x+1=sec⁡2x(tan⁡2x−1)+1\sec^2 x\tan^2 x - \sec^2 x + 1 = \sec^2 x(\tan^2 x - 1) + 1; using sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x this simplifies to tan⁡4x\tan^4 x, confirming the answer.

Final answer: ∫tan⁡4x dx=13tan⁡3x−tan⁡x+x+C\displaystyle\int \tan^4 x\,dx = \frac{1}{3}\tan^3 x - \tan x + x + C.

The standard result ∫sec⁡3x dx\displaystyle\int \sec^3 x\,dx by parts

Derive the standard integral ∫sec⁡3x dx\displaystyle\int \sec^3 x\,dx

This is the odd-sec⁡\sec, even-tan⁡\tan case (m=3m = 3, n=0n = 0): no reserved factor works, so integrate by parts. The integral reappears on the right, which we solve for, exactly the boomerang technique. It relies on already knowing ∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣\int \sec x\,dx = \ln|\sec x + \tan x|.

Set up parts. Write sec⁡3x=sec⁡x⋅sec⁡2x\sec^3 x = \sec x\cdot\sec^2 x and let u=sec⁡xu = \sec x, dv=sec⁡2x dxdv = \sec^2 x\,dx. Then du=sec⁡xtan⁡x dxdu = \sec x\tan x\,dx and v=tan⁡xv = \tan x. Integration by parts ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du gives

∫sec⁡3x dx=sec⁡xtan⁡x−∫tan⁡x (sec⁡xtan⁡x) dx=sec⁡xtan⁡x−∫sec⁡xtan⁡2x dx.\int \sec^3 x\,dx = \sec x\tan x - \int \tan x\,(\sec x\tan x)\,dx = \sec x\tan x - \int \sec x\tan^2 x\,dx.

Convert the leftover tan⁡2x\tan^2 x. Using tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1,

∫sec⁡xtan⁡2x dx=∫sec⁡x(sec⁡2x−1) dx=∫sec⁡3x dx−∫sec⁡x dx.\int \sec x\tan^2 x\,dx = \int \sec x(\sec^2 x - 1)\,dx = \int \sec^3 x\,dx - \int \sec x\,dx.

Spot the boomerang. Substituting back, and writing I=∫sec⁡3x dxI = \int \sec^3 x\,dx,

I=sec⁡xtan⁡x−(I−∫sec⁡x dx)=sec⁡xtan⁡x−I+ln⁡∣sec⁡x+tan⁡x∣.I = \sec x\tan x - \left(I - \int \sec x\,dx\right) = \sec x\tan x - I + \ln|\sec x + \tan x|.

Solve for II. Adding II to both sides, 2I=sec⁡xtan⁡x+ln⁡∣sec⁡x+tan⁡x∣2I = \sec x\tan x + \ln|\sec x + \tan x|, hence

∫sec⁡3x dx=12(sec⁡xtan⁡x+ln⁡∣sec⁡x+tan⁡x∣)+C.\int \sec^3 x\,dx = \frac{1}{2}\Big(\sec x\tan x + \ln|\sec x + \tan x|\Big) + C.

Differentiating the right side returns sec⁡3x\sec^3 x, confirming the result.

Final answer: ∫sec⁡3x dx=12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle\int \sec^3 x\,dx = \frac{1}{2}\sec x\tan x + \frac{1}{2}\ln|\sec x + \tan x| + C.

A product via product-to-sum: ∫cos⁡5xcos⁡3x dx\displaystyle\int \cos 5x\cos 3x\,dx

Integrate the product ∫cos⁡5xcos⁡3x dx\displaystyle\int \cos 5x\cos 3x\,dx

The integrand is a product of cosines of different multiples of xx. There is no Pythagorean factor to exploit, so convert the product to a sum and integrate each piece.

Apply the product-to-sum identity. With cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)]\cos A\cos B = \tfrac{1}{2}\big[\cos(A-B) + \cos(A+B)\big] and A=5xA = 5x, B=3xB = 3x:

cos⁡5xcos⁡3x=12[cos⁡2x+cos⁡8x].\cos 5x\cos 3x = \frac{1}{2}\big[\cos 2x + \cos 8x\big].

Integrate term by term. Each cosine integrates to a sine over its multiple:

∫cos⁡5xcos⁡3x dx=12[12sin⁡2x+18sin⁡8x]+C=14sin⁡2x+116sin⁡8x+C.\int \cos 5x\cos 3x\,dx = \frac{1}{2}\left[\frac{1}{2}\sin 2x + \frac{1}{8}\sin 8x\right] + C = \frac{1}{4}\sin 2x + \frac{1}{16}\sin 8x + C.

Differentiating back gives 12cos⁡2x+12cos⁡8x=cos⁡5xcos⁡3x\tfrac{1}{2}\cos 2x + \tfrac{1}{2}\cos 8x = \cos 5x\cos 3x, confirming the answer.

Final answer: ∫cos⁡5xcos⁡3x dx=14sin⁡2x+116sin⁡8x+C\displaystyle\int \cos 5x\cos 3x\,dx = \frac{1}{4}\sin 2x + \frac{1}{16}\sin 8x + C.

As a definite-integral variant, ∫0π/4cos⁡5xcos⁡3x dx=[14sin⁡2x+116sin⁡8x]0π/4=14sin⁡π2+116sin⁡2π=14\displaystyle\int_0^{\pi/4}\cos 5x\cos 3x\,dx = \left[\tfrac{1}{4}\sin 2x + \tfrac{1}{16}\sin 8x\right]_0^{\pi/4} = \tfrac{1}{4}\sin\tfrac{\pi}{2} + \tfrac{1}{16}\sin 2\pi = \tfrac{1}{4}.

Common traps
Treating an even power like an odd one
∫cos⁡4x dx\int \cos^4 x\,dx has no spare factor to peel, so u=sin⁡xu = \sin x leaves an unmanaged cos⁡3x\cos^3 x. Both-even means power-reduction, not substitution.
Forgetting to convert before substituting
After peeling a sin⁡x\sin x from sin⁡5xcos⁡2x\sin^5 x\cos^2 x you must turn the remaining sin⁡4x\sin^4 x into (1−cos⁡2x)2(1-\cos^2 x)^2 before u=cos⁡xu = \cos x works; leaving any sin⁡\sin behind (other than the one in dudu) breaks the substitution.
The wrong reserved factor for tan and sec
Even power of sec⁡\sec reserves sec⁡2x\sec^2 x with u=tan⁡xu = \tan x; odd power of tan⁡\tan reserves sec⁡xtan⁡x\sec x\tan x with u=sec⁡xu = \sec x. Reserving the wrong one leaves a factor that is not the right dudu.
Sign in the sin⁡Asin⁡B\sin A\sin B identity
It is sin⁡Asin⁡B=12[cos⁡(A−B)−cos⁡(A+B)]\sin A\sin B = \tfrac{1}{2}[\cos(A-B) - \cos(A+B)], with a minus sign; the cosine product has a plus. Mixing them flips a sign through the whole answer.
Dropping the modulus or the boomerang halving
Keep ln⁡∣cos⁡x∣\ln|\cos x| and ln⁡∣sec⁡x+tan⁡x∣\ln|\sec x + \tan x| with the bars, and remember ∫sec⁡3x dx\int \sec^3 x\,dx ends in a factor of 12\tfrac{1}{2} after solving 2I=…2I = \ldots; forgetting it doubles the answer.

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.

HSC Ext 2-style (representative)3 marks
Find the exact value of ∫0π/2sin⁡3x dx\displaystyle\int_0^{\pi/2} \sin^3 x \, dx.
Show worked answer →

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

sin⁡3x=sin⁡x (1−cos⁡2x)\sin^3 x = \sin x\,(1 - \cos^2 x).

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

∫0π/2sin⁡3x dx=∫10(1−u2)(− du)=∫01(1−u2) du=[u−13u3]01=1−13=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 sin⁡x\sin x and using sin⁡2x=1−cos⁡2x\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-style (representative)3 marks
Find the exact value of ∫0π/4sec⁡2xtan⁡3x dx\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 sec⁡2x\sec^2 x as the differential and substitute u=tan⁡xu = \tan x, with du=sec⁡2x dxdu = \sec^2 x\,dx. The limits change: x=0⇒u=0x = 0 \Rightarrow u = 0, and x=π4⇒u=tan⁡π4=1x = \tfrac{\pi}{4} \Rightarrow u = \tan\tfrac{\pi}{4} = 1. Then

∫0π/4sec⁡2xtan⁡3x dx=∫01u3 du=[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 sec⁡2x\sec^2 x and choosing u=tan⁡xu = \tan x, 1 mark for changing the limits, 1 mark for the value 14\tfrac{1}{4}.

HSC Ext 2-style (representative)2 marks
By first converting the product to a sum, find ∫cos⁡3xcos⁡x dx\displaystyle\int \cos 3x \cos x \, dx.
Show worked answer →

Use cos⁡Acos⁡B=12[cos⁡(A−B)+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:

cos⁡3xcos⁡x=12[cos⁡2x+cos⁡4x].\cos 3x\cos x = \tfrac{1}{2}\big[\cos 2x + \cos 4x\big].

Integrate each term:

∫cos⁡3xcos⁡x dx=12[12sin⁡2x+14sin⁡4x]+C=14sin⁡2x+18sin⁡4x+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 marks
Find the exact value of ∫0π/2sin⁡2x dx\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 sin⁡2x=12(1−cos⁡2x)\sin^2 x = \frac{1}{2}(1 - \cos 2x),

∫0π/2sin⁡2x dx=12∫0π/2(1−cos⁡2x) dx=12[ x−12sin⁡2x ]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 sin⁡2x=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π/2sin⁡2x dx=π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 marks
Find ∫cos⁡3x dx\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 cos⁡x\cos x and convert the rest to sin⁡\sin.

Peel and convert. Write cos⁡3x=cos⁡x (1−sin⁡2x)\cos^3 x = \cos x \,(1 - \sin^2 x) using cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x.

Substitute u=sin⁡xu = \sin x, so du=cos⁡x dxdu = \cos x \, dx:

∫cos⁡3x dx=∫(1−u2) du=u−13u3+C.\int \cos^3 x \, dx = \int (1 - u^2)\, du = u - \frac{1}{3}u^3 + C.

Back-substitute u=sin⁡xu = \sin x:

∫cos⁡3x dx=sin⁡x−13sin⁡3x+C.\int \cos^3 x \, dx = \sin x - \frac{1}{3}\sin^3 x + C.

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

core3 marks
Find ∫sin⁡3xcos⁡2x dx\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 sin⁡x\sin x and turn the remaining sin⁡2x\sin^2 x into 1−cos⁡2x1 - \cos^2 x.

Peel and convert. sin⁡3xcos⁡2x=sin⁡x (1−cos⁡2x)cos⁡2x\sin^3 x \cos^2 x = \sin x\,(1 - \cos^2 x)\cos^2 x.

Substitute u=cos⁡xu = \cos x, so du=−sin⁡x dxdu = -\sin x \, dx, i.e. sin⁡x dx=− du\sin x \, dx = -\,du:

∫sin⁡3xcos⁡2x dx=∫(1−u2)u2 (− du)=−∫(u2−u4) 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.

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

Back-substitute u=cos⁡xu = \cos x:

∫sin⁡3xcos⁡2x dx=−13cos⁡3x+15cos⁡5x+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 marks
Find the exact value of ∫0π/4tan⁡3x dx\displaystyle\int_0^{\pi/4} \tan^3 x \, dx.
Show worked solution →

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

Split with the Pythagorean identity.

tan⁡3x=tan⁡x (sec⁡2x−1)=tan⁡xsec⁡2x−tan⁡x.\tan^3 x = \tan x\,(\sec^2 x - 1) = \tan x \sec^2 x - \tan x.

Integrate each piece. For the first, u=tan⁡xu = \tan x gives ∫tan⁡xsec⁡2x dx=12tan⁡2x\int \tan x \sec^2 x \, dx = \frac{1}{2}\tan^2 x. For the second, ∫tan⁡x dx=−ln⁡∣cos⁡x∣\int \tan x \, dx = -\ln|\cos x|. So

∫tan⁡3x dx=12tan⁡2x+ln⁡∣cos⁡x∣+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+ln⁡12=12−12ln⁡2\frac{1}{2} + \ln\frac{1}{\sqrt 2} = \frac{1}{2} - \frac{1}{2}\ln 2. At x=0x = 0: 12(0)+ln⁡1=0\frac{1}{2}(0) + \ln 1 = 0.

Answer: ∫0π/4tan⁡3x dx=12−12ln⁡2\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 tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1 split, 1 mark for the antiderivative, 1 mark for the exact value.

core3 marks
Using a product-to-sum identity, find ∫sin⁡4xcos⁡2x dx\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 sin⁡Acos⁡B=12[sin⁡(A−B)+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:

sin⁡4xcos⁡2x=12[sin⁡2x+sin⁡6x].\sin 4x \cos 2x = \frac{1}{2}\big[\sin 2x + \sin 6x\big].

Integrate term by term.

∫sin⁡4xcos⁡2x dx=12[−12cos⁡2x−16cos⁡6x]+C=−14cos⁡2x−112cos⁡6x+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 marks
Show that ∫0π/4sec⁡4xtan⁡2x dx=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 sec⁡2x\sec^2 x for the differential and turn the rest into tan⁡\tan using sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x.

Reserve a sec⁡2x\sec^2 x. Write sec⁡4x=sec⁡2x⋅sec⁡2x=(1+tan⁡2x)sec⁡2x\sec^4 x = \sec^2 x \cdot \sec^2 x = (1 + \tan^2 x)\sec^2 x, so

sec⁡4xtan⁡2x=(1+tan⁡2x)tan⁡2x sec⁡2x.\sec^4 x \tan^2 x = (1 + \tan^2 x)\tan^2 x \, \sec^2 x.

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

∫0π/4sec⁡4xtan⁡2x dx=∫01(1+u2)u2 du=∫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 sec⁡2x\sec^2 x factor, 1 mark for sec⁡2x=1+tan⁡2x\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 marks
Find ∫sec⁡5xtan⁡x dx\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 sec⁡xtan⁡x\sec x \tan x for the differential and write everything else in terms of sec⁡x\sec x.

Reserve sec⁡xtan⁡x\sec x \tan x. Split off one sec⁡x\sec x and the single tan⁡x\tan x:

sec⁡5xtan⁡x=sec⁡4x⋅(sec⁡xtan⁡x).\sec^5 x \tan x = \sec^4 x \cdot (\sec x \tan x).

Substitute u=sec⁡xu = \sec x, so du=sec⁡xtan⁡x dxdu = \sec x \tan x \, dx:

∫sec⁡5xtan⁡x dx=∫u4 du=15u5+C.\int \sec^5 x \tan x \, dx = \int u^4 \, du = \frac{1}{5}u^5 + C.

Back-substitute u=sec⁡xu = \sec x:

∫sec⁡5xtan⁡x dx=15sec⁡5x+C.\int \sec^5 x \tan x \, dx = \frac{1}{5}\sec^5 x + C.

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

Practise this

Sources & how we know this

ExamExplained