Proof by Contradiction and When to Reach for It
How proof by contradiction works, with classic examples, signs that it is the right method, and the traps that produce false contradictions.
Key takeaways
- Assume the exact negation of your claim, then derive a statement that cannot be true.
- The contradiction can clash with the assumption, a given fact, a known theorem or simple arithmetic.
- The method shines for nonexistence, irrationality and infinitude.
- A mistake anywhere in the argument can create a false contradiction, so check each step.
- If your argument only uses "not Q" to derive "not P", present it as a contrapositive proof.
In a proof by contradiction you assume that the statement you want is false, reason carefully from that assumption, and arrive at something impossible. Since correct reasoning from true premises cannot produce an impossibility, the assumption must be wrong, so the original statement is true.
Reach for it when the thing you want to prove is negative in flavor, such as "there is no" or "cannot", or when assuming the opposite hands you a concrete object to work with.
The logic
Suppose you want to prove a statement S. You assume ¬S, meaning "not S", and deduce some statement together with its denial, such as "n is even and n is not even". That combination is false however the world is arranged. A chain of valid steps cannot lead from truth to falsehood, so ¬S is not true. Therefore S is.
For an implication "if P, then Q", the negation is "P and not Q". So you get two assumptions to work with, which is often more than a direct proof offers.
Writing that negation correctly is essential. If it is wrong, you will refute something other than the denial of your claim. The rules are in negating statements correctly.
Example: the square root of 2 is irrational
Claim: there are no integers p and q, with q ≠ 0, such that (p/q)² = 2.
Proof. Suppose √2 is rational. Then √2 = p/q where p and q are positive integers with no common factor above 1, since any fraction can be reduced to lowest terms. Squaring gives p² = 2q². So p² is even, which forces p to be even, because the square of an odd number is odd. Write p = 2r. Then 4r² = 2q², so q² = 2r². By the same reasoning q is even. Now p and q are both divisible by 2, contradicting the choice of lowest terms. Hence √2 is irrational. ∎
Look at what the assumption bought. "√2 is irrational" gives you nothing to compute with. "√2 is rational" gives you two integers and an equation.
Other routes to the same result are gathered in several proofs that √2 is irrational.
Example: the primes never end
Claim: there are infinitely many primes.
Proof. Suppose there are only finitely many, p₁, p₂, ..., pₖ. Let N = p₁p₂···pₖ + 1. Since N > 1, it has a prime divisor p. This p must be one of the listed primes, so p divides the product p₁p₂···pₖ. It also divides N. So p divides their difference, which is 1. No prime divides 1. This contradiction shows that no finite list contains all primes. ∎
A common misreading says that N is itself prime. It need not be.
2 · 3 · 5 · 7 · 11 · 13 + 1 = 30031 = 59 × 509 The argument needs only that N has some prime divisor missing from the list. The history and variations are in Euclid's proof about primes. Euclid's own wording shows that any finite collection of primes can be extended, which is the same idea without the contradiction.
Example: no smallest positive rational
Claim: there is no smallest positive rational number.
Proof. Suppose r is the smallest positive rational. Then r/2 is rational, positive and less than r. This contradicts the choice of r. ∎
The pattern is worth learning: assume an extreme object exists, then build a more extreme one. It works for "no largest even integer" and many claims like it.
Example: mixing rational and irrational
Claim: if r is rational and x is irrational, then r + x is irrational.
Proof. Let r be rational and x irrational, and suppose r + x is rational. The difference of two rationals is rational, so (r + x) − r is rational. But that difference is x, which is irrational. This is a contradiction. ∎
Be careful with the related claim about products. "A rational times an irrational is irrational" is false when the rational is 0. With the added hypothesis r ≠ 0, the same style of argument works, dividing by r. A contradiction proof that divides by r without that hypothesis would hide the exception.
Example: an equation with no integer solutions
Claim: there are no integers m and n with 4m + 6n = 9.
Proof. Suppose integers m and n satisfy 4m + 6n = 9. The left side equals 2(2m + 3n), which is even. The right side, 9, is odd. No integer is both even and odd, so no such integers exist. ∎
The assumption that a solution exists let you talk about "the" integers m and n and examine the equation they would have to satisfy. The same parity idea rules out a whole family of equations at once: whenever two coefficients share a factor that the right side lacks, there is no integer solution.
If the right side were 10, the argument would find nothing to object to, and indeed m = 1, n = 1 solves 4m + 6n = 10. That is a reassuring sign that the contradiction came from the specific numbers and not from a faulty step.
When to reach for it
| Sign in the claim | Why contradiction helps |
|---|---|
| "There is no..." | Assuming one exists gives you an object |
| "...is irrational" | Assuming rationality gives you a fraction |
| "There are infinitely many..." | Assuming finitely many gives you a complete list |
| "At least one of these has the property" | Assuming none does gives a fact about every one |
| "There is only one..." | Assuming two different ones gives something to compare |
The fourth row covers the pigeonhole principle. If 13 people had birthdays in all different months, you would need 13 months, and there are 12.
A good practical test: try a direct proof for a few minutes. If the hypothesis gives you nothing to hold, write down the negation and see what it offers.
Traps and false contradictions
A contradiction tells you that something went wrong. It does not tell you what. If you made an algebra slip, the "impossibility" may come from the slip, and the claim you think you proved could be false.
Check these points.
- Is the negation correct, including all quantifiers?
- Does every step follow, with no division by zero and no unjustified square root?
- Is the contradiction real? "x is positive" and "x is greater than 1" do not conflict.
- Did you actually use the assumption? If not, you may have proved something directly, or proved a false thing by error.
- Did you add a hidden assumption, such as that two numbers are different?
A good way to test an argument is to run it on a case where the claim is false. The √2 argument applied to √4 should break, and it does: p² = 4q² shows that p is even, with p = 2r, but then r² = q², which says nothing about q being even.
Using minimality to sharpen the clash
A powerful variant starts by choosing the smallest object that violates the claim. If any positive integer fails a property, then a smallest failing one exists. You then show that a smaller one also fails, or that this smallest one cannot fail.
For example, suppose some integer greater than 1 had no prime divisor, and let n be the smallest such integer. Then n is not prime, since a prime divides itself. So n = ab with 1 < a < n. Because a is smaller than n, it has a prime divisor, and that prime also divides n. This contradicts the choice of n.
The choice of a smallest example gives you a free extra fact: everything below it behaves well. The same idea drives Fermat's method of infinite descent, and it is closely tied to induction. It works for positive integers because they cannot decrease forever, which is not true of positive real or rational numbers.
Contradiction, contrapositive and style
If you assume P and not Q, then use only "not Q" to derive "not P", your contradiction is between P and "not P". The clearer version is a proof by contrapositive: assume not Q and deduce not P. It has a definite target from the start.
There is also a philosophical point. Intuitionist mathematicians accept one form of this method: assuming S, reaching an absurdity and concluding "not S". They reject the other: assuming "not S", reaching an absurdity and concluding S, because it relies on the law of excluded middle. The √2 proof is of the first kind, since "irrational" means "not rational". Classical mathematics accepts both. See intuitionistic logic.
Common questions
How do you know what contradiction to aim for?
Often you do not at first. Explore the consequences of the assumption and watch for clashes with anything you have: a hypothesis, a minimality condition, parity or size.
How should you write it?
Say at the start that you are arguing by contradiction, state the assumption, and mark clearly where the contradiction appears. Then say which conclusion follows.