Tutorials › Calculus II › Cosine-Power Recurrences and Endpoint Terms

Reduction Formulas · Tutorial 89 of 998

Cosine-Power Recurrences and Endpoint Terms

Learn how integration by parts lowers a cosine exponent by two, why its boundary term has its particular form, and how to check the result.

Intermediate 9 min read

What You'll Learn

  • Derive the reduction formula for an integer cosine exponent \(n\ge 2\).
  • Identify the base integrals needed to use the recurrence.
  • Distinguish the cosine boundary term from the sine-power boundary term.
  • Apply the recurrence to indefinite and definite integrals.
  • Check a reduction formula by differentiating its antiderivative.
  • Spot common sign and factor errors in integration by parts.

Why Reduce a Cosine Power?

An integral such as \(\int \cos^6 x\,dx\) can be awkward to expand directly. A reduction formula replaces an integral with a high power by one with a lower power, so repeated application eventually brings the calculation to simple base integrals. The key is to keep track not only of the lower-power integral, but also of the term produced at the endpoints of integration by parts.

For cosine powers, that term contains \(\sin x\cos^{n-1}x\). Its form is different from the corresponding term in the sine-power formula. The difference follows from the different antiderivatives and derivatives used in the two integrations by parts.

Definition: For a nonnegative integer \(n\), a cosine-power integral is an integral of the form \(\int \cos^n x\,dx\). For \(n\ge 2\), its reduction formula expresses it using a cosine-power integral with exponent \(n-2\), together with a boundary term.

Deriving the Cosine-Power Recurrence

Let \(n\ge 2\) be an integer. In \(\int \cos^n x\,dx\), separate one factor of cosine and use integration by parts with \(u=\cos^{n-1}x\) and \(dv=\cos x\,dx\). Then \(du=-(n-1)\cos^{n-2}x\sin x\,dx\) and \(v=\sin x\). The integration-by-parts formula, \(\int u\,dv=uv-\int v\,du\), gives

$$ \int \cos^n x\,dx = \sin x\cos^{n-1}x + (n-1)\int \sin^2 x\cos^{n-2}x\,dx. $$

Use \(\sin^2 x=1-\cos^2 x\) in the remaining integral. The first resulting term is the integral with exponent \(n-2\); the second is the original integral. Writing \(I_n=\int\cos^n x\,dx\) for this calculation,

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

Collect the \(I_n\) terms on the left and divide by \(n\). This division is valid because \(n\ge2\), so \(n\ne0\). The result is the cosine-power reduction formula.

Reduction formula: For every integer \(n\ge2\),
$$ \int \cos^n x\,dx = \frac{\sin x\cos^{n-1}x}{n} + \frac{n-1}{n}\int\cos^{n-2}x\,dx. $$

For indefinite integrals, the equality is understood up to an additive constant. In applying the formula, include a constant once in the final antiderivative; it need not be added separately at every reduction step. The formula itself does not evaluate the base cases. The simplest ones are \(\int 1\,dx=x+C\) and \(\int\cos x\,dx=\sin x+C\).

Why the Boundary Term Has This Form

The boundary term comes directly from \(uv\) in integration by parts. Here, the factor \(\cos^{n-1}x\) is chosen as \(u\), and an antiderivative of the remaining factor \(\cos x\) is \(\sin x\). Their product is \(\sin x\cos^{n-1}x\). The factor \(1/n\) appears only after collecting the two copies of the original integral and dividing by \(n\).

By contrast, the sine-power recurrence uses \(u=\sin^{n-1}x\) and \(dv=\sin x\,dx\). Since an antiderivative of \(\sin x\) is \(-\cos x\), its boundary term is negative. In the same notation, the sine-power formula is

$$ \int \sin^n x\,dx = -\frac{\cos x\sin^{n-1}x}{n} + \frac{n-1}{n}\int\sin^{n-2}x\,dx, \qquad n\ge2. $$

Thus the boundary terms are not interchangeable: the cosine recurrence has \(+\sin x\cos^{n-1}x/n\), while the sine recurrence has \(-\cos x\sin^{n-1}x/n\). The sign and the trigonometric factors reflect the choices of \(u\), \(dv\), and their derivatives in each integration by parts.

If the integral is definite on \([a,b]\), the cosine boundary term is evaluated at both limits. With \(C_n(a,b)=\int_a^b\cos^n x\,dx\), the same calculation gives

$$ C_n(a,b) = \frac{\left[\sin x\cos^{n-1}x\right]_a^b}{n} + \frac{n-1}{n}C_{n-2}(a,b). $$

Here \([g(x)]_a^b\) means \(g(b)-g(a)\). The endpoint contribution may be zero for particular limits, but it is part of the general formula and should be evaluated rather than silently discarded.

Worked Examples

Worked Example: Reduce an Even Cosine Power

Find \(\int\cos^4 x\,dx\). Apply the recurrence with \(n=4\):

$$ \int\cos^4 x\,dx = \frac{\sin x\cos^3 x}{4} + \frac{3}{4}\int\cos^2 x\,dx. $$

Apply it again with \(n=2\), and use \(\int 1\,dx=x\):

$$ \int\cos^2 x\,dx = \frac{\sin x\cos x}{2} + \frac{1}{2}x. $$

Substitute this expression into the first reduction:

