Tutorials › Calculus II › Half-Period Integrals with Odd Powers

Sine and Cosine Powers · Tutorial 119 of 998

Half-Period Integrals with Odd Powers

Use a saved sine or cosine factor to turn an odd power into a polynomial integral, and see why full-period symmetry can make a different integral vanish.

Beginner 9 min read

What You'll Learn

  • Rewrite an odd power by separating one sine or cosine factor.
  • Set up substitutions that convert the quarter-period integral to an integral from zero to one.
  • Derive a finite-sum formula for every positive odd power.
  • Verify exact values by differentiating antiderivatives.
  • Distinguish nonzero quarter-period integrals from full-period integrals that cancel.

Why the Interval Matters

Odd powers of sine or cosine can behave very differently depending on the interval of integration. On \(0\le x\le \pi/2\), both sine and cosine are nonnegative, so an odd power has a nonnegative integral. Over a full period, however, the function changes sign, and the positive and negative contributions can cancel.

The quarter-period integrals in this tutorial are especially direct: separate one factor of sine or cosine, rewrite the remaining even power using \(\sin^2 x+\cos^2 x=1\), and substitute. The limits are important. For \(u=\cos x\), the limits run in decreasing order, so reversing them introduces a minus sign.

Definition: For a positive odd integer \(n=2m+1\), where \(m\) is a nonnegative integer, the quarter-period sine and cosine power integrals are \(\int_0^{\pi/2}\sin^{2m+1}x\,dx\) and \(\int_0^{\pi/2}\cos^{2m+1}x\,dx\).

The Substitution for an Odd Sine Power

Let \(n=2m+1\). In \(\sin^{2m+1}x\), keep one factor of \(\sin x\) and write the other \(2m\) factors as \(m\) powers of \(\sin^2x\). Since \(\sin^2x=1-\cos^2x\), the substitution \(u=\cos x\) turns the integrand into a polynomial in \(u\).

$$ \begin{aligned} \int_0^{\pi/2}\sin^{2m+1}x\,dx &=\int_0^{\pi/2}(1-\cos^2x)^m\sin x\,dx,\\ u&=\cos x,\qquad du=-\sin x\,dx. \end{aligned} $$

At the lower endpoint \(x=0\), \(u=1\); at the upper endpoint \(x=\pi/2\), \(u=0\). Therefore, the substitution gives an integral from \(1\) to \(0\) and a minus sign. Reversing the limits removes that minus sign:

$$ \int_0^{\pi/2}\sin^{2m+1}x\,dx =-\int_1^0(1-u^2)^m\,du =\int_0^1(1-u^2)^m\,du. $$

This formula also explains why the integral is nonnegative: on \(0\le u\le1\), the quantity \(1-u^2\) is nonnegative. Expanding the power with the binomial theorem gives an explicit finite sum. Here \(\binom{m}{k}\) is the binomial coefficient, and \(m\) is a nonnegative integer.

$$ \int_0^{\pi/2}\sin^{2m+1}x\,dx =\int_0^1\sum_{k=0}^m(-1)^k\binom{m}{k}u^{2k}\,du =\sum_{k=0}^m\frac{(-1)^k\binom{m}{k}}{2k+1}. $$

The Substitution for an Odd Cosine Power

For an odd power of cosine, keep one factor of \(\cos x\) and rewrite the remaining factors using \(\cos^2x=1-\sin^2x\). Now set \(u=\sin x\). The endpoint values increase from \(0\) to \(1\), and \(du=\cos x\,dx\), so no limit reversal is needed.

$$ \begin{aligned} \int_0^{\pi/2}\cos^{2m+1}x\,dx &=\int_0^{\pi/2}(1-\sin^2x)^m\cos x\,dx\\ &=\int_0^1(1-u^2)^m\,du. \end{aligned} $$
Theorem: For every nonnegative integer \(m\), \(\int_0^{\pi/2}\sin^{2m+1}x\,dx=\int_0^{\pi/2}\cos^{2m+1}x\,dx=\int_0^1(1-u^2)^m\,du=\sum_{k=0}^m\frac{(-1)^k\binom{m}{k}}{2k+1}\).

