Direct Proof
To prove p→q: Assume p is true, then show q must be true.
Structure
- Assume the hypothesis p
- Use definitions, known theorems, and logical reasoning
- Conclude q
Example
Theorem: If n is odd, then n2 is odd.
Proof:
- Assume n is odd
- Then n=2k+1 for some integer k
- n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1
- Let m=2k2+2k, which is an integer
- Then n2=2m+1, which is odd □
Proof by Contraposition
To prove p→q: Prove the contrapositive ¬q→¬p.
p→q≡¬q→¬p
When to Use
Use when assuming ¬q gives useful information.
Example
Theorem: If n2 is even, then n is even.
Proof (by contraposition):
- We prove: If n is odd, then n2 is odd
- Assume n is odd, so n=2k+1
- n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1
- Thus n2 is odd □
Proof by Contradiction
To prove p: Assume ¬p and derive a contradiction.
Structure
- Assume ¬p (the negation of what we want to prove)
- Derive a statement that is always false
- Conclude p must be true
Example
Theorem: 2 is irrational.
Proof:
- Assume 2 is rational
- Then 2=ba where a,b∈Z, b=0, gcd(a,b)=1
- 2=b2a2, so a2=2b2
- Thus a2 is even, so a is even (by contraposition of previous theorem)
- Let a=2c, then 4c2=2b2, so b2=2c2
- Thus b2 is even, so b is even
- But if both a and b are even, gcd(a,b)≥2
- This contradicts gcd(a,b)=1
- Therefore 2 is irrational □
Proof by Cases
When proving p→q and p can be split into cases:
(p1∨p2∨⋯∨pn)→q
Prove each case: p1→q, p2→q, etc.
Example
Theorem: ∣xy∣=∣x∣⋅∣y∣
Proof: Consider all combinations of signs of x and y:
- Case 1: x≥0 and y≥0: ∣xy∣=xy=∣x∣∣y∣ ✓
- Case 2: x≥0 and y<0: ∣xy∣=−xy=x(−y)=∣x∣∣y∣ ✓
- Case 3: x<0 and y≥0: ∣xy∣=−xy=(−x)y=∣x∣∣y∣ ✓
- Case 4: x<0 and y<0: ∣xy∣=xy=(−x)(−y)=∣x∣∣y∣ ✓ □
Existence Proofs
Constructive Proof
Explicitly find an example that satisfies the condition.
Example: Prove there exists an irrational number r such that r2 is rational.
Consider r=22. Either it's rational or irrational.
- If rational, we're done
- If irrational, let r=22, then r2=(22)2=22=2 ✓
Nonconstructive Proof
Prove existence without finding a specific example.
Uniqueness Proofs
Existence and Uniqueness
Prove ∃!xP(x):
- Existence: Show ∃xP(x)
- Uniqueness: Show if P(a) and P(b), then a=b
Example
Theorem: There is a unique real number x such that x+3=5.
Proof:
- Existence: x=2 satisfies 2+3=5 ✓
- Uniqueness: Suppose a+3=5 and b+3=5
- Then a+3=b+3
- Thus a=b □
Common Mistakes to Avoid
- Circular reasoning: Using what you're trying to prove
- Assuming the converse: Proving q→p instead of p→q
- Proof by example: One example doesn't prove "for all"
- Incomplete case analysis: Missing cases in proof by cases