Proof by Contrapositive

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

Proof by Contrapositive

Proof by contrapositive exploits a fundamental fact of logic: the statement P → Q is logically equivalent to ¬Q → ¬P. Instead of proving P → Q directly, we prove ¬Q → ¬P. This is not a roundabout method -- it is proving the exact same thing in a different form.

Use contrapositive when the negation of Q gives you something concrete to work with, or when the direct path from P to Q feels unnatural.

Logical Equivalence

See why P → Q and ¬Q → ¬P have identical truth tables. They are false in exactly the same situation: when P is true and Q is false.

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!

Key insight: Do not confuse the contrapositive (¬Q → ¬P) with the converse (Q → P). The converse is a completely different statement and is NOT equivalent to the original.

Contrapositive vs Contradiction

These two techniques are often confused. Contrapositive proves an equivalent statement directly; contradiction seeks an impossibility. See the difference side-by-side.

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?

Key insight: A contrapositive proof is really a direct proof of an equivalent statement. It never needs to reach a contradiction -- it just proves ¬Q → ¬P in a straight line.

Contrapositive Proof Walkthrough

Walk through the classic example: "if n² is even, then n is even." The direct proof is awkward, but the contrapositive -- "if n is odd, then n² is odd" -- is a clean two-line calculation.

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

Key insight: Contrapositive shines for statements about divisibility and parity. "If n is odd" immediately gives n = 2k+1, which is easy to square and analyze.

Key Takeaways

  • P → Q is equivalent to ¬Q → ¬P -- proving either one proves both
  • Not the converse -- the converse Q → P is a different statement entirely
  • A direct proof in disguise -- contrapositive is a straight-line proof of an equivalent implication
  • Use when ¬Q is concrete -- especially for divisibility, parity, and properties of numbers