A14 · Lesson 49 · Writing proofs
How the arguments of this course are built, and how they go wrong
Graduate courses in signals, control and communications are written as definitions, theorems and proofs, and their exams ask you to produce them. The proofs in this course followed a handful of patterns: direct arguments, contradiction, induction, and the ε–N and ε–δ games. Recognizing the pattern is half of writing one; knowing the classic mistakes is the other half. The most important lesson is the oldest: checking many cases proves nothing about the rest, and the first case your checks didn't cover can be the one that fails.
- Euler's polynomial gives a prime for every n from 0 to 39: forty straight successes.
- At n = 40 it gives 1681, which is (readout). Any evidence short of a proof can fail at the next case.
- Move n: from 40 on, primes and composites mix. The pattern was never a theorem.
Predict
A statement P(n) holds for n = 1, and P(n) implies P(n + 1) for every n ≥ 1. What follows?
P(n) for every n ≥ 1: that's induction. The base case starts the chain and the step carries it forward forever, which no amount of checking can do. Both parts matter: the step alone proves nothing (P could be false everywhere), and a step that fails for even one n breaks the chain.
Name it
Patterns
| Pattern | Shape | Example in this course |
|---|---|---|
| direct | assume the hypotheses, derive the conclusion | the mean value theorem from Rolle |
| contradiction | assume the conclusion is false, reach an impossibility | √2 is irrational |
| contrapositive | prove "not B implies not A" for "A implies B" | a function without a limit at a isn't continuous there |
| induction | base case, and P(n) ⇒ P(n + 1) | |
| ε–N, ε–δ | let ε > 0; find N or δ; verify the inequality | every limit proof |
| existence by completeness | build a Cauchy or monotone sequence; take its limit | the contraction mapping theorem |
Quantifiers
- "For every ε there's a δ" is not "there's a δ for every ε": the order decides whether δ may depend on ε (continuity) or must work for all ε at once (rarely true).
- Pointwise and uniform continuity differ only in where "for every x" sits.
- Negation swaps the quantifiers and negates the inside: the negation of "for every ε > 0 there is an N such that for all n > N, " is "there is an ε > 0 such that for every N, some n > N has ".
Classic mistakes
- Assuming what you're proving (working backward and calling it a proof).
- An induction step that fails for one small n (the "all horses are the same color" argument breaks going from 1 to 2).
- Dividing by something that might be zero.
- Using a theorem whose hypotheses don't hold (the mean value theorem on a function with a corner; dominated convergence without a dominating function).
- Proving the converse instead of the statement.
Worked example
Prove by induction.
Show the solution
- Base case. n = 1 gives
- Inductive step. Assuming it for n, the formula for n + 1.
Answer the formula holds for n = 1 and carries from n to n + 1, so it holds for every n ≥ 1.
Worked example
Prove Bernoulli's inequality, for x ≥ −1 and whole n ≥ 1.
Show the solution
- Base case. n = 1 gives equality.
- Inductive step. If it holds for n, then since ,
- Where x ≥ −1 is used. The hypothesis x ≥ −1 is used exactly once: to multiply an inequality by without flipping it.
Answer by induction, for every whole n ≥ 1 when x ≥ −1.
Worked example
Prove that is irrational.
Show the solution
- Suppose not. Then with p, q whole numbers sharing no common factor.
- p is even. Then , so is even, so p is even (an odd number squared is odd): p = 2m.
- q is even. Then , so and q is even too.
- Contradiction. So p and q share the factor 2, contradicting their choice. Hence no such fraction exists.
- The structure. This is the standard proof by contradiction: assume the negation, derive something that contradicts an assumption, and conclude. The completeness of the reals is what then guarantees exists at all.
Answer assuming in lowest terms forces both p and q to be even, a contradiction, so is irrational.
Check
What's ?
Check
How much does exceed for x = −0.5, n = 3?
Check
What's the first n ≥ 0 for which isn't prime?
Check
What's the negation of "f is continuous at a": for every ε > 0 there's a δ > 0 such that implies ?
Check
"All horses are the same color": any one horse is one color; for n + 1 horses, the first n are one color and the last n are one color, and they overlap, so all n + 1 are. Where does it fail?
Check
Put the induction proof that in order.
- Base case: for n = 1 both sides equal 1.
- Suppose the formula holds for some n ≥ 1.
- By induction, the formula holds for every n ≥ 1.
- That equals , the formula for n + 1.
- Then .
Check
Sums for n = 20.
(a)
What is ?
(b)
What is ?
Check
Closed forms to prove by induction.
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ?
Explain why
Why doesn't checking a statement for many values of n prove it, while induction does?
Checking covers only the cases you computed, and the statement is about infinitely many; the next case can always be the first failure, as shows by producing primes for forty cases and then . Induction proves something different: that truth at any n forces truth at n + 1, for every n, by an argument that never depends on which n it is. Together with a true base case, that single argument covers every case in a chain, so there's no unchecked case left for a counterexample to hide in.
Practice
Keep practicing
6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.