Skip to content

Definite Integral Reduction Formulas and Walli's Theorem

In indefinite integration, a reduction formula keeps track of a complicated algebraic or trigonometric boundary term at every step. In definite integration, something far cleaner happens: when we choose natural limits like \([0, \pi/4]\), \([0, \pi/2]\), \([0, 1]\), or \([0, \infty)\), the boundary terms either vanish completely or collapse to simple numbers.

As a result, a definite integral \(I_n\) depending on an integer parameter \(n\) satisfies a pure numerical recurrence relation—relating \(I_n\) directly to \(I_{n-1}\) or \(I_{n-2}\). We can then step \(n\) down to a trivial base case, telescope sums, or even extract limits as \(n \to \infty\) without ever finding an antiderivative!

Across definite integration, these recurrences come from two main engines:

  1. Identities and Telescoping Differences, where \(I_n + I_{n-2}\) or \(I_n - I_{n-1}\) simplifies the integrand before integrating.
  2. Definite Integration by Parts, where the boundary term \(\big[u v\big]_a^b\) vanishes or becomes a constant.

Tangent and Cotangent Powers on Quarter-Period Intervals

(Note: Let us evaluate these on their standard quarter-period intervals where \(\tan x\) and \(\cot x\) run between \(0\) and \(1\).)

Definite Reduction for Tangent Powers

For integers \(n \ge 0\), define:

\[ I_n = \int_0^{\pi/4} \tan^n x\,dx \]

For \(n \ge 2\), add \(I_n\) and \(I_{n-2}\) together and factor out \(\tan^{n-2} x\):

\[ I_n + I_{n-2} = \int_0^{\pi/4} \tan^{n-2} x \left(\tan^2 x + 1\right) dx = \int_0^{\pi/4} \tan^{n-2} x \sec^2 x\,dx \]

Since \(\frac{d}{dx}(\tan x) = \sec^2 x\), the integral evaluates immediately:

\[ I_n + I_{n-2} = \left[ \frac{\tan^{n-1} x}{n - 1} \right]_0^{\pi/4} = \frac{1}{n - 1} \qquad (n \ge 2) \]

Notice how clean this is: there is no \(+C\) and no variable expression left—just a single number \(\frac{1}{n - 1}\).

Definite Reduction for Cotangent Powers

For integers \(n \ge 0\), define:

\[ J_n = \int_{\pi/4}^{\pi/2} \cot^n x\,dx \]

By King's Rule on \([0, \pi/2]\) (or substituting \(x = \frac{\pi}{2} - t\)), \(\cot(\frac{\pi}{2} - t) = \tan t\) and the interval \([\pi/4, \pi/2]\) maps to \([0, \pi/4]\). Hence \(J_n = I_n\) for every \(n \ge 0\), and it satisfies the exact same recurrence:

\[ J_n + J_{n-2} = \frac{1}{n - 1} \qquad (n \ge 2) \]

Examples: Tangent and Cotangent Reductions

Example 1: Evaluating High Powers Step by Step

Evaluate \(I_5 = \int_0^{\pi/4} \tan^5 x\,dx\) and \(I_6 = \int_0^{\pi/4} \tan^6 x\,dx\).

Solution: First compute the two base cases:

\[ I_0 = \int_0^{\pi/4} 1\,dx = \frac{\pi}{4}, \qquad I_1 = \int_0^{\pi/4} \tan x\,dx = \Big[ \ln(\sec x) \Big]_0^{\pi/4} = \frac{1}{2}\ln 2 \]

Using \(I_n = \frac{1}{n-1} - I_{n-2}\) for odd powers:

\[ I_3 = \frac{1}{2} - I_1 = \frac{1}{2} - \frac{1}{2}\ln 2 \]
\[ I_5 = \frac{1}{4} - I_3 = \frac{1}{4} - \left(\frac{1}{2} - \frac{1}{2}\ln 2\right) = \frac{1}{2}\ln 2 - \frac{1}{4} \]

And for even powers:

\[ I_2 = 1 - I_0 = 1 - \frac{\pi}{4}, \qquad I_4 = \frac{1}{3} - I_2 = \frac{\pi}{4} - \frac{2}{3}, \qquad I_6 = \frac{1}{5} - I_4 = \frac{13}{15} - \frac{\pi}{4} \]

Example 2: A Recurrence Sum

Let \(I_n = \int_0^{\pi/4} \tan^n x\,dx\) for \(n \ge 0\). Evaluate \(\sum_{n=1}^{20} n (I_{n-1} + I_{n+1})\).

Solution: Replacing \(n\) by \(n + 1\) in \(I_n + I_{n-2} = \frac{1}{n - 1}\) gives \(I_{n+1} + I_{n-1} = \frac{1}{n}\). Multiplying by \(n\) yields \(n(I_{n-1} + I_{n+1}) = 1\) for every \(n \ge 1\). Therefore:

\[ \sum_{n=1}^{20} n (I_{n-1} + I_{n+1}) = \sum_{n=1}^{20} 1 = 20 \]

Example 3: Sandwiching a Limit via Definite Reduction

Using \(I_n = \int_0^{\pi/4} \tan^n x\,dx\), prove that \(\lim_{n \to \infty} n I_n = \frac{1}{2}\).

