← Back to Calculus

Identities Rewrite Hard Integrals

Trigonometric identities turn products and powers of sines and cosines into integrals you already know, and trig substitution removes square roots that resist every other method.

The identities you need

Three identities do most of the work: the Pythagorean identity \(\sin^2 x + \cos^2 x = 1\) (and its cousin \(1 + \tan^2 x = \sec^2 x\)), and the half-angle formulas \(\sin^2 x = \frac{1 - \cos 2x}{2}\) and \(\cos^2 x = \frac{1 + \cos 2x}{2}\). Knowing them cold makes this lesson far easier.

\sin^2 x = \tfrac{1-\cos 2x}{2},\quad \cos^2 x = \tfrac{1+\cos 2x}{2}

Odd powers of sine or cosine

If one of the powers is odd, save one factor and convert the rest with \(\sin^2 + \cos^2 = 1\). For \(\int \sin^3 x\,dx\): write \(\sin^3 x = (1 - \cos^2 x)\sin x\), let \(u = \cos x\), \(du = -\sin x\,dx\). The integral becomes \(-\int (1 - u^2)\,du = -\cos x + \frac{\cos^3 x}{3} + C\).

Even powers: half-angle formulas

If all powers are even, use the half-angle formulas to lower them. \(\int \cos^2 x\,dx = \int \frac{1 + \cos 2x}{2}\,dx = \frac{x}{2} + \frac{\sin 2x}{4} + C\). Over a full period, the cosine term integrates to zero, which is why \(\int_0^{\pi}\sin^2 x\,dx = \frac{\pi}{2}\): half the interval length.

\int_0^{\pi}\sin^2 x\,dx = \frac{\pi}{2}

Worked example: sine times cosine

\(\int \sin^2 x\cos^3 x\,dx\). Cosine has the odd power, so save one \(\cos x\) and convert \(\cos^2 x = 1 - \sin^2 x\). With \(u = \sin x\), \(du = \cos x\,dx\), the integral is \(\int u^2(1 - u^2)\,du = \frac{\sin^3 x}{3} - \frac{\sin^5 x}{5} + C\).

Tangents and secants

Use \(\frac{d}{dx}\tan x = \sec^2 x\) and \(\frac{d}{dx}\sec x = \sec x\tan x\). If the power of secant is even, save \(\sec^2 x\) and substitute \(u = \tan x\). If the power of tangent is odd, save \(\sec x\tan x\) and substitute \(u = \sec x\). Two results worth memorising: \(\int \tan x\,dx = \ln|\sec x| + C\) and \(\int \sec x\,dx = \ln|\sec x + \tan x| + C\).

\int \sec x\,dx = \ln|\sec x + \tan x| + C

Trigonometric substitution: the idea

Square roots like \(\sqrt{a^2 - x^2}\) appear in circles, arc lengths, and physics. Substituting \(x\) with a trig function makes the expression under the root a perfect square by a Pythagorean identity, so the root disappears. It is substitution in reverse: you replace \(x\) by a function of a new variable \(\theta\).

The three cases

For \(\sqrt{a^2 - x^2}\), use \(x = a\sin\theta\): then \(a^2 - x^2 = a^2\cos^2\theta\). For \(\sqrt{a^2 + x^2}\), use \(x = a\tan\theta\): then \(a^2 + x^2 = a^2\sec^2\theta\). For \(\sqrt{x^2 - a^2}\), use \(x = a\sec\theta\): then \(x^2 - a^2 = a^2\tan^2\theta\). Match the sign pattern to the identity.

\sqrt{a^2-x^2} \to x = a\sin\theta

Worked example: the area of a circle

The area of a circle of radius \(a\) is \(4\int_0^a \sqrt{a^2 - x^2}\,dx\). With \(x = a\sin\theta\), \(dx = a\cos\theta\,d\theta\), and limits \(0\) to \(\frac{\pi}{2}\), the integral becomes \(4a^2\int_0^{\pi/2}\cos^2\theta\,d\theta = 4a^2 \cdot \frac{\pi}{4} = \pi a^2\). Calculus confirms the formula you learned in school.

4\int_0^a\sqrt{a^2-x^2}\,dx = \pi a^2

Worked example: back to x

\(\int \frac{dx}{\sqrt{4 + x^2}}\). Let \(x = 2\tan\theta\), \(dx = 2\sec^2\theta\,d\theta\), \(\sqrt{4 + x^2} = 2\sec\theta\). The integral is \(\int \sec\theta\,d\theta = \ln|\sec\theta + \tan\theta| + C\). Draw a right triangle with opposite side \(x\) and adjacent side \(2\): the hypotenuse is \(\sqrt{4 + x^2}\). So the answer is \(\ln\left|\frac{\sqrt{4+x^2} + x}{2}\right| + C\).

A shortcut to remember

Two standard results come straight from trig substitution and appear constantly: \(\int \frac{dx}{\sqrt{a^2 - x^2}} = \arcsin\frac{x}{a} + C\) and \(\int \frac{dx}{a^2 + x^2} = \frac{1}{a}\arctan\frac{x}{a} + C\). Recognising these saves a full substitution.

\int \frac{dx}{a^2+x^2} = \frac{1}{a}\arctan\frac{x}{a} + C

Common mistakes

Mixing up which substitution goes with which root. Forgetting to convert \(dx\) to \(d\theta\). Forgetting to convert back to \(x\) using a triangle, or to change the limits for a definite integral. Losing a factor of \(\frac{1}{2}\) when using half-angle formulas.

Try it yourself

Find \(\int \sin^2 x\,dx\). Answer: \(\frac{x}{2} - \frac{\sin 2x}{4} + C\). Then find \(\int \frac{dx}{9 + x^2}\). Answer: \(\frac{1}{3}\arctan\frac{x}{3} + C\).

Key takeaways

Odd powers: save one factor and use \(\sin^2 + \cos^2 = 1\). Even powers: use half-angle formulas. Secant-tangent integrals use \(u = \tan x\) or \(u = \sec x\). Trig substitution removes roots: \(a\sin\theta\), \(a\tan\theta\), \(a\sec\theta\) for \(a^2 - x^2\), \(a^2 + x^2\), \(x^2 - a^2\). Convert back with a right triangle.

Flashcard

\sin^2 x + \cos^2 x = 1

Pythagorean identity

The key to converting odd powers.

Check your understanding

Which substitution best simplifies the integral of sqrt(9 - x^2) dx?

Take the unit quiz

← Previous lesson Next lesson →