Solutions to Homework Problems

Similar documents
MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017

RELATIONS AND FUNCTIONS

(a) We need to prove that is reflexive, symmetric and transitive. 2b + a = 3a + 3b (2a + b) = 3a + 3b 3k = 3(a + b k)

Sets and Functions. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Sets and Functions

Functions. Definition 1 Let A and B be sets. A relation between A and B is any subset of A B.

REVIEW FOR THIRD 3200 MIDTERM

Chapter 1 : The language of mathematics.

and problem sheet 6

Section 4.4 Functions. CS 130 Discrete Structures

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

Math 421, Homework #9 Solutions

9/21/2018. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions

Real Analysis. Joe Patten August 12, 2018

Section Summary. Definition of a Function.

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

Functions as Relations

Cartesian Products and Relations

CS100: DISCRETE STRUCTURES

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth

CHAPTER 1: RELATIONS AND FUNCTIONS

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

QUESTION BANK II PUC SCIENCE

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

D-MATH Algebra I HS 2013 Prof. Brent Doran. Solution 3. Modular arithmetic, quotients, product groups

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

Midterm Exam. There are 6 problems. Your 5 best answers count. Please pay attention to the presentation of your work! Best 5

Introduction to Proofs

can only hit 3 points in the codomain. Hence, f is not surjective. For another example, if n = 4

6 CARDINALITY OF SETS

Discrete dynamics on the real line

Sets and Functions. (As we will see, in describing a set the order in which elements are listed is irrelevant).

4.1 Real-valued functions of a real variable

Selected Solutions to Even Problems, Part 3

Review Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which

1 Take-home exam and final exam study guide

8 Further theory of function limits and continuity

Func%ons. function f to the element a of A. Functions are sometimes called mappings or transformations.

447 HOMEWORK SET 1 IAN FRANCIS

MODEL ANSWERS TO THE SEVENTH HOMEWORK. (b) We proved in homework six, question 2 (c) that. But we also proved homework six, question 2 (a) that

Homework 5. Solutions

Solutions to Homework Set 1

Sets, Functions and Relations

Math 110 Midterm 1 Study Guide October 14, 2013

4) Have you met any functions during our previous lectures in this course?

Selected problems from past exams

Solutions for Chapter Solutions for Chapter 17. Section 17.1 Exercises

SETS AND FUNCTIONS JOSHUA BALLEW

Sec$on Summary. Definition of a Function.

Week Some Warm-up Questions

COM S 330 Homework 05 Solutions. Type your answers to the following questions and submit a PDF file to Blackboard. One page per problem.

CLASS12 RELATIONS AND FUNCTIONS

Math 300: Final Exam Practice Solutions

Chapter 1. Sets and Mappings

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

Notes. Functions. Introduction. Notes. Notes. Definition Function. Definition. Slides by Christopher M. Bourke Instructor: Berthe Y.

Section Summary. Definition of a Function.

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

Functions Functions and Modeling A UTeach/TNT Course

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

1. Decide for each of the following expressions: Is it a function? If so, f is a function. (i) Domain: R. Codomain: R. Range: R. (iii) Yes surjective.

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

MATH 201 Solutions: TEST 3-A (in class)

9/21/17. Functions. CS 220: Discrete Structures and their Applications. Functions. Chapter 5 in zybooks. definition. definition

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY COIMBATORE Discrete Mathematics Functions

RELATIONS AND FUNCTIONS

Counting. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

CS 220: Discrete Structures and their Applications. Functions Chapter 5 in zybooks

Homework 1 Solutions

xy xyy 1 = ey 1 = y 1 i.e.


MODEL ANSWERS TO THE FIRST HOMEWORK

Functions If (x, y 1 ), (x, y 2 ) S, then y 1 = y 2

Chapter 8. Exploring Polynomial Functions. Jennifer Huss

Solved Examples. Given are two sets A {1, 2, -2, 3} and B = {1, 2, 3, 5}. Is the function f(x) = 2x - 1 defined from A to B?

