Tutorials › Calculus II › Integrating Odd Powers of Cosine

Sine and Cosine Powers · Tutorial 103 of 998

Integrating Odd Powers of Cosine

Use the sine substitution to turn an odd power of cosine into an ordinary polynomial integral, then check your result by differentiation.

Beginner 9 min read

What You'll Learn

  • Recognize why an odd cosine exponent leaves a useful cosine factor for substitution.
  • Rewrite the remaining even power using the Pythagorean identity.
  • Integrate the resulting polynomial in sine.
  • Apply the method to cosine powers of three, five, and seven.
  • Check an antiderivative by differentiating it.
  • Identify and correct a common substitution error.

Why Odd Powers of Cosine Are Convenient

Integrals of powers of trigonometric functions are easier when the exponent has a useful parity. For a positive odd power of cosine, one factor of cosine can be kept aside, while the remaining power is even. The Pythagorean identity then rewrites that even power using sine, making the substitution \(u=\sin x\) available.

The method works for every positive odd integer exponent. Its main advantage is that it converts the trigonometric integral into a polynomial integral, which can be evaluated term by term.

Key idea: For an odd positive integer \(n\), write \(\cos^n x\) as \(\cos^{n-1}x\cos x\). The exponent \(n-1\) is even, so use \(\cos^2 x=1-\sin^2 x\) on that part and substitute \(u=\sin x\).

The Method

Suppose \(n\) is a positive odd integer. Write it as \(n=2m+1\), where \(m\) is a nonnegative integer. Then

$$ \cos^n x = \cos^{2m}x\cos x = (\cos^2x)^m\cos x = (1-\sin^2x)^m\cos x. $$

Now let \(u=\sin x\). Its differential is \(du=\cos x\,dx\), so the integral becomes

$$ \int \cos^{2m+1}x\,dx = \int (1-u^2)^m\,du. $$

The expression \((1-u^2)^m\) is a polynomial in \(u\). It can be expanded and integrated using the power rule. The answer is then written back in terms of \(x\), replacing \(u\) by \(\sin x\). As with any indefinite integral, include an arbitrary constant of integration.

1
Separate one cosine factor.
Write \(\cos^{2m+1}x=\cos^{2m}x\cos x\), reserving \(\cos x\,dx\) for the substitution.
2
Convert the remaining even power.
Use \(\cos^{2m}x=(1-\sin^2x)^m\).
3
Substitute and integrate.
Set \(u=\sin x\), so \(du=\cos x\,dx\), and integrate the resulting polynomial.
4
Return to \(x\) and check.
Replace \(u\) by \(\sin x\), then differentiate the proposed antiderivative to verify it.

Why the Substitution Works

