Search

Search papers and lessons

Mathematical Induction

Level 2 · 9 min read

Induction proves a claim for every whole number by proving it for the first one and showing that each case forces the next, so one finite argument covers infinitely many cases.

On this page

TL;DR

A claim about every whole number n=1,2,3,…n = 1, 2, 3, \dots cannot be checked one case at a time, because there are infinitely many cases. Induction gets around this with two steps. First, show the claim holds for the starting case. Second, show that if it holds for any case kk, it also holds for the next case k+1k + 1. Together these force the claim to hold for every nn.

Where you'll see it: in proofs about algorithms, such as showing a loop or recursive function is correct for every input size, in the sums and formulas that count things in combinatorics, and in the proof that a recursive definition behaves as intended.

Intuition

A line of dominoes

Picture infinitely many dominoes standing in a row, numbered 1,2,3,…1, 2, 3, \dots. You want to know whether every domino falls. You cannot check each one by hand, so you use two facts. The first domino is pushed. And each domino, if it falls, hits the next one.

Those two facts are enough. The first domino falls, so it hits the second, which falls, so it hits the third, and so on forever. Every domino falls, even though you never looked at more than two at a time.

The picture shows what each part of the proof does. The first push is the base case. The rule that each fall triggers the next is the inductive step. The chain of arrows reaches every domino.

flowchart LR
  B[base case: P 1 holds] --> S1[if P 1 then P 2]
  S1 --> P2[P 2 holds]
  P2 --> S2[if P 2 then P 3]
  S2 --> P3[P 3 holds]
  P3 --> D[and so on for every n]

Why the method exists

Many claims in mathematics say "for every nn". The number of cases is infinite, so a proof must use a finite argument that works for all of them at once. Induction is the standard finite argument for claims about the whole numbers, and it matches how those numbers are built: start at 11 and add one at a time.

The math

The principle of mathematical induction

Let P(n)P(n) be a statement that depends on a whole number nn. Suppose

  1. Base case: P(1)P(1) is true.
  2. Inductive step: for every whole number k≥1k \ge 1, if P(k)P(k) is true, then P(k+1)P(k + 1) is true.

Then P(n)P(n) is true for every whole number n≥1n \ge 1.

The statement P(k)P(k) in step 2 is called the inductive hypothesis. In the step you assume it, and you prove P(k+1)P(k + 1) from it. You do not assume P(n)P(n) for all nn, which would be circular. You assume it for one kk and derive the next case.

Why it works

Suppose the two conditions hold, and some whole number mm fails P(m)P(m). Consider the set of all whole numbers that fail PP. It is non-empty, so it has a smallest element mm. Since P(1)P(1) is true, m>1m \gt 1. Let k=m−1k = m - 1. Then P(k)P(k) holds, because kk is smaller than mm and so is not in the failing set. The inductive step then says P(k+1)=P(m)P(k + 1) = P(m) holds, which contradicts the choice of mm. So no failing number exists. This argument relies on the well-ordering principle, that every non-empty set of whole numbers has a smallest element.

Strong induction

A stronger version assumes the claim for all smaller values at once. Let P(1)P(1) hold, and suppose that for every k≥1k \ge 1, if P(j)P(j) holds for all j≤kj \le k, then P(k+1)P(k + 1) holds. Then P(n)P(n) holds for every nn. This is often easier to use when a case depends on several earlier cases, such as the Fibonacci numbers.

Worked examples

Example
The sum of the first n numbers

Claim: P(n)P(n) says 1+2+⋯+n=n(n+1)21 + 2 + \cdots + n = \dfrac{n(n+1)}{2}.

Base case. For n=1n = 1, the left side is 11 and the right side is 1⋅22=1\dfrac{1 \cdot 2}{2} = 1. They match.

Inductive step. Assume P(k)P(k): 1+2+⋯+k=k(k+1)21 + 2 + \cdots + k = \dfrac{k(k+1)}{2}. We want P(k+1)P(k+1).

  1. Start from the left side of P(k+1)P(k+1): (1+2+⋯+k)+(k+1)(1 + 2 + \cdots + k) + (k + 1).
  2. Replace the bracket with the hypothesis: k(k+1)2+(k+1)\dfrac{k(k+1)}{2} + (k+1).
  3. Factor out (k+1)(k+1): (k+1)(k2+1)=(k+1)k+22(k+1)\left(\dfrac{k}{2} + 1\right) = (k+1)\dfrac{k+2}{2}.
  4. This is (k+1)((k+1)+1)2\dfrac{(k+1)((k+1)+1)}{2}, which is the right side of P(k+1)P(k+1).

Checks: at n=4n = 4, 1+2+3+4=101 + 2 + 3 + 4 = 10 and 4⋅52=10\dfrac{4 \cdot 5}{2} = 10. At n=100n = 100, the formula gives 50505050, which is the sum Gauss is said to have found as a schoolboy.

Interpretation: the hypothesis for kk contributes exactly the right amount to reach the formula for k+1k+1. The base case starts the chain, and the step carries it forward.

Example
The sum of the first n odd numbers

Claim: P(n)P(n) says 1+3+5+⋯+(2n−1)=n21 + 3 + 5 + \cdots + (2n - 1) = n^2.

Base case. For n=1n = 1, the left side is 11 and 12=11^2 = 1.

Inductive step. Assume 1+3+⋯+(2k−1)=k21 + 3 + \cdots + (2k - 1) = k^2.

  1. Add the next odd number, which is 2(k+1)−1=2k+12(k+1) - 1 = 2k + 1, to both sides: 1+3+⋯+(2k−1)+(2k+1)=k2+2k+11 + 3 + \cdots + (2k-1) + (2k+1) = k^2 + 2k + 1.
  2. Recognize the right side: k2+2k+1=(k+1)2k^2 + 2k + 1 = (k+1)^2.
  3. So P(k+1)P(k+1) holds.

Checks: 1+3+5+7=16=421 + 3 + 5 + 7 = 16 = 4^2, and 1+3+⋯+19=100=1021 + 3 + \cdots + 19 = 100 = 10^2.

Interpretation: each new odd number adds exactly the amount needed to turn k2k^2 into (k+1)2(k+1)^2. That is why the sum of the first nn odd numbers is a perfect square.

Example
A numerical inequality: 2 to the n is greater than n

Claim: P(n)P(n) says 2n>n2^n \gt n, for n≥1n \ge 1.

Base case. For n=1n = 1, 21=2>12^1 = 2 \gt 1.

Inductive step. Assume 2k>k2^k \gt k.

  1. Multiply both sides by 22: 2k+1=2⋅2k>2k2^{k+1} = 2 \cdot 2^k \gt 2k.
  2. For k≥1k \ge 1, we have 2k≥k+12k \ge k + 1, because this is the same as k≥1k \ge 1.
  3. Combine the two: 2k+1>2k≥k+12^{k+1} \gt 2k \ge k + 1, so 2k+1>k+12^{k+1} \gt k + 1.

Checks: 23=8>32^3 = 8 \gt 3, 25=32>52^5 = 32 \gt 5.

Interpretation: the inequality grows faster than the whole numbers because doubling beats adding one. The induction step uses that doubling keeps the gap open.

Tradeoffs and failure modes

Induction is powerful, but it is easy to misuse, and the errors are subtle.

SituationWhat goes wrongBetter choice
The base case is skippedThe step alone proves nothing, and a false claim can look provedAlways check the first case explicitly
The inductive step assumes P(k+1)P(k+1)The argument is circularAssume only P(k)P(k) and derive P(k+1)P(k+1) from it
The step only works for some kkThe chain breaks at a particular point, and later cases are not reachedCheck the step's conditions, such as k≥1k \ge 1, and handle exceptions as separate base cases
The claim depends on several earlier casesA single hypothesis is not enoughStrong induction, which assumes all smaller cases
The statement is not about whole numbersInduction over the reals or over unrelated objects has no ordering to step throughUse a different argument, such as compactness or transfinite induction

A classic failure shows the danger. Claim: any group of nn horses is all one colour. The base case n=1n = 1 is trivially true. For the step, take n+1n + 1 horses and remove one to get two groups of nn; each group is one colour by hypothesis, and the groups overlap, so all n+1n + 1 horses share a colour. The step fails at n=1n = 1. Removing one horse from two horses leaves two groups of one, and those groups do not overlap, so nothing links them. The argument needs a horse in both groups, which exists only when n≥2n \ge 2. The claim is false for n=2n = 2, and the proof is wrong because the step was not valid at that case.

History

The idea of proving a general claim by stepping from one case to the next appears in early mathematics. Blaise Pascal's treatise on the arithmetic triangle, written in 1654 and published in 1665, used an argument of this form to establish properties of binomial coefficients. It is one of the earliest explicit uses of the method.

Augustus De Morgan described the method and gave it its name in the 1830s. Giuseppe Peano's axioms for the natural numbers, published in 1889, included induction as an axiom, which made it a formal part of the foundations rather than an informal technique. Since then it has become a standard tool in number theory, combinatorics and computer science.

Check yourself

QuestionWhat are the two steps of a proof by induction, and what does each one establish?Show answer

The base case shows that P(1)P(1) is true, which starts the chain. The inductive step shows that for any kk, assuming P(k)P(k) implies P(k+1)P(k+1), which carries the truth from each case to the next. Together they force P(n)P(n) to hold for every whole number n≥1n \ge 1.

QuestionUse the formula 1+2+⋯+n=n(n+1)/21 + 2 + \cdots + n = n(n+1)/2 to find the sum 1+2+⋯+201 + 2 + \cdots + 20.Show answer

Substitute n=20n = 20: 20⋅21/2=21020 \cdot 21 / 2 = 210. The formula is proved by induction in the first worked example, so the answer is correct for every nn, not just for this one.

QuestionWhy is it not enough to check the inductive step, and what would go wrong if you skipped the base case?Show answer

The step only says that if a case holds, the next one does. It says nothing about where the chain starts. Without the base case, a claim that is false everywhere, such as "n=n+1n = n + 1", could appear to be proved, because the step is valid for every kk in a trivial way. The base case anchors the chain and rules out such false conclusions.

QuestionIn the horses argument, the step fails at n=1n = 1. Why does the overlap between two groups matter, and what property of nn does the step need?Show answer

The step splits n+1n + 1 horses into two groups of nn that share at least one horse. The shared horse is what forces the two groups to have the same colour. For n=1n = 1, the two groups each contain one horse and share none, so the link is missing. The step needs n≥2n \ge 2, so the induction step is valid only from k=2k = 2 onward, and the base case n=1n = 1 does not carry the chain to n=2n = 2.

Sources