Skip to main content

MATH 308 — Lec 9 — Existence & Contradiction

Math 308 · October 7, 2026

Lecture 9 — Existence Proofs and Proof by Contradiction
MATH 308  Bridge to Advanced Mathematics  Chartrand §5.2, 5.4

Goals for today. By the end of this lecture you should be able to:

  • prove an existence statement “∃x P(x)\exists x\, P(x)∃xP(x)” by exhibiting a witness (a constructive proof);

  • recognize a nonconstructive proof — one that shows something exists without producing it;

  • write a proof by contradiction: assume the negation, derive an impossibility, conclude;

  • prove the two landmark theorems this method was made for: 2\sqrt{2}2​ is irrational, and there are infinitely many primes.

Existence proofs (§5.4)

Back in Lecture 4 we met the existential quantifier: “∃x∈S, P(x)\exists x \in S,\ P(x)∃x∈S, P(x)” asserts that at least one xxx in SSS makes P(x)P(x)P(x) true. Such a statement is called an existence statement. There is a delightfully direct way to prove one.

Definition 1. A proof of “∃x∈S, P(x)\exists x \in S,\ P(x)∃x∈S, P(x)” is constructive if it exhibits a specific x0∈Sx_0 \in Sx0​∈S and verifies P(x0)P(x_0)P(x0​). That x0x_0x0​ is called a witness. A proof is nonconstructive if it establishes that such an xxx exists without producing one.

To prove “there exists,” you do not need every xxx to work — you need one. So the whole game is: find a witness, then check it.

Example 1 (Constructive). There exist integers x,yx,yx,y with 7x+5y=17x + 5y = 17x+5y=1. Take x0=3x_0 = 3x0​=3 and y0=−4y_0 = -4y0​=−4. Then 7(3)+5(−4)=21−20=17(3) + 5(-4) = 21 - 20 = 17(3)+5(−4)=21−20=1. □\square□

We did not solve an equation or explain how we found (3,−4)(3,-4)(3,−4); a proof only has to present a witness and confirm it works. (Scratch work stays on scratch paper — compare the “read it backwards” remark of Lecture 8.)

Example 2 (Constructive). There is a prime number that is even. The witness is 222: it is prime, and it is even. Notice this single example also disproves “every prime is odd” — the seed of counterexamples, our topic next time (Lecture 10).

Sometimes we can prove a thing must exist even though we cannot lay hands on it. The showpiece is the following, and it borrows one fact we will nail down in §2: 2\sqrt{2}2​ is irrational.

Theorem 1 (A nonconstructive existence proof). There exist irrational numbers aaa and bbb such that aba^{b}ab is rational.

Proof. Consider the number 2 2\sqrt{2}^{\,\sqrt{2}}2​2​. It is either rational or irrational.

  • If 2 2\sqrt{2}^{\,\sqrt{2}}2​2​ is rational, take a=b=2a = b = \sqrt{2}a=b=2​. Both are irrational (§2), and ab=2 2a^{b} = \sqrt{2}^{\,\sqrt{2}}ab=2​2​ is rational. Done.

  • If 2 2\sqrt{2}^{\,\sqrt{2}}2​2​ is irrational, take a=2 2a = \sqrt{2}^{\,\sqrt{2}}a=2​2​ and b=2b = \sqrt{2}b=2​. Both are irrational, and

    ab=(2 2) ⁣2=2 (2⋅2)=2 2=2,a^{b} = \left(\sqrt{2}^{\,\sqrt{2}}\right)^{\!\sqrt{2}} = \sqrt{2}^{\,(\sqrt{2}\cdot\sqrt{2})} = \sqrt{2}^{\,2} = 2,ab=(2​2​)2​=2​(2​⋅2​)=2​2=2,

which is rational. Done.

One of the two cases certainly holds, so a suitable pair (a,b)(a,b)(a,b) exists. ◻

Remark 1. This is genuinely nonconstructive: the argument never tells us which case is the true one, so at its end we still cannot name a specific witness pair. We have proved existence without exhibiting an example — a perfectly valid, and slightly unsettling, kind of proof.

Proof by contradiction (§5.2)

Suppose we want to prove a statement RRR. Proof by contradiction (Latin: reductio ad absurdum) turns the job inside out:

assume ∼ ⁣R is true, reason until you reach an impossibility, and conclude R.\text{assume } \sim\! R \text{ is true, reason until you reach an impossibility, and conclude } R.assume ∼R is true, reason until you reach an impossibility, and conclude R.

The “impossibility” is a contradiction: a statement of the form C∧(∼ ⁣C)C \wedge (\sim\! C)C∧(∼C) — something that cannot be true (recall negation, Lecture 3). Since our reasoning was valid, the only thing that could have gone wrong is the assumption ∼ ⁣R\sim\! R∼R; so ∼ ⁣R\sim\! R∼R is false, i.e. RRR is true.

The shape of a proof by contradiction: the assumption ! R is the only input, so a contradiction convicts it.

The shape of a proof by contradiction: the assumption ∼ ⁣R\sim\! R∼R is the only input, so a contradiction convicts it.

A gentle first example fixes the pattern.

Proposition 2. There is no largest integer.

Proof. Suppose, for contradiction, that there is a largest integer; call it NNN. Then n≤Nn \le Nn≤N for every n∈Zn \in \mathbb{Z}n∈Z. But N+1∈ZN + 1 \in \mathbb{Z}N+1∈Z and N+1>NN + 1 > NN+1>N, so NNN is not an upper bound after all. This contradicts “n≤Nn \le Nn≤N for every nnn” (take n=N+1n = N+1n=N+1). Hence no largest integer exists. ◻

Irrationality of 2\sqrt{2}2​

A real number is rational if it equals ab\tfrac{a}{b}ba​ for integers a,ba,ba,b with b≠0b \ne 0b=0, and irrational otherwise. Every rational number can be written in lowest terms: ab\tfrac{a}{b}ba​ with a,ba,ba,b sharing no common factor bigger than 111 (in particular, not both even). We need one small fact, proved — as promised in Lecture 5 — by contrapositive.

Lemma 3. For every integer nnn: if n2n^{2}n2 is even, then nnn is even.

Proof. We prove the contrapositive: if nnn is odd, then n2n^{2}n2 is odd. Suppose nnn is odd, say n=2k+1n = 2k+1n=2k+1 with k∈Zk \in \mathbb{Z}k∈Z (Lecture 5). Then

n2=(2k+1)2=4k2+4k+1=2 (2k2+2k)+1,n^{2} = (2k+1)^{2} = 4k^{2} + 4k + 1 = 2\,(2k^{2}+2k) + 1,n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1,

which is odd. By contraposition, n2n^{2}n2 even ⇒n\Rightarrow n⇒n even. ◻

Theorem 4 (Pythagoras). 2\sqrt{2}2​ is irrational.

Proof. Suppose, for contradiction, that 2\sqrt{2}2​ is rational. Then we may write

2=ab,a,b∈Z, b≠0, in lowest terms (so a,b are not both even).\sqrt{2} = \frac{a}{b}, \qquad a,b \in \mathbb{Z},\ b \ne 0,\ \text{in lowest terms (so $a,b$ are not both even).}2​=ba​,a,b∈Z, b=0, in lowest terms (so a,b are not both even).

Squaring gives 2=a2b22 = \dfrac{a^{2}}{b^{2}}2=b2a2​, hence

a2=2b2.(∗)a^{2} = 2b^{2}. \tag{$\ast$}a2=2b2.(∗)

By (∗)(\ast)(∗), a2a^{2}a2 is even, so by Lemma 3 aaa is even; write a=2ca = 2ca=2c with c∈Zc \in \mathbb{Z}c∈Z. Substituting into (∗)(\ast)(∗),

(2c)2=2b2 ⇒ 4c2=2b2 ⇒ b2=2c2.(2c)^{2} = 2b^{2} \ \Rightarrow\ 4c^{2} = 2b^{2} \ \Rightarrow\ b^{2} = 2c^{2}.(2c)2=2b2 ⇒ 4c2=2b2 ⇒ b2=2c2.

So b2b^{2}b2 is even, and again by Lemma 3 bbb is even. But now aaa and bbb are both even — contradicting our choice of ab\tfrac{a}{b}ba​ in lowest terms. Therefore 2\sqrt{2}2​ is not rational; it is irrational. ◻

The diagonal of a unit square has length √(1^2+1^2)=√2. Theorem 4 says this length is incommensurable with the side: no common unit divides both — the discovery that shook the Pythagoreans.

The diagonal of a unit square has length 12+12=2\sqrt{1^2+1^2}=\sqrt{2}12+12​=2​. Theorem 4 says this length is incommensurable with the side: no common unit divides both — the discovery that shook the Pythagoreans.