The substitution is justified by the chain rule. If \(F\) is an antiderivative of \((1-u^2)^m\), then \(F'(u)=(1-u^2)^m\). Applying the chain rule to \(F(\sin x)\) gives

$$ \frac{d}{dx}F(\sin x) = F'(\sin x)\cos x = (1-\sin^2x)^m\cos x = \cos^{2m+1}x. $$

The final equality uses \(1-\sin^2x=\cos^2x\). Thus the function produced by integrating the polynomial in \(u\), and then substituting \(u=\sin x\), really is an antiderivative of the original integrand.

The binomial theorem gives a general expression for this polynomial method. Expanding \((1-u^2)^m\) and integrating each term yields

$$ \int \cos^{2m+1}x\,dx = \sum_{k=0}^{m} (-1)^k\binom{m}{k} \frac{\sin^{2k+1}x}{2k+1} +C. $$

Here \(\binom{m}{k}\) is the binomial coefficient. This formula is a compact version of the same procedure; in practice, expanding the polynomial for the particular exponent often makes the calculation clearer.

Worked Examples

Worked Example: Integrating \(\cos^3 x\)

Separate one factor of cosine. The remaining exponent is two, so rewrite it using \(\cos^2x=1-\sin^2x\):

$$ \begin{aligned} \int \cos^3x\,dx &=\int \cos^2x\cos x\,dx\\ &=\int (1-\sin^2x)\cos x\,dx. \end{aligned} $$

Set \(u=\sin x\), so \(du=\cos x\,dx\). The integral becomes

$$ \begin{aligned} \int (1-\sin^2x)\cos x\,dx &=\int (1-u^2)\,du\\ &=u-\frac{u^3}{3}+C\\ &=\sin x-\frac{\sin^3x}{3}+C. \end{aligned} $$

To check, differentiate the result:

$$ \begin{aligned} \frac{d}{dx}\left(\sin x-\frac{\sin^3x}{3}\right) &=\cos x-\sin^2x\cos x\\ &=\cos x(1-\sin^2x)\\ &=\cos x\cos^2x\\ &=\cos^3x. \end{aligned} $$

The derivative matches the integrand, so the antiderivative is correct.

Worked Example: Integrating \(\cos^5 x\)

Keep one cosine factor and rewrite the remaining fourth power:

$$ \begin{aligned} \int \cos^5x\,dx &=\int \cos^4x\cos x\,dx\\ &=\int (1-\sin^2x)^2\cos x\,dx. \end{aligned} $$

With \(u=\sin x\) and \(du=\cos x\,dx\), expand and integrate:

$$ \begin{aligned} \int (1-\sin^2x)^2\cos x\,dx &=\int (1-u^2)^2\,du\\ &=\int (1-2u^2+u^4)\,du\\ &=u-\frac{2u^3}{3}+\frac{u^5}{5}+C\\ &=\sin x-\frac{2}{3}\sin^3x+\frac{1}{5}\sin^5x+C. \end{aligned} $$

Differentiate the proposed antiderivative. Each term contributes as follows:

$$ \begin{aligned} \frac{d}{dx}\left(\sin x-\frac{2}{3}\sin^3x+\frac{1}{5}\sin^5x\right) &=\cos x-2\sin^2x\cos x+\sin^4x\cos x\\ &=\cos x(1-2\sin^2x+\sin^4x)\\ &=\cos x(1-\sin^2x)^2\\ &=\cos x(\cos^2x)^2\\ &=\cos^5x. \end{aligned} $$

The check recovers the original integrand.

Worked Example: Integrating \(\cos^7 x\)

Separate one factor. The remaining sixth power becomes a cube of \(\cos^2x\):

$$ \begin{aligned} \int \cos^7x\,dx &=\int \cos^6x\cos x\,dx\\ &=\int (1-\sin^2x)^3\cos x\,dx. \end{aligned} $$

Substitute \(u=\sin x\). Expanding the cube gives \(1-3u^2+3u^4-u^6\), so

$$ \begin{aligned} \int (1-\sin^2x)^3\cos x\,dx &=\int (1-u^2)^3\,du\\ &=\int (1-3u^2+3u^4-u^6)\,du\\ &=u-u^3+\frac{3}{5}u^5-\frac{1}{7}u^7+C\\ &=\sin x-\sin^3x+\frac{3}{5}\sin^5x-\frac{1}{7}\sin^7x+C. \end{aligned} $$

To verify the result, differentiate and factor:

$$ \begin{aligned} \frac{d}{dx}\left(\sin x-\sin^3x+\frac{3}{5}\sin^5x-\frac{1}{7}\sin^7x\right) &=\cos x-3\sin^2x\cos x+3\sin^4x\cos x-\sin^6x\cos x\\ &=\cos x(1-3\sin^2x+3\sin^4x-\sin^6x)\\ &=\cos x(1-\sin^2x)^3\\ &=\cos x(\cos^2x)^3\\ &=\cos^7x. \end{aligned} $$

Again, differentiation gives exactly the original integrand.

A Common Substitution Mistake

A substitution changes both the trigonometric expressions and the differential. It is not enough to replace \(\sin x\) by \(u\) while leaving powers of cosine unchanged or treating them as powers of \(u\). For example, the following calculation is incorrect:

$$ \int \cos^3x\,dx \mathrel{\color{red}{\ne}} \int u^3\,du = \frac{u^4}{4} = \frac{\sin^4x}{4}. $$

The error is that \(u=\sin x\) does not mean \(\cos x=u\). Also, the relation between \(dx\) and \(du\) is \(du=\cos x\,dx\), not \(du=dx\). Differentiating the incorrect answer exposes the problem:

$$ \frac{d}{dx}\left(\frac{\sin^4x}{4}\right) = \sin^3x\cos x, $$

which is not \(\cos^3x\). The correct calculation first reserves one factor \(\cos x\,dx\), then rewrites the other two cosine factors as \(1-\sin^2x\):

$$ \int \cos^3x\,dx = \int (1-\sin^2x)\cos x\,dx = \int (1-u^2)\,du. $$

Keeping track of the differential is an essential part of substitution, not a separate bookkeeping detail.

How to Recognize When This Method Applies

The method applies directly when the integrand is a positive odd integer power of cosine, \(\cos^{2m+1}x\). The odd exponent ensures that after setting aside one cosine factor, the remaining exponent is even and can be expressed entirely in terms of \(\sin x\). The remaining cosine factor then supplies exactly the differential needed for \(u=\sin x\).

This parity check is useful before doing any algebra. If the cosine exponent is not odd, separating one cosine factor does not leave an even power in this same form. Do not force this particular procedure onto an integrand that does not meet its condition; the treatment of other exponent patterns requires different choices.

The resulting polynomial integral is also a practical check on the work. Its degree is finite, each term is integrated with the ordinary power rule, and differentiating the answer reverses the steps: the polynomial in \(\sin x\) becomes a polynomial in \(\sin x\) multiplied by \(\cos x\), which recombines into the original odd power of cosine.

Summary

For a positive odd exponent, the integral of a cosine power can be reduced to a polynomial integral by separating one cosine factor and expressing the other factors through \(\cos^2x=1-\sin^2x\). The substitution \(u=\sin x\) then turns the remaining factor \(\cos x\,dx\) into \(du\). After integrating, replace \(u\) by \(\sin x\) and include \(C\).

Takeaway: For \(\int\cos^{2m+1}x\,dx\), use \(\cos^{2m+1}x=(1-\sin^2x)^m\cos x\), then substitute \(u=\sin x\). Always differentiate the final expression to confirm the result.

Check Your Understanding

Use the substitution method and check each proposed antiderivative by differentiation.

  1. Why does an odd exponent of cosine leave an even power after one cosine factor is set aside?
  2. What substitution is used, and what differential does it produce?
  3. Rewrite \(\cos^6x\) using \(\sin x\) and the Pythagorean identity.
  4. Find an antiderivative of \(\cos^3x\) and verify it by differentiation.
  5. In the incorrect calculation \(\int\cos^3x\,dx=\int u^3\,du\) with \(u=\sin x\), identify the substitution error.

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon