Calculus › Section I · Integration techniques and improper integrals › Topic I.3

Trigonometric integrals

No basic rule fits ∫sin²x dx: substituting u = sin x would need a spare cos x for du, and there is none. The unlocking tools are not new integration rules at all — they are trigonometric identities. This topic is a strategy lesson: classify the integral by whether its powers are odd or even, then choose the identity that flattens it into pieces you already know.

The identity toolkit

Three identities do almost all the work. The Pythagorean identity \(\sin^2 x + \cos^2 x = 1\), and its cousin \(1 + \tan^2 x = \sec^2 x\), let you swap a squared function for its partner. The half-angle formulas \(\sin^2 x = \frac{1 - \cos 2x}{2}\) and \(\cos^2 x = \frac{1 + \cos 2x}{2}\) trade a squared trig function for a constant plus a first-power cosine of double the angle — and first-power trig functions integrate directly. Everything else in this topic is bookkeeping around these three formulas, plus the strategy rules that decide which one to reach for.

Odd powers: save one factor

When a sine or cosine has an odd power, peel off a single factor and convert the rest with \(\sin^2 + \cos^2 = 1\). The peeled-off factor becomes \(du\). Worked through:

\int \cos^3 x\,dx = \int (1 - \sin^2 x)\cos x\,dx

With \(u = \sin x\), \(du = \cos x\,dx\), this is \(\int (1 - u^2)\,du = u - \tfrac{u^3}{3} + C\):

\int \cos^3 x\,dx = \sin x - \tfrac{\sin^3 x}{3} + C

Check by differentiating: \(\cos x - \sin^2 x\cos x = \cos x(1 - \sin^2 x) = \cos^3 x\) ✓. The method needs the odd power precisely because it supplies the spare factor for \(du\).

Even powers: half-angle formulas

When every power is even, there is no spare factor to peel — so lower the powers instead, with the half-angle formulas.

\int \sin^2 x\,dx = \int \frac{1 - \cos 2x}{2}\,dx = \frac{x}{2} - \frac{\sin 2x}{4} + C

Check by differentiating: \(\frac{1}{2} - \frac{\cos 2x}{2} = \frac{1 - \cos 2x}{2} = \sin^2 x\) ✓. The same move gives \(\int_0^{2\pi}\cos^2 x\,dx = \left[\frac{x}{2} + \frac{\sin 2x}{4}\right]_0^{2\pi} = \pi\): the oscillating term contributes nothing over a whole number of periods, so the integral is exactly half the interval length. That half-length rule is worth remembering on its own.

Worked example: mixed powers

Evaluate \(\int \sin^4 x\cos^3 x\,dx\). Cosine has the odd power, so save one \(\cos x\) and convert the remaining \(\cos^2 x = 1 - \sin^2 x\):

\int \sin^4 x(1 - \sin^2 x)\cos x\,dx

With \(u = \sin x\), \(du = \cos x\,dx\), the integral is \(\int (u^4 - u^6)\,du = \frac{u^5}{5} - \frac{u^7}{7} + C\):

\frac{\sin^5 x}{5} - \frac{\sin^7 x}{7} + C

Check by differentiating: \(\sin^4 x\cos x - \sin^6 x\cos x = \sin^4 x(1 - \sin^2 x)\cos x = \sin^4 x\cos^3 x\) ✓. The parity rule generalises: whichever function has the odd power donates its spare factor as \(du\).

Tangents and secants

For products of tangents and secants, the derivatives \(\frac{d}{dx}\tan x = \sec^2 x\) and \(\frac{d}{dx}\sec x = \sec x\tan x\) set the strategy. If the secant power is even, save a \(\sec^2 x\) and substitute \(u = \tan x\), converting the rest with \(\sec^2 x = 1 + \tan^2 x\). If the tangent power is odd, save \(\sec x\tan x\) and substitute \(u = \sec x\), converting the rest with \(\tan^2 x = \sec^2 x - 1\). Two standard results power both routes: \(\int \tan x\,dx = \ln|\sec x| + C\) and \(\int \sec x\,dx = \ln|\sec x + \tan x| + C\). The first follows from writing \(\tan x = \frac{\sin x}{\cos x}\) and substituting \(u = \cos x\), which gives \(-\ln|\cos x| = \ln|\sec x|\). The second comes from multiplying by \(\frac{\sec x + \tan x}{\sec x + \tan x}\) — a famous trick worth seeing once, then just remembering.

