Proof by Induction
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn how mathematical induction proves infinitely many statements at once, the exact structure a valid induction proof must have, how to apply it to divisibility and inequality claims (not just summation formulas), and what strong induction adds.
If you worked through induction in Pre-Calculus, this lesson takes the proof-technique angle: what makes the method valid, where it breaks, and how it applies to recursive structures rather than just sums.
The Concept
Section titled “The Concept”Suppose you want to prove a claim for every positive integer. That’s infinitely many statements. You cannot check them one at a time.
Induction gets around this with two finite pieces of work.
Picture an infinite line of dominoes. To knock them all down you need exactly two things:
- The first one falls.
- Each falling domino knocks over the next.
Given those two facts, every domino falls, and you never had to watch them all.
The structure
Section titled “The structure”- Base case - prove directly. (Or , or whatever the smallest relevant value is.)
- Inductive step - prove that for every , if is true then is true. That is, prove the implication .
- Conclusion - by the principle of mathematical induction, holds for all .
The assumption ” is true” inside the inductive step is called the inductive hypothesis. Writing it down explicitly is not optional, and it’s where most of the work happens: a good induction proof always uses the inductive hypothesis somewhere, and if yours doesn’t, something has gone wrong.
Why this isn’t circular
Section titled “Why this isn’t circular”A frequent objection: “you assumed , so aren’t you assuming what you’re proving?”
No. You never claim is actually true. You prove a conditional: if it holds at , then it holds at . That’s a statement about a link in a chain, and it’s proved directly. Combine the link with a verified starting point and you get every case by a cascade.
Both pieces are mandatory
Section titled “Both pieces are mandatory”A base case without an inductive step verifies exactly one case, which is useless.
An inductive step without a base case builds a chain with nothing to anchor it. Here’s what goes wrong. Consider the false claim ” for all .” The inductive step actually works: assume , add 1 to both sides, get , which is . Flawless step, no base case, absurd conclusion.
A more entertaining version: “all horses are the same color.” The inductive step looks fine if you’re careless about small cases, and the conclusion is obviously false.
The standard template
Section titled “The standard template”Claim. for all .
Proof. By induction on .
Base case: . [Verify both sides.]
Inductive step: Let and assume holds, i.e. [state it explicitly]. We show .
[Start from the expression, split off the new piece, substitute the inductive hypothesis, simplify to the target form.]
By induction, holds for all . ∎
The mechanical move in the inductive step is almost always: peel off the last term, apply the hypothesis to what remains.
Strong induction
Section titled “Strong induction”Sometimes alone isn’t enough and you need several earlier cases. Strong induction lets you assume all hold, then prove .
It sounds more powerful, and in a practical sense it is, but the two forms are logically equivalent. Anything provable one way is provable the other. Use strong induction when the claim at naturally decomposes into two smaller pieces of unknown size, which is exactly what happens with prime factorization and with recursive algorithms that split a problem in half.
Strong induction often needs more than one base case, because the inductive step might reach back two or more steps.
Worked Examples
Section titled “Worked Examples”Example 1: Sum of the first positive integers.
Claim. for all .
Proof. By induction on .
Base case: . Left side is 1. Right side is . They match.
Inductive step: Assume for some that
Show it for . Peel off the last term:
using the inductive hypothesis on the first terms. Factor out :
That’s exactly the formula with .
By induction, the formula holds for all . ∎
Example 2: A divisibility claim.
Claim. is divisible by 3 for all .
Proof. By induction on .
Base case: . , and . True.
Inductive step: Assume , so for some integer .
Expand the case:
Substitute the inductive hypothesis:
Since is an integer, the expression is divisible by 3.
By induction, for all . ∎
The key maneuver: expand, then rearrange to expose the previous case so the hypothesis can be substituted.
Example 3: An inequality.
Claim. for all .
Proof. By induction on .
Base case: . . True.
Inductive step: Assume for some . Then
using the hypothesis. Now since , we have , so . Chaining:
By induction, for all . ∎
Inequality inductions need one extra step: after applying the hypothesis you usually have to bridge from what you got to what you wanted, and that bridge uses a fact about .
Example 4: Counting subsets.
Claim. A set with elements has subsets, for all .
Proof. By induction on .
Base case: . The empty set has exactly one subset, itself. And . True.
Inductive step: Assume every -element set has subsets. Let have elements. Pick one element and let , so .
Every subset of either contains or doesn’t.
- Subsets without are exactly the subsets of : there are of these.
- Subsets with are exactly a subset of with added: also of these.
These groups don’t overlap and cover everything, so
By induction, an -element set has subsets. ∎
Notice there’s no algebra here at all. The induction is on a structure, which is the flavor you’ll see most in computer science.
Example 5: Strong induction.
Claim. Every integer can be written as a product of primes.
Proof. By strong induction on .
Base case: . Already prime, so it’s a product of one prime.
Inductive step: Let and assume every integer from 2 through is a product of primes. Consider .
Case 1: is prime. Then it’s a product of one prime. Done.
Case 2: is composite. Then where . By the strong inductive hypothesis, both and are products of primes. Multiplying those factorizations gives a prime factorization of .
By strong induction, every integer is a product of primes. ∎
Ordinary induction can’t do this, because and are somewhere below and you have no idea where. You need the whole range available, which is exactly what strong induction gives you.
Example 6: Strong induction with two base cases.
Claim. Define , , and for . Then for all .
Proof. By strong induction.
Base cases: . And . Both check out.
Inductive step: Let and assume for all . Then
And . Match.
By strong induction, for all . ∎
Two base cases are required here because the recurrence reaches back two terms. One base case would leave unjustified.
Real-World Applications
Section titled “Real-World Applications”Induction is how you prove a recursive function correct. Base case of the proof matches the base case of the function, inductive step matches the recursive call. If you’ve ever written a recursive function and wondered whether it’s right for all inputs, induction is the answer, and the proof usually mirrors the code line for line.
Loop invariants are the iterative version. You show a property holds before the loop starts, that each iteration preserves it, and therefore it holds when the loop ends. That’s a base case and an inductive step wearing different names, and it’s the standard technique for verifying sorting and searching algorithms.
Algorithm complexity analysis uses induction to solve recurrences. Proving that merge sort runs in time involves an induction on the recursion depth, and strong induction is the natural fit because the problem splits into two halves.
Data structure invariants are the same story. “Every red-black tree operation preserves the balance property” is proved by induction over the sequence of operations. Same for blockchain integrity, where each block’s validity depends on the previous one, which is a chain in the most literal sense.
Retrying will remove your ✅ checkmark until you pass again.