01 / 20

Proof by
Contradiction

Master the art of proving statements true by showing that assuming the opposite leads to an impossibility: a powerful technique in logic and mathematics.

Discrete Math

What Is Proof by Contradiction?

Proof by contradiction (also called reductio ad absurdum) is a technique where you assume the opposite of what you want to prove, then show that this assumption inevitably leads to a logical contradiction.

Since a contradiction cannot be true, the original assumption must be false: therefore the statement you wanted to prove must be true.

Why Does It Work?

The method relies on two foundational laws of classical logic:

Law of Excluded Middle
Every proposition is either true or false: \( P \vee \neg P \). There is no third option.
Law of Non-Contradiction
A proposition and its negation cannot both be true: \( \neg(Q \wedge \neg Q) \).

The Logical Structure

Assume \( \neg P \)
Apply logical reasoning
Derive \( Q \wedge \neg Q \) (Contradiction!)
Therefore \( P \) is true ✓

The Formal Rule

In words: if the negation of \( P \) logically implies a contradiction, then \( P \) must be true. This is sometimes written as:

This rule is valid in classical logic and is one of the most widely used proof strategies in all of mathematics.

Contradiction vs. Contrapositive

Proof by Contradiction Proof by Contrapositive
Goal Prove \( P \) Prove \( P \to Q \)
Assume \( \neg P \) \( \neg Q \)
Derive Any contradiction \( R \wedge \neg R \) Specifically \( \neg P \)
Conclude \( P \) is true \( P \to Q \) is true
Proves Any statement Only implications

How to Apply the Method

1
State the goal. Clearly identify the proposition \( P \) you want to prove.
2
Assume the negation. Write "Assume for contradiction that \( \neg P \)."
3
Reason logically. Use definitions, axioms, and known theorems to derive consequences of \( \neg P \).
4
Arrive at a contradiction. Show that two statements conflict: \( Q \) and \( \neg Q \).
5
Conclude. Since the assumption led to a contradiction, \( P \) must be true. \( \square \)

Example 1: \( \sqrt{2} \) Is Irrational

Claim: \( \sqrt{2} \) is irrational (cannot be expressed as a fraction of integers).

1
Assume for contradiction that \( \sqrt{2} \) is rational. Then \( \sqrt{2} = \frac{a}{b} \) where \( a, b \in \mathbb{Z} \), \( b \neq 0 \), and \( \gcd(a,b) = 1 \).
2
Square both sides: \( 2 = \frac{a^2}{b^2} \), so \( a^2 = 2b^2 \). Thus \( a^2 \) is even, which means \( a \) is even.
3
Write \( a = 2k \). Then \( (2k)^2 = 2b^2 \), so \( 4k^2 = 2b^2 \), giving \( b^2 = 2k^2 \). Thus \( b \) is also even.

Example 1: The Contradiction

Assumption:
\( \gcd(a, b) = 1 \)
Derived:
\( \gcd(a, b) \geq 2 \)
✕
Therefore \( \sqrt{2} \) is irrational ✓

Example 2: Infinitely Many Primes

Claim: There are infinitely many prime numbers.

1
Assume for contradiction that there are only finitely many primes: \( p_1, p_2, \ldots, p_n \).
2
Construct the number \( N = p_1 \cdot p_2 \cdots p_n + 1 \).
3
Observe: For every prime \( p_i \), dividing \( N \) by \( p_i \) gives remainder 1. So no \( p_i \) divides \( N \).
4
But \( N > 1 \), so by the Fundamental Theorem of Arithmetic, \( N \) has a prime factor not in our list: contradiction.

Example 3: No Smallest Positive Rational

Claim: There is no smallest positive rational number.

1
Assume for contradiction that there exists a smallest positive rational \( r > 0 \).
2
Consider \( \frac{r}{2} \). Since \( r > 0 \), we have \( \frac{r}{2} > 0 \). Also \( \frac{r}{2} \) is rational (rationals are closed under division by nonzero integers).
3
But \( \frac{r}{2} < r \), so we found a positive rational smaller than \( r \): contradiction with \( r \) being the smallest.

When Should You Use It?

Existence claims
"There is no..." or "There are infinitely many..." are natural fits.
Irrationality proofs
Showing a number is irrational: assume rational, derive conflict.
Uniqueness proofs
"There is exactly one..." : assume two exist, show they must be equal.

Logical Diagram

Direct Proof
Assume \( P \)'s hypotheses
Derive \( P \) directly
Contradiction
Assume \( \neg P \)
Derive contradiction
Conclude \( P \) ✓
vs.

Both approaches arrive at the same conclusion. Direct proof builds up from hypotheses; contradiction tears down the negation.

Common Mistakes

✕ Negating Incorrectly
Failing to negate the statement properly. E.g., the negation of "for all \( x \), \( P(x) \)" is "there exists \( x \) such that \( \neg P(x) \)," not "for all \( x \), \( \neg P(x) \)."
✕ No Actual Contradiction
Claiming a contradiction exists when you have not produced two statements that logically conflict. A surprising result is not a contradiction.
✕ Circular Reasoning
Accidentally using the statement you are trying to prove as a step in the derivation. Every step must follow from the assumption or known facts.

Proof Strategies Compared

Strategy Approach Best For
Direct Proof Assume hypotheses, derive conclusion Simple implications, algebraic identities
Contrapositive Prove \( \neg Q \to \neg P \) If-then statements with "messy" direct path
Contradiction Assume \( \neg P \), derive \( \bot \) Non-existence, irrationality, uniqueness
Induction Base case + inductive step Statements about all \( n \in \mathbb{N} \)

Question 1 of 5

In a proof by contradiction, what is the first step?

Question 2 of 5

In the classic proof that \( \sqrt{2} \) is irrational, what is the contradiction that arises?

Question 3 of 5

What is the negation of "For all integers \( n \), if \( n^2 \) is even then \( n \) is even"?

Question 4 of 5

Which proof technique is most appropriate for showing that there is no largest prime number?

Question 5 of 5

In proof by contradiction, after deriving a contradiction, we conclude that: