A mathematical proof is an Inferential argument for a mathematical statement. It uses previously established statements, such as theorems, and follows logically sound rules. In mathematics, we are not looking for “evidence” (as in science), but for absolute certainty.
Direct Proof
In a direct proof, we assume is true and use logic to show that must follow.
Example: Prove that if is an even integer, then is even.
Assume is even. By definition, for some integer .
Square both sides: .
Rewrite the result: .
Since is an integer, is in the form , and thus is even.
Proof by Contradiction
To prove , we assume is false and show that this leads to an impossible logical contradiction ( or ).
Example: Prove that is irrational.
Assume is rational. Then in lowest terms.
.
This means is even, so must be even ().
.
This means is even, so must be even.
Contradiction: If both and are even, the fraction was not in lowest terms. Thus, the original assumption must be false.
Mathematical Induction
Induction is like a row of falling dominoes. To prove a statement is true for all :
Base Case: Prove is true.
Inductive Step: Assume is true (the “Inductive Hypothesis”) and show that must be true.
Let’s test the formula for the sum of the first integers: .
Interactive Lab
# Testing the Sum Formula: n(n+1)/2
def sum_formula(n):
return n * (n + 1) // 2
def sum_manual(n):
return sum(range(1, n + 1))
# Let's check if they match for various n
n_values = [1, 10, 100, 1000]
results = {n: (sum_manual(n) == sum_formula(n)) for n in n_values}
print("Results for various n:")
for n, correct in results.items():
print(f"n={n}: Match? {correct}")
python
1# Testing the Sum Formula: n(n+1)/2
2def sum_formula(n):
3return n *(n +1)// 2
4
5def sum_manual(n):
6returnsum(range(1, n +1))
7
8# Let's check if they match for various n
9n_values =[1, 10, 100, 1000]
10results ={n: (sum_manual(n)== sum_formula(n))for n in n_values}
11
12print("Results for various n:")
13for n, correct in results.items():
14print(f"n={n}: Match? {correct}")
15
By proving the inductive step, we show that if it works for , it guarantees work for , creating an infinite chain of truth.
Exercises
Knowledge Check
What is the first step in a Proof by Contradiction?
Answer: Assume the negation of the statement is true
In proof by contradiction (Reductio ad absurdum), we assume the conclusion is false and derive a contradiction.
What is the first step in a Proof by Contradiction?
Knowledge Check
If we want to prove that 'All prime numbers are odd' is FALSE, what do we need?
Answer: A counterexample
To disprove a universal statement (for all x, P(x)), we only need a single counterexample. In this case, the number 2 is prime and even.
If we want to prove that 'All prime numbers are odd' is FALSE, what do we need?