The equality of the sine and cosine integrals follows because both substitutions lead to the same integral from \(0\) to \(1\). It is also consistent with interchanging sine and cosine on this interval. The substitution derivation establishes the result directly for every odd positive integer power.

Worked Examples

Worked Example: Evaluate an Odd Sine Power

Evaluate \(\int_0^{\pi/2}\sin^5x\,dx\). Since \(5=2(2)+1\), separate one sine factor and use \(u=\cos x\):

$$ \begin{aligned} \int_0^{\pi/2}\sin^5x\,dx &=\int_0^{\pi/2}(1-\cos^2x)^2\sin x\,dx\\ &=-\int_1^0(1-u^2)^2\,du\\ &=\int_0^1(1-2u^2+u^4)\,du\\ &=\left[u-\frac{2u^3}{3}+\frac{u^5}{5}\right]_0^1\\ &=1-\frac23+\frac15\\ &=\frac{15}{15}-\frac{10}{15}+\frac{3}{15} =\frac{8}{15}. \end{aligned} $$

For a check, an antiderivative in \(x\) is \(F(x)=-\cos x+\frac23\cos^3x-\frac15\cos^5x\). Differentiating gives \(F'(x)=\sin x-2\cos^2x\sin x+\cos^4x\sin x=\sin x(1-\cos^2x)^2=\sin^5x\). Also, \(F(\pi/2)=0\) and \(F(0)=-1+\frac23-\frac15=-\frac{8}{15}\). Thus \(F(\pi/2)-F(0)=\frac{8}{15}\), as computed.

Worked Example: Evaluate an Odd Cosine Power

Evaluate \(\int_0^{\pi/2}\cos^7x\,dx\). Set \(u=\sin x\), so \(du=\cos x\,dx\) and \(\cos^6x=(1-u^2)^3\):

$$ \begin{aligned} \int_0^{\pi/2}\cos^7x\,dx &=\int_0^1(1-u^2)^3\,du\\ &=\int_0^1(1-3u^2+3u^4-u^6)\,du\\ &=\left[u-u^3+\frac{3u^5}{5}-\frac{u^7}{7}\right]_0^1\\ &=1-1+\frac35-\frac17\\ &=\frac{21}{35}-\frac{5}{35} =\frac{16}{35}. \end{aligned} $$

To check, differentiate \(G(x)=\sin x-\sin^3x+\frac35\sin^5x-\frac17\sin^7x\). This gives \(G'(x)=\cos x(1-3\sin^2x+3\sin^4x-\sin^6x)=\cos x(1-\sin^2x)^3=\cos^7x\). Since \(G(\pi/2)=1-1+\frac35-\frac17=\frac{16}{35}\) and \(G(0)=0\), the definite integral is \(\frac{16}{35}\).

Worked Example: Compare a Quarter-Period, Half-Period, and Full-Period Integral

For the odd power \(3\), first use the quarter-period result, then compare the sine and cosine integrals over \(0\le x\le\pi\) and the full period \(0\le x\le2\pi\).

The quarter-period sine integral is:

$$ \int_0^{\pi/2}\sin^3x\,dx =\int_0^1(1-u^2)\,du =\left[u-\frac{u^3}{3}\right]_0^1 =1-\frac13 =\frac23. $$

On \([0,\pi]\), sine is nonnegative and the two halves are equal by reflection about \(x=\pi/2\). Hence \(\int_0^\pi\sin^3x\,dx=2(\frac23)=\frac43\). This also checks by the antiderivative \(F(x)=-\cos x+\frac13\cos^3x\): \(F(\pi)=1-\frac13=\frac23\), \(F(0)=-1+\frac13=-\frac23\), and their difference is \(\frac43\).

For cosine, the quarter-period integral is likewise \(\frac23\), but cosine is negative on \((\pi/2,\pi)\). The half-period integral is zero. Indeed, an antiderivative is \(G(x)=\sin x-\frac13\sin^3x\); both \(G(0)\) and \(G(\pi)\) are zero. Finally, both odd powers have zero full-period integral: shifting \(x\) by \(\pi\) changes the sign of sine and cosine, so the contributions from \([0,\pi]\) and \([\pi,2\pi]\) cancel. In particular, the sine integral is \(\frac43-\frac43=0\) over the full period, while the cosine integral is also zero.

Why Full-Period Cancellation Does Not Apply Here

For an odd positive integer \(n\), the identities \(\sin(x+\pi)=-\sin x\) and \(\cos(x+\pi)=-\cos x\) imply \(\sin^n(x+\pi)=-\sin^n x\) and \(\cos^n(x+\pi)=-\cos^n x\). Splitting an integral over \(0\le x\le2\pi\) into two intervals of length \(\pi\) therefore gives equal and opposite contributions.

$$ \int_0^{2\pi}\sin^n x\,dx =\int_0^\pi\sin^n x\,dx+\int_0^\pi\sin^n(x+\pi)\,dx =0, $$

and the same reasoning gives \(\int_0^{2\pi}\cos^n x\,dx=0\). This cancellation requires including both sign regions over the full period. It does not imply that the quarter-period integrals are zero: sine and cosine are nonnegative throughout \(0\le x\le\pi/2\), and the substitution formula gives their positive values.

The distinction between sine and cosine on the half-period \(0\le x\le\pi\) is also useful. Sine remains nonnegative there, so its odd power has a positive integral. Cosine changes sign at \(\pi/2\), so its odd power cancels on that half-period. A symmetry argument must match the interval and the sign pattern of the function being integrated.

A Common Sign Mistake

With \(u=\cos x\), the limits change from \(x=0,\pi/2\) to \(u=1,0\), and \(du=-\sin x\,dx\). A common incorrect line is:

$$ \int_0^{\pi/2}\sin^3x\,dx =\int_1^0(1-u^2)\,du =-\frac23. $$

This loses the minus sign in \(du=-\sin x\,dx\). The correct substitution is \(-\int_1^0(1-u^2)\,du\), which equals \(\int_0^1(1-u^2)\,du=\frac23\). The negative answer is also impossible because the original integrand is nonnegative on the interval. Either preserve the minus sign while keeping the reversed limits, or reverse the limits and remove the minus sign; do not do only one of these operations.

Using the Method Reliably

For a positive odd power on \(0\le x\le\pi/2\), identify the factor that supplies the differential. Save one sine factor and use \(u=\cos x\) for an odd sine power; save one cosine factor and use \(u=\sin x\) for an odd cosine power. Then transform the limits, expand the resulting polynomial if needed, integrate each term, and evaluate at the endpoints.

1
Separate one factor.
Write \(\sin^{2m+1}x=(\sin^2x)^m\sin x\), or \(\cos^{2m+1}x=(\cos^2x)^m\cos x\).
2
Use the complementary identity.
Replace \(\sin^2x\) by \(1-\cos^2x\), or \(\cos^2x\) by \(1-\sin^2x\).
3
Substitute and track limits.
Use \(u=\cos x\) for sine powers or \(u=\sin x\) for cosine powers. Account for the negative differential and any reversed limits.
4
Integrate and check.
Evaluate the polynomial integral exactly, then check the result by differentiating an antiderivative or by confirming the sign matches the integrand.

This method is valuable because it reduces an odd trigonometric power to ordinary polynomial integration. It also makes the role of the interval visible: the substitution supplies definite limits, while the sign of the original function determines whether cancellation is possible. On \(0\le x\le\pi/2\), there is no negative region to cancel the positive contribution.

Check Your Understanding

Use substitution and keep track of the limits in each question.

  1. Evaluate \(\int_0^{\pi/2}\sin^3x\,dx\) using \(u=\cos x\).
  2. Evaluate \(\int_0^{\pi/2}\cos^5x\,dx\) using \(u=\sin x\).
  3. Explain why the two quarter-period integrals of \(\sin^{2m+1}x\) and \(\cos^{2m+1}x\) are equal.
  4. Why is \(\int_0^{2\pi}\sin^{2m+1}x\,dx=0\) even though \(\int_0^{\pi/2}\sin^{2m+1}x\,dx\) is positive?
  5. Identify the missing sign in the incorrect substitution \(\int_0^{\pi/2}\sin^3x\,dx=\int_1^0(1-u^2)\,du\), where \(u=\cos x\).

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