Educerie

This whole subtopic is higher level. Nothing in it is on an SL paper.

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 1.15 · HL only

Proof by induction, contradiction and counterexample

How do you prove that a statement holds for infinitely many cases, prove that something is impossible, or show that a claim is false?

What you will learn

  • HL Understand why checking cases never proves a general statement, while one case can disprove it.
  • HL Know the four parts of a proof by induction and why each one is needed.
  • HL Understand proof by contradiction: assume the exact opposite and reach something impossible.
  • HL Know that a counterexample must be checked and explained to disprove a claim.

You must be able to

  1. HL Prove results about sums, divisibility, derivatives and complex powers by mathematical induction.
  2. HL Prove by induction inequalities and recurrence formulae that start from a base case other than 1.
  3. HL Prove by contradiction that numbers such as √3 or the cube root of 5 are irrational.
  4. HL Prove by contradiction, using odd and even cases, that an equation has no integer solutions.
  5. HL Reproduce Euclid's proof that there are infinitely many primes.
  6. HL Show that a statement is false with a counterexample, and explain why it fails.

In the exam. Papers 1 and 2, in section A as a stand-alone question and in section B as the last part of a longer one. Induction (6 to 10 marks) is set on a sum, a divisibility result, an nnth derivative, a complex number, a recurrence or an inequality. Contradiction (5 to 6 marks) is set on irrationality, parity and integer solutions ("show this equation has no integer roots") and number theory. A counterexample is usually a few marks inside a longer question. In Paper 3 induction and contradiction appear inside the investigations. Throughout, the R marks (reasoning) are where proofs are won or lost.

1Why a pattern is not a proof

  • Mathematicians start from a pattern. They compute a few cases, notice a regularity and state it as a conjecture.
  • Conjecture = a claim you believe but have not proved, naming the values it covers ("for all n∈Z+n \in \mathbb{Z}^{+}").
  • Computing cases finds a formula. It never proves one.
  • The danger is real.
  • Example: 2n2+292n^{2} + 29 gives primes for n=0,1,…,28n = 0, 1, \ldots, 28, twenty-nine in a row. At n=29n = 29 it gives 2×841+29=1711=29×592 \times 841 + 29 = 1711 = 29 \times 59.
  • Twenty-nine successes proved nothing. One failure ended it. That asymmetry drives the unit:
    • one failing case disproves a general claim (section 5).
    • no number of passing cases proves it. So you need a method that covers every case at once:
    • induction for statements indexed by the integers;
    • contradiction for statements that something cannot happen.

2Induction: why two facts are enough

Think of an infinite row of dominoes (Figure 1). You want every one to fall. You need only two facts:

  • The first domino falls.
  • Whenever any domino falls, it knocks over the next one.

So all of them fall.

Figure 1 · Induction as a row of dominoes 1 2 3 … k k + 1 … base case: P(1) is true inductive step: P(k) true ⇒ P(k + 1) true Two facts knock every domino over: the first one falls (the base case), and whenever one falls it knocks over the next (the inductive step). Neither fact on its own is enough.
Figure 1 · Induction as a row of dominoes

Mathematical induction is the same argument. Let P(n)P(n) be a statement about the positive integer nn.

If P(1)P(1) is true, and P(k)P(k) true implies P(k+1)P(k + 1) true for every k∈Z+k \in \mathbb{Z}^{+}, then P(n)P(n) is true for all n∈Z+n \in \mathbb{Z}^{+}.

  • Neither fact is enough alone. A step with no base case proves nothing (see 4.7). A base case with no step is one example.
  • The layout: Figure 2 sets out the four parts. Typically one mark goes to the base case, one to the assumption and several to the algebra of the step. The conclusion's reasoning mark needs the earlier parts in place.
Figure 2 · The four parts of an induction proof, and what each must contain 1 · Base case Show P(1) is true, by working out both sides. 2 · Assumption Assume P(k) is true for some k ∈ ℤ⁺. Write it out. 3 · Inductive step Start from P(k + 1), use the assumption, reach the target. 4 · Conclusion P(1) true and P(k) ⇒ P(k + 1), so P(n) true for all n. Each part carries its own marks. The conclusion is a mark in itself and is the one most often left out.
Figure 2 · The four parts of an induction proof, and what each must contain
  1. Base case. Show P(1)P(1) is true by calculating both sides separately. "True for n=1n = 1" with no working earns nothing.
  2. Assumption. Write "Assume P(k)P(k) is true for some k∈Z+k \in \mathbb{Z}^{+}", then write P(k)P(k) out in full. "Assume true for all kk" assumes what you are trying to prove. A bare "let n=kn = k" does not say the statement is true at all.
  3. Inductive step. Work on P(k+1)P(k + 1). Use the assumption at a clearly visible point. Reach exactly the form P(k+1)P(k + 1) requires. Write the target down first.
  4. Conclusion. Write a sentence such as: "P(1)P(1) is true, and P(k)P(k) true implies P(k+1)P(k + 1) true, so by the principle of mathematical induction P(n)P(n) is true for all n∈Z+n \in \mathbb{Z}^{+}."

The guide raises a TOK contrast. In science, "induction" means generalizing from many observations, which the next one can overturn. Mathematical induction is a deductive proof, and it is certain.

3Induction in practice

Every induction proof has the same skeleton. Only the middle move changes: how P(k+1)P(k + 1) is built from P(k)P(k). Learn the move for each kind.

4.1 Sums

  • Figure 3 shows why 1+3+5+7=16=421 + 3 + 5 + 7 = 16 = 4^{2}. Each odd number is an L-shaped layer that enlarges the square by one. It suggests that the first nn odd numbers add up to n2n^{2}. Induction turns the picture into a proof.
  • For sums the move is always the same: the sum to k+1k + 1 terms is the sum to kk terms plus the (k+1)(k + 1)th term. The assumption replaces the sum to kk terms.
Figure 3 · 1 + 3 + 5 + 7 = 4² 1 3 5 7 layer sizes 1, 3, 5, 7 (on the diagonal); total 16 = 4² Each odd number is an L-shaped layer that turns an n × n square into an (n + 1) × (n + 1) square. The picture suggests the pattern; induction proves it for every n.
Figure 3 · 1 + 3 + 5 + 7 = 4²

Worked example 1. Prove by induction that ∑r=1nr(3r+1)=n(n+1)2\displaystyle\sum_{r=1}^{n} r(3r + 1) = n(n + 1)^{2} for all n∈Z+n \in \mathbb{Z}^{+}.

