Definite integrals and reduction formulae

Some integrals refuse to sit still for a single antiderivative. Ask for ∫sin⁡7x dx\int \sin^7 x\,dx or ∫x9ex dx\int x^9 e^x\,dx and repeating integration by parts nine separate times is not a plan, it is a punishment. Reduction formulae turn that punishment into a one-line recursion: express the integral InI_n at power nn in terms of the same integral at a lower power, In−2I_{n-2} or In−1I_{n-1}, and then unwind the chain arithmetically instead of integrating again and again. This node builds that machine for powers of sine, and the closely related family for tangent, and shows the payoff at [0,π/2][0,\pi/2]: the boundary terms vanish and the recursion collapses into a clean closed form called Wallis's formula. You already have integration by parts and the Pythagorean identity — everything here is one clever substitution, applied to the same pattern, again and again.

The core insight

A reduction formula writes InI_n in terms of In−2I_{n-2} (or In−1I_{n-1}) via one integration-by-parts step, so a high-power integral collapses to a short arithmetic recursion instead of repeated integration.

The core idea

What a reduction formula is. For a family In=∫fn(x) dxI_n = \int f_n(x)\,dx, integration by parts on fn=fn−1⋅ff_n = f_{n-1}\cdot f typically reproduces InI_n itself on the right-hand side; solving that equation algebraically for InI_n leaves it expressed through In−2I_{n-2} (or In−1I_{n-1}) plus a boundary/algebraic term. This is a technique applied once, not a table of formulae to memorize separately for every function. The payoff is computational: instead of doing nn separate integration-by-parts calculations to reach ∫sin⁡9x dx\int \sin^{9}x\,dx, you derive the recursion once and then apply arithmetic — multiply by a fraction, drop the index by two — four or five times in a row.

The sine family. Splitting sin⁡nx=sin⁡n−1x⋅sin⁡x\sin^n x = \sin^{n-1}x\cdot\sin x and integrating by parts gives

In=−sin⁡n−1xcos⁡xn+n−1nIn−2,I_n = -\frac{\sin^{n-1}x\cos x}{n} + \frac{n-1}{n}I_{n-2},

where: In=∫sin⁡nx dxI_n = \int \sin^n x\,dx, and the boundary term −sin⁡n−1xcos⁡x/n-\sin^{n-1}x\cos x/n carries all the xx-dependence left over after one integration by parts.

The clean definite case. Over [0,π/2][0,\pi/2] the boundary term is zero at both ends (since sin⁡0=0\sin 0=0 and cos⁡(π/2)=0\cos(\pi/2)=0), so

∫0π/2sin⁡nx dx=n−1n∫0π/2sin⁡n−2x dx,\int_0^{\pi/2}\sin^n x\,dx = \frac{n-1}{n}\int_0^{\pi/2}\sin^{n-2}x\,dx,

and because ∫0π/2sin⁡nx dx=∫0π/2cos⁡nx dx\int_0^{\pi/2}\sin^n x\,dx = \int_0^{\pi/2}\cos^n x\,dx (substitute x→π/2−xx \to \pi/2 - x), unwinding this recursion all the way down gives Wallis's formula:

