Proof by Contrapositive

Prove P → Q by proving the equivalent ¬Q → ¬P

Welcome to Proof by Contrapositive!

Proof by contrapositive is an elegant technique based on a fundamental fact of logic: the statement "if P then Q" is logically equivalent to "if not Q then not P." Instead of proving P → Q directly, we can prove ¬Q → ¬P, which is often easier! This isn't a roundabout method—it's proving the exact same thing in a different form.

What You'll Learn

1

Logical Equivalence

Why P → Q and ¬Q → ¬P are the same statement in different forms

2

Contrapositive vs Contradiction

Understand when to use each technique and how they differ

3

Forming Contrapositives

Practice negating statements correctly to build the contrapositive

4

Classic Examples

Work through proofs like "if n² is even, then n is even"

The Logic of Contrapositive

See why P → Q and ¬Q → ¬P are logically equivalent. They have the same truth values in every possible scenario!

Original: P → Q
If n² is even, then n is even

Truth Table: Why They're Equivalent

PQP → Q¬Q¬P¬Q → ¬PMatch?
TTTFFT
TFFTFF
FTTFTT
FFTTTT

Notice: P → Q and ¬Q → ¬P have identical truth values in every row!

Key Insight

P → Q ≡ ¬Q → ¬P. These are not just "related"—they're the exact same statement in different logical clothing. Proving one automatically proves the other. This is why contrapositive is so powerful: you're not taking a detour, you're walking the same path in reverse!

The Contrapositive Method

To prove an implication P → Q using the contrapositive:

  1. Form the contrapositive: Write down ¬Q → ¬P (negate both parts and swap them).
  2. Assume ¬Q: Start by assuming Q is false.
  3. Prove ¬P: Use logical deduction to show P must also be false.
  4. Conclude: Since ¬Q → ¬P is proven, P → Q is also proven (they're equivalent!).

Why Does This Work?

The implication P → Q is only false when P is true and Q is false. The contrapositive ¬Q → ¬P is false in exactly the same situation. They have identical truth tables!

When to Use It?

Use contrapositive when the negation of Q gives you something concrete to work with, or when proving P → Q directly seems awkward. It's especially useful for statements about divisibility, parity, and properties of numbers.

Contrapositive vs Contradiction

These two techniques are often confused! Let's clarify the differences and practice choosing the right approach.

AspectContrapositiveContradiction
What you proveAn equivalent statement (¬Q → ¬P)The original statement (P) by showing ¬P is impossible
What you assume¬Q (the negation of the conclusion)¬P (the negation of what you want to prove)
What you derive¬P (the negation of the hypothesis)A logical impossibility (X ∧ ¬X)
Type of proofDirect proof of an equivalent statementIndirect proof via impossibility
Best used when¬Q gives useful concrete informationDirect/contrapositive seem hard, or proving existence/uniqueness

Contrapositive Flow

1
Want to prove: P → Q
2
Instead prove: ¬Q → ¬P
3
Assume ¬Q
4
Derive ¬P
Done! (P → Q proven)

Contradiction Flow

1
Want to prove: P
2
Assume ¬P
3
Derive consequences...
4
Reach impossibility (X ∧ ¬X)
Done! (P must be true)

Practice: Which Method is Best?

Question 1 of 5

Prove: "If n² is odd, then n is odd"

What's the best proof technique?

Step-Through Contrapositive Proofs

Walk through classic contrapositive proofs step by step. See how assuming ¬Q leads us to prove ¬P.

Original (P → Q):
If n² is even, then n is even
Contrapositive (¬Q → ¬P):
If n is odd, then n² is odd
Step 1 of 7State the Goal
Setup

State the Goal

We want to prove: If n² is even, then n is even.

P → Q where P = "n² is even", Q = "n is even"
Setup
Assumption
Derivation
Conclusion

Common Mistakes to Avoid

Confusing Contrapositive with Converse

The converse of P → Q is Q → P (NOT equivalent!). The contrapositive is ¬Q → ¬P (equivalent). Don't mix them up—the converse is a completely different statement.

Incorrect Negation

Be careful when negating statements. The negation of "n is even" is "n is odd" (not "n is negative"). The negation of "for all x" is "there exists x such that not..."

Using Contrapositive When Direct Proof is Easier

Sometimes a direct proof is simpler! Don't use contrapositive just because you can. Choose the approach that makes the proof clearest and most natural.

Key Takeaways

  • 1.P → Q is logically equivalent to ¬Q → ¬P. Proving either one proves both!
  • 2.Contrapositive proofs are direct proofs of an equivalent statement, unlike contradiction which seeks an impossibility.
  • 3.To form the contrapositive: negate both P and Q, then swap their positions in the implication.
  • 4.Use contrapositive when ¬Q gives you useful information to work with, or when the direct proof seems unnatural.