Some Basic Logic. Henry Liu, 25 October 2010

Similar documents
1 Implication and induction

11 th Philippine Mathematical Olympiad Questions, Answers, and Hints

ANSWERS. CLASS: VIII TERM - 1 SUBJECT: Mathematics. Exercise: 1(A) Exercise: 1(B)

Web Solutions for How to Read and Do Proofs

Pre RMO Exam Paper Solution:

45-th Moldova Mathematical Olympiad 2001

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

x 9 or x > 10 Name: Class: Date: 1 How many natural numbers are between 1.5 and 4.5 on the number line?

How to prove it (or not) Gerry Leversha MA Conference, Royal Holloway April 2017

UNC Charlotte 2005 Comprehensive March 7, 2005

Practice Test Geometry 1. Which of the following points is the greatest distance from the y-axis? A. (1,10) B. (2,7) C. (3,5) D. (4,3) E.

HANOI OPEN MATHEMATICS COMPETITON PROBLEMS

Introducing Proof 1. hsn.uk.net. Contents

HANOI OPEN MATHEMATICAL COMPETITON PROBLEMS

1. Suppose that a, b, c and d are four different integers. Explain why. (a b)(a c)(a d)(b c)(b d)(c d) a 2 + ab b = 2018.

Math Precalculus I University of Hawai i at Mānoa Spring

(D) (A) Q.3 To which of the following circles, the line y x + 3 = 0 is normal at the point ? 2 (A) 2

IMO Training Camp Mock Olympiad #2 Solutions

Algebraic Expressions

Factorisation CHAPTER Introduction

Chapter (Circle) * Circle - circle is locus of such points which are at equidistant from a fixed point in

1. Let g(x) and h(x) be polynomials with real coefficients such that

Baltic Way 2008 Gdańsk, November 8, 2008

2 BAMO 2015 Problems and Solutions February 26, 2015

Mathematics. Mock Paper. With. Blue Print of Original Paper. on Latest Pattern. Solution Visits:

MATH 135 Fall 2006 Proofs, Part IV

Nozha Directorate of Education Form : 2 nd Prep. Nozha Language Schools Ismailia Road Branch

Sample Question Paper Mathematics First Term (SA - I) Class IX. Time: 3 to 3 ½ hours

KENDRIYA VIDYALAYA SANGATHAN, HYDERABAD REGION

Proof worksheet solutions

1. The sides of a triangle are in the ratio 3 : 5 : 9. Which of the following words best describes the triangle?

5. Introduction to Euclid s Geometry

Sydney University Mathematical Society Problems Competition Solutions.

Higher Geometry Problems

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

UNC Charlotte Super Competition Level 3 Test March 4, 2019 Test with Solutions for Sponsors


2018 LEHIGH UNIVERSITY HIGH SCHOOL MATH CONTEST

CAREER POINT PRE FOUNDATION DIVISON CLASS-9. IMO Stage-II Exam MATHEMATICS Date :

First selection test

[STRAIGHT OBJECTIVE TYPE] Q.4 The expression cot 9 + cot 27 + cot 63 + cot 81 is equal to (A) 16 (B) 64 (C) 80 (D) none of these

Mathematics 1 Lecture Notes Chapter 1 Algebra Review

Higher Geometry Problems

chapter 1 vector geometry solutions V Consider the parallelogram shown alongside. Which of the following statements are true?

STEP Support Programme. Hints and Partial Solutions for Assignment 1

Alg. (( Sheet 1 )) [1] Complete : 1) =.. 3) =. 4) 3 a 3 =.. 5) X 3 = 64 then X =. 6) 3 X 6 =... 7) 3

Math 203A - Solution Set 1

Marquette University

International Mathematical Olympiad. Preliminary Selection Contest 2004 Hong Kong. Outline of Solutions 3 N

Math Precalculus I University of Hawai i at Mānoa Spring

9th Bay Area Mathematical Olympiad

R1: Sets A set is a collection of objects sets are written using set brackets each object in onset is called an element or member

Discrete Mathematical Structures: Theory and Applications

Chapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler

The sum x 1 + x 2 + x 3 is (A): 4 (B): 6 (C): 8 (D): 14 (E): None of the above. How many pairs of positive integers (x, y) are there, those satisfy

KENDRIYA VIDYALAYA SANGATHAN, HYDERABAD REGION

2007 Shortlist JBMO - Problems

