Proof Techniques I: Direct, Contrapositive, and Contradiction
1426 words
7 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Proof Techniques I: Direct, Contrapositive, and Contradiction ## 🎯 Learning Objectives - Construct **direct proofs** by logical deduction from premises - Use **proof by contrapositive** to prove conditional statements - Apply **proof by contradiction** when direct approaches fail - Recognise which technique is ap...

Proof Techniques I: Direct, Contrapositive, and Contradiction
🎯 Learning Objectives
- Construct direct proofs by logical deduction from premises
- Use proof by contrapositive to prove conditional statements
- Apply proof by contradiction when direct approaches fail
- Recognise which technique is appropriate for different statements
- Write complete, well-structured proofs
3.1 Intuition: The Art of Mathematical Argument
A proof is a convincing logical argument that a statement is true. Unlike experimental science (which collects evidence), mathematics demands certainty — a proof must leave no room for doubt.
🔑 Key Insight: Different proof techniques are different strategies for building an irrefutable case. The right technique depends on the structure of what you're trying to prove.
3.2 Direct Proof
Idea: Assume the premises are true. Deduce the conclusion step by step, using definitions, axioms, and previously established results.
Structure
- Assume P is true.
- Use logical reasoning to deduce Q.
- Conclude P→Q.
Example 1: Sum of Even Numbers
Theorem: The sum of two even integers is even.
Proof: Let m and n be even integers.
- By definition, m=2a and n=2b for some integers a,b.
- Then m+n=2a+2b=2(a+b).
- Since a+b is an integer, m+n is even (divisible by 2). □
Example 2: Product of Odd Numbers
Theorem: The product of two odd integers is odd.
Proof: Let m and n be odd integers.
- By definition, m=2a+1 and n=2b+1 for some integers a,b.
- mn=(2a+1)(2b+1)=4ab+2a+2b+1=2(2ab+a+b)+1.
- Since 2ab+a+b is an integer, mn is odd. □
Example 3: Divisibility
Theorem: If a∣b and b∣c, then a∣c.
Proof: Assume a∣b and b∣c.
- By definition, there exist integers k1,k2 such that b=ak1 and c=bk2.
- Then c=(ak1)k2=a(k1k2).
- Since k1k2 is an integer, a∣c. □
3.3 Proof by Contrapositive
Idea: Instead of proving P→Q, prove its contrapositive ¬Q→¬P. They are logically equivalent.
When to Use
When the conclusion (Q) gives more useful information than the premise (P).
Example 1: Squares and Parity
Theorem: If n2 is even, then n is even.
Contrapositive: If n is odd, then n2 is odd.
Proof (of contrapositive): Assume n is odd. Then n=2k+1 for some integer k. n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1. Thus n2 is odd. □
Example 2: Inequality
Theorem: If x+y≥2, then at least one of x,y is ≥1.
Contrapositive: If x<1 and y<1, then x+y<2.
Proof (of contrapositive): Assume x<1 and y<1. Then x+y<1+1=2. □
Example 3: Function Injectivity
Theorem: If f(x)=3x+2 is injective (one-to-one).
Contrapositive approach: Show that if x1=x2, then f(x1)=f(x2).
Proof: Assume x1=x2. Then 3x1=3x2, so 3x1+2=3x2+2, i.e., f(x1)=f(x2). □
3.4 Proof by Contradiction
Idea: Assume the statement is false, then derive a logical contradiction. Since the contradiction cannot be true, the original statement must be true.
Structure
- Assume ¬S (the negation of what you want to prove).
- Reason logically until you reach a contradiction (P∧¬P).
- Conclude S must be true.
When to Use
When proving something is impossible or must exist — especially for "there is no" or "at least one" statements.
Example 1: Irrationality of 2
Theorem: 2 is irrational.
Proof: Assume, for contradiction, that 2 is rational.
- Then 2=ba where a,b are integers in lowest terms (coprime).
- Squaring: 2=b2a2⟹a2=2b2.
- So a2 is even, hence a is even (by contrapositive example above). Write a=2k.
- Then (2k)2=2b2⟹4k2=2b2⟹b2=2k2.
- So b2 is even, hence b is even.
- But then a and b are both even, contradicting that ba was in lowest terms. Thus our assumption was false — 2 is irrational. □
Example 2: Infinitely Many Primes
Theorem: There are infinitely many prime numbers.
Proof: Assume, for contradiction, that there are only finitely many primes: p1,p2,…,pn.
- Consider N=p1⋅p2⋅⋯⋅pn+1.
- N is greater than any pi, so N is not prime (by our assumption that the list is complete).
- Therefore N must have a prime divisor p.
- p must be one of p1,…,pn (since we assumed these are all primes).
- But p divides both p1⋯pn and N, so p divides N−p1⋯pn=1.
- Contradiction: a prime cannot divide 1. Thus our assumption was false — there are infinitely many primes. □
Example 3: Pigeonhole Principle
Theorem: In any set of 3 integers, there exist two whose sum is even.
Proof: Assume, for contradiction, that no two have even sum.
- Parity can be even or odd. By pigeonhole principle, among 3 numbers, at least two have the same parity (both even or both odd).
- The sum of two evens is even; the sum of two odds is even.
- Contradiction to our assumption. □
3.5 Choosing the Right Technique
(Diagram)
📊 Technique Comparison
| Technique | Structure | Best For | Example |
|---|---|---|---|
| Direct | P→Q | Clear logical path | Sum of evens is even |
| Contrapositive | ¬Q→¬P | ¬Q gives useful info | If n2 even then n even |
| Contradiction | Assume ¬S , derive ⊥ | Impossibility, existence | 2 irrational |
✅ Practice Questions
Q1: Prove that if n is an integer and 3n+2 is even, then n is even.
SolutionWe'll use contrapositive: If n is odd, then 3n+2 is odd. Assume n is odd, so n=2k+1. 3n+2=3(2k+1)+2=6k+3+2=6k+5=2(3k+2)+1. Thus 3n+2 is odd. By contrapositive, if 3n+2 is even then n is even. Q2: Prove that if a and b are rational numbers, then a+b is rational. SolutionDirect proof: Let a=qp and b=sr where p,q,r,s are integers, q=0, s=0. a+b=qp+sr=qsps+qr. Since ps+qr and qs are integers and qs=0, a+b is rational. Q3: Prove that 32 is irrational. SolutionAssume 32=ba in lowest terms. Then 2=b3a3, so a3=2b3. Thus a3 is even, so a is even. Write a=2k. Then 8k3=2b3⟹4k3=b3, so b3 is even, so b is even. Contradiction — a and b both even, but they were in lowest terms. Q4: Prove that between any two distinct rational numbers there is another rational number. SolutionLet r<s be rational numbers. Their average m=2r+s is rational (sum of rationals divided by 2). And r<m<s because m−r=2s−r>0 and s−m=2s−r>0. Q5: Prove that for any integer n, n2 is divisible by 3 iff n is divisible by 3. Solution(←) If n=3k, then n2=9k2=3(3k2), divisible by 3. (→) We prove the contrapositive: if n is not divisible by 3, then n2 is not divisible by 3. If n is not divisible by 3, then n=3k+1 or n=3k+2. Case 1: n=3k+1, then n2=9k2+6k+1=3(3k2+2k)+1, remainder 1 mod 3. Case 2: n=3k+2, then n2=9k2+12k+4=3(3k2+4k+1)+1, remainder 1 mod 3. In both cases, n2≡1(mod3), so not divisible by 3. Join Discord PreviousQuantifier ApplicationsNextLogical Fallacies