Base case, n=1: LHS=1×4=4; RHS=1×22=4. So P(1) is true.\text{Base case, } n = 1: \text{ LHS} = 1 \times 4 = 4; \text{ RHS} = 1 \times 2^{2} = 4. \text{ So } P(1) \text{ is true.}Assume P(k) true for some k∈Z+:∑r=1kr(3r+1)=k(k+1)2\text{Assume } P(k) \text{ true for some } k \in \mathbb{Z}^{+}: \sum_{r=1}^{k} r(3r + 1) = k(k + 1)^{2}Target: ∑r=1k+1r(3r+1)=(k+1)(k+2)2\text{Target: } \sum_{r=1}^{k+1} r(3r + 1) = (k + 1)(k + 2)^{2}∑r=1k+1r(3r+1)=∑r=1kr(3r+1)+(k+1)(3k+4)=k(k+1)2+(k+1)(3k+4)by the assumption=(k+1)[k(k+1)+3k+4]take out the common factor=(k+1)(k2+4k+4)=(k+1)(k+2)2\begin{aligned}\sum_{r=1}^{k+1} r(3r + 1) &= \sum_{r=1}^{k} r(3r + 1) + (k + 1)(3k + 4) \\[6pt] &= k(k + 1)^{2} + (k + 1)(3k + 4) && \textcolor{#838c91}{\text{by the assumption}} \\[6pt] &= (k + 1)\left[k(k + 1) + 3k + 4\right] && \textcolor{#838c91}{\text{take out the common factor}} \\[6pt] &= (k + 1)\left(k^{2} + 4k + 4\right) = (k + 1)(k + 2)^{2}\end{aligned}So P(k+1) is true.\text{So } P(k + 1) \text{ is true.}
  • Conclusion. P(1)P(1) is true, and P(k)P(k) true implies P(k+1)P(k + 1) true. So P(n)P(n) is true for all n∈Z+n \in \mathbb{Z}^{+} by mathematical induction.
  • Take out the common factor (k+1)(k + 1) at once. Expanding into a cubic and factorising it back is slower and invites errors.
  • Sums of fractions: the new term is a fraction. Combine over a common denominator and look for a factor that cancels.

Worked example 2. Prove by induction that ∑r=1n2r+1r2(r+1)2=1−1(n+1)2\displaystyle\sum_{r=1}^{n} \frac{2r + 1}{r^{2}(r + 1)^{2}} = 1 - \frac{1}{(n + 1)^{2}} for all n∈Z+n \in \mathbb{Z}^{+}.

Base case, n=1: LHS=31×4=34; RHS=1−14=34. So P(1) is true.\text{Base case, } n = 1: \text{ LHS} = \frac{3}{1 \times 4} = \frac{3}{4}; \text{ RHS} = 1 - \frac{1}{4} = \frac{3}{4}. \text{ So } P(1) \text{ is true.}Assume P(k) true for some k∈Z+:∑r=1k2r+1r2(r+1)2=1−1(k+1)2\text{Assume } P(k) \text{ true for some } k \in \mathbb{Z}^{+}: \sum_{r=1}^{k} \frac{2r + 1}{r^{2}(r + 1)^{2}} = 1 - \frac{1}{(k + 1)^{2}}Target: ∑r=1k+12r+1r2(r+1)2=1−1(k+2)2\text{Target: } \sum_{r=1}^{k+1} \frac{2r + 1}{r^{2}(r + 1)^{2}} = 1 - \frac{1}{(k + 2)^{2}}The new term is 2k+3(k+1)2(k+2)2\text{The new term is } \frac{2k + 3}{(k + 1)^{2}(k + 2)^{2}}∑r=1k+1=1−1(k+1)2+2k+3(k+1)2(k+2)2by the assumption=1−(k+2)2−(2k+3)(k+1)2(k+2)2=1−k2+2k+1(k+1)2(k+2)2=1−(k+1)2(k+1)2(k+2)2=1−1(k+2)2\begin{aligned}\sum_{r=1}^{k+1} &= 1 - \frac{1}{(k + 1)^{2}} + \frac{2k + 3}{(k + 1)^{2}(k + 2)^{2}} && \textcolor{#838c91}{\text{by the assumption}} \\[6pt] &= 1 - \frac{(k + 2)^{2} - (2k + 3)}{(k + 1)^{2}(k + 2)^{2}} = 1 - \frac{k^{2} + 2k + 1}{(k + 1)^{2}(k + 2)^{2}} \\[6pt] &= 1 - \frac{(k + 1)^{2}}{(k + 1)^{2}(k + 2)^{2}} = 1 - \frac{1}{(k + 2)^{2}}\end{aligned}So P(k+1) is true.\text{So } P(k + 1) \text{ is true.}
  • Conclusion as before. Write the new term out first (put r=k+1r = k + 1 into the general term). This stops bracket slips.
  • Factorials: use (k+2)!=(k+2)×(k+1)!(k + 2)! = (k + 2) \times (k + 1)! so that a factor common to both terms can come out.
  • Example: ∑r=1n(r2+1) r!=n(n+1)!\sum_{r=1}^{n} (r^{2} + 1)\,r! = n(n + 1)!. The step is k(k+1)!+(k2+2k+2)(k+1)!=(k+1)!(k+1)(k+2)=(k+1)(k+2)!k(k + 1)! + (k^{2} + 2k + 2)(k + 1)! = (k + 1)!(k + 1)(k + 2) = (k + 1)(k + 2)!.

4.2 Divisibility

"f(n)f(n) is divisible by 9" means f(n)=9mf(n) = 9m for some integer mm. Write that in the assumption. It gives you something to substitute.

The move:

  • rewrite f(k+1)f(k + 1) so that f(k)f(k), or a power inside it, appears;
  • replace it;
  • pull out the divisor.

Worked example 3. Prove by induction that 4n+6n−14^{n} + 6n - 1 is divisible by 9 for all n∈Z+n \in \mathbb{Z}^{+}.

Base case, n=1:4+6−1=9=9×1. So P(1) is true.\text{Base case, } n = 1: 4 + 6 - 1 = 9 = 9 \times 1. \text{ So } P(1) \text{ is true.}Assume P(k) true for some k∈Z+:4k+6k−1=9m for some m∈Z, so 4k=9m−6k+1\text{Assume } P(k) \text{ true for some } k \in \mathbb{Z}^{+}: 4^{k} + 6k - 1 = 9m \text{ for some } m \in \mathbb{Z}, \text{ so } 4^{k} = 9m - 6k + 14k+1+6(k+1)−1=4×4k+6k+5=4(9m−6k+1)+6k+5by the assumption=36m−18k+9=9(4m−2k+1), and 4m−2k+1 is an integer\begin{aligned}4^{k+1} + 6(k + 1) - 1 &= 4 \times 4^{k} + 6k + 5 \\[6pt] &= 4(9m - 6k + 1) + 6k + 5 && \textcolor{#838c91}{\text{by the assumption}} \\[6pt] &= 36m - 18k + 9 \\[6pt] &= 9(4m - 2k + 1), \text{ and } 4m - 2k + 1 \text{ is an integer}\end{aligned}So P(k+1) is true.\text{So } P(k + 1) \text{ is true.}
  • Conclusion. P(1)P(1) is true, and P(k)P(k) true implies P(k+1)P(k + 1) true, so 4n+6n−14^{n} + 6n - 1 is divisible by 9 for all n∈Z+n \in \mathbb{Z}^{+}, by mathematical induction.
  • "4m−2k+14m - 2k + 1 is an integer" is not decoration. Divisibility by 9 means 9 times an integer.
  • The difference method suits polynomials. Show that f(k+1)−f(k)f(k + 1) - f(k) is divisible by the number. Then f(k+1)=f(k)+[a multiple]f(k + 1) = f(k) + [\text{a multiple}] is a sum of two multiples.
  • Example: f(n)=2n3+nf(n) = 2n^{3} + n and divisor 3. The difference is 6k2+6k+3=3(2k2+2k+1)6k^{2} + 6k + 3 = 3(2k^{2} + 2k + 1), so f(k+1)=3m+3(2k2+2k+1)f(k + 1) = 3m + 3(2k^{2} + 2k + 1) is a multiple of 3. The base case is 2+1=32 + 1 = 3.

4.3 Derivatives and complex numbers

  • The guide names differentiation and complex numbers as places induction appears. The move: the statement for k+1k + 1 comes from the statement for kk by one more operation, here one more differentiation.
  • Work out the first few derivatives by hand to check the formula.

Worked example 4. Let f(x)=xln⁡xf(x) = x\ln x, x>0x > 0. Prove by induction that f(n)(x)=(−1)n(n−2)!xn−1f^{(n)}(x) = \dfrac{(-1)^{n}(n - 2)!}{x^{n-1}} for all integers n≥2n \ge 2.

f′(x)=ln⁡x+x×1x=ln⁡x+1, so f′′(x)=1xproduct rulef'(x) = \ln x + x \times \frac{1}{x} = \ln x + 1, \text{ so } f''(x) = \frac{1}{x} \qquad \textcolor{#838c91}{\text{product rule}}Base case, n=2: the formula gives (−1)2 0!x1=1x=f′′(x). So P(2) is true.\text{Base case, } n = 2: \text{ the formula gives } \frac{(-1)^{2}\,0!}{x^{1}} = \frac{1}{x} = f''(x). \text{ So } P(2) \text{ is true.}Assume P(k) true for some integer k≥2:f(k)(x)=(−1)k(k−2)! x−(k−1)\text{Assume } P(k) \text{ true for some integer } k \ge 2: f^{(k)}(x) = (-1)^{k}(k - 2)!\,x^{-(k-1)}f(k+1)(x)=ddx[(−1)k(k−2)! x−(k−1)]by the assumption=(−1)k(k−2)!×(−(k−1))x−k=(−1)k+1(k−1)!xk=(−1)k+1((k+1)−2)!x(k+1)−1\begin{aligned}f^{(k+1)}(x) &= \frac{d}{dx}\left[(-1)^{k}(k - 2)!\,x^{-(k-1)}\right] && \textcolor{#838c91}{\text{by the assumption}} \\[6pt] &= (-1)^{k}(k - 2)! \times \left(-(k - 1)\right)x^{-k} \\[6pt] &= \frac{(-1)^{k+1}(k - 1)!}{x^{k}} = \frac{(-1)^{k+1}\left((k + 1) - 2\right)!}{x^{(k+1)-1}}\end{aligned}So P(k+1) is true.\text{So } P(k + 1) \text{ is true.}
  • Conclusion. P(2)P(2) is true, and P(k)P(k) true implies P(k+1)P(k + 1) true for every integer k≥2k \ge 2. So the formula holds for all integers n≥2n \ge 2 by mathematical induction.
  • It starts at n=2n = 2 because f′f' still contains ln⁡x\ln x (section 4.4).
  • The assumption goes in where the (k+1)(k + 1)th derivative is written as the derivative of the kkth.
  • The power rule's factor −(k−1)-(k - 1) then turns (k−2)!(k - 2)! into (k−1)!(k - 1)!.

Complex numbers

  • Here the "one more operation" is one more multiplication.
    • Write the (k+1)(k + 1)th power as the kkth power times one more factor.
    • Use the assumption on the kkth power and multiply out.
    • Let the compound angle formulae of AHL 3.10 tidy the real and imaginary parts.
  • The proof of De Moivre's theorem in 1.14 is exactly this. Here is its mirror image.

Worked example 5. Prove by induction that (cos⁡θ−isin⁡θ)n=cos⁡nθ−isin⁡nθ(\cos\theta - i\sin\theta)^{n} = \cos n\theta - i\sin n\theta for all n∈Z+n \in \mathbb{Z}^{+}.

Base case, n=1: (cos⁡θ−isin⁡θ)1=cos⁡(1θ)−isin⁡(1θ). So P(1) is true.\text{Base case, } n = 1: \ (\cos\theta - i\sin\theta)^{1} = \cos(1\theta) - i\sin(1\theta). \text{ So } P(1) \text{ is true.}Assume P(k) true for some k∈Z+:(cos⁡θ−isin⁡θ)k=cos⁡kθ−isin⁡kθ\text{Assume } P(k) \text{ true for some } k \in \mathbb{Z}^{+}: (\cos\theta - i\sin\theta)^{k} = \cos k\theta - i\sin k\theta(cos⁡θ−isin⁡θ)k+1=(cos⁡kθ−isin⁡kθ)(cos⁡θ−isin⁡θ)by the assumption=cos⁡kθcos⁡θ−icos⁡kθsin⁡θ−isin⁡kθcos⁡θ+i2sin⁡kθsin⁡θ=(cos⁡kθcos⁡θ−sin⁡kθsin⁡θ)−i(sin⁡kθcos⁡θ+cos⁡kθsin⁡θ)i2=−1=cos⁡(k+1)θ−isin⁡(k+1)θcompound angle formulae\begin{aligned}(\cos\theta - i\sin\theta)^{k+1} &= (\cos k\theta - i\sin k\theta)(\cos\theta - i\sin\theta) && \textcolor{#838c91}{\text{by the assumption}} \\[6pt] &= \cos k\theta\cos\theta - i\cos k\theta\sin\theta - i\sin k\theta\cos\theta + i^{2}\sin k\theta\sin\theta \\[6pt] &= (\cos k\theta\cos\theta - \sin k\theta\sin\theta) - i(\sin k\theta\cos\theta + \cos k\theta\sin\theta) && \textcolor{#838c91}{i^{2} = -1} \\[6pt] &= \cos(k + 1)\theta - i\sin(k + 1)\theta && \textcolor{#838c91}{\text{compound angle formulae}}\end{aligned}So P(k+1) is true.\text{So } P(k + 1) \text{ is true.}
  • Conclusion. P(1)P(1) is true, and P(k)P(k) true implies P(k+1)P(k + 1) true, so the statement holds for all n∈Z+n \in \mathbb{Z}^{+} by mathematical induction.
  • The marks in the step sit on the two lines a student is tempted to skip.
    • One collects the real and imaginary parts.
    • The other names the compound angle formulae that turn them into cos⁡(k+1)θ\cos(k + 1)\theta and sin⁡(k+1)θ\sin(k + 1)\theta.

4.4 A base case other than 1

  • Some statements start later: "for all integers n≥3n \ge 3", or "for n∈Nn \in \mathbb{N}", starting at 0. Then the base case is the first value in the set. The assumption and conclusion say k≥3k \ge 3 or k∈Nk \in \mathbb{N} to match.
  • The base-case mark is given only for the stated starting value. A base case of n=2n = 2 when the question says n∈Z+n \in \mathbb{Z}^{+}, or n=1n = 1 when it says n∈Nn \in \mathbb{N}, earns nothing.

4.5 Inequalities

  • The step is a chain of inequalities.
    • Start from the (k+1)(k + 1) side.
    • Use the assumption to replace a part by something smaller (for ">>") or larger (for "<<").
    • Finish at the target.
  • Each link must point the right way. Say why the last one holds, usually by using the condition on kk.
  • The base case is the first value where the statement is true. Check the value before it fails: that shows why the base case is not 1.

Worked example 6. Prove by induction that 3n>5n3^{n} > 5n for all integers n≥3n \ge 3.

Base case, n=3:33=27 and 5×3=15, and 27>15. So P(3) is true.\text{Base case, } n = 3: 3^{3} = 27 \text{ and } 5 \times 3 = 15, \text{ and } 27 > 15. \text{ So } P(3) \text{ is true.}Assume P(k) true for some integer k≥3:3k>5k\text{Assume } P(k) \text{ true for some integer } k \ge 3: 3^{k} > 5kTarget: 3k+1>5(k+1)\text{Target: } 3^{k+1} > 5(k + 1)3k+1=3×3k3^{k+1} = 3 \times 3^{k}>3×5k=15kby the assumption=5(k+1)+(10k−5)\begin{aligned}> 3 \times 5k &= 15k && \textcolor{#838c91}{\text{by the assumption}} \\[6pt] &= 5(k + 1) + (10k - 5)\end{aligned}>5(k+1)because k≥3 makes 10k−5>0> 5(k + 1) \qquad \textcolor{#838c91}{\text{because }k \ge 3\text{ makes }10k - 5 > 0}So P(k+1) is true.\text{So } P(k + 1) \text{ is true.}
  • Conclusion. P(3)P(3) is true, and P(k)P(k) true implies P(k+1)P(k + 1) true for every integer k≥3k \ge 3, so 3n>5n3^{n} > 5n for all integers n≥3n \ge 3 by mathematical induction.
  • The statement fails at n=2n = 2 (9 is not greater than 10) and at n=1n = 1. So the proof cannot start any earlier.

4.6 Recurrence relations

A sequence given by un+1u_{n+1} in terms of unu_{n} has a formula you can test by induction. The move is the recurrence rule: uk+1u_{k+1} comes from uku_{k}, and the assumption supplies uku_{k}.

Worked example 7. A sequence has u1=3u_{1} = 3 and un+1=2un−n+1u_{n+1} = 2u_{n} - n + 1. Prove by induction that un=2n+nu_{n} = 2^{n} + n for all n∈Z+n \in \mathbb{Z}^{+}.

Base case, n=1:u1=3 and 21+1=3. So P(1) is true.\text{Base case, } n = 1: u_{1} = 3 \text{ and } 2^{1} + 1 = 3. \text{ So } P(1) \text{ is true.}Assume P(k) true for some k∈Z+:uk=2k+k\text{Assume } P(k) \text{ true for some } k \in \mathbb{Z}^{+}: u_{k} = 2^{k} + kTarget: uk+1=2k+1+(k+1)\text{Target: } u_{k+1} = 2^{k+1} + (k + 1)uk+1=2uk−k+1the recurrence rule with n = k=2(2k+k)−k+1by the assumption=2k+1+2k−k+1=2k+1+(k+1)\begin{aligned}u_{k+1} &= 2u_{k} - k + 1 && \textcolor{#838c91}{\text{the recurrence rule with n = k}} \\[6pt] &= 2\left(2^{k} + k\right) - k + 1 && \textcolor{#838c91}{\text{by the assumption}} \\[6pt] &= 2^{k+1} + 2k - k + 1 = 2^{k+1} + (k + 1)\end{aligned}So P(k+1) is true.\text{So } P(k + 1) \text{ is true.}

Conclusion as before.

4.7 Spotting a flawed proof

  • A step on its own proves nothing. Take the claim "n2+n+1n^{2} + n + 1 is even for all n∈Z+n \in \mathbb{Z}^{+}".
    • If k2+k+1k^{2} + k + 1 is even, then (k+1)2+(k+1)+1=k2+k+1+(2k+2)(k + 1)^{2} + (k + 1) + 1 = k^{2} + k + 1 + (2k + 2) is even plus even, so even. The step is flawless.
    • Yet the claim is false: the value at n=1n = 1 is 3. The base case fails, so the dominoes never start.
  • When asked what is wrong with an induction argument, check the base case first. Then check whether the assumption was really used.

4.8 Using an earlier part

Section B questions often split a proof. A result from an earlier part (especially after "hence") is the tool for the step. Read all parts first.

4Proof by contradiction

Some statements say that something is impossible: no fraction equals 7\sqrt{7}, or there is no largest prime. You cannot check every fraction, so:

Proof by contradiction: assume the statement is false; reason correctly from that assumption; reach something impossible; conclude that the assumption was false, so the statement is true.

Figure 4 shows the shape. The impossible thing is often a clash with a condition you set at the start, such as "in lowest terms". Or it is a number that is both even and odd.

Figure 4 · The shape of a proof by contradiction Assume the opposite e.g. √3 = p/q in lowest terms Reason correctly each step follows from the last Reach the impossible e.g. p and q both divisible by 3 Assumption false so the original statement is true If a chain of valid steps leads to something impossible, the assumption at the start must be false, so the statement you wanted to prove is true.
Figure 4 · The shape of a proof by contradiction

In the write-up:

  • State the exact opposite of what you want to prove.
  • Derive consequences.
  • Name the contradiction and what it clashes with.
  • Conclude.

A first line that is not the exact opposite makes everything after it worthless.

5.1 Irrational numbers

Worked example 8. Prove by contradiction that 3\sqrt{3} is irrational.

  • First, a fact you will use: if p2p^{2} is divisible by 3, then pp is divisible by 3.
    • Every integer is 3m3m, 3m+13m + 1 or 3m+23m + 2. The last two square to 9m2+6m+1=3(3m2+2m)+19m^{2} + 6m + 1 = 3(3m^{2} + 2m) + 1 and 9m2+12m+4=3(3m2+4m+1)+19m^{2} + 12m + 4 = 3(3m^{2} + 4m + 1) + 1.
    • Each is one more than a multiple of 3. So only a multiple of 3 has a square divisible by 3.
    • Prove this lemma unless the question gives it.
Assume 3 is rational: 3=pq, where p,q∈Z+ and pq is in lowest terms (no common factor)\text{Assume } \sqrt{3} \text{ is rational: } \sqrt{3} = \frac{p}{q}, \text{ where } p, q \in \mathbb{Z}^{+} \text{ and } \frac{p}{q} \text{ is in lowest terms (no common factor)}3=p2q2, so p2=3q23 = \frac{p^{2}}{q^{2}}, \text{ so } p^{2} = 3q^{2}p2 is divisible by 3, so p is divisible by 3: p=3mp^{2} \text{ is divisible by 3, so } p \text{ is divisible by 3: } p = 3m9m2=3q2, so q2=3m29m^{2} = 3q^{2}, \text{ so } q^{2} = 3m^{2}q2 is divisible by 3, so q is divisible by 3q^{2} \text{ is divisible by 3, so } q \text{ is divisible by 3}p and q are both divisible by 3: this contradicts "lowest terms"p \text{ and } q \text{ are both divisible by 3: this contradicts "lowest terms"}
  • Conclusion. The assumption that 3\sqrt{3} is rational leads to a contradiction, so 3\sqrt{3} is irrational.
  • The Pythagoreans found 2\sqrt{2} irrational. The proof is the same with 2 for 3.
    • Its fact, "if p2p^{2} is even then pp is even", is easiest as the contrapositive, which says the same thing. If pp is odd, p=2m+1p = 2m + 1, then p2=2(2m2+2m)+1p^{2} = 2(2m^{2} + 2m) + 1 is odd.
  • Cube roots go the same way.
  • Example: 53\sqrt[3]{5}.
    • p3=5q3p^{3} = 5q^{3}, so 5 divides p3p^{3}. Because 5 is prime, it must divide pp.
    • Then p=5mp = 5m gives 125m3=5q3125m^{3} = 5q^{3}, so q3=25m3q^{3} = 25m^{3}. So 5 divides qq too, against lowest terms.
  • Say "because 5 is prime". The step fails for 4, which divides 626^{2} but not 6.

Rational plus irrational: the guide's example builds a new irrational number from a known one.

Worked example 9. Prove by contradiction that if aa is rational and bb is irrational, then a+ba + b is irrational.

Assume a+b is rational: a+b=cd with c,d∈Z, d≠0\text{Assume } a + b \text{ is rational: } a + b = \frac{c}{d} \text{ with } c, d \in \mathbb{Z},\ d \ne 0a is rational: a=pq with p,q∈Z, q≠0a \text{ is rational: } a = \frac{p}{q} \text{ with } p, q \in \mathbb{Z},\ q \ne 0b=(a+b)−a=cd−pq=cq−dpdqb = (a + b) - a = \frac{c}{d} - \frac{p}{q} = \frac{cq - dp}{dq}cq−dp and dq are integers, and dq≠0, so b is rationalcq - dp \text{ and } dq \text{ are integers, and } dq \ne 0, \text{ so } b \text{ is rational}this contradicts b being irrational\text{this contradicts } b \text{ being irrational}
  • Conclusion. So a+ba + b is irrational.
  • The proof rests on one fact: the difference of two rational numbers is rational. It gives 7+37 + \sqrt{3} irrational at once.
  • Two irrational numbers can add to a rational one: (1+2)+(1−2)=2(1 + \sqrt{2}) + (1 - \sqrt{2}) = 2.

5.2 Parity and integer solutions

Contradiction also shows an equation has no integer solutions. Write the exact opposite ("there are integers xx and yy such that…"). Then use two facts: every integer is even or odd, and sums, products and powers of integers are integers.

Worked example 10. Prove by contradiction that there are no integers xx and yy with x2−y2=2x^{2} - y^{2} = 2.

Assume there are integers x,y with x2−y2=2, so (x−y)(x+y)=2\text{Assume there are integers } x, y \text{ with } x^{2} - y^{2} = 2, \text{ so } (x - y)(x + y) = 2(x+y)−(x−y)=2y is even, so x−y and x+y are both even or both odd(x + y) - (x - y) = 2y \text{ is even, so } x - y \text{ and } x + y \text{ are both even or both odd}if both are even, their product is divisible by 4, but 2 is not\text{if both are even, their product is divisible by 4, but } 2 \text{ is not}if both are odd, their product is odd, but 2 is even\text{if both are odd, their product is odd, but } 2 \text{ is even}either way, a contradiction\text{either way, a contradiction}
  • Conclusion. The assumption is false, so no integers satisfy x2−y2=2x^{2} - y^{2} = 2.
  • The same idea shows a polynomial equation has no integer root. Assume an integer root nn. Split into nn even and nn odd. Show the left-hand side has the wrong parity in both.

Worked example 11. Prove by contradiction that the equation n3+3n2+5=0n^{3} + 3n^{2} + 5 = 0 has no integer root.

Assume there is an integer n with n3+3n2+5=0\text{Assume there is an integer } n \text{ with } n^{3} + 3n^{2} + 5 = 0n even: n3 and 3n2 are even, so n3+3n2+5 is even+even+odd=oddn \text{ even: } n^{3} \text{ and } 3n^{2} \text{ are even, so } n^{3} + 3n^{2} + 5 \text{ is even} + \text{even} + \text{odd} = \text{odd}n odd: n3 and 3n2 are odd, so n3+3n2+5 is odd+odd+odd=oddn \text{ odd: } n^{3} \text{ and } 3n^{2} \text{ are odd, so } n^{3} + 3n^{2} + 5 \text{ is odd} + \text{odd} + \text{odd} = \text{odd}either way the left-hand side is odd, but 0 is even: a contradiction\text{either way the left-hand side is odd, but } 0 \text{ is even: a contradiction}
  • Conclusion. The assumption is false, so the equation has no integer root.
  • Such a proof does not say there is no real root. The cubic has one between −4-4 and −3-3; it just is not an integer.

5.3 Euclid's infinitely many primes

This is one of the oldest proofs in mathematics. The guide names it.

Worked example 12. Prove by contradiction that there are infinitely many prime numbers.

Assume there are only finitely many primes: p1,p2,…,pn\text{Assume there are only finitely many primes: } p_{1}, p_{2}, \ldots, p_{n}let N=p1×p2×⋯×pn+1\text{let } N = p_{1} \times p_{2} \times \cdots \times p_{n} + 1dividing N by any pi leaves remainder 1, so no pi divides N\text{dividing } N \text{ by any } p_{i} \text{ leaves remainder 1, so no } p_{i} \text{ divides } NN>1, so N has at least one prime factorN > 1, \text{ so } N \text{ has at least one prime factor}that prime factor is not any of p1,…,pn\text{that prime factor is not any of } p_{1}, \ldots, p_{n}this contradicts the list containing every prime\text{this contradicts the list containing every prime}
  • Conclusion. So there are infinitely many primes.
  • A common mistake is to say "NN is a new prime". It need not be.
    • Figure 5: 2×3×5×7×11×13+1=30 031=59×5092 \times 3 \times 5 \times 7 \times 11 \times 13 + 1 = 30\,031 = 59 \times 509, not prime. But its prime factors, 59 and 509, are missing from the list. That is all the proof needs.
Figure 5 · Multiply the primes you have, then add 1 product + 1 value its prime factors 2 + 1 3 prime 2 × 3 + 1 7 prime 2 × 3 × 5 + 1 31 prime 2 × 3 × 5 × 7 + 1 211 prime 2 × 3 × 5 × 7 × 11 + 1 2311 prime 2 × 3 × 5 × 7 × 11 × 13 + 1 30 031 = 59 × 509 None of the primes used divides the new number: each leaves remainder 1. So its prime factors are new. The new number need not itself be prime: 30 031 = 59 × 509, but 59 and 509 are not on the list.
Figure 5 · Multiply the primes you have, then add 1

5Counterexamples

  • To prove "always", you need a proof. To disprove "always", you need one case where the statement fails: a counterexample.
  • The guide says it is not sufficient to state the counterexample alone. Show the working that proves it fails.

Worked example 13. Show that not every number of the form n2+41n+41n^{2} + 41n + 41, n∈Nn \in \mathbb{N}, is prime.

  • Try small values, as Figure 6 does. n=0,1,2,3n = 0, 1, 2, 3 give 41, 83, 127, 173, all prime. n=4n = 4 gives 16+164+41=221=13×1716 + 164 + 41 = 221 = 13 \times 17.
  • So 221221 is a value of n2+41n+41n^{2} + 41n + 41 that is not prime, and "every such number is prime" is false. Without "=13×17= 13 \times 17" the answer is incomplete: the examiner needs to see why.
Figure 6 · Values of n² + 41n + 41 n = 0 41 prime n = 1 83 prime n = 2 127 prime n = 3 173 prime n = 4 221 = 13 × 17 n = 5 271 prime The first four values are prime, which proves nothing. n = 4 gives 221 = 13 × 17: one counterexample, with the factorisation shown, is enough to show the claim "always prime" is false.
Figure 6 · Values of n² + 41n + 41
  • You can also find one by thinking. n=41n = 41 gives 412+41×41+41=41(41+41+1)=41×8341^{2} + 41 \times 41 + 41 = 41(41 + 41 + 1) = 41 \times 83, which is plainly not prime.
  • Notice the logic: four prime values proved nothing, and the single value 221221 settled the question.
  • Notice the logic: the first four values being prime proved nothing, while the single value 221221 settled the question.
  • A claim that something never happens falls to one case where it does.
    • Take "there are no positive integer solutions to x2+y2=10x^{2} + y^{2} = 10" (the guide's second example). It fails at x=1x = 1, y=3y = 3, because 12+32=1+9=101^{2} + 3^{2} = 1 + 9 = 10. Write the arithmetic: it is the explanation.
  • If-then statements: for a statement of the form "if PP then QQ", a counterexample must make PP true and QQ false.
    • You must show both. A value that fails PP tells you nothing.

Worked example 14. Show that each of these statements is false: (a) "if a>ba > b then 1a<1b\dfrac{1}{a} < \dfrac{1}{b}"; (b) "the product of two irrational numbers is irrational".

  • (a) Take a=2a = 2, b=−1b = -1. The condition holds, since 2>−12 > -1. But 1a=0.5\dfrac{1}{a} = 0.5 and 1b=−1\dfrac{1}{b} = -1, and 0.5<−10.5 < -1 is false. So the conclusion fails.
  • (b) Take 2\sqrt{2} and 2\sqrt{2}, both irrational (by the Pythagorean result of 5.1). Their product is 2=212 = \dfrac{2}{1}, which is rational.
  • TOK and the mathematical community: the guide asks what part the mathematical community plays in deciding that a proof is valid.
    • It names the four-colour theorem: any map can be coloured with four colours so that neighbouring regions differ.
  • Who checks a proof, and how? Does a checked proof give completely certain knowledge? Either makes a good essay question.

6Choosing the method

The statement says…Use
something holds for every positive integer nn (a sum, a divisibility, an nnth derivative, a power, an inequality, a formula for a recurrence)induction
something is impossible, irrational, has no integer solutions, or there are infinitely many of somethingcontradiction
something is "always" true, and you suspect it is notcounterexample, with the check shown
an identity holds for all xxdirect deductive proof (1.6)

Practice questions

47 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.