Worked example: a power of tangent

Evaluate \(\int \tan^3 x\,dx\). The tangent power is odd, but \(\tan x\,dx\) alone is already a standard result, so the cheaper route is the identity \(\tan^2 x = \sec^2 x - 1\):

\int \tan x(\sec^2 x - 1)\,dx = \int \tan x\sec^2 x\,dx - \int \tan x\,dx

The first piece is \(\frac{1}{2}\tan^2 x\) (substitute \(u = \tan x\)); the second is \(\ln|\sec x|\):

\int \tan^3 x\,dx = \frac{\tan^2 x}{2} - \ln|\sec x| + C

Check by differentiating: \(\tan x\sec^2 x - \tan x = \tan x(\sec^2 x - 1) = \tan^3 x\) ✓. Identity first, standard results second — that is the whole method.

Applied: why a wall outlet says 120 volts

Alternating-current voltage swings like a sine wave, \(V(t) = V_0\sin(\omega t)\), so it spends as much time negative as positive — the plain average of \(V\) is zero, which would suggest no power at all. What drives power is the average of \(V^2\). By the half-angle formula, \(V^2 = \frac{V_0^2}{2}(1 - \cos 2\omega t)\), and over a whole number of periods the cosine term averages to zero, leaving exactly \(\frac{V_0^2}{2}\). The square root of that average is the RMS voltage: \(\frac{V_0}{\sqrt{2}} \approx 0.707V_0\). A standard US household outlet is rated 120 volts RMS, so the actual peak is \(120\sqrt{2} \approx 170\) volts — a direct application of averaging a sine-squared.

Common mistakes to avoid

Applying the half-angle formulas to odd powers technically works but multiplies the work: with an odd power, the save-one-factor method is faster and cleaner, so check parity before choosing a strategy. Forgetting the sign when \(u = \cos x\): its derivative is \(-\sin x\,dx\), and the missing minus flips the answer. Losing the \(\frac{1}{2}\) from the half-angle formula, or forgetting that integrating \(\cos 2x\) contributes a further \(\frac{1}{2}\) — hence the \(\frac{1}{4}\) on the \(\sin 2x\) term. Quoting \(\int \sec x\,dx\) as \(\ln|\sec x|\) — the standard result is \(\ln|\sec x + \tan x|\). And dropping absolute values inside logarithms when the domain is unspecified.

Key takeaways

Odd power of sine or cosine: save one factor, convert the rest with \(\sin^2 + \cos^2 = 1\), and let the saved factor be \(du\). All powers even: lower them with \(\sin^2 x = \frac{1 - \cos 2x}{2}\) and \(\cos^2 x = \frac{1 + \cos 2x}{2}\). Tangent-secant products: even secant saves \(\sec^2 x\) for \(u = \tan x\); odd tangent saves \(\sec x\tan x\) for \(u = \sec x\). Standard results: \(\int \tan x\,dx = \ln|\sec x| + C\), \(\int \sec x\,dx = \ln|\sec x + \tan x| + C\). Over whole periods, \(V_0^2\sin^2(\omega t)\) averages to half its peak value \(V_0^2\) — the RMS fact behind outlet voltage.

Flashcards

Flashcard

sin²x + cos²x = 1

Pythagorean identity

Converts all but one factor of an odd power.

Test your understanding

Question 1 of 5

Which substitution tames ∫cos⁵x sin²x dx?

Question 2 of 5

What is ∫₀²π sin²x dx?

Question 3 of 5

What is ∫tan x dx?

Question 4 of 5

What is ∫sec x dx?

Question 5 of 5

An AC voltage is V(t) = V₀ sin(ωt). Over a full period, what is the average value of V(t)²?

Standards: Beyond AP

← Previous topicNext topic →