Tutorials › Calculus II › Integrating Products with Both Exponents Odd

Sine and Cosine Powers · Tutorial 104 of 998

Integrating Products with Both Exponents Odd

Use either sine or cosine as the substitution variable to integrate products in which both exponents are odd, and verify the result by differentiation.

Beginner 8 min read

What You'll Learn

  • Recognize when both sine and cosine exponents are positive odd integers.
  • Rewrite the remaining even power using the Pythagorean identity.
  • Apply either of the two natural substitutions and keep track of the sign.
  • Use a general expansion formula for these integrals.
  • Choose the substitution that produces fewer polynomial terms.
  • Check an antiderivative by differentiating it.

The pattern when both powers are odd

Integrals of products of powers of sine and cosine become especially direct when both exponents are odd. The reason is that an odd power contains one factor that can be saved for substitution; after removing that factor, the remaining power is even and can be rewritten using \(\sin^2 x+\cos^2 x=1\).

For example, in \(\sin^5 x\cos^3 x\), we can save one factor of cosine and rewrite the other four cosine factors as powers of \(1-\sin^2 x\). Then \(u=\sin x\) turns the integral into a polynomial integral. Alternatively, we can save one sine factor and substitute \(u=\cos x\). Both choices work; the sign from \(du=-\sin x\,dx\) must be handled carefully.

Definition: In this tutorial, a product with both exponents odd means \(\sin^m x\cos^n x\), where \(m\) and \(n\) are positive odd integers. The integration variable is \(x\), and the integrals considered are indefinite integrals over real \(x\).

The two substitution choices

Write the odd exponents as \(m=2r+1\) and \(n=2s+1\), where \(r\) and \(s\) are nonnegative integers. To use \(u=\cos x\), save one sine factor. The other \(2r\) sine factors form an even power, so they can be replaced by \(1-\cos^2 x\).

$$ \sin^{2r+1}x\cos^{2s+1}x = \sin x(1-\cos^2 x)^r\cos^{2s+1}x, \qquad u=\cos x,\quad du=-\sin x\,dx. $$

The minus sign in \(du\) means that the resulting integral has an overall negative sign. The other choice saves one cosine factor and uses \(u=\sin x\):

$$ \sin^{2r+1}x\cos^{2s+1}x = \sin^{2r+1}x(1-\sin^2 x)^s\cos x, \qquad u=\sin x,\quad du=\cos x\,dx. $$

There is no extra minus sign in this version. In either case, substitution leaves an ordinary polynomial in \(u\), which can be integrated term by term.

When the method applies: These substitutions apply directly when both exponents are positive odd integers and the integrand is a constant multiple of \(\sin^m x\cos^n x\). The identities used hold for every real \(x\), and the resulting polynomial antiderivatives differentiate back to the original integrand. If either exponent is even, this particular both-odd pattern does not apply as stated.

General formula and why it works

The binomial theorem expands the even power after substitution. Using \(u=\cos x\) gives one formula; using \(u=\sin x\) gives another. These formulas are not separate tricks: they record the same substitution procedure for arbitrary positive odd exponents.

Theorem: Let \(r,s\) be nonnegative integers. Then
$$ \int \sin^{2r+1}x\cos^{2s+1}x\,dx = -\sum_{k=0}^{r}(-1)^k\binom{r}{k} \frac{\cos^{2s+2k+2}x}{2s+2k+2}+C, $$
$$ \int \sin^{2r+1}x\cos^{2s+1}x\,dx = \sum_{k=0}^{s}(-1)^k\binom{s}{k} \frac{\sin^{2r+2k+2}x}{2r+2k+2}+C. $$

Here \(C\) is an arbitrary constant of integration. The two displayed expressions can look different, but each is an antiderivative of the same function, so they can differ only by a constant on the real line.

To justify the first formula, save \(\sin x\) and substitute \(u=\cos x\). The binomial theorem gives \((1-u^2)^r=\sum_{k=0}^{r}(-1)^k\binom{r}{k}u^{2k}\). Multiplying by \(u^{2s+1}\), integrating each power, and using \(du=-\sin x\,dx\) produces the stated negative sum. For the second formula, save \(\cos x\), substitute \(u=\sin x\), and expand \((1-u^2)^s\); the differential has no minus sign, giving the stated positive sum. This proves both formulas and explains their signs.

