An indirect proof does not follow the most direct route from hypothesis to conclusion. Two important forms are proof by contradiction and proof by contrapositive. Their logical structures are different, even though both can simplify a difficult argument.

Proof by contradiction

Proof by contradiction assumes that the target statement is false and derives an impossibility. The contradiction must be explicit: it should violate a definition, an established theorem, or one of the hypotheses.

ExampleThe irrationality of $\\sqrt{2}$

Prove that the diagonal of a unit square, whose length is 2\sqrt{2}, is irrational.

Proof

Assume for contradiction that 2=p/q\sqrt{2}=p/q, where pp and qq are coprime integers and q0q\ne0. Squaring gives

p2=2q2.p^2=2q^2.

Thus p2p^2 is even, so pp is even. Write p=2rp=2r. Substitution gives q2=2r2q^2=2r^2, so qq is even as well. This contradicts the assumption that pp and qq are coprime. Therefore 2\sqrt{2} is irrational.

The same lowest-terms argument proves that 5\sqrt{5} is irrational. The key number-theoretic fact is that if a prime divides a square, it divides the number being squared.

ExerciseNo smallest positive rational

Prove that there is no smallest positive rational number.

Solution

Suppose p/qp/q were the smallest positive rational number, with p,q>0p,q>0. Then p/(2q)p/(2q) is also positive and rational, but

0<p2q<pq.0<\frac{p}{2q}<\frac{p}{q}.

This contradicts the assumed minimality.

Proof by contrapositive

To prove an implication PQP\to Q, it is enough to prove the logically equivalent implication

¬Q¬P.\neg Q\to\neg P.

For example, to prove “if n2n^2 is even, then nn is even,” prove instead that an odd integer has an odd square. If n=2k+1n=2k+1, then

n2=2(2k2+2k)+1,n^2=2(2k^2+2k)+1,

which is odd. Hence n2n^2 being even forces nn to be even.

ExerciseA product that is odd

Prove that if abab is odd for integers aa and bb, then both aa and bb are odd.

Solution

Prove the contrapositive. If either factor is even, say a=2ka=2k, then

ab=2(kb),ab=2(kb),

which is even. Therefore an odd product cannot have an even factor, so both factors are odd.

Contrapositive proof directly proves an equivalent implication. Contradiction proof instead assumes the negation of the target and derives an impossible statement. Keeping those two patterns distinct makes the proof strategy easier to audit.