Tutorials › Calculus II › Sine-Cosine Interchange on a Quarter-Period

Sine and Cosine Powers · Tutorial 116 of 998

Sine-Cosine Interchange on a Quarter-Period

Use the substitution that reflects the interval from zero to pi over two to exchange sine and cosine in definite power integrals.

Beginner 9 min read

What You'll Learn

  • State the quarter-period symmetry for integrals of nonnegative integer powers of sine and cosine.
  • Apply the substitution that reverses the limits and exchanges sine with cosine.
  • Explain why the negative differential and reversed bounds produce a positive integral.
  • Use the symmetry to relate integrals with interchanged exponents.
  • Check exact examples by evaluating each integral and differentiating its antiderivative.

Introduction

A mixed power of sine and cosine may look different when the exponents are exchanged. On the interval from \(0\) to \(\pi/2\), however, the two definite integrals have the same value. The reason is a reflection of the interval: replacing an angle by its distance from \(\pi/2\) interchanges sine and cosine.

This is a statement about definite integrals on a particular interval. It does not say that the two integrands are equal at every angle. Instead, the substitution \(x=\pi/2-u\) pairs each point of the interval with its reflected point, and the sine and cosine factors trade places under that reflection.

The Quarter-Period Symmetry

For nonnegative integers \(m\) and \(n\), consider the definite integral of the product \(\sin^m(x)\cos^n(x)\) over the quarter-period interval. The integrand is continuous there, so the integral exists. When an exponent is zero, the corresponding factor is understood to be \(1\), including at an endpoint.

Theorem: For nonnegative integers \(m\) and \(n\), interchanging the sine and cosine exponents does not change the integral over \([0,\pi/2]\): $$ \int_0^{\pi/2}\sin^m(x)\cos^n(x)\,dx = \int_0^{\pi/2}\sin^n(x)\cos^m(x)\,dx. $$

The exponents need not be equal. For example, the theorem says that the integral with sine to the first power and cosine to the third power matches the integral with sine to the third power and cosine to the first power. It does not claim that the integrands match at the same value of \(x\).

Why Reflection Exchanges the Factors

The essential trigonometric identities are the cofunction identities \(\sin(\pi/2-u)=\cos u\) and \(\cos(\pi/2-u)=\sin u\). Under \(x=\pi/2-u\), the endpoints reverse: \(x=0\) corresponds to \(u=\pi/2\), and \(x=\pi/2\) corresponds to \(u=0\). Also, \(dx=-du\). Both the reversed bounds and the negative differential matter.

1
Reflect the variable.
Set \(x=\pi/2-u\). Then \(\sin x=\cos u\) and \(\cos x=\sin u\).
2
Transform the limits and differential.
The limits \(x=0\) and \(x=\pi/2\) become \(u=\pi/2\) and \(u=0\), respectively, while \(dx=-du\).
3
Reverse the bounds.
The negative differential changes the integral from bounds \(\pi/2\) to \(0\) into the same integral with bounds \(0\) to \(\pi/2\).

Proof of the Symmetry

Start with the integral whose sine exponent is \(m\) and whose cosine exponent is \(n\). Apply the change of variable \(x=\pi/2-u\). The trigonometric factors exchange, and the differential contributes a minus sign:

$$ \begin{aligned} \int_0^{\pi/2}\sin^m(x)\cos^n(x)\,dx &=\int_{\pi/2}^{0}\sin^m\left(\frac{\pi}{2}-u\right) \cos^n\left(\frac{\pi}{2}-u\right)(-du)\\ &=\int_{\pi/2}^{0}\cos^m(u)\sin^n(u)(-du). \end{aligned} $$

The minus sign can be absorbed by reversing the bounds. Since multiplication is commutative, the resulting integrand can be written with the sine factor first:

$$ \begin{aligned} \int_{\pi/2}^{0}\cos^m(u)\sin^n(u)(-du) &=\int_0^{\pi/2}\cos^m(u)\sin^n(u)\,du\\ &=\int_0^{\pi/2}\sin^n(u)\cos^m(u)\,du. \end{aligned} $$

The variable \(u\) is a dummy variable of integration, so the final integral is the same quantity as the one on the right side of the theorem. This proves the equality. The proof relies on the interval being reflected onto itself and on the cofunction identities; the same argument does not automatically establish the equality on arbitrary limits.

Worked Example: First Powers Interchanged

Worked Example: First Powers Interchanged

Compare the two integrals with exponent pairs \((1,0)\) and \((0,1)\). The theorem predicts that they are equal.

$$ \int_0^{\pi/2}\sin x\,dx = [-\cos x]_0^{\pi/2} = -\cos\left(\frac{\pi}{2}\right)-(-\cos 0) = 0-(-1)=1. $$

For the interchanged exponents, integrate cosine:

$$ \int_0^{\pi/2}\cos x\,dx = [\sin x]_0^{\pi/2} = \sin\left(\frac{\pi}{2}\right)-\sin 0 = 1-0=1. $$

Thus both integrals equal \(1\), as predicted. The antiderivatives check by differentiation: \(\frac{d}{dx}(-\cos x)=\sin x\), and \(\frac{d}{dx}(\sin x)=\cos x\). The endpoint evaluations also show why the limits are important to the result.

Worked Example: One Exponent Is Zero

Worked Example: One Exponent Is Zero