∫0π/2sin⁡nx dx=∫0π/2cos⁡nx dx={(n−1)(n−3)⋯2n(n−2)⋯3,n odd(n−1)(n−3)⋯1n(n−2)⋯2⋅π2,n even.\int_0^{\pi/2}\sin^n x\,dx = \int_0^{\pi/2}\cos^n x\,dx = \begin{cases} \dfrac{(n-1)(n-3)\cdots 2}{n(n-2)\cdots 3}, & n \text{ odd} \\[2mm] \dfrac{(n-1)(n-3)\cdots 1}{n(n-2)\cdots 2}\cdot \dfrac{\pi}{2}, & n \text{ even.} \end{cases}

The tangent family. Using tan⁡nx=tan⁡n−2x(sec⁡2x−1)\tan^n x = \tan^{n-2}x(\sec^2 x - 1) instead of the Pythagorean substitution for sin⁡2\sin^2, integration gives a simpler recursion with no boundary term at all:

In=tan⁡n−1xn−1−In−2.I_n = \frac{\tan^{n-1}x}{n-1} - I_{n-2}.

The figure below shows the recursion as a chain: each arrow is one integration-by-parts step, and the chain terminates at I0I_0 or I1I_1, which are elementary.

Figure
A chain diagram showing In linked by arrows to I sub n minus two down to I zero or I one, each arrow labelled one integration by parts step
Unwinding a reduction formula — one step at a time In In-2 In-4 I0 or I1 by parts once by parts once repeat until n runs out Each arrow drops the power by two; the chain always ends at an elementary integral.

Derivation

Derivation ADeriving the sine reduction formula by integration by parts

The goal is to show, starting from nothing but integration by parts and the identity sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1, that In=∫sin⁡nx dxI_n = \int \sin^n x\,dx satisfies In=−sin⁡n−1xcos⁡x/n+n−1nIn−2I_n = -\sin^{n-1}x\cos x/n + \frac{n-1}{n}I_{n-2}, so that any power of sine can be integrated by a short recursive computation instead of a fresh integration-by-parts calculation every time.

Step 1. Split the integrand as a product so integration by parts has something to differentiate and something to integrate. Write sin⁡nx=sin⁡n−1x⋅sin⁡x\sin^n x = \sin^{n-1}x\cdot \sin x and set u=sin⁡n−1xu = \sin^{n-1}x, dv=sin⁡x dxdv = \sin x\,dx, so du=(n−1)sin⁡n−2xcos⁡x dxdu = (n-1)\sin^{n-2}x\cos x\,dx and v=−cos⁡xv = -\cos x.

Step 2. Apply integration by parts, ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du:

In=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2xcos⁡2x dx.I_n = -\sin^{n-1}x\cos x + (n-1)\int \sin^{n-2}x\cos^2 x\,dx.

Step 3. The remaining integral still has a cos⁡2x\cos^2 x in it, which is not yet in terms of In−2I_{n-2} or InI_n. Substitute cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x and split the integral into two pieces:

In=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2x dx−(n−1)∫sin⁡nx dx=−sin⁡n−1xcos⁡x+(n−1)In−2−(n−1)In.I_n = -\sin^{n-1}x\cos x + (n-1)\int \sin^{n-2}x\,dx - (n-1)\int \sin^n x\,dx = -\sin^{n-1}x\cos x + (n-1)I_{n-2} - (n-1)I_n.

Step 4. The unknown InI_n now appears on both sides of the equation, so collect it algebraically: adding (n−1)In(n-1)I_n to both sides gives nIn=−sin⁡n−1xcos⁡x+(n−1)In−2nI_n = -\sin^{n-1}x\cos x + (n-1)I_{n-2}. Dividing by nn produces the reduction formula

In=−sin⁡n−1xcos⁡xn+n−1nIn−2.I_n = -\frac{\sin^{n-1}x\cos x}{n} + \frac{n-1}{n}I_{n-2}.

This is the same result quoted in the core idea section above, and the identical algebraic trick — split the product, integrate by parts, substitute the Pythagorean identity, collect InI_n — reproduces the reduction formulae for cos⁡nx\cos^n x and, with sec⁡2x−1\sec^2 x - 1 in place of the Pythagorean substitution, for tan⁡nx\tan^n x.

Worked example

Problem. Evaluate ∫0π/2sin⁡6x dx\displaystyle\int_0^{\pi/2}\sin^6 x\,dx using Wallis's formula, and cross-check by evaluating ∫0π/4tan⁡4x dx\displaystyle\int_0^{\pi/4}\tan^4 x\,dx using the tangent reduction formula.

Step 1. For ∫0π/2sin⁡6x dx\int_0^{\pi/2}\sin^6 x\,dx, n=6n = 6 is even, so Wallis's formula gives (6−1)(6−3)(6−5)6(6−2)(6−4)⋅π2=5⋅3⋅16⋅4⋅2⋅π2=1548⋅π2=5π32\dfrac{(6-1)(6-3)(6-5)}{6(6-2)(6-4)}\cdot\dfrac{\pi}{2} = \dfrac{5\cdot 3\cdot 1}{6\cdot 4\cdot 2}\cdot\dfrac{\pi}{2} = \dfrac{15}{48}\cdot\dfrac{\pi}{2} = \dfrac{5\pi}{32}.

Step 2. Check this by direct recursion: ∫0π/2sin⁡6x dx=56∫0π/2sin⁡4x dx=56⋅34∫0π/2sin⁡2x dx=56⋅34⋅12⋅π2=1548⋅π2=5π32\int_0^{\pi/2}\sin^6 x\,dx = \frac{5}{6}\int_0^{\pi/2}\sin^4 x\,dx = \frac{5}{6}\cdot\frac{3}{4}\int_0^{\pi/2}\sin^2 x\,dx = \frac{5}{6}\cdot\frac{3}{4}\cdot\frac{1}{2}\cdot\frac{\pi}{2} = \frac{15}{48}\cdot\frac{\pi}{2} = \frac{5\pi}{32}. Both routes agree.

Step 3. For ∫tan⁡nx dx\int \tan^n x\,dx, apply In=tan⁡n−1xn−1−In−2I_n = \frac{\tan^{n-1}x}{n-1} - I_{n-2} twice: I4=tan⁡3x3−I2I_4 = \frac{\tan^3 x}{3} - I_2, and I2=tan⁡x−I0=tan⁡x−xI_2 = \tan x - I_0 = \tan x - x (since I0=∫1 dx=xI_0 = \int 1\,dx = x). So I4=tan⁡3x3−tan⁡x+xI_4 = \frac{\tan^3 x}{3} - \tan x + x.

Step 4. Evaluate between 00 and π/4\pi/4, using tan⁡(π/4)=1\tan(\pi/4) = 1: ∫0π/4tan⁡4x dx=[tan⁡3x3−tan⁡x+x]0π/4=(13−1+π4)−0=π4−23≈0.7854−0.6667=0.1187\int_0^{\pi/4}\tan^4 x\,dx = \left[\frac{\tan^3 x}{3} - \tan x + x\right]_0^{\pi/4} = \left(\frac13 - 1 + \frac{\pi}{4}\right) - 0 = \frac{\pi}{4} - \frac{2}{3} \approx 0.7854 - 0.6667 = 0.1187.

Final answers: ∫0π/2sin⁡6x dx=5π32\displaystyle\int_0^{\pi/2}\sin^6 x\,dx = \frac{5\pi}{32}, and ∫0π/4tan⁡4x dx=π4−23≈0.1187\displaystyle\int_0^{\pi/4}\tan^4 x\,dx = \frac{\pi}{4} - \frac{2}{3} \approx 0.1187.

Competitive stretch

For odd nn, Wallis's formula never carries a π/2\pi/2 factor — try ∫0π/2sin⁡5x dx=4⋅25⋅3⋅1=815\int_0^{\pi/2}\sin^5 x\,dx = \frac{4\cdot 2}{5\cdot 3}\cdot 1 = \frac{8}{15}, and notice how different the odd-nn pattern looks from the even-nn one above; mixing the two cases up is the single most common Wallis mistake.

Common traps

  • Applying the clean Wallis formula (with no boundary term) to an indefinite integral — the boundary term −sin⁡n−1xcos⁡x/n-\sin^{n-1}x\cos x/n only vanishes for the definite integral over [0,π/2][0,\pi/2].
  • Swapping the odd-nn and even-nn cases of Wallis's formula: odd nn ends the product at 11 with no π/2\pi/2 factor, even nn ends at 11 and does carry a π/2\pi/2 factor.
  • Getting the sign wrong in the tangent recursion — it is In=tan⁡n−1x/(n−1)−In−2I_n = \tan^{n-1}x/(n-1) - I_{n-2}, a minus sign, not a plus.
  • Reducing all the way down to I0I_0 or I1I_1 by hand for large nn instead of just plugging into the closed-form Wallis product, which is faster and less error-prone for a single numeric answer.
  • Forgetting that ∫0π/2sin⁡nx dx=∫0π/2cos⁡nx dx\int_0^{\pi/2}\sin^n x\,dx = \int_0^{\pi/2}\cos^n x\,dx only holds over this specific symmetric interval — the substitution x→π/2−xx \to \pi/2 - x that proves it does not carry over to an arbitrary interval like [0,π][0,\pi].

Ask the tutor: if collecting the InI_n terms algebraically in Step 4 of the derivation feels confusing, ask the AI tutor to redo that step slowly with the cosine or tangent version side by side.

Why does the boundary term vanish specifically on 0 to pi over 2 and not on some other interval?

The boundary term is −sin⁡n−1xcos⁡x/n-\sin^{n-1}x\cos x/n, evaluated at the two limits. At x=0x=0, sin⁡0=0\sin 0 = 0 kills the term outright (for n≥1n\ge 1). At x=π/2x=\pi/2, cos⁡(π/2)=0\cos(\pi/2)=0 kills it there too. Any interval where both endpoints make either sin⁡\sin or cos⁡\cos vanish would work in principle, but [0,π/2][0,\pi/2] is the natural, exam-standard choice because it is also where the sine and cosine reduction formulae coincide by symmetry.

Do I need to memorize the sine, cosine and tangent reduction formulae separately?

Not really — memorize the method: split the highest power off, integrate by parts (or, for tangent, use sec⁡2x−1\sec^2 x - 1), then substitute the Pythagorean identity and collect terms. If you can reproduce the sine derivation from scratch in under two minutes, you can rebuild any of the others the same way under exam pressure, which is safer than trying to recall three separate formulae verbatim.

Is there a reduction formula for mixed products like the integral of sin to the m x cos to the n x?

Yes, and it follows the exact same template: split off one factor of sin⁡x\sin x or cos⁡x\cos x, integrate by parts, and use the Pythagorean identity to reduce either mm or nn by two while the other index stays fixed. It is not covered in worked form here since it is a direct extension of the sine and tangent cases above, but the underlying technique — split, integrate by parts, substitute, collect — is identical.

Before this

Where this leads