ANSWER KEY & SOLUTIONS

Discrete Math I Exam II (2/9/12) Page 1

Algebraic Expressions and Identities

Problems and Solutions

POLYNOMIALS. x + 1 x x 4 + x 3. x x 3 x 2. x x 2 + x. x + 1 x 1

Fundamentals of Pure Mathematics - Problem Sheet

Hanoi Open Mathematical Competition 2017

USA Aime 1983: Problems & Solutions 1

Topics in Logic and Proofs

Objective Mathematics

CAREER POINT. PRMO EXAM-2017 (Paper & Solution) Sum of number should be 21

1 Hanoi Open Mathematical Competition 2017

2015 Canadian Team Mathematics Contest

Class-IX CBSE Latest Pattern Sample Paper {Mathematics}

CLASS IX : CHAPTER - 1 NUMBER SYSTEM

Exercises for Unit V (Introduction to non Euclidean geometry)

Paper: 02 Class-X-Math: Summative Assessment - I

DESIGN OF THE QUESTION PAPER

2016 AMC 12A. 3 The remainder can be defined for all real numbers x and y with y 0 by x rem(x,y) = x y y

9 th CBSE Mega Test - II

Lines, parabolas, distances and inequalities an enrichment class

International Mathematics TOURNAMENT OF THE TOWNS

King Fahd University of Petroleum and Minerals Prep-Year Math Program Math Term 161 Recitation (R1, R2)

LECTURE 1. Logic and Proofs

BREVET BLANC N 1 JANUARY 2012

Chapter 1 Review of Equations and Inequalities

SOLUTIONS FOR IMO 2005 PROBLEMS

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs

REVIEW PROBLEMS FOR SECOND 3200 MIDTERM

REVISED vide circular No.63 on

1 What is the solution of the system of equations graphed below? y = 2x + 1

Test Corrections for Unit 1 Test

CHAPTER 1 POLYNOMIALS

3 The language of proof

1. Prove that the number cannot be represented as a 2 +3b 2 for any integers a and b. (Hint: Consider the remainder mod 3).

DR.RUPNATHJI( DR.RUPAK NATH )

Workshops: The heart of the MagiKats Programme

2012 Fermat Contest (Grade 11)

37th United States of America Mathematical Olympiad

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

2005 Palm Harbor February Invitational Geometry Answer Key

Section 2-1. Chapter 2. Make Conjectures. Example 1. Reasoning and Proof. Inductive Reasoning and Conjecture

Proofs. Chapter 2 P P Q Q

Transcription:

Some Basic Logic Henry Liu, 25 October 2010 In the solution to almost every olympiad style mathematical problem, a very important part is existence of accurate proofs. Therefore, the student should be competent with the strict rules of mathematical logic. These rules can be easily ignored, and errors often appear, ranging from proving an inequality, to a proof by contradiction. Very often, phrases like if and only if, contradiction, necessary and sufficient, and symbols like,, keep appearing. What exactly do they mean? In this set of notes, we shall discuss the exact meaning of these and other related terms. 1. Statements and Notations 1.1 Statements Definition 1 A (mathematical) statement is a mathematical sentence which can only be true or false. Example. Here are some examples of mathematical statements. 40 is divisible by 5. ABC = XY Z. 2 is rational. x y. Note that the first statement is true, the third is false, and the other two can be either true or false. 1.2 Quantifiers and some other notations There are some basic quantifiers and notations which are worth knowing. Definition 2 (a) means there exists, and! means there exists a unique. (b) means for all. (c) means such that. If A and B are mathematical statements, then, (d) A B, or B A, means A implies B. (e) A B means A implies B, and B implies A. 1

In (d), there are some other ways of saying A B : A only if B ; B if A ; A is a sufficient condition for B ; B is a necessary condition for A. In (e), A and B are said to be equivalent statements. Essentially, A and B are different ways of saying the same thing. Other ways of saying A B : A if and only if B, or A iff B in short; B is a necessary and sufficient condition for A. Also, note that A B and A B are also statements; they are compound statements. The statement B A is the converse of the statement A B. Example. The following are true mathematical statements. n N p N p > n and p is prime. x 2 4x 5 = 0 x = 1 or x = 5. n N! k N {0} 2 k divides n, but 2 k+1 does not divide n. The following are false mathematical statements. q Q q Z. polynomial p(x) p(x) is cubic and it has no real root. The following mathematical statements can be true or false. ABC = XY Z DEF = P QR.! vertex v in a graph G deg(v) = 3. 2. Proofs 2.1 Implications, and If and only if A common mistake in proofs involving statements is the direction of the implications being the wrong way round. This is especially common in inequalities problems, but it can also occur in problems in other areas. Example. Consider the following problem. Let x, y, z be positive real numbers. Prove that (x + y + z)(xy + yz + zx) 9xyz. 2

