 # What Is Proof by Contrapositive?

A proof by contrapositive, or proof by contraposition, is based on the fact that $p⇒q$ means exactly the same as . This is easier to see with an example:

Example 1

If it has rained, the ground is wet.

This is a claim

 $p⇒q,$

where $p=$ “it has rained” and $q=$ “the ground is wet”. The claim

will then be as follows:

If the ground is not wet, it hasn’t been raining.

You can see that these two sentences logically express the same, but in two different ways. (In other words: They are equivalent.) Both of them say that it can’t both have rained and that the ground is not wet at the same time.

Theory

### TheContrapositive

is the contrapositive of the implication $p⇒q$.

$p⇒q$ and are equivalent. This means that if you can prove that , then you have also proven that $p⇒q$. This is useful because sometimes it is easier to prove than $p⇒q$.

Theory

### ProofbyContrapositive

To prove that $p⇒q$, it suffices to prove that

So, implies .

With proofs by contrapositive, you’re supposed to make a logical chain. You begin with . The claim needs to imply something, which again implies something else, and so on until you end up implying , where is what you were supposed to prove from .

Example 2

Take a look at this claim about the kinship of David Beckham and Brooklyn Beckham:

Brooklyn is David’s son implies that David is Brooklyn’s dad.

$p⇒q$

You can rewrite this and claim something that is still true by logic (you know that this is not informative):

David is not Brooklyn’s dad implies that Brooklyn is not David’s son.

The claim is true by logic, because if David wasn’t Brooklyn’s dad, then Brooklyn wouldn’t be David’s son either.

Example 3

Prove that the square root of an irrational number is an irrational number

In this case you want to show that if a number $a$ is irrational, then the number $\sqrt{a}$ is also irrational. You want to show an implication. The implication you want to show is $p⇒q$, where $p=$$a$ is irrational” and $q=$$\sqrt{a}$ is irrational”. The contrapositive is , or in other words

$\sqrt{a}$ is not irrational $⇒a$ is not irrational

Since “not irrational” is the same as “can be written as a fraction”, you can begin with the implication “$\sqrt{a}$ can be written as a fraction”, and then try to show that $a$ can be written as a fraction. If you can do this, then you are done with the proof.

Write your implication as the equation $\sqrt{a}=\frac{p}{q}$. You want to show that $a$ is a fraction, then square both sides. Then you get $a$ on one side, and a fraction on the other side, so you have shown that $a$ is not irrational. This is the same as the contrapositive . You have shown that

Mathematically you can write the reasoning like this: Assume

Take the square root on both sides and get
 $a=\frac{{p}^{2}}{{q}^{2}}.$

It shows that $a$ can be written as a fraction, such that $a$ is not an irrational number. You have shown that

which is the contrapositive version of what you wanted to show, which was that if $a$ is an irrational number, $\sqrt{a}$ must be an irrational number.

Q.E.D

The reason why a proof by contrapositive often works when you are constructing proofs with irrational numbers is that instead of working with claims such as “$a$ is irrational”, you can work with claims such as “$a$ is not irrational”. These are much easier to work with, because a number which is not irrational is a fraction.