Ch2 Proof Techniques E28093 2
Ch2 Proof Techniques E28093 2
Cha p te r 2 :
Proof Techniques
Introduction to Proofs
(In Book: Chapter 1-sec 1.8)
2
Introduction to Proofs
3
the
Axioms
truth or postulates
of a theorem. (statement
And the assumed
statements toused
to be be in proofs include:
Proven
AxiomsHypothesistheorems
true without proof)
o Ex: If x is positive integer then x+1 is positive integer.
Direct proofs
Proof by Contraposition
Vacuous Proofs
Trivial Proofs
Proofs by Contradiction
Proof by cases
Methods of proving theorems – Direct
proofs
7
Two integers have the same parity when both are even or both are
odd; they have opposite parity when one is even and the other is odd.
Methods of proving theorems – Direct
proofs
9
Example Use an indirect proof to show that “if n2 is odd then n is odd”
Proof:
The contraposition is “if n is not odd then n2 is not odd ”
=> We Assume that n is not odd i.e., n is (hypothesis)
even
=> n = 2k , where k is some integer.
(definition of even number)
=> n2 = (2k)2 = 4k2 = 2(2k2)
Since r = 2k2 is an integer (Axiom)
=> n2 = 2r (definition of not odd number)
Thus , if n2 is odd then n is odd is true
Methods of proving theorems – Proof by
Contraposition
14
Example Prove that if n = ab where a and b are positive integers then
a n or b n
Proof: Let p=“an”, q=“bn” and r=“n=ab”
Example Show that the proposition P(0) is true, where P(n) is “If n > 1, then n2 >
n”
and theNote
Proof: domain
thatconsists of 0all>integers.
P(0) is “If 1, then 02 > 0.” We can show P(0) using a
vacuous proof. Indeed, the hypothesis 0 > 1 is false. This tells us that P(0) is
automatically
true.that if he is alive and he is dead then the sun is ice cold
Example Prove
Proof: Since the hypothesis is always false the implication is vacuously true.
Methods of proving theorems – Trivial Proofs
16
p q pq
Trivial Proofs A conditional statement p q is TRUE if q F F T
is True . If we can show that q is True, then we have a proof, F T T
T F F
called Trivial proof, of the conditional statement p q . T T T
Example Let P(n) be “If a and b are positive integers with a ≥ b, then an ≥ bn
where the domain consists of all nonnegative integers. Show that P(0) is true.
Proof: The proposition P(0) is “If a ≥ b, then a0 ≥ b0.” Because a0 = b0 = 1, the
conclusion
of the conditional statement “If a ≥ b, then a0 ≥ b0” is true. Hence, this conditional
statement,
Example which
Proveisthat
P(0), is true
if x=2 then x2 0 for all real numbers
Proof: Since x2 0 is true then the implication is trivially true. (we didn’t
use the fact x=2)
Example Use a trivial proof to show that if n > 1 then n2 ≥ n for all integers
Methods of proving theorems – Proofs by
Contradiction
17
Proofs by Contradiction
Let p be the statement we want to prove is true, assuming not p (p )and show a
contradiction p q
Definition: The real number r is rational if there exist integers p and q with q 0
such that r = p/q and p and q have no common factors A real number that is not
rational is called irrational
2 = a/b for some integers a and b (b0) and a and b have no common
factors We can square both sides of the equation=>
2 2==a/b
a2/b2
Methods of proving theorems – Proofs by
Contradiction
18
Example Show that the statement: “Every positive integer is the sum
of the squares of two integers” is false.
To show that this statement is false, we look for a counterexample which is
3 because we cannot write 3 as the sum of the squares of two integers.
To show this is the case, note that the only perfect squares not exceeding 3
are:
(02 = 0 & 12 = 1), but 3 1+0. Therefore the statement is false
Methods of proving theorems – proof by cases
22
Proof by cases : A proof by cases must cover all possible cases that
Example Use a proof by cases to prove that |xy| = |x||y|, where x and y real
numbers.Hint: Consider all 4 cases: x and y positive or negative
Proof: using the fact that |a| = a if a 0 and |a| = -a if a 0 , there are four cases
for x and y :
Case 1: x and y both are nonnegative: xy 0 so that |xy| = xy = |x||y|
Case 2 : x is nonnegative and y is negative: xy 0 so that |xy| = - xy = x(-y) = |x||y|
Case 3 : x is negative and y is nonnegative: xy 0 so that |xy| = - xy = (-x)y = |x||y|
Case 4 : x and y both are negative xy 0 so that |xy| = xy = (-x)(-y) = |x||y|
Mistakes in Proofs
24
There are many common errors made in constructing mathematical and the most
common errors are mistakes in arithmetic and basic algebra.
Each step of a mathematical proof needs to be correct and the conclusion needs
to
follow logically from the steps that precede it.
Be careful!
Many mistakes result from the introduction of steps
that
do not logically follow from those that precede it
Mistakes in Proofs
25