$$ \begin{aligned} \int\cos^4 x\,dx &=\frac{\sin x\cos^3 x}{4} +\frac{3}{4}\left(\frac{\sin x\cos x}{2}+\frac{x}{2}\right)\\ &=\frac{\sin x\cos^3 x}{4} +\frac{3\sin x\cos x}{8} +\frac{3x}{8}+C. \end{aligned} $$

Check by differentiating. The derivative of the proposed antiderivative is

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

In the second line, \(\sin^2x=1-\cos^2x\) was used. The derivative is the original integrand, as required.

Worked Example: Reduce an Odd Cosine Power

Find \(\int\cos^5 x\,dx\). First reduce from \(n=5\) to \(n=3\):

$$ \int\cos^5 x\,dx = \frac{\sin x\cos^4x}{5} + \frac{4}{5}\int\cos^3x\,dx. $$

For the remaining integral, apply the formula with \(n=3\), then use \(\int\cos x\,dx=\sin x+C\):

$$ \begin{aligned} \int\cos^3x\,dx &=\frac{\sin x\cos^2x}{3} +\frac{2}{3}\int\cos x\,dx\\ &=\frac{\sin x\cos^2x}{3}+\frac{2\sin x}{3}. \end{aligned} $$

Substitute and simplify:

$$ \int\cos^5x\,dx = \frac{\sin x\cos^4x}{5} +\frac{4\sin x\cos^2x}{15} +\frac{8\sin x}{15}+C. $$

To check, differentiate the three terms and use \(\sin^2x=1-\cos^2x\):

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

Worked Example: Keep the Endpoint Contribution

Evaluate \(\int_0^{\pi/3}\cos^4x\,dx\) using the recurrence. Let \(C_n=\int_0^{\pi/3}\cos^n x\,dx\). For \(n=4\),

$$ C_4 = \frac{[\sin x\cos^3x]_0^{\pi/3}}{4} +\frac{3}{4}C_2. $$

At \(x=\pi/3\), \(\sin x=\sqrt{3}/2\) and \(\cos x=1/2\); at \(x=0\), \(\sin x=0\). Therefore the first term is

$$ \frac{1}{4}\left(\frac{\sqrt{3}}{2}\cdot\frac{1}{8}-0\right) =\frac{\sqrt{3}}{64}. $$

Reduce \(C_2\), including its own endpoint term:

$$ \begin{aligned} C_2 &=\frac{[\sin x\cos x]_0^{\pi/3}}{2} +\frac{1}{2}\int_0^{\pi/3}1\,dx\\ &=\frac{1}{2}\left(\frac{\sqrt{3}}{2}\cdot\frac{1}{2}-0\right) +\frac{1}{2}\left(\frac{\pi}{3}-0\right)\\ &=\frac{\sqrt{3}}{8}+\frac{\pi}{6}. \end{aligned} $$

Substitute this value into the expression for \(C_4\):

$$ C_4 =\frac{\sqrt{3}}{64} +\frac{3}{4}\left(\frac{\sqrt{3}}{8}+\frac{\pi}{6}\right) =\frac{7\sqrt{3}}{64}+\frac{\pi}{8}. $$

As a check, the antiderivative from the first example is \(F(x)=\sin x\cos^3x/4+3\sin x\cos x/8+3x/8\). It satisfies \(F'(x)=\cos^4x\). Also, \(F(0)=0\), and direct substitution gives \(F(\pi/3)=\sqrt{3}/64+3\sqrt{3}/32+\pi/8=7\sqrt{3}/64+\pi/8\), matching the recurrence calculation.

A Common Sign and Factor Mistake

A frequent error is to stop after the first integration by parts and forget that \(\sin^2x\cos^{n-2}x\) contains a term equal to \(\cos^n x\). For example, an incorrect calculation might claim

$$ \int\cos^n x\,dx = \sin x\cos^{n-1}x+(n-1)\int\cos^{n-2}x\,dx. $$

This omits the negative \(-(n-1)\int\cos^n x\,dx\) contributed by \(\sin^2x=1-\cos^2x\). That term is precisely why the coefficient of the reduced integral is \((n-1)/n\), not \(n-1\), and why the boundary term is divided by \(n\). The correction is to retain both terms after substitution and collect the original integral before dividing.

When the Recurrence Is Useful

Each application lowers the exponent by two, so the formula is useful when an integral contains a pure integer power of cosine. It also makes the boundary contribution visible in definite integrals, where omitting or mis-evaluating it changes the answer. The recurrence applies for integer \(n\ge2\); it does not itself provide a reduction step for \(n=0\) or \(n=1\), which are handled directly.

A reliable procedure is to record the exponent used at each step, preserve the boundary term, and stop when the integral has reached a directly evaluable base case. For a definite integral, evaluate each bracket as upper-limit value minus lower-limit value. For an indefinite integral, differentiate the finished expression to check that it returns the original power of cosine.

Check Your Understanding

Use the recurrence and the endpoint-term distinction to answer these questions.

  1. State the cosine-power reduction formula and the restriction on its integer exponent.
  2. In the integration-by-parts derivation, which term produces the factor that must be collected with the original integral?
  3. What is the boundary term in the sine-power recurrence, and how does it differ from the cosine-power boundary term?
  4. Use the recurrence to express \(\int\cos^6x\,dx\) in terms of \(\int\cos^2x\,dx\) and the boundary terms.
  5. Why must the endpoint term be evaluated when applying the cosine recurrence to a definite integral?

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