Day 2: Logic and Proof: George E. Hrabovsky Mast
Day 2: Logic and Proof: George E. Hrabovsky Mast
George E. Hrabovsky
MAST
Introduction
This is the second installment of the series. Here I intend to present the ideas and
methods of proof.
Technical terms that are built out of precise statements are called formal
definitions, or just definitions. Definitions may be used as arguments in a proof.
Propositional Logic
In the table below you will find definitions and examples of the operations of the logic
of propositions. It will be understood that a proposition will be symbolized as
p, q, r, s, .... All of these symbols may be used in proofs.
Propositional
Operation
Symbol
Meaning
Eaxample
Negation
Not
Conjunction
Disjunction
Exclusive
Disjunction
Conditional
Converse
Contrapositive
Bicondictional
This Or That
This Or That
But Not Both
If p, Then q
The Converse of
If p, Then q
is If q , Then p.
pq
pq
pq
pq
q p
The
Contrapositive
of If p,
Then q is
If Not - q ,
Then Not - p.
q p
p If and Only If
q . If and only if,
is sometimes
written iff.
p q
From these symbols we can create logical formulas. The simplest formula is just the
statement
of a proposition, for example p, or if we are making a statement that a
3
From these symbols we can create logical formulas. The simplest formula is just the
statement of a proposition, for example p, or if we are making a statement that a
proposition p depends on another idea, say x we would write pHxL.
Truth Tables
Every proposition, indeed every logical formula, is either true or false. We can create a
table of these values using T for true, and F for false. When we make this array using all
possible truth values, we call it a truth table. For example, we can create the truth table
for the negation of a proposition p:
p p
T F
F T
Here is the truth table for the conjunction between two propositions p and q, where we
list all possible truth values of the propositions and apply the definition of the
conjunction to determine the resulting truth value.
p
T
F
T
F
q pq
T
T
T
F
F
F
F
F
q
T
T
T
T
F
F
F
F
r p q r
T
T
F
T
F
F
F
T
T
F
F
T
T
F
F
T
F
F
F
F
T
F
F
T
H p qL r
T
F
T
T
F
F
T
T
If two formulas have the same truth table result, then they are said to be logically
equivalent. We would write p~q if p and q are logically equivalent. If a formula is
always true, then it is called a tautology. If a formula is always false, then it is called a
contradiction.
Symbol
Meaning
Element of a Set
xX
Subset of a Set
X Y
Equal Sets
X =Y
Unequal Sets
X Y
Proper Subset
X Y
X Y and X Y .
Predicate Logic
Not all mathematical statements are propositions. Indeed,
x
2
Proof Methods
In what follows, we will identify the starting proposition, the given, as the hypothesis
and symbolize it by p. The conjecture to be proved, the conclusion, will be symbolized
by q.
5
This is the most rudimentary style of proof. The primary limitation is the amount of
work it requires, and the ever-expanding size of the resulting truth table. You begin by
producing the truth table for the hypothesis, and then the conclusion; if they are the
same, then they are logically equivalent, thus the hypothesis iff the conclusion.
Direct proof
This is at once the most effective proof and the most difficult. Here are the steps:
1.
2.
3.
4.
5.
Often this process is ended by writing Q.E.D. standing for qoud erat demonstratum,
meaning roughly, "Which was to be demonstrated."
Proof by contrapositive
The contrapositive and the conditional are logically equivalent, thus if we can prove the
contrapositive, we have proven the conditional. We begin this method of proof by
stating the conclusion.
1.
2.
3.
4.
5.
6.
7.
Mathematical induction
This requires knowing that the natural numbers are 1, 2, 3, and so on.
This requires knowing that the natural numbers are 1, 2, 3, and so on.
1. State the hypothesis.
2. Show that the conclusion is true for the case of a variable equal to one. This is
called the basis step.
3. Write your conclusion for the variable having an arbitrary value for some
unspecified natural number n.
4. Show that if the conclusion is true for n that the conclusion is also true for n + 1.
This is called the inductive step. It is possible to reverse 3 and 4, to assume the
conclusion true for n + 1 and then show that it is true for n.
5. By the Principle of Mathematical Induction the conclusion must be true for all
natural numbers (or for all cases that can be listed by the natural numbers). Q.E.D.
Counterexamples
Up to now we have considered how to construct a mathematical proof. We can also
disprove a conjecture by showing a single case where the conclusion is not true. Such an
instance is called a counterexample of the conjecture.
Mathematica Command
! expression
Explanation
Negates the expression.
Conjunction
Disjunction
e1 &&
e2 &&
...
e1 e2 ...
Exclusive
Disjunction
Conditional
Implies@p, qD
Biconditional
Equivalent@p, qD
ForAll
ForAll@x, exprD
Exists
Exists@x, exprD
We can use Mathematica to develop truth tables. We will first use the command
BooleanTable[logical expression,{logical variable 1},{logical variable 2}, ...]
BooleanTable@p && q, 8p<, 8q<D
We can make it numerical, where 1 stands for True and 0 for False by Wrapping the
command in Boole[ ].
8
We can make it numerical, where 1 stands for True and 0 for False by Wrapping the
command in Boole[ ].
Boole@BooleanTable@p && q, 8p<, 8q<DD TableForm
1 0
0 0
We can even make a pictogram of the truth table by wrapping the command in
ArrayPlot. Here the black squares represent the value True and the white the value False.
ArrayPlot@Boole@BooleanTable@p && q, 8p<, 8q<DDD
9
BooleanTable@8p, q, r, Hp && qL H! rL<D
TableForm
True
True
True
True
False
False
False
False
True
True
False
False
True
True
False
False
True
False
True
False
True
False
True
False
True
True
False
True
False
True
False
True
Or graphically,
ArrayPlot@
Boole@BooleanTable@8p, q, r, Hp && qL H! rL<DD,
ImageSize 45D
In this way it is easy to see logical equivalence and to use truth tables to prove logical
statements.
Arguments by logic
The following are arguments of logic. It is a useful exercise to prove each of these,
either by writing their truth tables, or by other methods.
Argument
Name
Definition of a
Contradiction
Definition of
a Double
Negative
H p pL
F
Formula
I pM p
Explanation
A proposition and its negation
cannot both be true.
The negation of a negation of a
proposition is the proposition.
10
H p pL
Law of the
Excluded
Middle
Definition of
Commutation
Definition of
Associativity
Law of the
Contrapositive
DeMorgan' s
Laws
Definition of a
Distribution
H p * qL
Hq * pL
H p * qL *
r p*
Hq * rL
H pqL
H q
pL
Hp *
qL
H p qL
p * Hq rL
H p * qL
H p * rL
11
r = q.
3. Since a proposition is either true or false, when a negation is false the starting
proposition is true.
4. When r is false, then q must be true, this also means that p is false.
5. Similarly when r is true q is false, and thus p is true.
6. Therefore we see that r and p are the same.
7. Since r is the double negative of p, then we can say that the double negative of
any proposition is the same as the proposition. This has been a proof by cases.
QED.
Definition 1 The Limit: The limit of some function f HxL as x approaches some specific
value a is symbolized by
lim f HxL = L.
xa
so long as we make f HxL get as close to L as we want such that x is sufficiently close to
a and so long as x never really becomes a.
While this definition is adequate, it will eventually be replaced by a more accurate one.
Argument
Name
Constant
Multiple
Rule for
Limits
10
Sum and
Difference
Rule
for Limits
11
Product
Rule for
Limits
Formula
limxa @
c f HxLD =
c limxa
f HxL
limxa @ f HxL
gHxLD =
limxa f HxL
limxa gHxL
limxa @ f HxL
gHxLD =
limxa f HxL
limxa gH
xL
Explanation
The limit of a constant multiple
of a function is the constant
multiple of the limit.
12
12
Quotient
Rule for
Limits
13
Power Rule
for Limits
14
Root Rule
for Limits
15
Constant
Limit Rule
16
Limiting
Value
17
Power of a
Limiting
Value
18
Limit of a
Polynomial
p HxL
19
20
Limit
Theorem 1
Squeeze
Theorem
limxa @
f HxL gHxLD =
Hlimxa f HxLL
Hlimxa gH
xLL
limxa @ f H
xLDn =
@limxa f HxLDn
limxa H f HxLL ^
H1nL =
Hlimxa
f HxLL1n
limxa HcL = c
limxa HxL = a
limxa Hx n L =
an
limxa pHxL =
pHaL
f HxL g HxL
limxc f HxL
limxc gHxL
If
f HxL
h HxL gHxL,
then
limxc hHxL =
L
13
Infinite
Limit
limxa f H
xL =
22
Negative
Infinite
Limit
limxa f H
xL =
-
23
Limits at
Infinity
limx c
xr = 0
21
24
25
Infinite
Polynomial
Limit
Continuous
Functions
limx pH
xL =
limx an
xn
limxa f H
xL =
f HaL
If f HxL is
continuous
on an
interval Aa, b E ,
26
Intermediate
Value
Theorem HIVTL
and if n is a
number such that
f HaL
n f HbL,
Here is a proof of Argument 15, The Constant Multiple Rule for Limits. For this we
immediately require a more precise definition of the limit than the one we have above.
We need to define the absolute value,
14
Here is a proof of Argument 15, The Constant Multiple Rule for Limits. For this we
immediately require a more precise definition of the limit than the one we have above.
We need to define the absolute value,
x = ;
x x0
.
-x x < 0
(1)
xa
whenever
0 < x - a < .
f HxL - L <
Proof of Argument 15: To accomplish this proof we need to show that the limit
of the constant multiple of an arbitrary function is the same as the constant multiple of
the limit of the function. It seems the most straightforward way to do this is to compute
both expressions and show they are equivalent.
1. Let us begin with the hypothesis, lim xa @c f HxLD.
2. By the definition we have some value > 0 such that
c f HxL - L
<
(2)
< .
f HxL - M
< .
7. So, by (1) we have limxa @c f HxLD = M , and by (3) we have c limxa f HxL = M .
8. Thus we have limxa @c f HxLD = c limxa f HxL, QED.
(3)
15
Thus we have limxa @c f HxLD = c limxa f HxL, QED.
Argument
27
dx
dt
D f HtL
D t0
Name
Dt
Formula
28
on an Interval
8.
30
Slope of a
Tangent
Line
31
Constant
Derivative
Rule
32
Constant
Multiple
Rule
33
Sum Rule
34
Power Rule
35
Product Rule
Dt
H f Ht + D tL - f HtLL.
Explanation
A function is
differentiable on an
interval [a, bD if f ' HtL exists for
every point a t b.
Differentiability
Continuity
D t0
A function is differentiable at
some point a if f ' HaL exists.
Differentiability
29
= lim
If f HtL is differentiable at
t = a , then f HtL is continuous
at t = a .
The slope of a line tangent to a
point a on f HtL is f ' HaL.
c=0
c f HtL =
c t f HtL
= n t n-1
16
@ f HtL gHtLD =
t
Quotient Rule
36
gHtL2
37
x x
=
y t
Chain Rule
t y
I will now prove Argument 32, The Constant Multiple Rule. We begin with the
hypothesis.
1. Assume that we have
c f HtL.
c f HtL = limD t0
c f HtL = limD t0
t
c f Ht + D tL - c f HtL
Dt
c @ f Ht + D tL - f HtLD
Dt
4. Then by Argument 36, The Constant Multiple Rule for Limits, we now have,
f Ht + D tL - f HtL
c f HtL = c limD t0
.
t
Dt
c f HtL=c
f HtL, QED.
In [5] I introduced the idea of an integral. Given any function f HtL, its antiderivative is
the function FHtL such that,
F ' HtL = f HtL.
The most general antiderivative is called the indefinite integral and is written,
f HtL t = FHtL + c.
Name
Constant
Multiple
Rule
Formula
k f HtL t =
k f HtL t
Explanation
This allows us to factor any
multiplicative constants out of
the integrand.
17
39
Sum
Rule for
Integrals
40
Power
Rule for
Integrals
41
Constant
Rule for
Integrals
42
Substitution
Rule
43
Fundamental
Theorem
of Calculus
44
Interchanging
the Limits
of ntegration
45
The Same
Limits
46
Splitting
the Limits
of ntegration
47
Equivalent
Integrals
f HtL gHtL
t =
f HtL t
gHtL t
tn t =
t n+1 Hn +
1L + c
Here n -1.
k t =
kt + c
f H gHtLL g '
HtL t
=
f HvL v
b
a f HtL t =
f HbL t -
f HaL t
b
a f HtL t =
- ba f HtL t
a
a f HtL t = 0
b
a f HtL t =
c
a f HtL t +
b
c f HtL t
b
a f HtL t =
b
a f HxL x
18
48
b
a c t =
c Hb - aL
Constant
Rule for
Definite
Integrals
I will prove Argument 38, the Constant Multiple Rule for Integration. Here we begin
with the definition of the integral.
1. By the definition of an integral f HtL t = FHtL + c.
5. By argument xx, The Distributive Property, the right hand side of this becomes,
k FHtL + k c = k @FHtL + cD.
6. By the definition of integration this is equivalent to k f HtL t = k@FHtL + c].
7. By step 5 then k f HtL t = k f HtL t. QED.
i=o
19
ai = a j + a j+1 + ... + aa + ...
i= j
Definition 6 Sequence of Partial Sums: Associated with every infinite series is the
sum of the first n terms of the infinite series
sn = ai = a0 + a1 + a2 + ... + an
n
i=o
Name
Formula
Explanation
49
Convergent
sequence
50
Divergent
sequence
51
Relevance of
limit theorems
Bounded above
sn B
sn B
52
53
Bounded below
54
Monotone
nondecreasing
55
Monotone
strictly
increasing
56
Monotone
nonincreasing
sn sn+1
sn < sn+1
sn sn+1
20
57
58
Monotone
strictly
decreasing
Convergence of
monotonic
sequences
sn > sn+1
limn sn =
cB
limn sn =
c B
Least upper
bound axiom
than or equal to B .
60
Greatest
lower bound
theorem
than or equal to B .
61
Proper
divergence
62
Oscillating
sequences
63
Monotonic
sequences
and
convergence
divergence
Subsequence
59
64
sn
21
If 8sn < is a sequence with a limit
c Hor L, then any
subsequence of 8sn < will have
a limit of c Hor L.
65
Limit of a
subsequence
66
Oscillatory
subsequences
67
Limit of a
subsequence
of a
monotonic
sequence
If a subsequence of the
monotonic
sequence 8sn < has a
limit c Hor L then 8sn < also
has a limit of c Hor L.
68
Cauchy
condition
when
m, n > N .
69
Cauchy criterion
70
Convergence of
infinite series
71
Proper
divergence
of an
infinite series
72
Oscillating
infinite series
22
73
Zero terms
b1 + b2 + ... +
bk +
ak+1 +
ak+2 +
... + an =
74
Replacement of
k terms in an
infinite series
a1 + a2 + ... +
an
+AIb1 + b2 + ... +
bk M
- Ia1 + a2
+ ... +
ak ME =
sn + d
sn =
a1 + a2 + ... +
an ,
75
tn = an+1 +
an+2 + ...
= j=1 an+ j
S=
sn + tn
23
For a
convergent
series
i=1 ai
with
sum k and
we have a
monotinic
strictly
increasing
sequence
8bi < of positive
integers. Now
we
also have
76
c1 = a1 + a2 + ...
+ab
1
c2 = at +1 +
1
at +2 +
1
... + at
cn = at
n-1 +1
at
n-1 +2
+ ... + atn
n=1 cn is
convergent
and has sum k.
A =
i=1 ai
77
Multiplication
of a series
by a constant
If
" k $ ck = d ak ,
then
c A =
k=1 ck
= k=1 d ak
= d
k=1 ak .
24
A =
i=1 ai
B = j=1 b j
78
79
80
Sum of series
Cauchy
criterion for
infinite series
Dominated
Series
If " k $ ck =
ak +
bk ,
then A + B =
k=1 ck =
k=1 Hak +
bk L
=
k=1 ak +
k=1 bk .
i=1 ai is
convergent if
and only if,
" > 0,
$ N,
such that
an+1 + an+2
+ ... +
am <
when m >
n>N
A series
i= j ai with real or
complex terms is dominated by
the series
i= j bi with
nonnegative
real terms so long
as ai bi " i j .
25
A series
i=1 ai with
nonegative terms and is
dominated by the convergent
series,
i=1 bi that has the
81
gHtL = H4 + tL3 ,
and
hHtL =
xt
t3
The second problem was to write out each of the functions as a divided difference
as in (6) in [1]. Recall that (6) in [1] is,
Xx\ =
D f HtL
Dt
f Ht + D tL - f HtL
Dt
f Ht + D tL - f HtL
Dt
Ht + D tL3 - Ht + D tL2 - t3 + t2
Dt
=
26
It3 + 3 t2 D t + 3 t D t2 + D t3 - t2 - 2 t D t - D t2 - t3 + t2 M
1
Dt
1
Dt
I3 t2 D t + 3 t D t2 + D t3 - 2 t D t - D t2 M
= 3 t2 + 3 t D t + D t2 - 2 t - D t.
gHtL = H4 + tL3
gHt + D tL - gHtL
gHtL = H4 + tL
gHt + D tL - gHtL
Dt
Dt
H4 + t + D tL3 - H4 + tL3
Dt
H4 + t + D tL3 - H4 + tL3
Dt
=
1
Dt
It3 + 3 t2 D t + 12 t2 + 3 t D t2 + 48 t + 24 t D t + 48 D t +
12 D t2 + D t3 + 64 - t3 - 12 t2 - 48 t - 64M
=
1
Dt
I3 t2 D t + 3 t D t2 + 24 t D t + 48 D t + 12 D t2 + D t3 M
= 3 t2 + 3 t D t + 24 t + 48 + 12 D t + D t2 .
and,
hHtL =
xt
t3
= Hx tL t
-3
= xt
-2
hHt + D tL - hHtL
Dt
=
x Ht + D tL-2 - x t-2
Dt
x Ht + D tL2 - x t2
Dt
27
1
Dt
xI2 t D t + D t2 M t2 Ht + D tL2
Dt
=
xH2 t + D tL
t2 Ht + D tL2
The third problem is to take the derivative of each function in t. Recall that the
derivative is,
f Ht + D tL - f HtL
Dt
D t0
So,
f H' tL = lim
f Ht + D tL - f HtL
Dt
D t0
= lim 3 t2 + 3 t D t + D t2 - 2 t - D t
D t0
= 3 t2 - 2 t .
gH' tL = lim
gHt + D tL - gHtL
Dt
D t0
= lim 3 t2 + 3 t D t + 24 t + 48 + 12 D t + D t2
D t0
D t0
hHt + D tL - hHtL
Dt
= lim
D t0
xH2 t + D tL
t2 Ht + D tL2
xH2 t + 0L
t2 Ht + 0L2
28
xH2 t L
t2 HtL2
2 xt
t4
2 x
t3
Practice Problems
Choose one of the arguments by logic and prove it is true. A good project is to prove
them all.
Conclusions
I have presented a fairly good reference for beginning to explore the mathematics used
in physics. This is a good beginning.
References
[1] George E. Hrabovsky, (2009), Day 1: Introduction to Theoretical Physics.
MASTers Notes, Issue 1, (http://www.madscitech.org/notes.html).
[2] Steven Galovich, (1989), Introduction to Mathematical Structures, Harcourt
Brace Jovanovich. This truly wonderful book is out of print, but you can still find it here
and there. It is my favorite book on logic, proofs, and set theory. I picked up my copy at
a used book store for only $8.
[3] Joseph Fields, (?), A Gentle Introduction to the Art of Mathematics. This free
textbook is available from the author's website:
http://www.southernct.edu/~fields/GIAM/GIAM.pdf . This book goes much deeper than
we intend to do.
[4] Michael A. Henning, (?), An Introduction to Logic and Proof Techniques. This is
a free download from a course website:
http://www.southernct.edu/~fields/GIAM/GIAM.pdf this set of notes is at about the
right level for our purposes.
[5] Martin V. Day, (2009), An Introduction to Proofs and the Mathematical
Vernacular. This is a free download from the website:
http://www.math.vt.edu/people/day/ProofsBook. This book assumes that you have
studied calculus.
29
[5] Martin V. Day, (2009), An Introduction to Proofs and the Mathematical
Vernacular. This is a free download from the website:
http://www.math.vt.edu/people/day/ProofsBook. This book assumes that you have
studied calculus.
[6] Dave Witte Morris, Joy Morris, (2009), Proofs and Concepts. This free book can
be downloaded from the website:
http://people.uleth.ca/~dave.morris/books/proofs+concepts.html. Sections I and II cover
the topic of this writing.
30
Argument
82
Name
Fraction
Multiplicaton
Formula
a
b
c
d
Ha cL Hb dL
Explanation
Multiplying fractions involves
first multiplying the
denominators and then the
numerators.
31
83
84
Fraction
Division
a
b
a
a
Cancellation
c
d
ad
bc
=1
85
Adding and
Subtracting
Fractions
a
b
c
d
= 1+
1
a
and not 1.
Ha d
b cL
Hb dL
na+
ma+
b =
Hn + mL
a+b
86
Adding Terms
87
Adding
Opposite
Signed
Integers
88
Adding
Same Signed
Integers
89
Multiplying
Opposite
Signed
Integers
90
Multiplying
Opposite
Signed
Integers
ab =
H-aL H-bL
91
Double
Negative
-H-aL = a
a + H-bL =
a-b
H-aL +
H-bL =
-Ha + bL
a H-bL =
-Ha bL
32
92
Multplying a
Term by 1
93
Multiplying
Exponents
a m an = am+n
94
Dividing
Exponents
95
Reciprocal
96
Negative Power
97
Power of
a Product
98
Power of
a Quotient
an
bn
99
Rewriting
Division
a
b
100
Multiplying
Same Signed
Integers
101
Product
of Roots
102
Quotient
of Roots
103
Power
of a Root
104
Root as a
Fractional
Power
105
The General
Commutative
Property
b
b
= a1 = a
am
an
= am-n
1
a
a -1 =
a-n = 1 a n
Ha bLn = an bn
= I Mn
a
b
= a b-1
ab =
H-aL H-bL
Ha bL^H1 nL =
a ^H1 nL
b^H1 nL
Ha bL^
H1 nL =
Ha ^H1 nLL
Hb^H1 nLL
am ^H1 nL
= Ha^H1 nLLm
an = a .
a ^H1 nL = a n
a*b =
b*a
33
106
The General
Associative
Property
107
Distributive
Property
Ha * bL * c =
a * Hb * cL
a Hb + cL =
Ha b L +
H a cL
Ha + bL Hc +
dL =
Ha cL +
Ha dL +
Hb cL +
Hb d L
Multiplying
Binomials
108
x y =
bd
8. Thus,
a
b
c
d
ac
bd
, QED.
Simplify
Mathematica Command
Explanation
Simplify@exprD
Performs a sequence of
symbolic
transformations on
expr and outputs the
simplest form it can find.
34
FullSimplify@exprD
Performs an extensive
sequence of symbolic
transformations on expr
and outputs the simplest
form it can find.
Expand
Expand@exprD
Factor
Factor@polynomialD
Collect
Collect@expr, patD
Together@rationalD
Apart@rationalD
Splits up a rational
expression as a sum of
terms having minimal
denominators.
Cancel@rationalD
Cancels common
factors in a
rational expression.
PowerExpand@exprD
FullSimplify
Together
Apart
Cancel
PowerExpand
x2
x2
you might think something went wrong. Why doesn't Mathematica return the correct
value of x? This is because Mathematica doesn't know what number system we want to
use. If we say that we want to consider only positive values of x then we write,
35
Simplify
x2 , x > 0
x
or even better still, if we say that x is an element of the set of real numbers, or
symbolically x R,
Simplify
x2 , x Reals
Abs@xD
this is the correct answer, the square root of x2 in the reals is the absolute value of x.
Most of the time Simplify is good enough. For cases involving so-called special
functions it is often best to use FullSimplify.
Gamma@x + 1D Gamma@1 - xD
Gamma@1 - xD Gamma@1 + xD
Simplify@Gamma@x + 1D Gamma@1 - xDD
Gamma@1 - xD Gamma@1 + xD
FullSimplify@Gamma@x + 1D Gamma@1 - xDD
x Csc@ xD
These are only a brief listing of the most basic capabilities of Mathematica in terms of
algebraic manipulations. I invite you to explore the Documentation system and play
with it.
an .
36
Name
Logarithm
of a product
110
Logarithm of
a quotient
111
Logarithm
of a power
logn Ha bL =
logn a +
logn b
Formula
logn I M =
a
b
logn a logn b
logx a n =
n logx a
Explanation
The logarithm of a product is
the sum of the logarithms.
The logarithm of a
quotient is the difference of
the logarithms.