Skip to content

Proof by contradiction: method and examples

Proof by contradiction establishes a statement by assuming that it is false and showing that this assumption leads inevitably to an impossibility. Since the assumption cannot be true, the original statement must be true.

The logical shape is:

assume ¬PcontradictionP.\text{assume }\neg P \quad\Longrightarrow\quad \text{contradiction} \quad\Longrightarrow\quad P.

Here PP is the statement to be proved and ¬P\neg P means “not PP”. The contradiction might be a false numerical claim such as 0=10=1, incompatible conclusions such as “the integer nn is both even and odd”, or a direct conflict with a given assumption.

You should be able to:

  • use the definitions of even, odd, rational, irrational and prime numbers
  • manipulate fractions and surds
  • use algebra to form a chain of deductions
  • distinguish a proof from evidence provided by examples

Review proof and reasoning if mathematical implications or universal statements are unfamiliar.

To prove a statement PP by contradiction:

  1. Assume the opposite. State clearly that PP is false.
  2. Translate the assumption into mathematics. Use exact definitions.
  3. Deduce consequences. Every step must follow from the assumption, the givens or an established fact.
  4. Identify the contradiction. Say exactly which two claims are incompatible.
  5. Conclude. Reject the assumption and state that PP is therefore true.

The hardest step is often the first. The opposite must be the logical negation, not merely a different statement.

StatementCorrect negation
x=3x=3x3x\ne3
x>3x>3x3x\leq3
nn is evennn is odd, when nn is an integer
Every integer has property QQAt least one integer does not have property QQ
There exists an integer with property QQNo integer has property QQ

For example, the negation of x>0x>0 is x0x\leq0, not x<0x<0. Forgetting the boundary value x=0x=0 leaves a logical gap.

Prove that there is no greatest integer.

Assume, for contradiction, that there is a greatest integer. Call it NN.

Since NN is an integer, N+1N+1 is also an integer. But

N+1>N.N+1>N.

This contradicts the assumption that NN is the greatest integer. Therefore there is no greatest integer.

Notice that the contradiction is not merely that N+1N+1 is large. It is that an integer greater than the supposed greatest integer has been constructed.

Prove that 2\sqrt{2} is irrational.

Assume, for contradiction, that 2\sqrt{2} is rational. Then it can be written in lowest terms as

2=ab,\sqrt{2}=\frac{a}{b},

where a,bZa,b\in\mathbb Z, b0b\ne0, and aa and bb have no common factor greater than 11.

Square both sides:

2=a2b2a2=2b2.2=\frac{a^2}{b^2} \quad\Longrightarrow\quad a^2=2b^2.

Therefore a2a^2 is even. If aa were odd, a=2k+1a=2k+1 for some integer kk, giving

a2=(2k+1)2=2(2k2+2k)+1,a^2=(2k+1)^2=2(2k^2+2k)+1,

which is odd. Hence aa must be even. Write a=2ma=2m.

Substitute this into a2=2b2a^2=2b^2:

(2m)2=2b24m2=2b2b2=2m2.(2m)^2=2b^2 \quad\Longrightarrow\quad 4m^2=2b^2 \quad\Longrightarrow\quad b^2=2m^2.

The same reasoning shows that bb is even. Thus aa and bb are both divisible by 22, contradicting the statement that a/ba/b was in lowest terms. Therefore 2\sqrt{2} is irrational.

Finding that aa and bb are both even is not impossible by itself. For example, 2/42/4 is a valid fraction. The contradiction occurs because a/ba/b was specifically chosen in lowest terms. Any rational number can be expressed in lowest terms, so this choice loses no generality.

Let rr be rational and let xx be irrational. Prove that r+xr+x is irrational.

Assume, for contradiction, that r+xr+x is rational. Let

r+x=q,r+x=q,

where qq is rational. Rearranging gives

x=qr.x=q-r.

The difference of two rational numbers is rational: if q=a/bq=a/b and r=c/dr=c/d, then

qr=adbcbd,q-r=\frac{ad-bc}{bd},

which is a ratio of integers with non-zero denominator. Hence xx is rational. This contradicts the given fact that xx is irrational. Therefore r+xr+x is irrational.

This proof illustrates a useful strategy: when the statement involves an irrational number, assume the result is rational and rearrange to force the original irrational number to be rational.

Prove that if n2n^2 is divisible by 33, then nn is divisible by 33, where nn is an integer.

Assume that n2n^2 is divisible by 33, but that nn is not divisible by 33. An integer not divisible by 33 has the form

n=3k+1orn=3k+2n=3k+1 \quad\text{or}\quad n=3k+2

for some integer kk.

In the first case,

(3k+1)2=9k2+6k+1=3(3k2+2k)+1.(3k+1)^2=9k^2+6k+1=3(3k^2+2k)+1.

In the second case,

(3k+2)2=9k2+12k+4=3(3k2+4k+1)+1.(3k+2)^2=9k^2+12k+4=3(3k^2+4k+1)+1.

In both cases n2n^2 leaves remainder 11 when divided by 33, so it is not divisible by 33. This contradicts the given information. Therefore nn is divisible by 33.

Here the assumption must include the given condition and the negation of the conclusion. This is the standard approach to proving an implication ABA\Rightarrow B by contradiction: assume AA and ¬B\neg B.

Prove that there are infinitely many prime numbers.

Assume, for contradiction, that there are only finitely many primes. List all of them:

p1,p2,,pn.p_1,p_2,\ldots,p_n.

Form the integer

N=p1p2pn+1.N=p_1p_2\cdots p_n+1.

For each listed prime pip_i, division gives

N=pi(jipj)+1.N=p_i\left(\prod_{j\ne i}p_j\right)+1.

Therefore NN leaves remainder 11 when divided by every prime on the list. Since N>1N>1, it is either prime or has a prime factor. In either case, there is a prime not on the supposedly complete list. This is a contradiction. Therefore there are infinitely many primes.

It is not necessary to claim that NN itself is prime. For the list 2,3,5,7,11,132,3,5,7,11,13, the product plus 11 is 30031=59×50930031=59\times509. What matters is that none of its prime factors is on the original list.

Proof by contradiction is especially effective when:

  • the negation gives a concrete algebraic form, such as writing a rational number as a/ba/b
  • the claim says that something does not exist
  • assuming a finite list lets you construct an object outside that list
  • the desired conclusion is awkward to reach directly, but its negation strongly restricts the possibilities

It is not automatically the best method. If a short direct chain establishes the result, proof by deduction is usually clearer.

Checking examples is not a contradiction proof

Section titled “Checking examples is not a contradiction proof”

Testing n=1,2,3,4n=1,2,3,4 may suggest a pattern, but it says nothing about every later integer. A proof needs a general argument using an arbitrary integer.

A surprising result is not necessarily impossible

Section titled “A surprising result is not necessarily impossible”

A contradiction must violate a definition, a given condition or an established fact. Reaching a negative value, a fraction or an irrational number is not contradictory unless the context forbids it.

Do not assume what you are trying to prove

Section titled “Do not assume what you are trying to prove”

To prove that 2\sqrt{2} is irrational, begin by assuming it is rational. Starting with “let 2\sqrt{2} be irrational” is circular and proves nothing.

Do not end with only “contradiction”. State the conflict, such as “both aa and bb are even, contradicting that a/ba/b is in lowest terms”.

  1. Write the negation of “for every real xx, x2+1>0x^2+1>0”.
  2. Prove by contradiction that there is no smallest positive real number.
  3. Let xx be irrational and rr be a non-zero rational number. Prove that rxrx is irrational.
  4. A student trying to prove that there are infinitely many primes says that p1p2pn+1p_1p_2\cdots p_n+1 must be prime. Explain the error and repair the argument.
  1. There exists a real xx such that x2+10x^2+1\leq0.
  2. Suppose ss is the smallest positive real number. Then s/2s/2 is positive and s/2<ss/2<s, contradicting the supposed minimality of ss. Hence no smallest positive real number exists.
  3. Suppose rxrx is rational, say rx=qrx=q. Since r0r\ne0, x=q/rx=q/r. The quotient of rational numbers with non-zero denominator is rational, contradicting that xx is irrational. Therefore rxrx is irrational.
  4. The constructed number need not be prime. However, it is greater than 11, so it has a prime factor. No listed prime divides it because division by each leaves remainder 11. Its prime factor is therefore absent from the allegedly complete list, which gives the required contradiction.

Practise deciding when a direct argument is more natural in proof by deduction and exhaustion. Then learn how one carefully chosen case can disprove a universal claim in disproof by counterexample. For more exact-number arguments, revisit surds.