Infinitely many primes

Recall that an integer p≥2p \ge 2p≥2 is prime if its only positive divisors are 111 and ppp; an integer ≥2\ge 2≥2 that is not prime is composite. We use one structural fact.

Lemma 5. Every integer n≥2n \ge 2n≥2 has at least one prime divisor.

Proof. Among the divisors of nnn that are ≥2\ge 2≥2 there is a smallest one (there is at least one such divisor, namely nnn itself); call it ppp. We claim ppp is prime. If not, ppp would have a divisor ddd with 1<d<p1 < d < p1<d<p; but d∣pd \mid pd∣p and p∣np \mid np∣n give d∣nd \mid nd∣n (transitivity, Lecture 7), so ddd is a divisor of nnn with 2≤d<p2 \le d < p2≤d<p — contradicting the minimality of ppp. Hence ppp is prime, and p∣np \mid np∣n. (That a smallest such divisor exists is the Well-Ordering Principle, made rigorous by strong induction in Lecture 12.) ◻

Theorem 6 (Euclid). There are infinitely many prime numbers.

Proof. Suppose, for contradiction, that there are only finitely many primes. List them all:

p1,p2,…,pk.p_1, p_2, \dots, p_k.p1​,p2​,…,pk​.

Form the integer

N=p1p2⋯pk+1.N = p_1 p_2 \cdots p_k + 1.N=p1​p2​⋯pk​+1.

Since N≥2N \ge 2N≥2, Lemma 5 gives a prime ppp with p∣Np \mid Np∣N. As our list contains every prime, p=pip = p_ip=pi​ for some iii, so p∣p1p2⋯pkp \mid p_1 p_2 \cdots p_kp∣p1​p2​⋯pk​ as well. A common divisor of two integers divides their difference (Lecture 7), so

p ∣ (N−p1p2⋯pk)=1.p \ \Big|\ \bigl(N - p_1 p_2 \cdots p_k\bigr) = 1.p ​ (N−p1​p2​⋯pk​)=1.

But then p≤1p \le 1p≤1, contradicting p≥2p \ge 2p≥2 (every prime is at least 222). Hence the assumption fails: there are infinitely many primes. ◻

The primes 2,3,5,7,11,13, thin out but never stop. Euclid’s proof builds, from any finite list, a number forcing a prime outside it.

The primes 2,3,5,7,11,13,…2,3,5,7,11,13,\dots2,3,5,7,11,13,… thin out but never stop. Euclid’s proof builds, from any finite list, a number forcing a prime outside it.

Remark 2. Euclid’s argument is often mis-stated as “N=p1⋯pk+1N = p_1\cdots p_k + 1N=p1​⋯pk​+1 is itself prime.” That is false (2⋅3⋅5⋅7⋅11⋅13+1=30031=59⋅5092\cdot3\cdot5\cdot7\cdot11\cdot13 + 1 = 30031 = 59 \cdot 5092⋅3⋅5⋅7⋅11⋅13+1=30031=59⋅509). What is true, and all we need, is that NNN has a prime factor, and that factor cannot be on the list. Read the proof again: it never claims NNN is prime.

Homework problems

  1. Give a constructive proof: there exist integers x,yx,yx,y with 3x+11y=13x + 11y = 13x+11y=1. (Exhibit a witness and check it.)

  2. Prove there exists a positive integer that is both a perfect square and one more than a multiple of 555. (Find a witness.)

  3. Prove by contradiction that 3\sqrt{3}3​ is irrational. (Adapt Lemma 3: if 3∣n23 \mid n^23∣n2 then 3∣n3 \mid n3∣n.)

  4. Prove by contradiction: there is no smallest positive rational number.

  5. Prove by contradiction: if n∈Zn \in \mathbb{Z}n∈Z and n2n^2n2 is odd, then nnn is odd. (Compare with proving it by contrapositive — which do you prefer, and why?)

  6. Is the number 2⋅3⋅5⋅7+1=2112\cdot3\cdot5\cdot7 + 1 = 2112⋅3⋅5⋅7+1=211 prime? If so, what does that illustrate about the misreading of Euclid’s proof in the Remark above?

Suggested textbook exercises (Chartrand §5.2, 5.4): 5.2, 5.6, 5.10, 5.14, 5.18, 5.22, 5.26.

← Back to Math 308