Compare the integral of \(\sin^2 x\) with the integral of \(\cos^2 x\). This is the theorem with \((m,n)=(2,0)\). Use the power-reduction identities \(\sin^2 x=(1-\cos 2x)/2\) and \(\cos^2 x=(1+\cos 2x)/2\).

$$ \begin{aligned} \int_0^{\pi/2}\sin^2 x\,dx &=\int_0^{\pi/2}\left(\frac12-\frac12\cos 2x\right)\,dx\\ &=\left[\frac{x}{2}-\frac{\sin 2x}{4}\right]_0^{\pi/2}\\ &=\left(\frac{\pi}{4}-\frac{\sin\pi}{4}\right) -\left(0-\frac{\sin 0}{4}\right) =\frac{\pi}{4}. \end{aligned} $$

For cosine squared, the corresponding calculation is:

$$ \begin{aligned} \int_0^{\pi/2}\cos^2 x\,dx &=\int_0^{\pi/2}\left(\frac12+\frac12\cos 2x\right)\,dx\\ &=\left[\frac{x}{2}+\frac{\sin 2x}{4}\right]_0^{\pi/2}\\ &=\left(\frac{\pi}{4}+\frac{\sin\pi}{4}\right) -\left(0+\frac{\sin 0}{4}\right) =\frac{\pi}{4}. \end{aligned} $$

The two values agree. Differentiating the first antiderivative gives \(1/2-\cos(2x)/2=\sin^2 x\), and differentiating the second gives \(1/2+\cos(2x)/2=\cos^2 x\). Thus both evaluations have the required integrands.

Worked Example: Unequal Positive Exponents

Worked Example: Unequal Positive Exponents

Now compare \(\int_0^{\pi/2}\sin^3 x\cos x\,dx\) and \(\int_0^{\pi/2}\sin x\cos^3 x\,dx\). Here both exponents are positive, and the theorem predicts equal values.

For the first integral, let \(v=\sin x\), so \(dv=\cos x\,dx\). The endpoint values are \(v=0\) when \(x=0\) and \(v=1\) when \(x=\pi/2\):

$$ \int_0^{\pi/2}\sin^3 x\cos x\,dx = \int_0^1 v^3\,dv = \left[\frac{v^4}{4}\right]_0^1 = \frac14. $$

For the interchanged exponents, let \(w=\cos x\), so \(dw=-\sin x\,dx\). The endpoint values are \(w=1\) at \(x=0\) and \(w=0\) at \(x=\pi/2\):

$$ \begin{aligned} \int_0^{\pi/2}\sin x\cos^3 x\,dx &=-\int_1^0 w^3\,dw\\ &=-\left[\frac{w^4}{4}\right]_1^0 =-\left(0-\frac14\right) =\frac14. \end{aligned} $$

The integrals are equal and each is \(1/4\). The antiderivative checks are \(\frac{d}{dx}(\sin^4 x/4)=\sin^3 x\cos x\) and \(\frac{d}{dx}(-\cos^4 x/4)=\sin x\cos^3 x\). In the second computation, the reversed substitution limits and the negative differential combine to give a positive value.

Common Pitfall: Losing a Minus Sign

A frequent error is to use \(x=\pi/2-u\) but keep the original order of the limits while also keeping the negative differential. That would incorrectly turn the transformed integral into the negative of the desired integral.

For instance, starting with \(\int_0^{\pi/2}\sin x\,dx\), the correct substitution gives:

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

The middle equality follows because \(-du\) together with bounds from \(\pi/2\) to \(0\) is equivalent to \(du\) with bounds from \(0\) to \(\pi/2\). A wrong calculation would keep the minus sign but not reverse the bounds, writing \(-\int_0^{\pi/2}\cos u\,du=-1\). That contradicts the direct evaluation \([-\cos x]_0^{\pi/2}=1\). Always transform both the differential and the limits.

When the Symmetry Is Useful

The equality lets us choose whichever ordering of the exponents is more convenient to evaluate. If one integral has a factor that makes a substitution immediate, the interchanged integral has the same value, even if its appearance suggests a different calculation. It also gives a consistency check: two exact evaluations with swapped exponents must agree when the limits are \(0\) and \(\pi/2\).

There are important limits to this conclusion. The reflection argument proves the equality for this quarter-period interval; it does not assert that the integrals over other intervals are equal. Nor does it say that \(\sin^m x\cos^n x=\sin^n x\cos^m x\) pointwise. The equality concerns accumulated area over the entire interval, established by a change of variable.

Key takeaway: On \([0,\pi/2]\), the reflection \(x=\pi/2-u\) exchanges sine and cosine, and the transformed limits and differential restore the original interval. Therefore, the definite integral is unchanged when the two nonnegative integer exponents are interchanged.

Check Your Understanding

Use the reflection argument and the computations in this tutorial to answer the following questions.

  1. Under \(x=\pi/2-u\), what do \(\sin x\), \(\cos x\), and \(dx\) become?
  2. What are the transformed limits when \(x\) runs from \(0\) to \(\pi/2\), and how does the minus sign affect the result?
  3. Use the theorem to state an integral equal to \(\int_0^{\pi/2}\sin^4 x\cos x\,dx\).
  4. Why does the theorem not imply that \(\sin^2 x\) and \(\cos^2 x\) are equal at every \(x\) in the interval?
  5. Identify the sign error in the claim \(\int_0^{\pi/2}\sin x\,dx=-\int_0^{\pi/2}\cos u\,du\).

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