Thus, X is connected by Problem 4. Case 3: X = (a, b]. This case is analogous to Case 2. Case 4: X = (a, b). Choose ε < b a

Math 3450 Homework Solutions

TOPOLOGY HW 2. x x ± y

Homework 7 Solutions, Math 55

MATH 3300 Test 1. Name: Student Id:

RED. Fall 2016 Student Submitted Sample Questions

1.2 Functions What is a Function? 1.2. FUNCTIONS 11

INFINITY.THINK BEYOND.

Mathematics 220 Workshop Cardinality. Some harder problems on cardinality.

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

CITS2211 Discrete Structures (2017) Cardinality and Countability

Exam Practice Problems

Topics in Logic, Set Theory and Computability

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

MATH 22 FUNCTIONS: COMPOSITION & INVERSES. Lecture N: 10/16/2003. Mad world! mad kings! mad composition! Shakespeare, King John, II:1

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK

CALCULUS II - Self Test

Math 127 Homework. Mary Radcliffe. Due 29 March Complete the following problems. Fully justify each response.

FOUNDATIONS & PROOF LECTURE NOTES by Dr Lynne Walling

1 Basic Combinatorics

Math 42, Discrete Mathematics

0 Sets and Induction. Sets

UWO CS2214 Feb. 4, Assignment #1 Due: Feb. 12, 2017, by 23:55 Submission: on the OWL web site of the course

Transcription:

Solutions to Homework Problems November 11, 2017 1 Problems II: Sets and Functions (Page 117-118) 11. Give a proof or a counterexample of the following statements: (vi) x R, y R, xy 0; (x) ( x R, y R, x + y > 0) and ( x R, y R, x + y = 0). A) (vi) Choose y = 0. Then for any x R, xy = 0 0. So, this statement is true. Alternatively, one can put y = x. (x) Let P denote the statement ( x R, y R, x+y > 0), and let Q denote the statement ( x R, y R, x+y = 0).We have to find whether the statement (P and Q) is true or not. If x R, then putting y = 1 x, we see that statement P is true. If x R, then putting y = x, we see that statement Q is true. Since both P and Q are true, the statement (P and Q) is true. 14. Define functions f and g : R R by f(x) = x 2 and g(x) = x 2 1. Find the functions fof, fog, g of, g o g. List the elements of the set {x R fg(x) = gf(x)}. A) fof : R R is given by fof(x) = f(f(x)) = f(x 2 ) = (x 2 ) 2 = x 4. fo g : R R is given by fo g(x) = f(g(x)) = f(x 2 1) = (x 2 1) 2 = x 4 2x 2 +1. g of : R R is given by g of(x) = g(f(x)) = g(x 2 ) = (x 2 ) 2 1 = x 4 1. g o g : R R is given by g o g(x) = g(g(x)) = g(x 2 1) = (x 2 1) 2 1 = x 4 2x 2. If x is such that fg(x) = gf(x), then x 4 2x 2 + 1 = x 4 1 = 2x 2 = 2 = x = ±1. Therefore, {x R fg(x) = gf(x)} = { 1, +1}. 16. Determine which of the following functions f i : R R are injective, which are surjective and which are bijective. Write down an inverse function of each of the bijections. (i) f 1 (x) = x 1; 1

