Proof by Contradiction

What is Proof by Contradiction?

You want to prove something is true.

Instead of proving it directly, you:

  1. Assume it’s false
  2. Show that leads to something impossible
  3. Conclude it must be true

Assume false. Find chaos. Conclude true.


The Logic

If assuming “not P” leads to nonsense, then P must be true.

There’s no other option. Either P is true, or not P is true. If not P causes a contradiction, P wins.


The Method

To prove P:

  1. Assume ¬P\neg P (the opposite)
  2. Use logic to derive something impossible
  3. The impossibility means ¬P\neg P is false
  4. So P is true

Example 1: No Largest Integer

Claim: There is no largest integer.


Proof:

  • Assume there IS a largest integer. Call it NN.
  • Consider N+1N + 1
  • But N+1>NN + 1 > N
  • So NN wasn’t the largest after all
  • Contradiction

Our assumption was wrong. There is no largest integer.

Whatever “largest” you pick, you can always add 1.


Example 2: √2 is Irrational

Claim: 2\sqrt{2} cannot be written as a fraction.

This is the classic contradiction proof.


Proof:

  • Assume 2\sqrt{2} IS rational
  • So 2=ab\sqrt{2} = \frac{a}{b} where aa and bb have no common factors

Square both sides:

2=a2b22 = \frac{a^2}{b^2}

So:

a2=2b2a^2 = 2b^2


What does this tell us?

  • a2=2b2a^2 = 2b^2 means a2a^2 is even
  • If a2a^2 is even, then aa is even (we proved this before)
  • So a=2ka = 2k for some integer kk

Substitute back:

(2k)2=2b24k2=2b2b2=2k2\begin{aligned} (2k)^2 &= 2b^2 \\ 4k^2 &= 2b^2 \\ b^2 &= 2k^2 \end{aligned}
  • So b2b^2 is even, which means bb is even

The contradiction:

  • aa is even
  • bb is even
  • But we said aa and bb have NO common factors
  • They both have a factor of 2 — contradiction

Our assumption was wrong. 2\sqrt{2} is irrational.

The proof “traps” the assumption into an impossible corner.


Example 3: Rational + Irrational

Claim: The sum of a rational and an irrational number is irrational.


Setup:

  • rr = rational (can be written as ab\frac{a}{b})
  • xx = irrational (cannot be written as a fraction)
  • Prove: r+xr + x is irrational

Proof:

  • Assume r+xr + x IS rational
  • So r+x=pqr + x = \frac{p}{q} for some integers p,qp, q
  • Then x=pqrx = \frac{p}{q} - r

Since r=abr = \frac{a}{b}:

x=pqab=pbaqqbx = \frac{p}{q} - \frac{a}{b} = \frac{pb - aq}{qb}

  • That’s a fraction — so xx is rational
  • But we said xx is irrational
  • Contradiction

Our assumption was wrong. So r+xr + x is irrational.

Rational + Irrational = Irrational. Always.


Contradiction vs Contrapositive

MethodWhat you do
ContrapositiveProve ¬Q¬P\neg Q \to \neg P instead of PQP \to Q
ContradictionAssume the whole thing is false, find a disaster

Contrapositive is for implications (if-then statements).

Contradiction works for any statement.