0% found this document useful (0 votes)
7 views30 pages

4 Proof

The document discusses various methods of mathematical proof, including direct proofs, proofs by contradiction, contrapositive proofs, and proofs by cases. It provides examples to illustrate these methods, such as proving that the sum of an odd and an even integer is odd, and disproving a statement using a counterexample. Additionally, it covers proofs of equivalence, demonstrating how to prove statements that are true in both directions.

Uploaded by

CHA ZI YU Moe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views30 pages

4 Proof

The document discusses various methods of mathematical proof, including direct proofs, proofs by contradiction, contrapositive proofs, and proofs by cases. It provides examples to illustrate these methods, such as proving that the sum of an odd and an even integer is odd, and disproving a statement using a counterexample. Additionally, it covers proofs of equivalence, demonstrating how to prove statements that are true in both directions.

Uploaded by

CHA ZI YU Moe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

Proof

WIX1001 Computing Mathematics 1


Introduction


Proof : An argument that establishes the
truth of a theorem.

Logic : tool for the analysis of proofs.

Rules of inference - formal proof

Besides, there are many ways to proof a
theorem.

2 / 30
L I m CK (2019)
Direct Proofs

Theorems to proof are often in the form:
P → Q is true, or
if P, then Q is true

Direct proofs start with assume P is true.

What we need to do is to directly proof that Q
is true (to keep P → Q true)

If Q is false, P → Q is false.

3 / 30
L I m CK (2019)
Example

Give a direct proof of the following statement :


“ For all integers m and n, if m is odd and n is even,
then m + n is odd.”

Solution:
P : m is odd and n is even

Q : m+n is odd

4 / 30
L I m CK (2019)
Example (cont’)

Give a direct proof of the following statement :


“ For all integers m and n, if m is odd and n is even,
then m + n is odd.”

Solution:
P : m is odd and n is even hypothesis

Q : m+n is odd conclusion


5 / 30
L I m CK (2019)
Example (cont’)

Give a direct proof of the following statement :


“ For all integers m and n, if m is odd and n is even,
then m + n is odd.”

Solution:
P : m is odd and n is even hypothesis
with the hypothesis, we can assume:
m=2k1+1, k1∈Z and n=2k2, k2∈Z

Q : m+n is odd conclusion


6 / 30
L I m CK (2019)
Example (cont’)

Give a direct proof of the following statement :


“ For all integers m and n, if m is odd and n is even,
then m + n is odd.”

Solution:
P : m is odd and n is even hypothesis
with the hypothesis, we can assume:
m=2k1+1, k1∈Z and n=2k2, k2∈Z
so, m+n = 2k1+1 + 2k2 = 2(k1+k2) + 1
= 2k3 + 1 where k3=k1+k2 ∈Z
Q : m+n is odd conclusion
7 / 30
L I m CK (2019)
Example
Proof that for all integers n, 4(n2 + n + 1) − 3n2 is a
perfect square.

8 / 30
L I m CK (2019)
Example
Proof that for all integers n, 4(n2 + n + 1) − 3n2 is a
perfect square.


If n is an integer,
4(n2 + n + 1) − 3n2 = 4n2 + 4n + 4 − 3n2
= n2 + 4n + 4
= (n+2)2
since n is an integer, n+2 is also an integer,
therefore, (n+2)2 is a perfect square. Proved.

9 / 30
L I m CK (2019)
Example
Disproving with counterexample

Disprove: if ∀n ∈ Z+ , 2n + 1 is a prime
number.

For n=1, 2, 4 and etc, we find:
► 21 + 1 = 3 is prime
► 22 + 1 = 5 is prime
► 24 + 1 = 17 is prime
► However, a counterexample, n=3

23 + 1 = 9 is not prime

With this counterexample, we disprove the
L I m CKtheorem.
12 / 30
(2019)
Exercise

Using direct proof, show that if n is odd then


3n+2 is odd.

13 / 30
L I m CK (2019)
Proof by Contradiction

We want to proof that P→Q is true.

Idea:
► Start with P is true.
► If P→Q is true, P→~Q is false
► If we prove that P→~Q is true, we can
reject the theorem P→Q is true
► But if we prove that P→~Q is false, we
accept that P→Q is true, by contradiction.

14 / 30
L I m CK (2019)
Example
By Contradiction, prove that for every n ∈ Z, if n2 is
even, then n is even.

15 / 30
L I m CK (2019)
Example
By Contradiction, prove that for every n ∈ Z, if n2 is
even, then n is even.

P : n2 is even Q : n is even ~Q : n is odd

Because of P, we can write n2 = 2k , k∈ Z
Because of ~Q, we can write n=2m+1, m∈Z