(ii) f 2 (x) = x 3 ; (iii) f 3 (x) = x 3 x; (iv) f 4 (x) = x 3 3x 2 + 3x 1; (v) f 5 (x) = e{ x ; x 2 if x 0, (v) f 6 (x) = x 2 if x 0. A) (i) Define g 1 : R R by g 1 (x) = x + 1. Then f 1 o g 1 (x) = f 1 (g 1 (x)) = f 1 (x + 1) = x + 1 1 = x x R. Also g 1 of 1 (x) = g 1 (f 1 (x)) = g 1 (x 1) = x 1+1 = x x R. Therefore, g 1 = f1 1, which implies f 1 is invertible, and hence bijective, and subsequently injective and surjective. (ii) Define g 2 : R R by g 2 (x) = x 1/3. Then f 2 o g 2 (x) = f 2 (g 2 (x)) = f 2 (x 1/3 ) = (x 1/3 ) 3 = x x R. Also g 2 of 2 (x) = g 2 (f 2 (x)) = g 2 (x 3 ) = (x 3 ) 1/3 = x x R. Therefore, g 2 = f2 1, which implies f 2 is invertible, and hence bijective, and subsequently injective and surjective. (iii) Since f 3 (0) = f 3 (1) = 0, f 3 is not injective, and hence not bijective also. Now let y be any real number. Look at the function f given by f(x) = x 3 x y. Note that f is a continuous function on R. Note that when x is a very negative number, then f(x) is negative. Similarly, when x is a large positive number, f(x) will be positive. Then, by the Intermediate Value Theorem in Calculus, x such that f(x) = 0, that is, there exists x such that x 3 x = y. Therefore, f 3 is surjective. Note: This question is quite tricky as it uses a lot of calculus. It will not be on the test. (iv) Note that x 3 3x 2 + 3x 1 = (x 1) 3 = f 2 (x 1) = f 2 (f 1 (x)) = f 2 of 1 (x). So, f 4 = f 2 of 1. Since both f 2 and f 1 are bijective, f 4 is also bijective, and hence also surjective and injective. f4 1 = f1 1 1 of2 (v) Since there does not exist a real numberx such that e x = 0, f 5 is not surjective, and hence not bijective. Now suppose that f 5 is not injective. Then x 1, x 2 distinct in R such that e x1 = e x2. = e x1 x2 = 1 = x 1 x 2 = 0. This gives a contradiction as x 1 and x 2 are distinct. Therefore f is injective. (vi) Define g 6 : R R{ by x if x 0, g 6 (x) = x if x 0. Let x 0. Then, f 6 o g 6 (x) = f 6 (g 6 (x)) = f 6 ( x) = ( x) 2 = x as x 0. Let x 0. Then, f 6 o g 6 (x) = f 6 (g 6 (x)) = f 6 ( x) = ( x) 2 = x as x 0. So f 6 o g 6 (x) = x x R Let x 0. Then, g 6 of 6 (x) = g 6 (f 6 (x)) = g 6 (x 2 ) = (x 2 ) = x. 2

Let x 0. Then, g 6 of 6 (x) = g 6 (f 6 (x)) = g 6 ( x 2 ) = ( x 2 ) = ( x) = x, as x 2 = x when x 0. So g 6 of 6 (x) = x x R Therefore g 6 = f6 1, which implies f 6 is invertible, and hence bijective, and subsequently injective and surjective. 2 Problems III: Numbers and Counting (Page 182-185) 1. Of the 182 students who are taking three first year core Mathematics modules (Reasoning, Algebra and Calculus), 129 like Reasoning, 129 like Algebra, 129 like Calculus, 85 like Reasoning and Algebra, 89 like Reasoning and Calculus, 86 like Algebra and Calculus, and 54 like all three modules. How many of the students like none of the core modules? A) Let R denote the set of students who like Reasoning, A denote the set of students who like Algebra, C denote the set of students who like Calculus. Then R = A = C = 129. A R = 85, C R = 89, A C = 86, A R C = 54 Then, by the inclusion-exclusion principle for A, C and R, A C R = A + C + R A C A R C R + A R C = 129 + 129 + 129 86 85 89 + 54 = 1 The set of students who do not like any of the core modules is A c C c R c. A c C c R c = Total number of students - A C R = 182 181 = 1 So, only one student does not like any of the core modules. 2. Of the 170 students who took all the first year core modules last year, 124 liked Reasoning, 124 liked Algebra, 124 liked Calculus, 10 liked only Reasoning, nobody liked only Algebra, 4 liked only Calculus and 2 liked none of the modules. How many students liked all three core modules? A) Let R denote the set of students who liked Reasoning, A denote the set of students who liked Algebra, C denote the set of students who liked Calculus. Then R = A = C = 124. The set of students who liked only Reasoning is given by R A c C c. Therefore, R A c C c = 10 3

Similarly, A R c C c = 0 and C A c R c = 4. Also, R c A c C c = 2. (R c A c C c ) c = R A C R A C = 170 R c A c C c = 168 Now, (R A c C c ) (R c A c C c ) = A c C c and the two sets on the LHS are disjoint. Therefore, R A c C c + R c A c C c = A c C c = A c C c = 12 Since A c C c = (A C) c, A C = 170 12 = 158. Similarly, A R c C c + A c R c C c = R c C c = R c C c = 2 Since R c C c = (R C) c, R C = 170 12 = 168. Similarly, C A c R c + C c A c R c = A c R c = A c R c = 6 Since A c R c = (A R) c, A R = 170 6 = 164. Now, A C = A + C A C = 124 + 124 158 = 90 Similarly, A R = A + R A R = 124 + 124 164 = 84 Similarly, R C = R + C R C = 124 + 124 168 = 80 Then, by the inclusion-exclusion principle for A, C and R, A C R = A + C + R A C A R C R + A R C 168 = 124 + 124 + 124 90 84 80 + A R C = A R C = 50. So, there were 50 students who liked all three core modules. 14. For n Z +, suppose that A N 2n and A = n+1. Prove that A contains a pair of distinct integers a, b such that a divides b. A) Define f : A {1, 3, 5,..., 2n 1} by f(a) = the greatest odd integer which divides a. By the Pigeonhole Principle (Theorem 11.1.2, Page 136), f cannot be an injection as A = n + 1 n = {1, 3, 5,..., 2n 1} So, a 1, a 2 distinct elements in A such that f(a 1 ) = f(a 2 ). a 1 f(a 1) Note that cannot have any odd factors other than 1, as otherwise, we could multiply that odd factor to f(a 1 ) and get an odd factor of a 1 larger than f(a 1 ). a So, 1 f(a has to be a power of 2. = a 1) 1 = 2 c1 f(a 1 ) for some c 1 0. Similarly, a 2 = 2 c2 f(a 2 ) for some c 2 0. a 2 = 2 c2 f(a 1 ) as f(a 1 ) = f(a 2 ). If c 1 > c 2, then a 2 divides a 1 and so we have obtained two distinct integers in A such that one divides the other. If c 2 > c 1, then a 1 divides a 2 and again we have obtained two distinct integers in A 4

such that one divides the other. So in any case, we have obtained two distinct integers in A such that one divides the other. 20. Use the pigeonhole principle to prove that, given ten distinct positive integers less than 107, there exist two disjoint subsets with the same sum. A) Let us denote by A the set of the given ten distinct positive integers less than 107. Since the largest element in A is less than or equal to 106 and the second largest is less than or equal to 105 and so on, we can see that the sum of elements of A is less than or equal to 106 + 105 + 104 +... + 97 = 1015. So the sum of elements of any non-empty subset of A would also be less than or equal to 1015. Since A has 2 10 1 = 1023 non-empty subsets and there are only 1015 possibilities for the sum of the elements of a non-empty subset, by the pigeonhole principle, there exist two distinct non-empty subsets of A, say A 1 and A 2, such that the sum of elements of A 1 is equal to the sum of elements of A 2. Now, if a is an element that belongs to both A 1 and A 2, then removing a from both A 1 and A 2 reduces the sum of elements of A 1 and A 2 by a. So we can remove all the elements common to A 1 and A 2 and obtain two disjoint sets with the same sum. Note: Once can also define the function f : P(A) {φ} {1, 2, 3,..., 1015} by f(any non-empty subset of A) = sum of elements of that subset and then apply Theorem 11.1.2, where P(A) denotes the power set of A. 5