When does equality hold? Now consider the following solution. (x + y + z)(xy + yz + zx) 9xyz. So, multiplying out the LHS, xy 2 + xz 2 + yz 2 + yx 2 + zx 2 + zy 2 + 3xyz 9xyz xy 2 + xz 2 + yz 2 + yx 2 + zx 2 + zy 2 6xyz 0 x(y 2 + z 2 2yz) + y(z 2 + x 2 2zx) + z(x 2 + y 2 2xy) 0 x(y z) 2 + y(z x) 2 + z(x y) 2 0 Each term on the LHS of the last line is non-negative. So the original inequality is true, and the result follows. Equality holds when y z = z x = x y = 0 x = y = z. This solution is absurd because it has taken the chain of implications in the wrong direction. It is wrong to say something like We would like to prove A. A implies B, which implies C, which implies D, which is true. Hence A is true. This is incorrect. The correct thing to do, of course, is to argue the opposite way. So, the correct version should be We want to prove A. But B implies A. But C implies B. But D implies C. But D is true. So A is true. Furthermore, looking for equivalent statements is a good idea. So, the correct version of the above should be the following. We have (x + y + z)(xy + yz + zx) 9xyz xy 2 + xz 2 + yz 2 + yx 2 + zx 2 + zy 2 + 3xyz 9xyz xy 2 + xz 2 + yz 2 + yx 2 + zx 2 + zy 2 6xyz 0 x(y 2 + z 2 2yz) + y(z 2 + x 2 2zx) + z(x 2 + y 2 2xy) 0 x(y z) 2 + y(z x) 2 + z(x y) 2 0 The LHS of the last line is non-negative, so the last inequality is true. But it is equivalent to the original inequality, so the original inequality is true as well. Also, the corrected version of dealing with the case of equality is the following. Equality holds if and only if y z = z x = x y = 0, or equivalently, x = y = z. What was previously written about the case of equality is again, incorrect. Even the following shorter argument in proving this result is correct. By the AM-GM inequality, we have x + y + z 3(xyz) 1/3, and xy + yz + zx 3(xyz) 2/3. Multiplying these two gives the result. Equality holds iff x = y = z and xy = yz = zx, ie: iff x = y = z. This solution is good because we started with two statements, both being true, and deduced what we wanted to prove from them. In the case of equality, we derived x = y = z because this is equivalent to saying x = y = z and xy = yz = zx. 3

We often see problems of the following form: Prove that A if and only if B. What exactly does this mean? For those who lack the knowledge of what we have discussed so far, they may get confused at what exactly the problem is asking. There are two tasks at hand: prove that A implies B, and that B implies A. It is a common and regrettable mistake to prove just one of the two implications. Example. Here is a classic example. Prove that a number n N is divisible by 3 if and only if the sum of its digits (in base 10) is divisible by 3. The correct way to proceed is the following. Let n have k digits, say, n = a k 1 a k 2 a 1 a 0 is the base 10 representation of n. That is, the digits of n (in base 10) are the a i. Firstly, suppose that n is divisible by 3. Then n = a i 10 i 0 (mod 3) (a k 1 + + a 0 ) + a i (10 i 1) 0 (mod 3). Now, since 10 1 (mod 3), we have 10 l integer l. It follows that 1 (mod 3) for every non-negative a i (10 i 1) 0 (mod 3), (1) and hence a k 1 + + a 0 0 (mod 3), as required. Conversely, let a k 1 + + a 0 0 (mod 3). Again, (1) is true. We have as required. n = a i 10 i = (a k 1 + + a 0 ) + a i (10 i 1) 0 (mod 3), In the above proof, the classic mistake is to prove only one of the two implications. One must be careful of the task when the a problem says if and only if. 2.2 The converse Whenever a statement A B is true, its converse may or may not be true. Sometimes, a problem may be of the form Prove that A B, and then it asks Is the converse true?. If one wants to claim that the converse is false, then only a counterexample needs to be provided. Otherwise, if one wants to claim that the converse is true, then a proof is required. Often (but not always), the converse involved 4