If P→~Q is true,
n2 = 2k = (2m+1)2
= 4m2 + 4m +1
= 2(2m2 + 2m) + 1 (n2 = 2k is not even!)

The result shows that P→~Q cannot be true

Thus, by contradiction, we proved that P→Q is true.
16 / 30
L I m CK (2019)
Exercise

With proof by contradiction, show that if 3n +


2 is odd then n is odd.

17 / 30
L I m CK (2019)
Proof by Contrapositive

Recall that P→Q is equivalent to ~Q→~P

Instead of showing P→Q directly, we do an
indirect way, show ~Q→~P.

If ~Q→~P is true, P→Q is also true.

19 / 30
L I m CK (2019)
Example

Irrational numbers are all the real numbers which


are not rational numbers.

Proof :
“for all x ∈ R, if x2 is irrational, then x is irrational”

20 / 30
L I m CK (2019)
Example

Irrational numbers are all the real numbers which


are not rational numbers.

Proof by contrapositive,
“for all x ∈ R, if x2 is irrational, then x is irrational”

So, instead of direct proof, we proof:
“if x is rational, then x2 is rational”

21 / 30
L I m CK (2019)
Example

Irrational numbers are all the real numbers which


are not rational numbers.

Proof by contrapositive,
“for all x ∈ R, if x2 is irrational, then x is irrational”

So, instead of direct proof, we proof:
“if x is rational, then x2 is rational”

If x is rational, x = a/b, where a,b∈ Z


x2 = a2/b2, is rational number.
By contrapositive, we have proved the statement.
22 / 30
L I m CK (2019)
Exercise

With proof by contrapositive, show that if 3n +


2 is odd then n is odd.

23 / 30
L I m CK (2019)
Proof by cases

When the original hypothesis naturally
divides itself into various cases.

For example, when the hypothesis include “x
is a real number”, we can divide into cases:
► x is positive real number
► x is negative real number
► x is 0

Sometimes the number of cases to prove is
finite and not too large, so we can check
them all one by one. We call this type of
proof exhaustive proof.
L I m CK (2019)
24 / 30
Example

Prove that for every real number x, x ≤ |x|.

25 / 30
L I m CK (2019)
Example

Prove that for every real number x, x ≤ |x|.


For x is positive real number, x = |x|

For x is 0, 0 = |0|

For x is negative real number, x < |x|

Combining all the cases, we can conclude
that for every real number x, x ≤ |x|.

26 / 30
L I m CK (2019)
Example

Prove that 2m2 + 3n2 = 40 has no solution in


positive integers.
(Note that 40 is not a large number and m,n
are positive integer.)

27 / 30
L I m CK (2019)
Example

Prove that 2m2 + 3n2 = 40 has no solution in


positive integers.
(Note that 40 is not a large number and m,n
are positive integer.)

Assume n close to 0, 2m2 < 40, m<5

Assume m close to 0, 3n2 < 40, n<4

We can give exhaustive proof.

28 / 30
L I m CK (2019)
Proofs of Equivalence

Some theorems are of the form p if and only
if q. Such theorems are proved by using the
equivalence:
p ↔ q ≡ (p → q) ∧ (q → p)

that is, to prove “p if and only if q,” prove “if
p then q” AND “if q then p.”

29 / 30
L I m CK (2019)
Example
By equivalence, prove that “for every integer n, n is odd if
and only if n−1 is even”.

30 / 30
L I m CK (2019)
Example
By equivalence, prove that “for every integer n, n is odd if
and only if n−1 is even”.

We need to prove that:
► if n is odd then n − 1 is even (1)
► if n − 1 is even then n is odd (2)

31 / 30
L I m CK (2019)
Example
By equivalence, prove that “for every integer n, n is odd if
and only if n−1 is even”.

We need to prove that:
► if n is odd then n − 1 is even (1)
► if n − 1 is even then n is odd (2)

First, we prove (1)
► If n is odd, then n = 2k + 1
► n-1 = (2k+1) - 1 = 2k is even

32 / 30
L I m CK (2019)
Example
By equivalence, prove that “for every integer n, n is odd if
and only if n−1 is even”.

We need to prove that:
► if n is odd then n − 1 is even (1)
► if n − 1 is even then n is odd (2)

First, we prove (1)
► If n is odd, then n = 2k + 1
► n-1 = (2k+1) - 1 = 2k is even

Next, we prove (2)
► If n − 1 is even, then n − 1 = 2k
► n = n-1 + 1 = 2k + 1 is odd

We have proved P→Q and Q→P, so P↔Q is true.
33 / 30
L I m CK (2019)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy