Part B Set Theory What is a set? A set is a collection of objects. Can you give me some examples?

Slides:



Advertisements
Similar presentations
1.6 Functions. Chapter 1, section 6 Functions notation: f: A B x in A, y in B, f(x) = y. concepts: –domain of f, –codomain of f, –range of f, –f maps.
Advertisements

More Functions and Sets
Functions Section 2.3 of Rosen Fall 2008
Lecture 3 Set Operations & Set Functions. Recap Set: unordered collection of objects Equal sets have the same elements Subset: elements in A are also.
modified from UCI ICS/Math 6D, Fall Sets+Functions-1 Sets “Set”=Unordered collection of Objects “Set Elements”
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
1 Section 1.8 Functions. 2 Loose Definition Mapping of each element of one set onto some element of another set –each element of 1st set must map to something,
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
CS 2210 (22C:019) Discrete Structures Sets and Functions Spring 2015 Sukumar Ghosh.
Functions.
1 CMSC 250 Chapter 7, Functions. 2 CMSC 250 Function terminology l A relationship between elements of two sets such that no element of the first set is.
Section 1.8: Functions A function is a mapping from one set to another that satisfies certain properties. We will first introduce the notion of a mapping.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Sets Set Operations Functions. 1. Sets 1.1 Introduction and Notation 1.2 Cardinality 1.3 Power Set 1.4 Cartesian Products.
2.1 Sets 2.2 Set Operations 2.3 Functions ‒Functions ‒ Injections, Surjections and Bijections ‒ Inverse Functions ‒Composition 2.4 Sequences and Summations.
Foundations of Discrete Mathematics Chapter 3 By Dr. Dalia M. Gil, Ph.D.
Functions. Copyright © Peter Cappello2 Definition Let D and C be nonempty sets. A function f from D to C, for each element d  D, assigns exactly 1 element.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
1 Annoucement n Skills you need: (1) (In Thinking) You think and move by Logic Definitions Mathematical properties (Basic algebra etc.) (2) (In Exploration)
FUNCTIONS.
Discrete Mathematics CS 2610 September 12, Agenda Last class Functions  Vertical line rule  Ordered pairs  Graphical representation  Predicates.
Functions Section 2.3 of Rosen Spring 2012 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions: Use Piazza.
1 Discrete Structures – CNS 2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 1 The Foundations: Logic, Sets,
Functions1 Elementary Discrete Mathematics Jim Skon.
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
321 Section, Week 3 Natalie Linnell. Functions A function from A to B is an assignment of exactly one element of B to each element of A. We write f(a)
1.4 Sets Definition 1. A set is a group of objects . The objects in a set are called the elements, or members, of the set. Example 2 The set of positive.
Example Prove that: “IF 3n + 2 is odd, then n is odd” Proof by Contradiction: -p = 3n + 2 is odd, q = n is odd. -Assume that ~(p  q) is true OR -(p 
Functions Reading: Chapter 6 (94 – 107) from the text book 1.
Basic Structures: Functions Muhammad Arief download dari
CSE 2353 – October 1 st 2003 Functions. For Real Numbers F: R->R –f(x) = 7x + 5 –f(x) = sin(x)
Sets and Functions Contents  Set language  Basic knowledge on sets  Intervals  Functions (Mappings)
Agenda Week 10 Lecture coverage: –Functions –Types of Function –Composite function –Inverse of a function.
What is a set? A set is a collection of objects.
Discrete Mathematics R. Johnsonbaugh
Sets. Definitions (I) Collection of elements such that: There are no duplicates There is no order Special sets Universe (U or E): all elements under consideration.
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
Basic Structures: Sets, Functions, Sequences, and Sums.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
CSC102 - Discrete Structures Functions
Aim: How do we determine whether a function is one - to one, determine domain and range? Do Now: Determine whether the following function is onto (surjective)
1 Functions CS 202 Epp section ??? Aaron Bloomfield.
FUNCTIONS COSC-1321 Discrete Structures 1. Function. Definition Let X and Y be sets. A function f from X to Y is a relation from X to Y with the property.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
1 Discrete Mathematical Functions Examples.
Chapter 7 Sets and Probability Section 7.1 Sets What is a Set? A set is a well-defined collection of objects in which it is possible to determine whether.
Discrete Structures Li Tak Sing( 李德成 ) Lectures
1 Lecture 5 Functions. 2 Functions in real applications Curve of a bridge can be described by a function Converting Celsius to Fahrenheit.
Section 2.3. Section Summary  Definition of a Function. o Domain, Cdomain o Image, Preimage  One-to-one (Injection), onto (Surjection), Bijection 
FUNCTIONS.
Discrete Mathematics Lecture # 17 Function. Relations and Functions  A function F from a set X to a set Y is a relation from X to Y that satisfies the.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Set Theory.
CS 2210:0001 Discrete Structures Sets and Functions
Properties of Functions
Chapter 2 Sets and Functions.
Relation and function.
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Functions Section 2.3.
CSE15 Discrete Mathematics 02/27/17
Section 1.5 Inverse Functions
Functions.
Introduction to Relations and Functions
ICS 253: Discrete Structures I
Lecture # 18 Types of Functions
Functions Section 2.3.
REVISION Relation. REVISION Relation Introduction to Relations and Functions.
Presentation transcript:

Part B Set Theory What is a set? A set is a collection of objects. Can you give me some examples?

Section 6 Concept and Notation of Sets Tabular Form N={1, 2, 3, 4, … } Z={0, -1, 1, 2, -2, … } Q=? R=? C=? S={1, 2, 3, 4} T={fish, fly, a, 4}  ={ } ( is called the empty set) Set-Builder Form N={n: n is a natural number} Z={m: m is an integer} Q={p/q: p and q are integers and q  0} R={r: r is a real number} C={a+bi: a and b are real and i 2 =-1}

Elements of a Set 4  N means that: 4 is an element of N; 4 is a member of N; 4 belongs to N; 4 is contained in N; N contains 4.

Section 7 Subsets Definition 7.1 Let A and B be two sets. A is a subset of B iff every element of A is an element of B. Symbolically, A  B iff (  x)(x  A  x  B) Can you give me some examples? N  Z  Q  R  C

Important subsets of R Let a, b be two real numbers with a  b (a, b) = { x: x  R and a < x < b} Open interval [a, b] = { x: x  R and a  x  b} Closed interval (a, b] = { x: x  R and a < x  b} Half-open and half- closed interval [a, b) = { x: x  R and a  x < b} Half-closed and half- open interval (a, +  ) = {x : x  R and x > a} [a, +  ) = {x : x  R and x  a} (- , a) = {x : x  R and x < a} (- , a] = {x : x  R and x  a} (- , +  ) = R

Important Facts on Subsets A  A  A A  B and B  C  A  C Can you give proofs to them?

Equal Sets and Proper Subsets A = B iff A  B and B  A iff (  x)(x  A  x  B) Let A, B be two sets. A is a proper subsets of B, denoted by A B

Section 8 Intersection and Union of Sets Definition 8.1 Let A and B be sets.The intersection of A and B is the set A  B ={x: x  A and x  B}. A B A  B

Union of sets Definition 8.2 Let A and B be sets.The union of A and B is the set A  B ={x: x  A or x  B}. A B A  B

B\A Section 9 Complements Definition 9.1,2 Let A and B be sets. The complement of A in B is defined as the set B\A={x: x  B and x  A } B A

Example 9.2 Given that E={1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, A = {1, 2, 3, 4, 5}, B = { 4, 5, 6, 7} and C = { 8, 9, 10} A  B = A  B = C  B = A\B = B\A= A  B  C = {1, 2, 3, 4, 5, 6, 7} {4, 5}  (B and C are disjoint) {1, 2, 3} {6, 7} E Ex

Exercise (1, 5)  (3, 8) (1, 5)  (3, 8) (-10, 1]  [1, 4] (-10, 1]  [1, 4] (- , 3)  (-1, +  ) (- , 3)  (7, 100) R\Q R\(1, 5) (1,5 )\(3, 7) (3, 8)\[2, 9] (5, +  )\(1, 3] =(3, 5) =(1. 8) ={1} =(-10, 4] =R=R == =Set of all irrational numbers =(- , 1]  [5, +  ) =(1, 3] =  =(5, +  )

Section 10 Functions Definition f: A  B is a function from a set A to a set B iff f assigns every object in A a unique image in B abcdeabcde f A B Domain = A Range = B Codomain={a, b, c}

Group discussion Refer to Ex.2.4 Q.5, discuss on which are graphs of functions and state their domains, ranges and codomains. Determine which of the following are functions: 1.f: R  R is defined by f(x) = logx 2.g:R  R is defined by g(x)=  x 3.h:N  N is defined by h(x) = x/2 4.p:R  R is defined by p(x) = cosx 5.q: [-2, 3]  R is defined by q(x) =  (x 2 -2x – 3) Ex.2.4, Q.6

State the differences between the following functions f: Z  Z defined by f(x) = x 2 g:N  N defined by g(x)=x 2

Injective functions A function f: A  B is called an injection (injective function or one-to-one function) iff it doesn ’ t assign two distinct objects to the same image. Symbolically, (  x 1, x 2 )(x 1  x 2  f(x 1 )  f(x 2 ))  (  x 1, x 2 ) (f(x 1 ) = f(x 2 )  x 1 = x 2 )

Examples 1. Is the function f: N  N defined by f(x) = 2x injective? How to prove it? Proof: f(x 1 ) = f(x 2 )  2x 1 = 2x 2  x 1 = x 2  f is injective

2. Let a, b, c, d be real numbers and c  0. f: R\{-d/c}  R be a function defined by f(x)=(ax+b)/(cx+d). Show that if ad-bc  0, then f is injective. Proof: Let x 1, x 2  R\{-d/c}, and suppose that f(x 1 )=f(x 2 ), then (ax 1 +b)/(cx 1 +d)= (ax 2 +b)/(cx 2 +d)  (ad-bc)(x 1 -x 2 ) = 0  x 1 =x 2 (Since ad-bc  0)  f is injective.

3. Let f:C  C be a function satisfying f(az 1 +bz 2 )=af(z 1 )+bf(z 2 ) for any real numbers a and b and any z 1, z 2  C. (a)Show that f(0) = 0 (b)f is injective iff when f(z)=0 we have z=0. Proof: f(0)= f(0z 1 +0z 2 ) = 0f(z 1 )+0f(z 2 ) = 0 Proof: (  ) when f(z)=0, then f(0)=0=f(z)  z=0 since f is injective. (  ) If f(z 1 ) = f(z 2 ), then f(z 1 ) - f(z 2 )= 0  f(z 1 -z 2 ) = 0  z 1 -z 2 = 0  z 1 = z 2. Thus f is injective.

Which of the following functions are injective? Give proofs. 1. g(x) = x f(x) = x/(1-x) 3. h(x) = (x + 1)/(x – 1) 4. k(x) = x 3 + 9x 2 +27x + 4 Ex. 2.4 Q.10

State the difference between the following functions h: Z  Z defined by h(x) = x + 1 and k: N  N defined by k(x) = x + 1

Surjective Functions A function f: A  B is called an surjection (surjective function or onto function) iff every element of B is an image of an element in A. Symbolically, (  b  B)(  a  A)(f(a) = b)

Examples Prove that f: R  R defined by f(x) = 3x + 2 is surjective. Proof: For any real number y, there exists a real number x = (y – 2)/3 such that f(x) = 3((y – 2)/3) + 2 = y Therefore f is surjective. ???? 5y5y f Group Discussion on Ex.2.4 Q.10 (  b  B)(  a  A)(f(a) = b)

2. Show that the function f: R  (0, 1] defined by f(x) = 1/(x 2 +1) is surjective. Proof: For any y  (0, 1], then there exists x=  ((1-y)/y)  R such that f(x)=1/((1-y)/y+1)=y. Therefore f is surjective. Ex.2.4 Q.10

Bijective Functions and their inverse functions Let f: A  B be a funcition. f is called a bijective function(or bijection) iff f is both injective and surjective. The inverse function f -1 : B  A of the function f is defined as f -1 = { (b, a) : (a, b)  f } Ex.2.4 Q.10

Example a bcda bcd f AB a bcda bcd f -1 B A

Example 2 Let f: R  R be a function defined by f(x) = 2x – 1. Then f is bijective. Since y = 2x – 1  x = (y + 1)/2 f -1 (x) = (x + 1)/2

Example 3 Let f: R +  R be a function defined by f(x) = log 10 x Then f is bijective. Since y = log 10 x  x = 10 y f -1 (x) = 10 x

Example 4 Let f: [0, +  )  [0, +  ) be a function defined by f(x) = x 2 Then f is bijective. Since y = x 2  x =  +  y, f -1 (x) = +  x

Graphs of a function & its inverse y=f(x) y=f -1 (x) x y y=x

Composite functions of f(x)and f -1 (x) f(f -1 (x))= f -1 (f (x))= X X Ex.2.4 Q.11 Ex Ex.2.4 Q.11 Ex