Solution: On the open interval \((0, \pi/4)\), we have \(0 < \tan x < 1\), so \(\tan^{n+2} x < \tan^n x < \tan^{n-2} x\) for \(n \ge 2\). Integrating over \([0, \pi/4]\) preserves the strict inequality:

\[ I_{n+2} < I_n < I_{n-2} \]

Adding \(I_n\) to all parts and applying the reduction formula:

\[ 2 I_n < I_n + I_{n-2} = \frac{1}{n - 1} \qquad \text{and} \qquad \frac{1}{n + 1} = I_{n+2} + I_n < 2 I_n \]

Combining both bounds gives:

\[ \frac{1}{2(n + 1)} < I_n < \frac{1}{2(n - 1)} \]

Multiplying by \(n\):

\[ \frac{n}{2(n + 1)} < n I_n < \frac{n}{2(n - 1)} \]

As \(n \to \infty\), both outer bounds approach \(\frac{1}{2}\). By the Sandwich Theorem, \(\lim_{n \to \infty} n I_n = \frac{1}{2}\).


Secant and Cosecant Powers on Definite Intervals

When we integrate powers of \(\sec x\) or \(\csc x\) on \([0, \pi/4]\) or \([\pi/4, \pi/2]\), definite integration by parts produces a clean numerical recurrence.

Definite Reduction for Secant Powers

For integers \(n \ge 1\), define:

\[ I_n = \int_0^{\pi/4} \sec^n x\,dx \]

For \(n \ge 2\), split \(\sec^n x = \sec^{n-2} x \cdot \sec^2 x\) and integrate by parts with \(u = \sec^{n-2} x\) and \(dv = \sec^2 x\,dx\) (so \(v = \tan x\)):

\[ I_n = \Big[ \sec^{n-2} x \tan x \Big]_0^{\pi/4} - (n - 2)\int_0^{\pi/4} \sec^{n-2} x \tan^2 x\,dx \]

At \(x = \pi/4\), \(\sec(\pi/4) = \sqrt{2}\) and \(\tan(\pi/4) = 1\); at \(x = 0\), \(\tan 0 = 0\). Replace \(\tan^2 x = \sec^2 x - 1\):

\[ I_n = (\sqrt{2})^{n-2} - (n - 2)(I_n - I_{n-2}) \]

Collecting \(I_n\) on the left gives:

\[ (n - 1)I_n = (\sqrt{2})^{n-2} + (n - 2)I_{n-2} \qquad (n \ge 2) \]

Definite Reduction for Cosecant Powers

Similarly, for \(J_n = \int_{\pi/4}^{\pi/2} \csc^n x\,dx\), substituting \(x = \frac{\pi}{2} - t\) shows \(J_n = I_n\), so:

\[ (n - 1)J_n = (\sqrt{2})^{n-2} + (n - 2)J_{n-2} \qquad (n \ge 2) \]

Example 4: Evaluating Odd Secant Powers on Zero to Pi/4

Evaluate \(I_3 = \int_0^{\pi/4} \sec^3 x\,dx\) and \(I_5 = \int_0^{\pi/4} \sec^5 x\,dx\).

Solution: Start with \(I_1 = \int_0^{\pi/4} \sec x\,dx = \big[\ln|\sec x + \tan x|\big]_0^{\pi/4} = \ln(\sqrt{2} + 1)\).

For \(n = 3\):

\[ 2 I_3 = (\sqrt{2})^1 + 1 \cdot I_1 \implies I_3 = \frac{\sqrt{2} + \ln(\sqrt{2} + 1)}{2} \]

For \(n = 5\):

\[ 4 I_5 = (\sqrt{2})^3 + 3 I_3 = 2\sqrt{2} + \frac{3\sqrt{2} + 3\ln(\sqrt{2} + 1)}{2} \implies I_5 = \frac{7\sqrt{2} + 3\ln(\sqrt{2} + 1)}{8} \]

Sine and Cosine Powers: Walli's Theorem

The most celebrated definite reduction formula governs powers of \(\sin x\) and \(\cos x\) on \([0, \pi/2]\), where the boundary term vanishes identically.

Single-Power Reduction on the Quarter Period

For integers \(n \ge 0\), define:

\[ W_n = \int_0^{\pi/2} \sin^n x\,dx = \int_0^{\pi/2} \cos^n x\,dx \]