For a shorter calculation, compare the number of terms. The cosine substitution expands a power indexed by \(r\), producing \(r+1\) terms; the sine substitution produces \(s+1\) terms. Choosing the smaller of \(r\) and \(s\) usually reduces the algebra.

Worked examples

Worked Example: Integrate \(\sin^3 x\cos^5 x\)

The sine exponent is \(3\), so save one sine factor and substitute \(u=\cos x\). Rewrite the remaining sine square using \(\sin^2 x=1-\cos^2 x\):

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

Set \(u=\cos x\), so \(du=-\sin x\,dx\). Therefore,

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

Check by differentiating. The derivative is \(\sin x\cos^5 x-\sin x\cos^7 x=\sin x\cos^5 x(1-\cos^2 x)=\sin^3 x\cos^5 x\), as required.

Worked Example: Integrate \(\sin^5 x\cos^3 x\)

Here saving one cosine factor gives a short calculation. Set \(u=\sin x\), so \(du=\cos x\,dx\), and rewrite \(\cos^2 x=1-\sin^2 x\):

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

Check: differentiating gives \(\sin^5 x\cos x-\sin^7 x\cos x=\sin^5 x\cos x(1-\sin^2 x)=\sin^5 x\cos^3 x\). The result is verified.

Worked Example: Integrate \(\sin^7 x\cos^3 x\)

Substituting \(u=\sin x\) expands \((1-u^2)^1\), only two terms. Save one cosine factor and replace the remaining cosine square:

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

Check: the derivative is \(\sin^7 x\cos x-\sin^9 x\cos x=\sin^7 x\cos x(1-\sin^2 x)=\sin^7 x\cos^3 x\). Again, differentiation recovers the integrand.

Common mistake: losing the minus sign

When \(u=\cos x\), the differential is \(du=-\sin x\,dx\). Dropping this minus sign changes the answer. For example, a mistaken calculation for \(\int\sin^3 x\cos^3 x\,dx\) might be:

$$ \int \sin x(1-\cos^2 x)\cos^3 x\,dx \overset{\text{wrong}}{=} \int (1-u^2)u^3\,du = \frac{u^4}{4}-\frac{u^6}{6}. $$

This answer has the wrong sign. Differentiating it with \(u=\cos x\) gives \(-\sin^3 x\cos^3 x\), not the original integrand. The corrected substitution includes \(du=-\sin x\,dx\):

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

Differentiating the corrected expression gives \(\sin x\cos^3 x-\sin x\cos^5 x=\sin x\cos^3 x(1-\cos^2 x)=\sin^3 x\cos^3 x\). A reliable habit is to write the differential substitution explicitly before integrating the polynomial.

Using the method effectively

The essential steps are simple: identify the odd factor to save, convert the remaining even power with the Pythagorean identity, substitute, and integrate the resulting polynomial. The choice of substitution affects the length and appearance of the algebra, but not whether the method works.

1
Write each odd power as an even power times one factor.
For example, write \(\sin^{2r+1}x=\sin^{2r}x\sin x\) or \(\cos^{2s+1}x=\cos^{2s}x\cos x\).
2
Use the identity for the remaining even power.
Replace \(\sin^2 x\) with \(1-\cos^2 x\), or \(\cos^2 x\) with \(1-\sin^2 x\), according to the substitution.
3
Substitute and integrate term by term.
Include the minus sign for \(u=\cos x\), then differentiate the proposed antiderivative to check it.

The method matters because it turns a trigonometric product into polynomial integration without requiring a special identity beyond \(\sin^2 x+\cos^2 x=1\). It also makes the role of parity explicit: oddness supplies a factor matching the differential, while the remaining even power becomes a polynomial in the substitution variable. For a definite integral on an interval \([a,b]\), the same antiderivative can be evaluated at the endpoints by the Fundamental Theorem of Calculus.

Check Your Understanding

For each question, pay attention to the saved factor and the differential sign. Check antiderivatives by differentiating.

  1. For \(\int\sin^3 x\cos^7 x\,dx\), which substitution gives the shorter polynomial integral, and why?
  2. Rewrite \(\sin^5 x\cos^3 x\) so that the substitution \(u=\sin x\) can be used. What polynomial in \(u\) results?
  3. Find an antiderivative of \(\sin^3 x\cos^5 x\) using \(u=\sin x\), then verify it by differentiation.
  4. Explain why substituting \(u=\cos x\) introduces a negative sign but substituting \(u=\sin x\) does not.
  5. State the parity and positivity conditions on the exponents required for the method in this tutorial.

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