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(k1โk2โ).
- Since k1โk2โ 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