SigmaField
Mathematical Foundations for Quant Finance
0 of 256 lessons
    1. PG2.1 Direct proof: even and odd numbersProof · 30 min
    2. PG2.2 The exponent rules, provedProof · 35 min
    3. PG2.3 The logarithm rules, provedProof · 35 min
    4. PG2.4 The contrapositive, and proof by casesProof · 35 min
    5. PG2.5 Proof by contradiction: √2 is irrationalProof · 35 min
    6. PG2.6 Stage review: choosing a techniqueProof · 40 min
Proof Gym overview →

Proof Gym PG2 Proof techniques Lesson 5 of 6

ProofLesson PG2.5 in the Proof Gym, stage PG2: Proof techniques. About 35 minutes.

Proof by contradiction: √2 is irrational

Simulate

Check the claim with numbers

A number is rational if it is a fraction pq\frac{p}{q} of integers, with q≠0q \ne 0. If 2\sqrt{2} were one, say 2=pq\sqrt{2} = \frac{p}{q}, then p2=2q2p^2 = 2q^2. The cell looks for such whole numbers with qq up to 10,000, in exact integer arithmetic.

⌘/Ctrl + Enter runs the cell

No fraction works, but eleven pairs come as close as whole numbers can, with p2−2q2=±1p^2 - 2q^2 = \pm 1. One is 577408\frac{577}{408}, whose square misses 2 by only 1166464\frac{1}{166464}.

The same search for other square roots shows what success looks like.

⌘/Ctrl + Enter runs the cell

For N=4N = 4 every qq has a pp, since 4=2=21\sqrt{4} = 2 = \frac{2}{1}. For 2 and 3 there are none. Keep 4\sqrt{4} in mind: the proof for 2\sqrt{2} must fail for it somewhere.

Conjecture

2\sqrt{2} is irrational: there are no integers pp and qq, with q≠0q \ne 0, such that (pq)2=2\left(\frac{p}{q}\right)^2 = 2.

Ten thousand denominators fail, but a search can never rule out a larger one. A proof must show that no fraction, of any size, squares to 2.

Proof by contradiction

"There is no fraction" is a claim about every fraction, and none of the earlier techniques starts from it. A proof by contradiction assumes the opposite and shows that it leads somewhere impossible.

Rule: Proof by contradiction

assume ¬S⇓some R and ¬Rso S is true\begin{gathered} \text{assume } \neg S \\ \Downarrow \\ \text{some } R \text{ and } \neg R \\ \text{so } S \text{ is true} \end{gathered}

To prove SS, assume ¬S\neg S, "not SS", and deduce a contradiction: some RR and ¬R\neg R together. Both cannot hold, so ¬S\neg S is false, and SS is true.

Why this is valid: the proof shows that "¬S⇒(R∧¬R)\neg S \Rightarrow (R \wedge \neg R)" is true, and its conclusion is always false. By lesson PG1.2, an implication with a false conclusion is true only when its hypothesis is false. So ¬S\neg S is false.

The proof also uses one fact from arithmetic. Every fraction can be written in lowest terms, with no common factor above 1, by dividing top and bottom by their common factors. And since 2>0\sqrt{2} > 0, a fraction equal to it can be taken with p,q≥1p, q \ge 1.

Format 1

Reorder the steps

Here is the proof that 2\sqrt{2} is irrational, with its lines shuffled. Put them in order.

  1. Suppose, for a contradiction, that 2\sqrt{2} is rational.
  2. Then 4m2=2q24m^2 = 2q^2, so q2=2m2q^2 = 2m^2 is even, and qq is even too.
  3. By lesson PG2.4, pp is even, so p=2mp = 2m for some whole number mm.
  4. Then 2=pq\sqrt{2} = \frac{p}{q} for whole numbers p,q≥1p, q \ge 1 with no common factor above 1.
  5. Squaring gives p2=2q2p^2 = 2q^2, so p2p^2 is even.
  6. So 2 is a common factor of pp and qq, a contradiction. Hence 2\sqrt{2} is irrational.

Format 3

Find the error

The same argument, applied to 4\sqrt{4}, seems to show that 4\sqrt{4} is irrational. But 4=2\sqrt{4} = 2. Select the line that breaks, then say why.

Simulate

A claim of your own to prove

For 3\sqrt{3} the proof needs a fact about multiples of 3 instead of even numbers. Every integer leaves a remainder of 0, 1 or 2 when divided by 3. The cell prints nn, its remainder, n2n^2 and the remainder of n2n^2.

⌘/Ctrl + Enter runs the cell

The square has remainder 0 only when nn does, and remainder 1 otherwise. So it seems that if n2n^2 is a multiple of 3, then so is nn. No fraction with denominator up to 10,000 squares to 3.

Conjecture

  1. For every integer nn: if n2n^2 is a multiple of 3, then nn is a multiple of 3.
  2. 3\sqrt{3} is irrational.

Nine values of nn and ten thousand denominators agree. Prove the fact about multiples of 3 first, then use it as lesson PG2.4 was used above.

Format 4

Write it

Prove both claims. For the first, prove the contrapositive by cases. For the second, argue by contradiction, using the first claim.

Saved in this browser as you type.

Write your own first: a proof you have tried to write teaches far more than one you only read.

Summary card

  • A proof by contradiction assumes ¬S\neg S and reaches a statement together with its negation. So ¬S\neg S is false, and SS is true.
  • 2\sqrt{2} is irrational: from pq\frac{p}{q} in lowest terms, p2=2q2p^2 = 2q^2 makes both pp and qq even.
  • The argument needs the factor 2 in q2=2m2q^2 = 2m^2. For 4\sqrt{4} there is none, and 4=2\sqrt{4} = 2.
  • 3\sqrt{3} is irrational by the same route, once "if 33 divides n2n^2, then 33 divides nn" is proved by cases.

Free further reading

Optional. This lesson covers what you need; these add more examples and practice. All are free to read.