Day 2: Logic and Proof

George E. Hrabovsky

MAST

Introduction

This is the second installment of the series. Here I intend to present the ideas and methods of proof.

Logic and proof

To begin with, I will need to present the basic method of mathematics. I will try to make this as simple as possible and still be useful. It is important to realize that in mathematics, until an idea is applied to something concrete, ideas have no meaning. Thus mathematics is the ultimate abstraction from reality; we speak of pure ideas without regard to meaning. It is best to think of mathematics at this level as a kind of structure.
    To succeed in mathematics we need to consider several different notions:

  • Technical terms that we understand to be true, but are unable to define exactly without resorting to a circular argument (using the idea in its definition) are called undefined terms. Undefined terms may be used as arguments in proofs, but there is the risk that such ambigious terms will lead to unclear proofs.
  • A statement that is either true of false is called a proposition. Propositions that contain only one part is called an atomic proposition. Propositions containing several parts are called compound propositions.
  • Propositions that we assume to be true based on experience are called axioms or postulates. Axioms and postulates may be used as arguments in proofs.
  • Propositions that we believe to be true, but have not been proved are called conjectures. Conjectures may be used as arguments in proofs, but the prove will be undone should a conjecture be disproved.
  • A conjecture that has been proved is called a theorem. A theorem that is proven as part of a larger proof (as an intermediate step) is called a lemma. A theorem that is a minor extension of another theorem is called a corollary. Theorems, lemmas, and corollaries may be used as arguments in a 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.

    PropositionalOperation Symbol Meaning Eaxample
    Negation ¬ Not ¬p
    Conjunction This And That p q
    Disjunction This Or That p q
    Exclusive Disjunction This Or That But Not Both p q
    Conditional If p, Then q pq
    Converse The Converse of If p, Then qis If q, Then p. qp
    Contrapositive The Contrapositive of If p, Then q is If Not-q,Then Not-p. ¬q⇒¬p
    Bicondictional p If and Only Ifq. If and only if, is sometimeswritten 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 proposition p depends on another idea, say x we would write p(x).

    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 q p q
    T T T
    F T F
    T F F
    F F F

    Here is the truth table for a somewhat complicated formula:

    p q r p q ¬r (p ∧ q) ∨ ¬ r
    T T T T F T
    F T T F F F
    T T F T T T
    F T F F T T
    T F T F F F
    F F T F F F
    T F F F T T
    F F 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.

    Basic Set Theory

    The language of modern mathematics is a combination of logic and set theory. We understand a set to be a collection of objects of some kind. Here is a table of basic ideas from set theory.

    Idea Symbol Meaning
    Element of a Set xX x is an element of the set X.  
    Subset of a Set XY The set Xis a subset of the set Y if every element of Xis also an element of Y.                  
    Equal Sets X=Y The set Xis equal to the set Y if every element  of  X is also an element of Yand every element  of Y is also an element of X.
    Unequal Sets X≠Y X and Yare not equal.           
    Proper Subset XY X⊆Yand X≠Y.                          
    Predicate Logic

    Not all mathematical statements are propositions. Indeed, day2_1.gif, is neither true nor false as it is presented. It becomes a proposition only if we define x in some way. We need to develop a couple of additional ideas.

  • A symbol that represents an unspecified object that can be chosen from some collection of objects is called a variable.
  • A statement containing one or more variables that becomes a proposition when the variables are chosen is called a predicate.
  • The statement, "For every ...," is symbolized by ∀, and is called the universal quantifier. For example we can say that for all real numbers, symbolized by R, day2_2.gif. We could also write day2_3.gif.
  • The statement, "There exists...," is symbolized by ∃, and is called the existential quantifier. For example, we can say that there exists some real number such that day2_4.gif. We could also write day2_5.gif.
  • 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.

    Proof by Truth Table

    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:

    State the hypothesis.

    Make your first argument in a sequence that will bring you to the conclusion.

    : (this symbol indicates a variable number of steps).

    Make you final argument.

    State your conclusion.

    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.

    State the conclusion.

    Write the negation of the conclusion.

    Make your first argument in a sequence that will bring you to the hypothesis.

    :.

    Make your final argument.

    State the negation of the hypothesis.

    Make the argument that by the contrapositive the conditional must be true. Q.E.D.

    Reductio ad absurdum (RAA)

    I gave Galileo's example of this type of proof in the Day One Theoretical Physics Article.

    State the hypothesis.

    Assume that the hypothesis implies the negation of the conclusion

    Make your first argument in a sequence that will bring you to the conclusion.

    :.

    Make you final argument.

    Show that this implies that the negation of the conclusion is both true and false, such a situation is always false.

    Since this a contradiction, the negation of the conclusion cannot be true.

    The conclusion must then be true. Q.E.D.

    Mathematical induction

    This requires knowing that the natural numbers are 1, 2, 3, and so on.

    State the hypothesis.

    Show that the conclusion is true for the case of a variable equal to one. This is called the basis step.

    Write your conclusion for the variable having an arbitrary value for some unspecified natural number n.

    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.

    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.

    Proof by cases - divide and conquer

    The final style of proof is given in the next two sections:

    State the hypothesis.

    Show that the conclusion requires a finite number of cases.

    Prove each case independently.

    Thus the conclusion is true for each possible case. Q.E.D.

    Proof by cases - Bootstrap

    We continue with the second method for case analysis:

    State the hypothesis.

    Show that the conclusion requires a finite number of cases.

    Prove the first case.

    Prove each case based on the proof of the previous case.

    Thus the conclusion is true for each case. 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.

    Logical Operations in Mathematica

    Using [1] as a basis, I will begin with some logical operations.

    Operation Mathematica Command Explanation
    Negation ! expression Negates the expression.
    Conjunction e1 &&e2 &&... Returns True if e1 and e2 aretrue, otherwise it returnsFalse.
    Disjunction e1 || e2 || ... Returns True if e1 or e2 aretrue, otherwise it returnsFalse.
    ExclusiveDisjunction Xor[e1,e2,...] Returns True if either e1 ore2 are true, but not both, otherwise it returns false.
    Conditional Implies[p,q] This represents theconditional p q.
    Biconditional Equivalent[p,q] This represents thebiconditional p q.
    ForAll ForAll[x,expr] This is the universalquantifier.
    Exists Exists[x,expr] This is the existentialquantifier.

    We can use Mathematica to develop truth tables. We will first use the command BooleanTable[logical expression,{logical variable 1},{logical variable 2}, ...]

    day2_6.gif

    day2_7.gif

    We can put this into the form of a table by either wrapping the function in TableForm[],

    day2_8.gif

    True False
    False False

    or by adding //TableForm on the end

    day2_9.gif

    True False
    False False

    We can make it numerical, where 1 stands for True and 0 for False by Wrapping the command in Boole[ ].

    day2_10.gif

    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.

    day2_11.gif

    day2_12.gif

    We can make the image smaller by specifying an ImageSize->45

    day2_13.gif

    day2_14.gif

    Here is the picture of a truth table for a more complicated formula,

    day2_15.gif

    True True True True
    True True False True
    True False True False
    True False False True
    False True True False
    False True False True
    False False True False
    False False False True

    Or graphically,

    day2_16.gif

    day2_17.gif

    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 Formula Explanation
    1 Definition of aContradiction (p ∧ ¬ p)F A proposition and its  negation cannot  both  be true.
    2 Definition of a  DoubleNegative ¬(¬p)⇒p The negation of a negation of a proposition  is  the proposition.
    3 Law of theExcludedMiddle (p ∨ ¬ p) Either something is true or it is not.  This is  similar to argument 1.
    4 Definition of Commutation (p * q)⇔(q*p) This is true when you replace * with either  ∧ or ∨.
    5 Definition of Associativity (p*q)*r⇔p*(q*r) This is true when you replace * with either  ∧ or ∨.
    6 Law  of theContrapositive (p⇒q)⇔(¬ q⇒¬ p) This is the basis for proof by contrapositive.
    7 DeMorgan'sLaws ¬ (p * q)⇔
      (¬p ◦ ¬q)
    This is true when you  replace * with either  ∧ or ∨ and ◦ with either∨ or ∧, respectively.
    8 Definition of a Distribution p*(q◦r)⇔
       (p*q)◦(p*r)
    This is true when you replace * with either  ∧ or ∨and ◦ with either ∨ or ∧, respectively.

    Proof: Here is an example of a proof by truth table, we will prove Argument 1, Contradiction.

    p ¬p (p ∧ ¬ p) Contradiction
    T F F F
    F T F F

    thus (p ∧ ¬ p)~Contradiction, which proves argument 1. QED.

    Here is an example of how to discover a proof. We will prove Argument 2, Double Negative. We need to show that the double negative is equivalent to the initial proposition.

    We start by stating that the negation of a proposition always has the opposite truth value of a proposition, thus we can write

    day2_18.gif

    The negation of q will then have the opposite truth value from q, we can write,

    day2_19.gif

    Since a proposition is either true or false, when a negation is false the starting proposition is true.

    When r is false, then q must be true, this also means that p is false.

    Similarly when r is true q is false, and thus p is true.

    Therefore we see that r and p are the same.

    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.

    Arguments involving limits

    In [5] we explored the idea of a limit. We begin with the formal definition of the limit:

    Definition 1 The Limit: The limit of some function f(x) as x approaches some specific value a is symbolized by

    day2_20.gif

    so long as we make f(x) 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 Formula Explanation
    9 Constant Multiple Rule forLimits day2_21.gif The limit of a constant multiple  of a function is the constantmultiple of the limit.
    10 Sum and DifferenceRulefor Limits day2_22.gif The limit of a sum is the sum ofthe limits.
    11 ProductRule forLimits day2_23.gif The limit of a product is the product of the limits.
    12 Quotient Rule forLimits day2_24.gif The limit of a quotient is the  quotient of the limits.
    13 Power Rule for Limits day2_25.gif The limit of a power is the powerof the limit.
    14 Root Rule for Limits day2_26.gif The limit of an nth root is thenth root of the limit.
    15 Constant Limit Rule day2_27.gif The limit of a constant is thatconstant.
    16 Limiting Value day2_28.gif
    17 Power of a LimitingValue day2_29.gif
    18 Limit of a Polynomialp(x) day2_30.gif
    19 Limit Theorem 1 f(x)≤g(x)

    day2_31.gif
    For allxon an interval [a,b]where acb.
    20 Squeeze Theorem If f(x)≤h(x)≤g(x),  then
    day2_32.gif
    day2_33.gif
    21 Infinite Limit day2_34.gif This is written if and only if we can make f(x) arbitrarily largefor all values of x sufficiently close to aso long as x a.
    22 Negative InfiniteLimit day2_35.gif This is written if and only if wecan make f(x) arbitrarily large and negative for all values of x sufficiently close to a so long as x a.
    23 Limits at Infinity day2_36.gif Infinity and zero can be thought of as  inverses.
    24 Infinite PolynomialLimit day2_37.gif day2_38.gif
    25 Continuous Functions day2_39.gif A function is continuous, or smooth,if at any point  a thelimit of the function is the limitat that point.
    26 Intermediate ValueTheorem (IVT) If f (x) is continuous on an interval [a, b] , and if n is anumber such that f (a) ≤ n ≤ f (b), then there exists some number csuch that, a < c < b,and f (c) = n. This is a special way of saying that every continuous  function will take on all values between f (a) and f (b).

    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,

    day2_40.gif

    eqn 1

    So, we redefine the limit,

    Definition 1a: The Limit. For some function f(x) then

    day2_41.gif

    if (∀ε)(ε>0) (∃ δ)(δ>0)

    day2_42.gif

    whenever

    day2_43.gif

        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.

    Let us begin with the hypothesis, day2_44.gif.

    By the definition we have some value ε>0 such that

    day2_45.gif

    eqn 2

    whenever there is a value δ>0 such that,

    day2_46.gif

    If we think about this for a while we realize that in this situation the limit L is the product of a different limit M and the constant c, by the definition of the limit.

    This gives us a nice clue as to how to complete the proof; we need to show that (2) is equivalent to |c| |f(x) - L | < ε.

    We begin by rewriting (2)

    day2_47.gif

    By argument 35, (the distributive property) we can rewrite this,

    day2_48.gif

    eqn 3

    So, by (1) we have day2_49.gif, and by (3) we have day2_50.gif.

    Thus we have day2_51.gif, QED.

    Arguments involving differentiation

    In [5] I introduced the idea of differential calculus. We will present the following definition of the derivative of a function:

    Definition 2 The Derivative: The derivative of a function, f(t) is given as,

    day2_52.gif

    Argument Name Formula Explanation
    27 Differentiability A function is differentiable atsome point a if f' (a) exists.
    28 Differentiabilityon an  Interval A function is differentiable on aninterval [a,b] if f' (t) exists for every point atb.
    29 Continuity If f (t) is differentiable at t = a,then  f (t) is continuous at  t = a.
    30 Slope of aTangentLine The slope of a line tangent to a point a on f (t) is f' (a).
    31 Constant DerivativeRule day2_53.gif The derivative of a constant is  0.
    32 ConstantMultipleRule day2_54.gif The derivative of a constantmultiple is the constant multiple of the derivative.
    33 Sum Rule [f(t) ± g(t)]'=f'(t) ± g'(t) The derivative of a sum is thesum of the derivatives.
    34 Power Rule day2_55.gif
    35 Product Rule [f(t) · g(t)]'=f'(t) g(t)+ g'(t) f(t)
    36 Quotient Rule day2_56.gif
    37 Chain Rule day2_57.gif=day2_58.gif This allows you to change variables in differentiation. It is a direct application of argument11, above.

    I will now prove Argument 32, The Constant Multiple Rule. We begin with the hypothesis.

    Assume that we have day2_59.gif.

    By Definition 2, this gives us, day2_60.gif

    Factoring this we have, day2_61.gif

    Then by Argument 36, The Constant Multiple Rule for Limits, we now have, day2_62.gif

    This is equivalent, by the definition of the derivative, to day2_63.gif, the conclusion.

    Thus day2_64.gif=day2_65.gif, QED.

    Arguments involving integration

    In [5] I introduced the idea of an integral. Given any function f(t), its antiderivative is the function F(t) such that,

    day2_66.gif

    The most general antiderivative is called the indefinite integral and is written,

    day2_67.gif

    Here are some arguments involving integration.

    Argument Name Formula Explanation
    38 Constant MultipleRule ∫k f(t)dt=k∫f(t)dt This allows us to factor anymultiplicative constants out ofthe integrand.
    39 Sum Rule forIntegrals ∫f(t)±g(t)dt=∫f(t)dt±∫g(t)dt The integral of the sum is thesum of the integrals.
    40 Power Rule forIntegrals day2_68.gif Here n≠-1.
    41 Constant Rule forIntegrals ∫kdt=k t + c
    42 Substitution Rule day2_69.gif Here we understand thatv = g(t). This is an applicationof the Chain Rule,(Argument 37) above.
    43 FundamentalTheorem of Calculus day2_70.gif In essence this defines anintegral over an interval from ato b. Such an integral is called adefinite integral. The values aand b are called the limits ofintegration.
    44 Interchanging the Limits of ntegration day2_71.gif We can interchange the limits of integration by changing the sign.
    45 The Same Limits day2_72.gif
    46 Splitting the Limitsof ntegration day2_73.gif We can split the limits of integration so long as acb.
    47 Equivalent Integrals day2_74.gif
    48 ConstantRule forDefinite Integrals day2_75.gif   

    I will prove Argument 38, the Constant Multiple Rule for Integration. Here we begin with the definition of the integral.

    By the definition of an integral∫f(t)dt=F(t) + c.

    This implies [F(t) + c]'=f(t).

    By argument 32 we can multiply this by an constant k, k [F(t) + c]'= k f(t).

    We can apply this to step 1 and get, ∫k f(t)dt=k F(t) + k c.

    By argument xx, The Distributive Property, the right hand side of this becomes, k F(t) + k c=k [F(t) + c].

    By the definition of integration this is equivalent to k∫f(t)dt=k[F(t) + c].

    By step 5 then ∫k f(t)dt= k∫f(t)dt. QED.

    Arguments involving sequences and series

    In [5] I introduced the idea of a series. Here I formalize that. I will make three definitions.

    Definition 3 Sequences: A sequence is a list, in a specific order, of n terms. A sequence is called infinite if n. A sequence may be writeen,

    day2_76.gif

    Definition 4 Limit of a Sequence: An infinite sequence {s(n)} has a limit

    day2_77.gif

    if, p>0, N such that day2_78.gif for n>N.

    Definition 5 Series: A series is the sum of the first n terms of a sequence.

    day2_79.gif

    If this is the sum of an infinite sequence, then it is called an infinite series.

    day2_80.gif

    Definition 6 Sequence of Partial Sums: Associated with every infinite series is the sum of the first n terms of the infinite series

    day2_81.gif

    This is called the sequence of partial sums day2_82.gif.

    Argument Name Formula Explanation
    49 Convergent sequence A sequence that has a limit issaid to converge.
    50 Divergent sequence A sequence that does not converge is said to diverge.
    51 Relevance oflimit theorems The arguments relating limitsare applicable to the limits of sequences.
    52 Bounded above day2_83.gif A sequence is bounded above if every value of the sequence isless than some value of B. B iscalled the upper bound.
    53 Bounded below day2_84.gif A sequence is bounded below if every value of the sequence is more than some value of B. B iscalled the lower bound.
    54 Monotone nondecreasing day2_85.gif Every subsequent term of thesequence is less than, or equalto, the previous term.
    55 Monotone strictly increasing day2_86.gif Every subsequent term of thesequence is less than theprevious term.
    56 Monotone nonincreasing day2_87.gif Every subsequent term of thesequence is greater than, orequal to, the previous term.
    57 Monotone strictly decreasing day2_88.gif Every subsequent term of thesequence is greater than theprevious term.
    58 Convergence of monotonic sequences day2_89.gif
    day2_90.gif
    An infinite sequence that isbounded from above and ismononotic nondecreasing isconvergent. Likewise an infinitesequence that is bounded fromabove and is monotonic frombelow is convergent.
    59 Least upper bound axiom day2_91.gif
    60 Greatest  lower bound theorem day2_92.gif
    61 Proper divergence day2_93.gif A sequence that tends to infinityor negative infinity is divergent.
    62 Oscillating sequences A sequences that diverges, but is not properly divergent, iscalled oscillatory.
    63 Monotonic sequences and convergence/divergence A monotonic sequence either converges or is proper divergent.
    64 Subsequence If we can define a new infinitesequence from a given sequence by ignoring some terms we have a subsequence.
    65 Limit of a subsequence day2_94.gif
    66 Oscillatory subsequences A sequence with two subsequences that have different limits is oscillatory.
    67 Limit of a subsequence of a monotonic sequence day2_95.gif
    68 Cauchy condition day2_96.gif Far out in the sequence, all terms are close together.
    69 Cauchy criterion If a sequence converges then itsatisfied the Cauchy condition, also if the sequence satisfies theCauchy condition it isconvergent.
    70 Convergence of infinite series An infinite series converges if its sequence of partial sums is bounded.
    71 Proper divergence of an infinite series An infinite series is properdivergent if its sequence of partial sums is unbounded.
    72 Oscillating infinite series An infinite series is oscillating if its sequence of partial sums isoscillatory.
    73 Zero terms Adding or removing zero termsto a series has no effect on theseries.
    74 Replacement of k terms in an infinite series day2_97.gif The effect of replacing terms in an infinite series is to add a constant to the nth partial sum of the original series. In general this leaves the convergence ofthe original series unchanged.
    75 day2_98.gif day2_99.gif
    76 day2_100.gif The converse of this is not true. We can also say that if, after parenthesis are insertedinto a given series, the newseries diverges, then the originalseries diverges.
    77 Multiplication of a series by a constant day2_101.gif
    If day2_102.gif,
    then day2_103.gif
    78 Sum of series day2_104.gif
    79 Cauchy criterion for infinite series day2_105.gif is convergent if and only if,
    ε>0, day2_106.gif
    Thi is Argument 69 rewritten for infinite series.
    80 Dominated Series day2_107.gif
    81 day2_108.gif

    Things to do for Day Three

    Continue building your library of references. Definitely begin with references [3] and [4].

    Practice Problems from Day One

  • The first problem was to write out three functions of t whose properties you understand. For this, I will choose:
  • day2_109.gif

    day2_110.gif

    and

    day2_111.gif

  • 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,
  • day2_112.gif

    thus the three functions become,

    day2_113.gif

    day2_114.gif

    day2_115.gif

    day2_116.gif

    day2_117.gif

    day2_118.gif

    day2_119.gif

    day2_120.gif

    day2_121.gif

    and,

    day2_122.gif

    day2_123.gif

    day2_124.gif

    day2_125.gif

    day2_126.gif

    day2_127.gif

    day2_128.gif

  • The third problem is to take the derivative of each function in t. Recall that the derivative is,
  • day2_129.gif

    So,

    day2_130.gif

    day2_131.gif

    day2_132.gif

    day2_133.gif

    day2_134.gif

    day2_135.gif

    day2_136.gif

    and

    day2_137.gif

    day2_138.gif

    day2_139.gif

    day2_140.gif

    day2_141.gif

    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.

    [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.

    Appendix: Arguments from Basic Mathematics

    I am assuming that you will not need explanation for these. I include them for completeness and future reference.

    Arguments by algebraic manipulation

    In this section I will assume that you are familiar with the basic operations of arithmetic: addition, subtraction, multiplication, division, exponentiation, and root-taking. I will introduce a number of technical terms that will be understood without fomal definition.

  • In algebra, the set of objects that you can choose variables from will be a set of numbers.
  • The first set of numbers is the natural numbers, the counting numbers, and is symbolized N.
  • The second set of numbers are the whole numbers, the natural numbers and zero, denoted W.
  • The third set of numbers is the integers, the whole numbers and the negative of the natural numbers, denoted Z.
  • The fourth set of numbers is the rational numbers, fractions whose denominator and numerator are both integers, denoted Q.
  • The fifth set of numbers is the real numbers, the rational numbers and all irrational numbers, denoted R.
  • The sixth set of numbers is the imaginary numbers, these are multiples of day2_142.gif.
  • The seventh set of numbers is the complex numbers, the set of all real and imaginary numbers of the form z=x + i y, where x and y are real. This set is denoted C.
  • A predicate in algebra is frequently called an expression.
  • The value of a variable is provided when a variable is replaced with a specific choice of object.
  • Finding the value of an expression is called evaluation of the expression. You must be careful to be consistent in your choise of values for the variables, that is the same variable in multiple terms must all have the same values.
  • When you evaluate an expression you begin by evaluating whatever terms are within grouping symbols (parentheses, brackets, etc.). Then you evaluate all exponents. Then you evaluate all products and quotients. And then you evaluate all sums and differences.
  • A polynomial expression is an expression whose terms are integer powers of the variables. The highest integer power of the polynomial is called the degree of the polynonial. Thus, day2_143.gif is an example of a polynomial of second degree with three terms.
  • A polynomial of only one term is called a monomial.
  • Any constant factor of a term in a polynomial is called a coefficient. For example, day2_144.gif has a coefficient of 3.
  • Like terms in an expression can be combined by adding, or subtracting, coefficients as necessary. Thus, day2_145.gif.
  • A polynomial of degree 1 is called linear.
  • A polynomial of degree 2 is called quadratic.
  • A polynomial of degree 3 is called cubic.
  • A polynomial of degree 4 is called quartic.
  • A polynomial of degree 5 is called quintic.
  • A rational expression is the quotient of two polynomials.
  • An equation is an expression that states that two or more terms, or combinations of terms, have the same value. These will have an equal sign relating the relavant values, =.
    The solution of an equation is what you get when you evaluate that equation. A polynomial equation of a given degree will be called by the name of the polynomial of the same degree, (linear, quadratic, cubic, quartic, and quintic).
  • There are five relationships between values that are not equality: two values can be greater than >, less than <, greater than or equal to , less than or equal to , and not equal to . Any expression involving these are called inequalities. A polynomial inequality of a given degree will be called by the name of the polynomial of the same degree, (linear, quadratic, cubic, quartic, and quintic).
  • Argument Name Formula Explanation
    82 Fraction  Multiplicaton day2_146.gif Multiplying fractions involves first multiplying the denominators  and then the  numerators.
    83 Fraction Division day2_147.gif Dividing fractions is just  mutiplying the dividend by the  inversion  of the divisor.
    84 Cancellation day2_148.gif day2_149.gif
    85 Adding and SubtractingFractions day2_150.gif
    86 Adding Terms n · a + m · a + b =
    (n + m) · a + b
    We can add like terms be adding their  coefficients, unlike  terms  cannot  be added.
    87 Adding OppositeSignedIntegers a + (-b) = a - b Subtraction and adding opposite  sign integers are equal.
    88 AddingSame SignedIntegers (-a) + (-b) =
    -(a + b)
    89 Multiplying OppositeSignedIntegers a · (-b) = -(a · b)
    90 Multiplying OppositeSignedIntegers a · b = (-a)·(-b)
    91 DoubleNegative -(-a) = a
    92 Multplying aTerm by 1 day2_151.gif We can always multiply a term by 1.
    93 MultiplyingExponents day2_152.gif
    94 DividingExponents day2_153.gif
    95 Reciprocal day2_154.gif
    96 Negative Power day2_155.gif
    97 Power of a Product day2_156.gif
    98 Power ofa Quotient day2_157.gif
    99 Rewriting Division day2_158.gif
    100 MultiplyingSame SignedIntegers a · b = (-a)·(-b)
    101 Productof Roots day2_159.gif
    102 Quotient of Roots day2_160.gif
    103 Power of a Root day2_161.gifday2_162.gif day2_163.gif
    104 Root as aFractional Power day2_164.gif
    105 The GeneralCommutativeProperty a * b = b * a Here we replace * by either + or ·.
    106 The GeneralAssociative Property (a*b) * c=a* (b * c) Here we replace * by either + or ·.
    107 DistributiveProperty a · (b + c)=(a · b )+( a · c) This is also the basis for factoring, in which case we reverse the  process.
    108 MultiplyingBinomials (a + b)·(c + d) =(a · c) + (a · d) +(b · c) + (b · d)

    Proof of argument 82, Fraction Multiplication.

    Assume that we have rational numbers x=a/b and y=c/d.

    By the definition of a rational number, t/s, where s and t are integers, day2_165.gif.

    This is equivalent to the expression for integers (a÷b)·(c÷d).

    We can rewrite this day2_166.gif.

    By the associative property of multiplication we can write this, day2_167.gif.

    By the definition of division we can rewrite this, (a·c)÷(b·d).

    By the definition of rational numbers we have, day2_168.gif.

    Thus, day2_169.gif, QED.

    This has been a direct proof.

    Algebraic Manipulation in Mathematica

    In addition to logical operations. Mathematica is good at algebraic manipulations, too.

    Operation Mathematica Command Explanation
    Simplify Simplify[expr] Performs a sequence ofsymbolic transformations  on expr  and outputs thesimplest form it can find.
    FullSimplify FullSimplify[expr] Performs an extensivesequence of symbolic transformations on expr and outputs the simplest form it can find.
    Expand Expand[expr] Expands all products andinteger powers for expr.
    Factor Factor[polynomial] Factors a polynomial overthe set of integers.
    Collect Collect[expr,pat] Collects terms of expr thatmatch pat.
    Together Together[rational] Places the terms of a rational expression over  a commondenominator and thencancels and factors in theresult.
    Apart Apart[rational] Splits up a rationalexpression as a sum ofterms having minimal denominators.
    Cancel Cancel[rational] Cancels common factors in a rational expression.
    PowerExpand PowerExpand[expr] Expands all products andpowers for expr.

    First there are a few things to mention regarding Simplify. If we write,

    day2_170.gif

    day2_171.gif

    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,

    day2_172.gif

    day2_173.gif

    or even better still, if we say that x is an element of the set of real numbers, or symbolically x R,

    day2_174.gif

    day2_175.gif

    this is the correct answer, the square root of day2_176.gif 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.

    day2_177.gif

    day2_178.gif

    day2_179.gif

    day2_180.gif

    day2_181.gif

    day2_182.gif

    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.

    Arguments relating to logarithms

    Expanding on the ideas from the last section, we can define exponentiation and root-taking as inverse operations, similar to addition and subtraction. Thus we can define a root,

    Definiiton 1: Root of an exponent: Given an exponent, day2_183.gif, its nth root is a. This is denoted day2_184.gif.

    We can similary define the logarithm.

    Definiiton 2: Logarithm of an exponent: Given an exponent, day2_185.gif, its base-a logarithm is n. This is denoted day2_186.gif.

    Argument Name Formula Explanation
    109 Logarithm of a product day2_187.gif The logarithm of a product isthe sum of the logarithms.
    110 Logarithm of a quotient day2_188.gif The logarithm of a quotient is the difference ofthe logarithms.
    111 Logarithm of a power day2_189.gif
    Spikey Created with Wolfram Mathematica 8.0