Methods of Proof
Methods of Proof
q is true by assuming that p and Showing that q must be also be true. This implies that —g and g are both true, a contradictior tion tells us that we ean turn a direct proof into a proof by contradiction. statement of i that is, as! Proofs OF Equivalence _® PFOV€ theorem that is @ biconditional statement, ee tea ie the form p ey gs we show that P 4 80d q —> p are both true. The validity of this approach is b ‘autolo, . ey Pegolpoorsarrh Scanned with CamScanner80 Discrete Mathematics & Its Applications Prove the theorem “If n is a positive integer, then n is odd if and only if n2 is odd.» Prove the theore? Example 12 tes Sa a : This theorem has the form “p ifand only if g,” where p is “n is odd” and q is “ris ogg, his theorem has i ; rem, Wi artes Jo not explicitly deal with the universal quantification.) To prove this theorem, we need to sho usual, we do not explicitly dea that p — q and q -> p are true, : le 1) that is true and (in Example 8) that q > pig tye. Ve have already shown (in Example 1) that p —> q ple 8) that cx FY barsueie fas shown that both p > g and q —> p are true, we have shown tha he Examples : theorem is true, equivalent. Such a theorem states that propa. Sometimes a theorem states that several-propositions are sitions p,, 7, Py... p, ate equivalent. This can be written as Pr OP ©... Py which states that all n propositions have the same truth values, forall Jandy and 1 =j = n, p,and p, are equivalent. One way to prove these mutually equivalent is to use the tautology Bie Py. Pd (PIA: > DY A.- AP, PIL This shows that if the conditional statements p, > PsP > Py P, > Py can be shown to be true, then the Propositions p,, p,,..., p, are all equivalent. : 2 {ris is much more efficient than proving that p, > p, for all /=j with 1 p, Ps Py and p, > p,. and consequently, that for all andj with 1 <<, Sn, tee Example 13. Stiow shat these statements about the integer n are equivalent: Py niseven. Px n= Lisodd. : Py Wiseven, Solution We will show that these three statements are equivalent by showing th; ments 2; — P,P; > py and p, > p, are true, . B We use a direct proof to show that p, ~> ps sequently, » — 1 = 2k— 1 = k= 1) 41 Thi where m is the integer k — 1. We also use a direct proofto show that p, > p,, Now supy ; 7 Pose n — integer k. Hence, m= 2k + 2 so that n? = (2k + 3) — 424 84 ul 7 is ata Then nm ~ 1 = 24+ 1 for somg is twice the integer 2k? + 4k + 2, and hence is even, + 4k + 2). This means that n To prove p, > py, we use a proof by contaposition, Tha jg ; even. This is the same as proving that ifn sod, then ya odd winven a i NOt even, then 1 snot This completes the proof. have already done in Example | 4 vat the conditional state Counterexamples in Section 1.3 we sated that to shoyy that i a we need only find a counterexample, that is, an example x for which Peay Of the form vx, P(x) is false, statement of the form Vx P(x), which we believe to be false °F Which has p Js false. When Presented with a fora counterexample, Weilusrte the use of counterexampie Example [a al! PfOof attempts, we look Example 14, Example 14 Show that the statement “Every positive integer ig the sum of is false. SMares of two imegers” Scanned with CamScannerThe Foundations: Logicand Proofs gy y that this statement is fal, qo show Se, We look f = got eee orhe squares Of tWo integers for a counterexample, which is a particular; ott es 1S ten a the Fa elk does not take long to find a counterexample, he integer canine oly perfect squares yo che ates of to integer. To show this isthe ae ta get 3 a8 the sam of ea eNeeeMing 3 ae 0 = O and 1 1. Furthermore ete y Re lerms each of is 0 or 1.C fawn at sve poultive liieme tn ch of which is 0 or 1. Consequently, we have g Fe that “Every Ps integer is the sum of the squares of two integers” i fe oe inproofs There are many commo yescribe some ofthese h ron professionsil mathematic sue Whenever YoU ts Mn errors made in constructing mathematical = ia roofs. mong the most common errors ate mistakes in arithmetic and vert make such errors, especially when workin, A ch commutation: : 18 with complicated ae ch computations you should check them as carefully as possible. (You should eview any troul ie fie of basic algebra, especially before you study Section 4.1.) «ep of a mathematical proof needs to be correct and the conclusion needs to follow logically from shat precede it. Many mistakes result from the introduction of steps that do not logi “Jpscede it. This illustrated in Examples 15-17. : oe eno gample 15 What is wrong with this famous supposed “proof” that | = 2? profi” We use these steps, where a and b are two equal positive integers. ‘Seep Reason Given Multiply both sides of (1) by a Subtract b? from both sides of (2) Factor both sides of (3) Divide both sides of (4) by a — Replace a by b in (5) because a Divide both sides of (6) by sition Every step is valid except for one, step 5 where we divided both sides by a — b. The error is that 2 bequls zero; division of both sides of an equation by the same quantity is valid as long as this quantity zero, < b and simplify Bample16 What is wrong with this “proof? “Theorem” If n? is positive, then 1 is positive. “Fe Suppose that n®is positive. Because the conditional statement “If m is positive, then mis positive” “swe can conclude that n is positive: | ion Let pin) be “nis positive” and O(n) be"? is positive.” Then our hypothesis is Q(n), The state- lt nis positive, then n? is positive” is the statement Vn P(n) > O(n)). From the hypothesis EY and ‘ement Yn( P (n) —» O{n)) we cannot conclude P(n), because we are not using & valid le of ni “Tstead, this is an example of the fallacy of affirming the conclusion. ‘A.counterexample is supplied "4 for which n2 = 1 is positive, but 1 is negative. Re & Ample 17 — Whar is wrong with this “proof”? “ ; iti “theorem” in “Theorem?” If n is not positive, then n? is not positive. (This is the contraposttive of the Sample 16.) Scanned with CamScannerBe Dvcrere mt A ite Applicatione Neeaase the conditional statement “If 1 is positive, then 1? is posi. Proof.” Suppose that n is not positive, Heca Five" is tre, we ean conchnde that mis not positive. xample 16. Then our hypothesis is —P(n) and the Scion <0) and ea in erento Pn)» Ot). Fro he ypshesis~Py She ce eT annot conchide O(n), because we are not using a valid rule of vee ads ss cannot the fallacy of denying the hypothesis. A counterexample is sole Fitba Be apa ao fot My ent es bd on cI beeing the quetion This alley oes when one or more steps ofa proof ar based on the we statement being proved, In other words, this fallacy arises when a statement is proved using itself, also called circular reasoning. inference. Instead. this is by» Example 18 Js the following argument correct? It supposedly shows that n is an even integer whenever even integer Suppose that n? is even, Then n that n is even. 2k for some integer &. Let » = 21 for some integer . This shows Solution This argument is incorrect. The statement “let n = 21 for some integer /” argument has been given to show that » can be written as 2/ for some integer / Secause this statement is equivalent to the statement being proved, namely, “) elf is correct; only the method of proof is wrong, 4 Making mistakes in proofs is part of the learning finds, you should carefully analyze where you we mistake again. Even professional mathema of important results have fooled people for m: occurs in the proof. No This is circular reasoning ‘nis even.” Of course, the result Just a Beginning We have now developed a basic : will introduce other important proof methods, We will als atone ee In the next section we Chapter 4, including mathematical induction, which ean be meets prove See sap leap steers In haptcr& we wil iroduce the notion of combinatorial roots, ne et BO fee all positive In this seetion we introduced several methods for provi Te 7 ‘ w theorems of the form Wx( P (x) Qa), ine! ing direct proofs and proofs by contraposition, 7 ae many theorems ofthis ype whose oe construct by direetly working through the hypotheses ang definitions 0} HS type Whose proofs are easy to often diet proves theorem witout trig aes of the theorem. However it iction, or some other proof technique. In Se root by contraposition by porns Fics 05 ae baad itd ey when ES We will ade s proof stratee ye crn Broo by eee oct stetighttorward approaches donee me a eee: lot work. Construct- ing proofs is an art that can be learned only through experi 8 Writing proofs, having your proofs dreading and analyzing other prooi, Nee inetudiny Exercises JF10 show that the sum OF Bo oa the term Aeleveruse of critiqued, @ 1, Use a direct proo M1 inte 4. Show aha en. tthe aclditiv, in gers is eve ow thatthe sui 0180 even ige inverse, oF n 2, Use adirect proof to show that "8. Prove ang Mtevet munber using a qe OF am even ers is even. mon and it + mand n+ pene geet ‘hiow that the square of an ofp? are integers, the owing a ditt pro. Met did you use?" + PiS even, What kind Scanned with CamScannerost poor stow that the product of two odd ye? Oe old ee sis root 1 show that every odd integer i the wares. weeeaft90 = perfect square, then + 2 is not g teat jens pe ate. ‘ ft py contradiction to prove that the sum of ay 227 her anda rational number is irrational tel proof to show that the product of Wo rational csisrational e araisprove that the product of two irrational num. sation. . sare that the poet of 3 nonzero rational $ Lake ‘nd an rational number is irrational, ee tif is rational, then 1/x is irrational a poet tis rational and x + 0, then 1c is ational, mae by contraposition to show that if + y = (Se Xand yate real numbers, then x = Lory = 1. tht ifm and n ae integers and mis even, then m seenornis eve. «Sun tat ifm isan integer and n° + $ is odd, then mis, cof by contraposition, ») sproofby contradiction. Prove that if m is an integer and 3 + 2 is even, then » is ceasing 2) aproof by contraposition. ») poof by contradiction. rove the proposition P(0), where P(1) is the proposition nis positive integer greater than 1, then n? > 1.” ‘kind of proof did you use? “we the proposition P(1), where P(n) is the proposition “nis & positive integer, then n? = 1.” What kind of Prof did vou use? Pir) be the proposition “If a and b are positive real es then (a + byt & att + br.” Prove that PCI) is ‘What kind of proof did you use? “ow tat if you pick three socks from a drawer contain- hs blue socks and black socks, you must get either a = Otblue socks or a pair of black socks. that a least 10 of any 64 days chosen must fall on x, Steday of the week. see tat least 3 of any 25 days chosen must fall in the 5 yp Month of the tes 1 year. ap, Pfby contradiction to show that there is no rational on for which + p+ 1 = 0. [Hint: Assume that ling 0 Where @ and b are integers and a/ is in lowest bye Then gene ation involving integers by multiplying look at whether a and b are each odd or even] ifnisa Positive integer then 7 is even if and +4iseven, if mis a positive integer, then 1 is odd if and +6is odd. ee 28, 29, 30. uM 2 35. 36. 37. 38. 39. 40, 4. 42. The Foundations: Logicand Proofs fs 83 Prove that m? = 1? if and only if m Prove or disprove that if m and n ‘mn = 1, then either m = land n = ZA, Show that these three statements are equi and bare réal numbers (ais less thar on oo “ ofa and h is greater than a, and (ii) the avenee eS bis less than b, reauerage ofc and Show that these statements about the integer lent: () 3e + 2is even, i) + Sisodd apatanee ‘Show that these statements about the real maker See ‘equivalent: (i) x is rational, (i) x/2 is rational, and 3x — 1 is rational. onal an (ay Show that these statements about the real number x are equivalent: (i) xis irational, (i) 3x + 2s ittationl, (i) x/2 is irrational. : Is this reasoning for finding the solutions ofthe equation 2x’ correct? (1) ¥2x? =I = x is given; (2) 20 1 =x, obtained by squaring both sides of (1); (3) 2 — 1 0, obtained by subtracting x? from both sides of (2); (4) (x — DG + 1) = 0, obtained by factoring the let hand side of x2 ~ 1; (5) = 1 orx = ~1, which fllows because ab = 0 implies that a = 0 or = norm = =n, are integers such that orelse m= —1 an ‘Are these steps for finding the solutions of Vx+3 correct? (1) Vx+3=3~x is given; (2).x +3 Gx + 9, obtained by squaring both sides of (1); (3) x2 — Tx + 6, obtained by subtracting x + 3 from both sides of (2); (4) 0 = (x ~ 1)(x ~ 6), obtained by factoring the right-hand side of (3); (5). lorx which fol- lows from (4) because ab = 0 implies that a = 0 or b = 0. ‘Show that the propositions p,,p, Ps, and p, can be shown to be equivalent by showing that p, + Py. P: Po 85?) Px Show thatthe propositions p,.p2.Ps-Pe,amepecanbe stows to be equivalent by proving that the conditional statements Pi Py Pr PPro + Py py > Po and ps — Ps are tue. Find a counterexample to the statement that every Post five integer ean be written as the sum of the squares of three integers. Prove that at least one ofthe real mumbers iy do. is greater than or equal to the average ‘of these numt What kind of proof did you use? Use Exercise 50 to show that if the first 10, Pee gers are placed around a circle, in any cole three integers in consecutive Hosations 20 that have a sum greater than oF QU! 117. ape Prove that if m is an integer, thes ior ee equivalent: (i) is even, (i) + 18 odd, (i odd, (iv) 3m is even. Prove that these four stat equivalent: (i)? is odd, (ti (iv) n? + Lis even. 4 integer "1 ements about the ie js odd. ) 1 — ais ever. (il Scanned with CamScanner