(The two integrals are equal by King's Rule: \(\sin(\frac{\pi}{2} - x) = \cos x\).)

For \(n \ge 2\), write \(\sin^n x = \sin^{n-1} x \cdot \sin x\) and integrate by parts with \(u = \sin^{n-1} x\) and \(dv = \sin x\,dx\) (so \(v = -\cos x\)):

\[ W_n = \Big[ -\sin^{n-1} x \cos x \Big]_0^{\pi/2} + (n - 1)\int_0^{\pi/2} \sin^{n-2} x \cos^2 x\,dx \]

Because \(n - 1 \ge 1\), the boundary term \(\sin^{n-1} x \cos x\) is \(0\) at both \(x = 0\) and \(x = \pi/2\). Replacing \(\cos^2 x = 1 - \sin^2 x\) gives:

\[ W_n = (n - 1)(W_{n-2} - W_n) \implies W_n = \frac{n - 1}{n} W_{n-2} \qquad (n \ge 2) \]

Area decay of sin^n x from 0 to pi/2 as n increases

Unrolling this recurrence down to \(W_0 = \int_0^{\pi/2} 1\,dx = \frac{\pi}{2}\) (for even \(n\)) or \(W_1 = \int_0^{\pi/2} \sin x\,dx = 1\) (for odd \(n\)) gives Walli's Formula:

\[ \int_0^{\pi/2} \sin^n x\,dx = \int_0^{\pi/2} \cos^n x\,dx = \frac{(n - 1)(n - 3)(n - 5)\cdots}{n(n - 2)(n - 4)\cdots} \cdot K \]

where:

\[ K = \begin{cases} \dfrac{\pi}{2}, & \text{if } n \text{ is even} \\[6pt] 1, & \text{if } n \text{ is odd} \end{cases} \]

The Combined Product: General Walli's Theorem

Now consider the two-parameter family for integers \(m, n \ge 0\):

\[ I_{m, n} = \int_0^{\pi/2} \sin^m x \cos^n x\,dx \]

Derivation

Assume \(m \ge 2\). Group one factor of \(\sin x\) with \(\cos^n x\):

\[ I_{m, n} = \int_0^{\pi/2} \underbrace{\sin^{m-1} x}_{u} \cdot \underbrace{(\cos^n x \sin x)\,dx}_{dv} \]

Then \(du = (m - 1)\sin^{m-2} x \cos x\,dx\) and \(v = -\frac{\cos^{n+1} x}{n + 1}\). Integrating by parts:

\[ I_{m, n} = \left[ -\frac{\sin^{m-1} x \cos^{n+1} x}{n + 1} \right]_0^{\pi/2} + \frac{m - 1}{n + 1} \int_0^{\pi/2} \sin^{m-2} x \cos^{n+2} x\,dx \]

Since \(m - 1 \ge 1\) and \(n + 1 \ge 1\), the boundary term vanishes at both \(0\) and \(\pi/2\). Writing \(\cos^{n+2} x = \cos^n x (1 - \sin^2 x)\) gives:

\[ I_{m, n} = \frac{m - 1}{n + 1} (I_{m-2, n} - I_{m, n}) \implies (m + n)I_{m, n} = (m - 1)I_{m-2, n} \]

Hence:

\[ I_{m, n} = \frac{m - 1}{m + n} I_{m-2, n} \qquad (m \ge 2) \]

By symmetry (\(I_{m, n} = I_{n, m}\) via King's Rule), whenever \(n \ge 2\):

\[ I_{m, n} = \frac{n - 1}{m + n} I_{m, n-2} \qquad (n \ge 2) \]

Unrolling Both Exponents: Walli's Theorem

Stepping \(m\) down by \(2\)'s until it hits \(0\) or \(1\), and then stepping \(n\) down by \(2\)'s until it hits \(0\) or \(1\), produces a denominator that starts at \(m + n\) and steps down by \(2\) at every stage:

\[ \int_0^{\pi/2} \sin^m x \cos^n x\,dx = \frac{\big[(m - 1)(m - 3)\cdots\big]\big[(n - 1)(n - 3)\cdots\big]}{(m + n)(m + n - 2)(m + n - 4)\cdots} \cdot K \]

where:

\[ K = \begin{cases} \dfrac{\pi}{2}, & \text{if both } m \text{ and } n \text{ are even} \\[6pt] 1, & \text{otherwise (at least one of } m, n \text{ is odd)} \end{cases} \]

(If \(m \le 1\), take the factor \((m - 1)(m - 3)\cdots\) as \(1\); likewise if \(n \le 1\).)

Notice why \(K = \frac{\pi}{2}\) only when both \(m\) and \(n\) are even: the four possible terminal base cases \(I_{r, s}\) (\(r, s \in \{0, 1\}\)) are \(I_{0,0} = \frac{\pi}{2}\), \(I_{1,0} = 1\), \(I_{0,1} = 1\), and \(I_{1,1} = \frac{1}{2}\) (where the \(\frac{1}{2}\) already comes from the final denominator factor \(1 + 1 = 2\), leaving \(K = 1\)).


Examples: Walli's Theorem in Action

Example 5: Direct and Substituted Walli's Integrals

Evaluate:

  1. \(\int_0^{\pi/2} \sin^6 x \cos^4 x\,dx\)
  2. \(\int_0^1 x^4 (1 - x^2)^{3/2}\,dx\)
  3. \(\int_0^{2a} x^3 \sqrt{2ax - x^2}\,dx \quad (a > 0)\)

Solution:

(1) Both \(m = 6\) and \(n = 4\) are even, so \(m + n = 10\) and \(K = \frac{\pi}{2}\):

\[ \int_0^{\pi/2} \sin^6 x \cos^4 x\,dx = \frac{(5 \cdot 3 \cdot 1)(3 \cdot 1)}{10 \cdot 8 \cdot 6 \cdot 4 \cdot 2} \cdot \frac{\pi}{2} = \frac{45}{3840} \cdot \frac{\pi}{2} = \frac{3\pi}{512} \]

(2) Substitute \(x = \sin\theta\), so \(dx = \cos\theta\,d\theta\) and \(\theta\) runs from \(0\) to \(\pi/2\):

\[ \int_0^1 x^4 (1 - x^2)^{3/2}\,dx = \int_0^{\pi/2} \sin^4\theta \cos^4\theta\,d\theta = \frac{(3 \cdot 1)(3 \cdot 1)}{8 \cdot 6 \cdot 4 \cdot 2} \cdot \frac{\pi}{2} = \frac{3\pi}{256} \]

(3) Complete the square: \(2ax - x^2 = a^2 - (x - a)^2\). Substitute \(x = 2a\sin^2\theta\), so \(dx = 4a\sin\theta\cos\theta\,d\theta\), \(\sqrt{2ax - x^2} = 2a\sin\theta\cos\theta\), and \(\theta \in [0, \pi/2]\):

\[ \int_0^{2a} x^3 \sqrt{2ax - x^2}\,dx = 64a^5 \int_0^{\pi/2} \sin^8\theta \cos^2\theta\,d\theta = 64a^5 \cdot \frac{(7 \cdot 5 \cdot 3 \cdot 1)(1)}{10 \cdot 8 \cdot 6 \cdot 4 \cdot 2} \cdot \frac{\pi}{2} = \frac{7\pi a^5}{8} \]

Example 6: Combining Queen's Rule and Even/Odd Symmetry with Walli's Theorem

Evaluate \(\int_{-\pi/2}^{\pi} \sin^4 x \cos^5 x\,dx\).

Solution: Split the interval at \(0\) and \(\pi/2\), or use periodicity/symmetry carefully:

\[ \int_{-\pi/2}^{\pi} \sin^4 x \cos^5 x\,dx = \int_{-\pi/2}^{\pi/2} \sin^4 x \cos^5 x\,dx + \int_{\pi/2}^{\pi} \sin^4 x \cos^5 x\,dx \]

On \([-\pi/2, \pi/2]\), \(\sin^4 x \cos^5 x\) is an even function, so the first integral equals \(2\int_0^{\pi/2} \sin^4 x \cos^5 x\,dx\).

On \([\pi/2, \pi]\), shift by \(-\pi/2\) (replace \(x\) with \(x + \pi/2\)): \(\sin(x + \pi/2) = \cos x\) and \(\cos(x + \pi/2) = -\sin x\), so:

\[ \int_{\pi/2}^{\pi} \sin^4 x \cos^5 x\,dx = -\int_0^{\pi/2} \cos^4 x \sin^5 x\,dx = -\int_0^{\pi/2} \sin^4 x \cos^5 x\,dx \]

Adding the two pieces leaves just one copy:

\[ \int_{-\pi/2}^{\pi} \sin^4 x \cos^5 x\,dx = \int_0^{\pi/2} \sin^4 x \cos^5 x\,dx = \frac{(3 \cdot 1)(4 \cdot 2)}{9 \cdot 7 \cdot 5 \cdot 3 \cdot 1} \cdot 1 = \frac{8}{315} \]

Example 7: A Hidden Combinatorial Identity from Walli's Theorem

Prove that for every positive integer \(n\):

\[ \int_0^{\pi/2} \sin^{2n} x\,dx = \frac{1}{2^{2n}} \binom{2n}{n} \frac{\pi}{2} \]

and deduce that \(\int_0^{\pi/2} \sin^n x \cos^n x\,dx = 2^{-n} \int_0^{\pi/2} \sin^n x\,dx\).

Solution: From Walli's Formula for \(2n\) (even):

\[ \int_0^{\pi/2} \sin^{2n} x\,dx = \frac{(2n - 1)(2n - 3)\cdots 1}{2n(2n - 2)\cdots 2} \cdot \frac{\pi}{2} \]

Multiply both numerator and denominator by \(2n(2n - 2)\cdots 2 = 2^n n!\):

\[ = \frac{(2n)!}{(2^n n!)^2} \cdot \frac{\pi}{2} = \frac{1}{2^{2n}} \binom{2n}{n} \frac{\pi}{2} \]

For the second identity, write \(\sin x \cos x = \frac{\sin(2x)}{2}\):

\[ \int_0^{\pi/2} \sin^n x \cos^n x\,dx = \frac{1}{2^n} \int_0^{\pi/2} \sin^n(2x)\,dx \]

By the scaling property (\(2x = t\), multiplying limits by \(2\) and dividing by \(2\)):

\[ = \frac{1}{2^{n+1}} \int_0^{\pi} \sin^n t\,dt \]

Since \(\sin(\pi - t) = \sin t\), Queen's Rule on \([0, \pi]\) gives \(\int_0^\pi \sin^n t\,dt = 2\int_0^{\pi/2} \sin^n t\,dt\), leaving:

\[ \int_0^{\pi/2} \sin^n x \cos^n x\,dx = 2^{-n} \int_0^{\pi/2} \sin^n x\,dx \]

Telescoping Trigonometric Quotients

A rich class of definite integral reductions involves quotients with \(\sin x\) or \(\sin^2 x\) in the denominator. Here, integration by parts does not help at all. Instead, we compute the difference \(I_n - I_{n-1}\) so that a sum-to-product identity cancels the denominator!

Family 1: Even Multiples in the Numerator

For integers \(n \ge 1\), define:

\[ I_n = \int_0^{\pi/2} \frac{\sin(2nx)}{\sin x}\,dx \]

Subtract \(I_{n-1}\) from \(I_n\) (taking \(I_0 = 0\)):

\[ I_n - I_{n-1} = \int_0^{\pi/2} \frac{\sin(2nx) - \sin\big(2(n - 1)x\big)}{\sin x}\,dx \]

Using \(\sin A - \sin B = 2\cos\left(\frac{A + B}{2}\right)\sin\left(\frac{A - B}{2}\right)\):

\[ \sin(2nx) - \sin\big((2n - 2)x\big) = 2\cos\big((2n - 1)x\big)\sin x \]

The \(\sin x\) denominator cancels cleanly:

\[ I_n - I_{n-1} = \int_0^{\pi/2} 2\cos\big((2n - 1)x\big)\,dx = \left[ \frac{2\sin\big((2n - 1)x\big)}{2n - 1} \right]_0^{\pi/2} = \frac{2(-1)^{n-1}}{2n - 1} \]

Summing from \(k = 1\) to \(n\):

\[ I_n = 2\left(1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \cdots + \frac{(-1)^{n-1}}{2n - 1}\right) \]

Family 2: Odd Multiples in the Numerator (An Exact Invariant)

Now replace \(2nx\) with the odd multiple \((2n - 1)x\) for integers \(n \ge 1\):

\[ J_n = \int_0^{\pi/2} \frac{\sin\big((2n - 1)x\big)}{\sin x}\,dx \]

Compute \(J_{n+1} - J_n\):

\[ J_{n+1} - J_n = \int_0^{\pi/2} \frac{\sin\big((2n + 1)x\big) - \sin\big((2n - 1)x\big)}{\sin x}\,dx = \int_0^{\pi/2} 2\cos(2nx)\,dx \]

Integrating directly:

\[ J_{n+1} - J_n = \left[ \frac{\sin(2nx)}{n} \right]_0^{\pi/2} = \frac{\sin(n\pi) - 0}{n} = 0 \]

Since \(J_{n+1} = J_n\) for every \(n \ge 1\), the integral is completely independent of \(n\):

\[ J_n = J_1 = \int_0^{\pi/2} 1\,dx = \frac{\pi}{2} \qquad \text{for all } n \ge 1 \]

Family 3: Squared Sine Quotients

Next, for integers \(n \ge 0\), define:

\[ K_n = \int_0^{\pi/2} \frac{\sin^2(nx)}{\sin^2 x}\,dx \]

Subtract \(K_{n-1}\) from \(K_n\) for \(n \ge 1\):

\[ K_n - K_{n-1} = \int_0^{\pi/2} \frac{\sin^2(nx) - \sin^2\big((n - 1)x\big)}{\sin^2 x}\,dx \]

Using \(\sin^2 A - \sin^2 B = \sin(A + B)\sin(A - B)\):

\[ K_n - K_{n-1} = \int_0^{\pi/2} \frac{\sin\big((2n - 1)x\big)\sin x}{\sin^2 x}\,dx = \int_0^{\pi/2} \frac{\sin\big((2n - 1)x\big)}{\sin x}\,dx = J_n \]

By Family 2, \(J_n = \frac{\pi}{2}\) for every \(n \ge 1\)! Therefore \(K_n - K_{n-1} = \frac{\pi}{2}\), which telescopes from \(K_0 = 0\) to give:

\[ K_n = \int_0^{\pi/2} \frac{\sin^2(nx)}{\sin^2 x}\,dx = \frac{n\pi}{2} \qquad (n \ge 0) \]

Applying the scaling and half-angle identities unlocks two more classic families on \([0, \pi]\):

  1. Cosine Difference Quotient: Let \(L_n = \int_0^\pi \frac{1 - \cos(nx)}{1 - \cos x}\,dx\). Using \(1 - \cos\theta = 2\sin^2(\theta/2)\) and scaling \(x = 2t\):
\[ L_n = \int_0^\pi \frac{\sin^2(nx/2)}{\sin^2(x/2)}\,dx = 2 \int_0^{\pi/2} \frac{\sin^2(nt)}{\sin^2 t}\,dt = 2 K_n = n\pi \]
  1. Full Half-Period Sine Quotient: Let \(M_n = \int_0^\pi \frac{\sin(nx)}{\sin x}\,dx\). Subtracting \(M_n - M_{n-2} = \int_0^\pi 2\cos\big((n - 1)x\big)\,dx = 0\) (\(n \ge 2\)) reduces everything to \(M_0 = 0\) and \(M_1 = \pi\):
\[ \int_0^\pi \frac{\sin(nx)}{\sin x}\,dx = \begin{cases} \pi, & \text{if } n \text{ is odd} \\ 0, & \text{if } n \text{ is even} \end{cases} \]

Advanced Examples in Quotient Reduction

Example 8: Using a Second-Order Trigonometric Difference

For a fixed parameter \(\alpha \in (0, \pi)\) and integers \(n \ge 0\), evaluate:

\[ P_n = \int_0^\pi \frac{\cos(nx) - \cos(n\alpha)}{\cos x - \cos\alpha}\,dx \]

Solution: First check the base cases: \(P_0 = 0\) and \(P_1 = \int_0^\pi 1\,dx = \pi\).

Now form the three-term combination \(P_{n+1} + P_{n-1} - 2\cos\alpha\, P_n\) for \(n \ge 1\):

\[ P_{n+1} + P_{n-1} - 2\cos\alpha\, P_n = \int_0^\pi \frac{\big[\cos((n+1)x) + \cos((n-1)x) - 2\cos\alpha\cos(nx)\big] - \big[\cos((n+1)\alpha) + \cos((n-1)\alpha) - 2\cos\alpha\cos(n\alpha)\big]}{\cos x - \cos\alpha}\,dx \]

Recall the identity \(\cos\big((n+1)\theta\big) + \cos\big((n-1)\theta\big) = 2\cos(n\theta)\cos\theta\). Thus the second bracket vanishes identically, and the first bracket equals \(2\cos(nx)(\cos x - \cos\alpha)\). Cancelling \(\cos x - \cos\alpha\) gives:

\[ P_{n+1} + P_{n-1} - 2\cos\alpha\, P_n = \int_0^\pi 2\cos(nx)\,dx = \left[ \frac{2\sin(nx)}{n} \right]_0^\pi = 0 \]

Hence \(P_{n+1} = 2\cos\alpha\, P_n - P_{n-1}\). Computing the first few terms:

  • \(P_0 = 0\)
  • \(P_1 = \pi = \pi \frac{\sin\alpha}{\sin\alpha}\)
  • \(P_2 = 2\pi\cos\alpha = \pi \frac{\sin(2\alpha)}{\sin\alpha}\)

Assuming \(P_k = \pi \frac{\sin(k\alpha)}{\sin\alpha}\) for \(k \le n\), induction gives:

\[ P_{n+1} = \pi \frac{2\sin(n\alpha)\cos\alpha - \sin\big((n-1)\alpha\big)}{\sin\alpha} = \pi \frac{\sin\big((n+1)\alpha\big)}{\sin\alpha} \]

Therefore, for every integer \(n \ge 0\):

\[ P_n = \pi \frac{\sin(n\alpha)}{\sin\alpha} \]

Example 9: Alternating Series with Cosine-Weighted Quotients

Evaluate \(S_n = \int_0^{\pi/2} \frac{\sin(2nx)\cos x}{\sin x}\,dx\) for \(n \ge 1\).

Solution: Write \(\sin(2nx)\cos x = \frac{1}{2}\big[\sin\big((2n+1)x\big) + \sin\big((2n-1)x\big)\big]\):

\[ S_n = \frac{1}{2} \int_0^{\pi/2} \frac{\sin\big((2n + 1)x\big)}{\sin x}\,dx + \frac{1}{2} \int_0^{\pi/2} \frac{\sin\big((2n - 1)x\big)}{\sin x}\,dx = \frac{1}{2} J_{n+1} + \frac{1}{2} J_n \]

By Family 2, \(J_{n+1} = J_n = \frac{\pi}{2}\) for all \(n \ge 1\), so:

\[ S_n = \frac{1}{2}\left(\frac{\pi}{2}\right) + \frac{1}{2}\left(\frac{\pi}{2}\right) = \frac{\pi}{2} \]

Definite Algebraic, Exponential, and Logarithmic Reductions

Outside trigonometry, definite limits like \([0, 1]\) and \([0, \infty)\) make integration-by-parts recurrences collapse into some of the most illuminating formulas in mathematics.

1. Logarithmic Powers and Factorials

For \(m \ge 0\) and integers \(n \ge 0\), define:

\[ I_n = \int_0^1 x^m (\ln x)^n\,dx \]

For \(n \ge 1\), integrate by parts with \(u = (\ln x)^n\) and \(dv = x^m\,dx\):

\[ I_n = \left[ \frac{x^{m+1}}{m + 1} (\ln x)^n \right]_0^1 - \frac{n}{m + 1} \int_0^1 x^m (\ln x)^{n-1}\,dx \]

Because \(\lim_{x \to 0^+} x^{m+1}(\ln x)^n = 0\) and \(\ln 1 = 0\), the boundary term vanishes completely:

\[ I_n = -\frac{n}{m + 1} I_{n-1} \]

Stepping down to \(I_0 = \int_0^1 x^m\,dx = \frac{1}{m + 1}\) yields:

\[ \int_0^1 x^m (\ln x)^n\,dx = \frac{(-1)^n n!}{(m + 1)^{n+1}} \]

In particular, setting \(m = 0\) gives the integral representation of the factorial:

\[ \int_0^1 (-\ln x)^n\,dx = n! \]

2. Polynomial-Exponential Reduction on the Unit Interval

Define:

\[ I_n = \int_0^1 x^n e^x\,dx \qquad (n \ge 0) \]

Integrating by parts with \(u = x^n\) and \(dv = e^x\,dx\):

\[ I_n = \Big[ x^n e^x \Big]_0^1 - n \int_0^1 x^{n-1} e^x\,dx = e - n I_{n-1} \qquad (n \ge 1) \]

With \(I_0 = e - 1\), this generates \(I_1 = 1\), \(I_2 = e - 2\), \(I_3 = 6 - 2e\), \(I_4 = 9e - 24\), and so on.


3. Infinite-Interval Rational Reduction and Walli's Connection

For integers \(n \ge 1\) and \(a > 0\), define the improper definite integral:

\[ I_n = \int_0^\infty \frac{dx}{(x^2 + a^2)^n} \]

For \(n \ge 2\), split \(1 = \frac{(x^2 + a^2) - x^2}{a^2}\) inside \(I_{n-1}\):

\[ I_{n-1} = \int_0^\infty \frac{x^2 + a^2}{(x^2 + a^2)^n}\,dx = \int_0^\infty \frac{x^2}{(x^2 + a^2)^n}\,dx + a^2 I_n \]

Evaluate the first term by parts with \(u = x\) and \(dv = \frac{x\,dx}{(x^2 + a^2)^n}\) (so \(v = -\frac{1}{2(n - 1)(x^2 + a^2)^{n-1}}\)):

\[ \int_0^\infty \frac{x^2}{(x^2 + a^2)^n}\,dx = \left[ -\frac{x}{2(n - 1)(x^2 + a^2)^{n-1}} \right]_0^\infty + \frac{1}{2(n - 1)} I_{n-1} = \frac{1}{2(n - 1)} I_{n-1} \]

The boundary term vanishes at both \(0\) and \(\infty\) (since \(2(n - 1) \ge 2 > 1\)). Solving for \(I_n\) gives:

\[ I_n = \frac{2n - 3}{2(n - 1)a^2} I_{n-1} \qquad (n \ge 2) \]

Starting from \(I_1 = \int_0^\infty \frac{dx}{x^2 + a^2} = \frac{\pi}{2a}\), we get:

\[ \int_0^\infty \frac{dx}{(x^2 + a^2)^n} = \frac{(2n - 3)(2n - 5)\cdots 1}{(2n - 2)(2n - 4)\cdots 2} \cdot \frac{\pi}{2 a^{2n - 1}} \]

(Why does this match Walli's Formula? Substituting \(x = a\tan\theta\) transforms \(\int_0^\infty \frac{dx}{(x^2+a^2)^n}\) directly into \(\frac{1}{a^{2n-1}}\int_0^{\pi/2}\cos^{2n-2}\theta\,d\theta\)!)


4. Two-Parameter Beta Reduction and Shifted Intervals

For integers \(m, n \ge 0\), define:

\[ B(m, n) = \int_0^1 x^m (1 - x)^n\,dx \]

For \(n \ge 1\), integrate by parts with \(u = (1 - x)^n\) and \(dv = x^m\,dx\):

\[ B(m, n) = \left[ \frac{x^{m+1}}{m + 1} (1 - x)^n \right]_0^1 + \frac{n}{m + 1} \int_0^1 x^{m+1} (1 - x)^{n-1}\,dx = \frac{n}{m + 1} B(m + 1, n - 1) \]

Repeating this \(n\) times down to \(B(m + n, 0) = \int_0^1 x^{m+n}\,dx = \frac{1}{m + n + 1}\) yields:

\[ \int_0^1 x^m (1 - x)^n\,dx = \frac{m!\, n!}{(m + n + 1)!} \]

By shifting and scaling (\(x = a + (b - a)t\)), for any real numbers \(a < b\):

\[ \int_a^b (x - a)^m (b - x)^n\,dx = (b - a)^{m + n + 1} \frac{m!\, n!}{(m + n + 1)!} \]

Advanced Mixed Examples

Example 10: Rational Recurrence, Sandwich Bounds, and the Alternating Harmonic Series

Let \(I_n = \int_0^1 \frac{x^n}{1 + x}\,dx\) for integers \(n \ge 0\).

  1. Find a reduction relation between \(I_n\) and \(I_{n-1}\).
  2. Prove that \(\lim_{n \to \infty} n I_n = \frac{1}{2}\).
  3. Deduce the alternating harmonic series \(\sum_{k=1}^\infty \frac{(-1)^{k-1}}{k} = \ln 2\).

Solution:

(1) Add \(I_n\) and \(I_{n-1}\):

\[ I_n + I_{n-1} = \int_0^1 \frac{x^{n-1}(x + 1)}{1 + x}\,dx = \int_0^1 x^{n-1}\,dx = \frac{1}{n} \qquad (n \ge 1) \]

(2) On \((0, 1)\), we have \(x^{n+1} < x^n < x^{n-1}\), so \(I_{n+1} < I_n < I_{n-1}\). Therefore:

\[ 2 I_n < I_n + I_{n-1} = \frac{1}{n} \qquad \text{and} \qquad \frac{1}{n + 1} = I_{n+1} + I_n < 2 I_n \]

Thus:

\[ \frac{n}{2(n + 1)} < n I_n < \frac{1}{2} \]

By the Sandwich Theorem, \(\lim_{n \to \infty} n I_n = \frac{1}{2}\).

(3) Notice that \(I_0 = \int_0^1 \frac{1}{1 + x}\,dx = \ln 2\). Unrolling \(I_{k-1} + I_k = \frac{1}{k}\) with alternating signs:

\[ \sum_{k=1}^n \frac{(-1)^{k-1}}{k} = \sum_{k=1}^n (-1)^{k-1} (I_{k-1} + I_k) = I_0 + (-1)^{n-1} I_n = \ln 2 + (-1)^{n-1} I_n \]

Since \(0 < I_n < \frac{1}{2n} \to 0\) as \(n \to \infty\), taking the limit gives \(\sum_{k=1}^\infty \frac{(-1)^{k-1}}{k} = \ln 2\).


Example 11: Binomial Powers and a Combinatorial Sum

For integers \(n \ge 0\) and \(p \ge 1\), evaluate \(I_n = \int_0^1 (1 - x^p)^n\,dx\). Then deduce the value of \(\sum_{k=0}^n \frac{(-1)^k}{2k + 1} \binom{n}{k}\).

Solution: For \(n \ge 1\), integrate by parts with \(u = (1 - x^p)^n\) and \(dv = dx\) (so \(v = x\)):

\[ I_n = \Big[ x(1 - x^p)^n \Big]_0^1 + np \int_0^1 x^p (1 - x^p)^{n-1}\,dx \]

Write \(x^p = 1 - (1 - x^p)\) inside the integral:

\[ I_n = np \int_0^1 (1 - x^p)^{n-1}\,dx - np \int_0^1 (1 - x^p)^n\,dx = np\, I_{n-1} - np\, I_n \]

Solving for \(I_n\) gives \(I_n = \frac{np}{np + 1} I_{n-1}\). With \(I_0 = 1\), this unrolls to:

\[ I_n = \frac{n!\, p^n}{(p + 1)(2p + 1)\cdots(np + 1)} \]

Setting \(p = 2\):

\[ \int_0^1 (1 - x^2)^n\,dx = \frac{2^n\, n!}{3 \cdot 5 \cdot 7 \cdots (2n + 1)} = \frac{2^{2n} (n!)^2}{(2n + 1)!} \]

On the other hand, expanding \((1 - x^2)^n = \sum_{k=0}^n (-1)^k \binom{n}{k} x^{2k}\) and integrating term by term on \([0, 1]\) gives:

\[ \sum_{k=0}^n \frac{(-1)^k}{2k + 1} \binom{n}{k} = \frac{2^{2n} (n!)^2}{(2n + 1)!} \]

Example 12: Shifted Beta Integral Without Expansion

Evaluate \(\int_1^4 (x - 1)^3 (4 - x)^4\,dx\).

Solution: Using the shifted Beta reduction formula \(\int_a^b (x - a)^m (b - x)^n\,dx = (b - a)^{m + n + 1} \frac{m!\, n!}{(m + n + 1)!}\) with \(a = 1\), \(b = 4\), \(m = 3\), and \(n = 4\):

\[ \int_1^4 (x - 1)^3 (4 - x)^4\,dx = (4 - 1)^{3 + 4 + 1} \frac{3!\, 4!}{8!} = 3^8 \cdot \frac{6 \cdot 24}{40320} = \frac{6561}{280} \]

Summary of Definite Integral Reduction Formulas

Definite Integral Reduction Formula Closed Form / Base Case
\(I_n = \int_0^{\pi/4} \tan^n x\,dx\) \(I_n + I_{n-2} = \frac{1}{n - 1}\) \(I_0 = \frac{\pi}{4},\; I_1 = \frac{1}{2}\ln 2\)
\(I_n = \int_0^{\pi/4} \sec^n x\,dx\) \((n - 1)I_n = (\sqrt{2})^{n-2} + (n - 2)I_{n-2}\) \(I_1 = \ln(\sqrt{2} + 1),\; I_2 = 1\)
\(W_n = \int_0^{\pi/2} \sin^n x\,dx\) \(W_n = \frac{n - 1}{n} W_{n-2}\) Walli's Formula (\(W_0 = \frac{\pi}{2},\; W_1 = 1\))
\(I_{m,n} = \int_0^{\pi/2} \sin^m x \cos^n x\,dx\) \(I_{m,n} = \frac{m - 1}{m + n} I_{m-2, n}\) Walli's Product Formula
\(I_n = \int_0^{\pi/2} \frac{\sin(2nx)}{\sin x}\,dx\) \(I_n - I_{n-1} = \frac{2(-1)^{n-1}}{2n - 1}\) \(I_n = 2\sum_{k=1}^n \frac{(-1)^{k-1}}{2k - 1}\)
\(J_n = \int_0^{\pi/2} \frac{\sin((2n-1)x)}{\sin x}\,dx\) \(J_{n+1} - J_n = 0\) \(J_n = \frac{\pi}{2}\) for all \(n \ge 1\)
\(K_n = \int_0^{\pi/2} \frac{\sin^2(nx)}{\sin^2 x}\,dx\) \(K_n - K_{n-1} = \frac{\pi}{2}\) \(K_n = \frac{n\pi}{2}\)
\(I_n = \int_0^1 x^m (\ln x)^n\,dx\) \(I_n = -\frac{n}{m + 1} I_{n-1}\) \(I_n = \frac{(-1)^n n!}{(m + 1)^{n+1}}\)
\(I_n = \int_0^\infty \frac{dx}{(x^2 + a^2)^n}\) \(I_n = \frac{2n - 3}{2(n - 1)a^2} I_{n-1}\) \(I_1 = \frac{\pi}{2a}\)
\(B(m, n) = \int_0^1 x^m (1 - x)^n\,dx\) \(B(m, n) = \frac{n}{m + 1} B(m + 1, n - 1)\) \(\frac{m!\, n!}{(m + n + 1)!}\)
\(I_n = \int_0^1 (1 - x^p)^n\,dx\) \(I_n = \frac{np}{np + 1} I_{n-1}\) \(\frac{n!\, p^n}{(p + 1)(2p + 1)\cdots(np + 1)}\)