01 / 21

Integrating
\(\sin\) & \(\cos\) Products

Master the techniques for evaluating integrals of the form \(\int \sin^m x \cos^n x\, dx\) using power-reduction, u-substitution, and half-angle identities.

Calculus 2

Why Trig Integrals Matter

Products of \(\sin x\) and \(\cos x\) arise everywhere: Fourier series, signal processing, physics of waves, and area calculations. Learning to integrate them systematically gives you a powerful toolkit that extends far beyond the classroom.

The Key Identities You Need

Pythagorean
\(\sin^2 x + \cos^2 x = 1\)
Half-Angle (sin)
\(\sin^2 x = \tfrac{1 - \cos 2x}{2}\)
Half-Angle (cos)
\(\cos^2 x = \tfrac{1 + \cos 2x}{2}\)

Visualizing \(\sin^2 x\) and \(\cos^2 x\)

The Master Strategy

For \(\displaystyle\int \sin^m x\,\cos^n x\, dx\), the approach depends on whether the exponents \(m\) and \(n\) are odd or even.

At Least One Odd
Peel off one factor of the odd-powered function, convert the rest using the Pythagorean identity, and u-substitute.
Both Even
Apply half-angle identities to reduce the powers, then expand and integrate.

Case 1: Odd Power of \(\sin x\) or \(\cos x\)

1
Identify the odd exponent. Suppose \(m\) is odd in \(\sin^m x\,\cos^n x\).
2
Peel off one factor: write \(\sin^m x = \sin^{m-1} x \cdot \sin x\).
3
Convert: replace \(\sin^{m-1} x\) using \(\sin^2 x = 1 - \cos^2 x\) so everything is in terms of \(\cos x\).
4
Substitute: let \(u = \cos x\), \(du = -\sin x\, dx\). The peeled \(\sin x\, dx\) becomes \(-du\).

Case 2: Both Even Powers

1
Apply half-angle identities to every \(\sin^2 x\) and \(\cos^2 x\) factor.
2
Expand the resulting product. You may get constants, \(\cos 2x\), \(\cos^2 2x\), etc.
3
Repeat half-angle reduction on any remaining even powers of \(\cos 2x\).
4
Integrate the resulting sum of simple cosines and constants.

Odd vs. Even: Choosing the Right Path

At Least One Odd Both Even
Primary Tool u-substitution Half-angle identities
Identity Used \(\sin^2 x = 1 - \cos^2 x\) \(\sin^2 x = \tfrac{1-\cos 2x}{2}\)
Substitution \(u = \cos x\) or \(u = \sin x\) None needed initially
Typical Result Polynomial in \(u\) Sum of cosine terms
Example \(\sin^3 x\,\cos^2 x\) \(\sin^2 x\,\cos^2 x\)

Step-by-Step Decision Process

Is \(m\) or \(n\) odd?
YES NO
Peel off \(\sin x\) or \(\cos x\)
Convert via Pythagorean
\(u\)-sub: \(u = \text{other trig fn}\)
Apply half-angle IDs
Expand and simplify
Integrate cosine terms

Example 1: \(\int \sin^3 x\,\cos^2 x\, dx\)

Since the power of \(\sin x\) is odd (3), we peel off one \(\sin x\) and convert the rest:

1
Rewrite: \(\displaystyle\int \sin^2 x\,\cos^2 x \cdot \sin x\, dx\)
2
Replace \(\sin^2 x = 1 - \cos^2 x\): \(\displaystyle\int (1-\cos^2 x)\cos^2 x\,\sin x\, dx\)
3
Let \(u = \cos x\), \(du = -\sin x\, dx\): \(\displaystyle -\int (1-u^2)u^2\, du\)
4
Expand: \(\displaystyle -\int (u^2 - u^4)\, du = -\frac{u^3}{3} + \frac{u^5}{5} + C\)

Example 2: \(\int \sin^2 x\,\cos^2 x\, dx\)

Both exponents are even (2 and 2), so we apply half-angle identities:

1
\(\displaystyle \sin^2 x\,\cos^2 x = \left(\frac{1-\cos 2x}{2}\right)\left(\frac{1+\cos 2x}{2}\right)\)
2
Multiply: \(\displaystyle = \frac{1 - \cos^2 2x}{4}\)
3
Half-angle again: \(\displaystyle \cos^2 2x = \frac{1 + \cos 4x}{2}\), so \(\displaystyle = \frac{1}{4}\left(1 - \frac{1+\cos 4x}{2}\right) = \frac{1}{8}(1 - \cos 4x)\)
4
Integrate: \(\displaystyle \frac{1}{8}\left(x - \frac{\sin 4x}{4}\right) + C\)

Example 3: \(\int \cos^5 x\, dx\)

Here \(m = 0\) and \(n = 5\) (odd). We peel off one \(\cos x\) and convert the remaining \(\cos^4 x\):

1
Rewrite: \(\displaystyle\int \cos^4 x\cdot\cos x\, dx\)
2
Replace \(\cos^4 x = (\cos^2 x)^2 = (1 - \sin^2 x)^2\)
3
Let \(u = \sin x\), \(du = \cos x\, dx\): \(\displaystyle \int (1-u^2)^2\, du\)
4
Expand and integrate: \(\displaystyle u - \frac{2u^3}{3} + \frac{u^5}{5} + C\)

Useful Shortcut: \(\sin x \cos x\)

For example, \(\displaystyle\int \sin^2 x\cos^2 x\, dx = \int \left(\frac{\sin 2x}{2}\right)^2 dx = \frac{1}{4}\int \sin^2 2x\, dx\), which can be easier to handle than expanding both half-angle identities separately.

Definite Integrals on \([0, \pi/2]\)

For definite integrals of the form \(\displaystyle\int_0^{\pi/2}\sin^m x\,\cos^n x\, dx\), the same techniques apply, but there is an elegant pattern known as Wallis's formula for pure powers:

\(\int_0^{\pi/2} \sin^n x\, dx\)
If \(n\) is even: \(\frac{n-1}{n}\cdot\frac{n-3}{n-2}\cdots\frac{1}{2}\cdot\frac{\pi}{2}\). If \(n\) is odd: \(\frac{n-1}{n}\cdot\frac{n-3}{n-2}\cdots\frac{2}{3}\).
Example: \(n=4\)
\(\displaystyle\int_0^{\pi/2}\sin^4 x\, dx = \frac{3}{4}\cdot\frac{1}{2}\cdot\frac{\pi}{2} = \frac{3\pi}{16}\)

Common Mistakes to Avoid

✕ Using half-angle when odd
If one exponent is odd, u-substitution is simpler. Half-angle identities create unnecessary complexity.
✕ Wrong u-substitution
If \(\sin\) has the odd power, let \(u = \cos x\), not \(u = \sin x\). Peel off the odd function, substitute the other.
✕ Forgetting the sign of \(du\)
If \(u = \cos x\), then \(du = -\sin x\, dx\). The negative sign is critical and easy to lose.

Summary: Strategy Reference

Exponents Strategy Key Step
\(m\) odd u-sub with \(u = \cos x\) Peel \(\sin x\), convert \(\sin^2 x\)
\(n\) odd u-sub with \(u = \sin x\) Peel \(\cos x\), convert \(\cos^2 x\)
Both odd Choose smaller odd Either substitution works
Both even Half-angle reduction Reduce, expand, repeat

Question 1 of 5

What is the best strategy for evaluating \(\displaystyle\int \sin^5 x\,\cos^2 x\, dx\)?

Question 2 of 5

Which identity is used to reduce \(\sin^2 x\) when both exponents are even?

Question 3 of 5

Evaluate \(\displaystyle\int \sin^3 x\, dx\).

Question 4 of 5

If you are evaluating \(\displaystyle\int \sin^2 x\,\cos^4 x\, dx\), after one round of half-angle reduction you will encounter:

Question 5 of 5

Which substitution is correct when evaluating \(\displaystyle\int \sin^4 x\,\cos^3 x\, dx\)?