Tutorials › Calculus II › Base Cases and Termination in Reduction Formulas

Reduction Formulas · Tutorial 97 of 998

Base Cases and Termination in Reduction Formulas

Trace each reduction to its base case, spot index shifts that prevent progress, and complete logarithmic, exponential, and trigonometric recurrences.

Intermediate 9 min read

What You'll Learn

  • Identify a decreasing index as the reason a reduction recurrence terminates.
  • Match the recurrence step size to the base cases it requires.
  • Apply logarithmic and exponential recurrences through to explicit antiderivatives.
  • Track both parity branches in a trigonometric power recurrence.
  • Diagnose an unchanged index or an unevaluated terminal integral.

Why Termination Matters

A reduction formula replaces an integral by one or more simpler integrals. But writing down a recurrence is only part of solving the problem: you must also know that repeated use of the recurrence reaches integrals you can evaluate directly. An incorrect index shift can leave the same integral in place, while a missing base case can leave the calculation unfinished even when the indices have decreased correctly.

The key diagnostic is simple: follow the index at every step. It should move toward a finite set of explicitly evaluated cases. This tutorial develops that test through logarithmic, exponential, and trigonometric examples.

Definition: A reduction recurrence terminates for a given starting index if repeated application of its stated rule reaches a base case after finitely many steps. A base case is an integral that can be evaluated directly without applying the recurrence again.

For indefinite integrals, recurrence identities are understood up to an additive constant. During repeated substitution, the constants combine into one arbitrary constant at the end.

A Test for Termination

Suppose a family of integrals is denoted by \(R_n\), and the recurrence replaces \(R_n\) with an expression involving \(R_{n-d}\), where \(d\) is a fixed positive integer. If the recurrence is valid whenever \(n\) is at least some threshold, then each application lowers the index. Termination still requires evaluated base cases for every index that the process can reach.

For a step of size \(d\), the starting index determines which sequence of indices appears. For example, a step of two preserves parity: an even index eventually reaches zero, and an odd index eventually reaches one. Thus a recurrence with a step of two generally needs both \(R_0\) and \(R_1\) as base cases.

Termination check: Before calculating, identify (1) the index after each recurrence step, (2) whether that index moves toward a finite endpoint, and (3) every base case needed for the possible index paths.

A recurrence that leaves the same index on the right-hand side does not make progress by iteration. A recurrence that lowers the index but stops at an unevaluated integral has made progress, but has not yet produced a complete answer.

Worked Example: Reducing Powers of a Logarithm

Worked Example: Reducing Powers of a Logarithm

For \(x>0\), let \(J_n=\int (\ln x)^n\,dx\), where \(n\) is a nonnegative integer. Find \(J_2\), and diagnose a tempting incorrect index shift.

For \(n\geq 1\), integration by parts with \(u=(\ln x)^n\) and \(dv=dx\) gives \(du=n(\ln x)^{n-1}x^{-1}\,dx\) and \(v=x\). Therefore,

$$ J_n=x(\ln x)^n-nJ_{n-1}. $$

The index drops by one. The required base case is \(J_0\), which is direct:

$$ J_0=\int 1\,dx=x. $$

For \(n=1\), the recurrence gives \(J_1=x\ln x-J_0=x\ln x-x\). For \(n=2\),

$$ \begin{aligned} J_2 &=x(\ln x)^2-2J_1\\ &=x(\ln x)^2-2(x\ln x-x)\\ &=x(\ln x)^2-2x\ln x+2x+C. \end{aligned} $$

To check, differentiate the result:

$$ \frac{d}{dx}\left[x(\ln x)^2-2x\ln x+2x\right] =(\ln x)^2+2\ln x-2\ln x-2+2 =(\ln x)^2. $$

A mistaken shift would write \(J_n=x(\ln x)^n-nJ_n\). This does not reduce the index: it leaves the same unknown integral on the right. Worse, at \(n=1\) it implies \(2J_1=x\ln x\), so that \(J_1=\tfrac12x\ln x\). Its derivative is \(\tfrac12\ln x+\tfrac12\), not \(\ln x\). The correct differentiation in integration by parts produces \((\ln x)^{n-1}\), so the remaining integral is \(J_{n-1}\), not \(J_n\).

Exponential Recurrence: Decrease by One

For a nonnegative integer \(n\), define \(I_n=\int x^n e^x\,dx\). Integration by parts with \(u=x^n\) and \(dv=e^x\,dx\) gives, for \(n\geq1\),

$$ I_n=x^n e^x-nI_{n-1}. $$

Here each step reduces the index by one, so the single base case \(I_0=\int e^x\,dx=e^x\) is enough for every nonnegative starting index. If the recurrence is written down but \(I_0\) is never evaluated, the procedure has not been carried through to an antiderivative.

Worked Example: Reducing an Exponential Integral to Its Base Case

Evaluate \(I_3=\int x^3e^x\,dx\) by repeatedly applying the recurrence.

$$ \begin{aligned} I_3 &=x^3e^x-3I_2\\ &=x^3e^x-3(x^2e^x-2I_1)\\ &=x^3e^x-3x^2e^x+6I_1\\ &=x^3e^x-3x^2e^x+6(xe^x-I_0)\\ &=x^3e^x-3x^2e^x+6xe^x-6e^x+C\\ &=e^x(x^3-3x^2+6x-6)+C. \end{aligned} $$

The index path is \(3\to2\to1\to0\), and \(I_0\) is evaluated explicitly. To check the answer, set \(P(x)=x^3-3x^2+6x-6\). Then \(P'(x)=3x^2-6x+6\), so

$$ \frac{d}{dx}\left[e^xP(x)\right] =e^x\bigl(P(x)+P'(x)\bigr) =e^x x^3. $$

A useful error check is to substitute \(n=1\) into the recurrence: it must give \(I_1=xe^x-I_0=xe^x-e^x+C\). Any proposed shift that leaves \(I_1\) on both sides has not performed a reduction and should not be iterated as though it had.

Trigonometric Recurrence: Decrease by Two

Let \(S_n=\int \sin^n x\,dx\), for nonnegative integers \(n\). The sine-power reduction formula, valid for \(n\geq2\), is

$$ S_n=-\frac{\sin^{n-1}x\cos x}{n} +\frac{n-1}{n}S_{n-2}. $$

Because the index drops by two, an even starting index eventually reaches zero and an odd starting index eventually reaches one. Both base cases are needed: \(S_0=x\) and \(S_1=-\cos x\).

Why the recurrence works: Integration by parts with \(u=\sin^{n-1}x\) and \(dv=\sin x\,dx\) gives \(S_n=-\sin^{n-1}x\cos x+(n-1)\int \sin^{n-2}x\cos^2x\,dx\). Using \(\cos^2x=1-\sin^2x\), the remaining integral is \(S_{n-2}-S_n\). Thus \(S_n=-\sin^{n-1}x\cos x+(n-1)(S_{n-2}-S_n)\); collecting the \(S_n\) terms gives the displayed recurrence.

Worked Example: Following Both Trigonometric Base Cases

Use the recurrence to find \(S_4\), and then see what happens if the base case for odd indices is omitted.

First reduce the even index \(4\) to \(2\):

$$ S_4=-\frac{\sin^3x\cos x}{4}+\frac34S_2. $$

Then reduce \(S_2\) to its even base case \(S_0\):

$$ S_2=-\frac{\sin x\cos x}{2}+\frac12S_0 =-\frac{\sin x\cos x}{2}+\frac{x}{2}. $$

Substitution gives the antiderivative

$$ S_4=-\frac{\sin^3x\cos x}{4} -\frac{3\sin x\cos x}{8} +\frac{3x}{8}+C. $$

For a direct check, differentiating the recurrence expression for \(S_n\) gives

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

Now consider the odd index \(S_3\). The same recurrence gives \(S_3=-\tfrac13\sin^2x\cos x+\tfrac23S_1\). If \(S_1\) is missing from the stated base cases, the reduction stops at an unevaluated integral; the formula is not a complete evaluation procedure for odd powers. Supplying \(S_1=-\cos x\) finishes it. A recurrence that lowers indices by two therefore needs both parity branches represented among its base cases.

Common Failure Modes

Several checks catch most termination errors before they spread through a calculation:

  • Read the subscript, not just the formula’s appearance. A term \(R_n\) on the right has not been reduced. A term \(R_{n-1}\) or \(R_{n-2}\) has a lower index, but you must still confirm that the full chain reaches a stated base case.
  • Check the step size against the bases. A step of two preserves parity, so one base case cannot cover both even and odd starting indices.
  • Check the smallest index where the recurrence is used. A recurrence stated only for \(n\geq2\) cannot be applied at \(n=1\). At that point you need a base case or a separately valid rule.
  • Evaluate the terminal integral. Writing “continue until \(I_0\)” is a useful plan, but it is not the final antiderivative until \(I_0\) has been computed.

These checks distinguish two different problems: a recurrence can be algebraically valid but incompletely supplied with base cases, or its index shift can be wrong and prevent the intended reduction. A valid recurrence, a strictly decreasing index, and explicit base cases together provide a finite route to the answer.

Check Your Understanding

For each question, trace the index path before deciding whether the recurrence gives a complete evaluation method.

  1. A recurrence replaces \(R_n\) by an expression involving \(R_{n-1}\). What base case is sufficient for all nonnegative starting indices, provided the recurrence applies for \(n\geq1\)?
  2. A recurrence replaces \(T_n\) by an expression involving \(T_{n-2}\). Which base cases are needed to cover every nonnegative starting index?
  3. Why does a formula involving \(J_n\) on both sides fail to reduce the index by iteration?
  4. For \(S_5\), which base case does the sine-power recurrence reach?
  5. What is missing from a reduction procedure that ends with an unevaluated base 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