in such a problem is false, and one should try hard to think of a counterexample first. Example. Consider the following problem. Let ABCD be a quadrilateral inscribed in a circle of radius r, and let the diagonals AC and BD meet at X. Prove that, if AC is perpendicular to BD, then AX 2 + BX 2 + CX 2 + DX 2 = 4r 2. Is the converse true? So, this question consists of two parts. The first part is to assume that AC is perpendicular to BD, and we would like to prove that AX 2 +BX 2 +CX 2 +DX 2 = 4r 2. Let E be the point such that AE be a diameter of the circle. Then AE 2 = AB 2 + BE 2. So, 4r 2 = AX 2 + BX 2 + BE 2. Now, we claim that BE = CD. We have BAE = 90 BEA = 90 BCA = CBD. So, BE and CD subtend equal angles, and hence BE = CD. Now, we have 4r 2 = AX 2 + BX 2 + CD 2 = AX 2 + BX 2 + CX 2 + DX 2, which is what we want. For the second part, we must deal with the converse statement. We want to answer this: Does AX 2 + BX 2 + CX 2 + DX 2 = 4r 2 imply that AC and BD are perpendicular?. If we want to show that this converse is false, then we just need to provide a counterexample. This indeed is the case here: let ABCD be a rectangle which is not a square. Then AX = BX = CX = DX = r, and so AX 2 + BX 2 + CX 2 + DX 2 = 4r 2 holds. But AC and BD are not perpendicular. So, the converse statement is false. 2.3 Proof by contradiction This is a method of proof which belongs to logic. The idea is that, when we want to prove that a certain mathematical statement is true, we firstly assume that it is false, see what the falsity can imply, and eventually hope to arrive at something which is absurd; the contradiction. Example. The following is a classic example which demonstrates proof by contradiction. Prove that 2 is irrational. To prove that 2 is irrational, we start by assuming the contrary: that it is rational. So we can write 2 = p/q, where p, q N and in lowest terms, so that hcf(p, q) = 1. Then, 2 = p 2 /q 2, so p 2 = 2q 2. We see that p 2 is even, it follows that p is even. So write p = 2P for some P N. Then, 2q 2 = 4P 2, so q 2 = 2P 2, and by the same argument, we have q is also even, say, q = 2Q. But now, we see that 2 divides both p and q, contradicting the fact that hcf(p, q) = 1. Hence the original assumption was wrong, and 2 needs to be irrational in the first place. Notice that the power of the proof by contradiction method is that, some problems such as Prove that 2 is irrational may otherwise be very difficult to prove directly. Example. The previous example is very well-known, so here is another more orig- 5

inal example. Consider the following problem. Let ABC be a triangle, and let M be the midpoint of BC. Let P and Q be points on the sides AB and AC respectively, and let P Q meet AM at N. Suppose that N is the midpoint of P Q. Prove that P Q is parallel to BC. We demonstrate how to use proof by contradiction to solve this problem. Assume the contrary; that P Q is not parallel to BC. Then, we can draw the line through N which is parallel to BC. Let this line meet AB and AC at R and S respectively. We have R P and S Q. Now, it is easy to see that AMB and ANR are similar, so BM/RN = AM/AN. Similarly, CM/SN = AM/AN. So, BM/RN = CM/SN, hence RN = SN since BM = CM. Now, P RQS is a quadrilateral whose diagonals bisect each other, and so it is a parallelogram. So, we have P R and QS are parallel. This is absurd. So our original assumption that P Q and BC are not parallel was wrong, and they must be parallel in the first place. Again, it seems a little bit more difficult to tackle this particular problem without a proof by contradiction. Example. We finish with another classic example. We shall use proof by contradiction to prove a result that is over 2000 years old. Prove that there are infinitely many primes. Assume the contrary, that there are only finitely many primes. Call these p 1, p 2,..., p n. We have p i 2 for every i. Now, consider the number m = p 1 p 2 p n + 1. Since m leaves a remainder of 1 upon division by any prime p i, it is a prime. However, m p i for any i, since m > p i for every i. So, we have found a prime number m which is none of p 1, p 2,..., p n. This is absurd, so we cannot have finitely many primes p 1, p 2,..., p n in the first place. 6