A1449 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 n2+n+41 gives a prime for every n from 0 to 39: forty straight successes.
  • At n = 40 it gives 1681, which is 412 (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?

Name it

Patterns

PatternShapeExample in this course
directassume the hypotheses, derive the conclusionthe mean value theorem from Rolle
contradictionassume the conclusion is false, reach an impossibility√2 is irrational
contrapositiveprove "not B implies not A" for "A implies B"a function without a limit at a isn't continuous there
inductionbase case, and P(n) ⇒ P(n + 1)∑k≤nk=n(n+1)2
ε–N, ε–δlet ε > 0; find N or δ; verify the inequalityevery limit proof
existence by completenessbuild a Cauchy or monotone sequence; take its limitthe 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, |an−L|<ε" is "there is an ε > 0 such that for every N, some n > N has |an−L|≥ε".

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 ∑k=1nk2=n(n+1)(2n+1)6 by induction.

Show the solution
  1. Base case. n = 1 gives 1=1⋅2⋅36
  2. Inductive step. Assuming it for n, ∑k=1n+1k2=n(n+1)(2n+1)6+(n+1)2=(n+1)(2n2+7n+6)6=(n+1)(n+2)(2n+3)6 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, (1+x)n≥1+nx for x ≥ −1 and whole n ≥ 1.

Show the solution
  1. Base case. n = 1 gives equality.
  2. Inductive step. If it holds for n, then since 1+x≥0, (1+x)n+1≥(1+nx)(1+x)=1+(n+1)x+nx2≥1+(n+1)x
  3. Where x ≥ −1 is used. The hypothesis x ≥ −1 is used exactly once: to multiply an inequality by 1+x without flipping it.

Answer by induction, (1+x)n≥1+nx for every whole n ≥ 1 when x ≥ −1.

Worked example

Prove that 2 is irrational.

Show the solution
  1. Suppose not. Then 2=pq with p, q whole numbers sharing no common factor.
  2. p is even. Then p2=2q2, so p2 is even, so p is even (an odd number squared is odd): p = 2m.
  3. q is even. Then 4m2=2q2, so q2=2m2 and q is even too.
  4. Contradiction. So p and q share the factor 2, contradicting their choice. Hence no such fraction exists.
  5. 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 2 exists at all.

Answer assuming 2=pq in lowest terms forces both p and q to be even, a contradiction, so 2 is irrational.

Check

What's ∑k=110k2?

Check

How much does (1+x)n exceed 1+nx for x = −0.5, n = 3?

Check

What's the first n ≥ 0 for which n2+n+41 isn't prime?

Check

What's the negation of "f is continuous at a": for every ε > 0 there's a δ > 0 such that |x−a|<δ implies |f(x)−f(a)|<ε?

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 ∑k=1nk=n(n+1)2 in order.

  1. Base case: for n = 1 both sides equal 1.
  2. Suppose the formula holds for some n ≥ 1.
  3. By induction, the formula holds for every n ≥ 1.
  4. That equals (n+1)(n+2)2, the formula for n + 1.
  5. Then ∑k=1n+1k=n(n+1)2+(n+1).

Check

Sums for n = 20.

(a)

What is ∑k=1nk3?

(b)

What is ∑k=1nk(k+1)?

Check

Closed forms to prove by induction.

Step 1

What is ∑k=1n(2k−1)?

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°.

Explain why

Why doesn't checking a statement for many values of n prove it, while induction does?

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.