 R  A×B,R is a relation from A to B , DomR  A 。  (a,b)  R (a, c)  R  (a,b)  R (a, c)  R unless b=c  function  DomR=A , (everywhere)function.

Slides:



Advertisements
Similar presentations
Functions Reading: Epp Chp 7.1, 7.2, 7.4
Advertisements

Transitive Closure Theorem 1. Let R be a relation on a set A. Then R  is the transitive closure of R. the reachability relation R * of a relation R on.
Basic Properties of Relations
Functions Section 2.3 of Rosen Fall 2008
Permutations and Inverses. Definition Let A be a set. If f : A  A is a 1-1 correspondence then f is called a permutation of A. Notation: S(A): the set.
How do we start this proof? (a) Assume A n is a subgroup of S n. (b)  (c) Assume o(S n ) = n! (d) Nonempty:
Discrete Structures Chapter 5 Relations and Functions Nurul Amelina Nasharuddin Multimedia Department.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 8 Equivalence relations on sets Function between sets Types of function.
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,
Functions.
Chapter 7 Functions Dr. Curry Guinn. Outline of Today Section 7.1: Functions Defined on General Sets Section 7.2: One-to-One and Onto Section 7.3: The.
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.
2.1 Sets 2.2 Set Operations 2.3 Functions ‒Functions ‒ Injections, Surjections and Bijections ‒ Inverse Functions ‒Composition 2.4 Sequences and Summations.
FUNCTION Discrete Mathematics Asst. Prof. Dr. Choopan Rattanapoka.
Finite Groups & Subgroups. Order of a group Definition: The number of elements of a group (finite or infinite) is called its order. Notation: We will.
Numbers, Operations, and Quantitative Reasoning.
CSCI 115 Chapter 5 Functions. CSCI 115 §5.1 Functions.
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.
1 §15.1 Euclid’s Superposition Proof and Plane Transformations. The student will learn: the basic concepts of transformations, isometries and reflections.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFunctions.
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.
Chap. 5 Relations and Functions. Cartesian Product For sets A, B the Cartesian product, or cross product, of A and B is denoted by A ╳ B and equals {(a,
Functions Section 2.3 of Rosen Spring 2012 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions: Use Piazza.
MSU/CSE 260 Fall Functions Read Section 1.8.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
1 Discrete Structures – CNS 2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 1 The Foundations: Logic, Sets,
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
Chapter 9 Functions Let A and B be nonempty sets. A function f from A to B, written f: A  B is a relation from A to B with the property that every element.
Functions Reading: Chapter 6 (94 – 107) from the text book 1.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
Chapter 5 – Relations and Functions. 5.1Cartesian Products and Relations Definition 5.1: For sets A, B  U, the Cartesian product, or cross product, of.
Agenda Week 10 Lecture coverage: –Functions –Types of Function –Composite function –Inverse of a function.
Mathematical Induction
Functions Section 2.3. Section Summary Definition of a Function. – Domain, Cdomain – Image, Preimage Injection, Surjection, Bijection Inverse Function.
2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
Discrete Mathematics Relation.
11 DISCRETE STRUCTURES DISCRETE STRUCTURES UNIT 5 SSK3003 DR. ALI MAMAT 1.
11 DISCRETE STRUCTURES DISCRETE STRUCTURES UNIT 5 SSK3003 DR. ALI MAMAT 1.
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/27/2009.
Basic Structures: Sets, Functions, Sequences, and Sums.
Chapter 6 Abstract algebra
Functions.
Functions (Mappings). Definitions A function (or mapping)  from a set A to a set B is a rule that assigns to each element a of A exactly one element.
CSNB 143 Discrete Mathematical Structures
Chapter 7 – Radical Equations and Inequalities 7.2 – Inverse Functions and Relations.
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.
Chapter 13 Mathematic Structures 13.1 Modular Arithmetic Definition 1 (modulo). Let a be an integer and m be a positive integer. We denoted by a mod m.
Functions – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Functions Reading: Kolman, Section 5.1.
Discrete Mathematics 3. MATRICES, RELATIONS, AND FUNCTIONS Lecture 6 Dr.-Ing. Erwin Sitompul
 2. Inverse functions  Inverse relation,  Function is a relation  Is the function’s inverse relation a function? No  Example: A={1,2,3},B={a,b}, f:A→B,
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 
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
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.
Functions Goals Introduce the concept of function
Functions Section 2.3.
Chapter 2 Sets and Functions.
Chapter 3 Relation and Function Homework 4 For each of the following relations on set A = { 1,2,3,4 }, check each of them whether they are reflexive, irreflexive,
Functions Section 2.3.
Functions Rosen 2.3, 2.5 f( ) = A B Lecture 5: Oct 1, 2.
Chapter 3 Functions P181(Sixth Edition) P168(Fifth Edition) 1.
Definition 2. 20: Let R be an equivalence relation on a set A
Theorem 3.5: Let f be an everywhere function from A to B. Then
Functions Section 2.3.
Presentation transcript:

 R  A×B,R is a relation from A to B , DomR  A 。  (a,b)  R (a, c)  R  (a,b)  R (a, c)  R unless b=c  function  DomR=A , (everywhere)function 。

Chapter 3 Functions  3.1 Introduction  Definition3.1: Let A and B be nonempty sets. A relation is a (everywhere)function from A to B, denoted by f : A  B, if for every a  A, there is one and only b  B so that (a,b)  f, we say that b=f (a). The set A is called the domain of the function f. If X  A, then f(X)={f(a)|a  X} is called the image of X. The image of A itself is called the range of f, we write R f. If Y  B, then f -1 (Y)={a|f(a)  Y} is called the preimage of Y. A function f : A  B is called a mapping. If (a,b)  f so that b= f (a), then we say that the element a is mapped to the element b.

 (everywhere)function:  (1)Domf=A ;  (2)if (a,b) and (a,b')  f, then b=b‘  Relation: (a,b),(a,b')  R,  function : if (a,b) and (a,b')  f, then b=b‘  Relation: DomR  A  (everywhere)function: DomR=A

 Example : Let A={1,2,3,4},B={a,b,c},  R 1 ={(1,a),(2,b),(3,c)},  R 2 ={(1,a),(1,b),(2,b),(3,c),(4,c)},  R 3 ={(1,a),(2,b),(3,b),(4,a)}  Example: Let A ={-2,-1, 0,1,2} and B={0,1,2,3,4,5}.  Let f={(-2,0),(-1,1), (0,0),(1,3),(2,5)}. f is a (everywhere)function.  X={-2,0,1}, f(X)=?  Y={0,5}, f -1 (Y)=?

 Theorem 3.1: Let f be a (everywhere) function from A to B, and A 1 and A 2 be subsets of A. Then  (1)If A 1  A 2, then f(A 1 )  f(A 2 )  (2) f(A 1 ∩A 2 )  f(A 1 )∩f(A 2 )  (3) f(A 1 ∪ A 2 )= f(A 1 ) ∪ f(A 2 )  (4) f(A 1 )- f(A 2 )  f(A 1 -A 2 )  Proof: (3)(a) f(A 1 ) ∪ f (A 2 )  f(A 1 ∪ A 2 )  (b) f(A 1 ∪ A 2 )  f(A 1 ) ∪ f (A 2 )

 (4) f (A 1 )- f (A 2 )  f (A 1 -A 2 )  for any y  f (A 1 )-f (A 2 )

 Theorem 3.2 : Let f be a (everywhere) function from A to B, and A i  A(i=1,2,…n). Then

 2. Special Types of functions  Definition 3.2 : Let A be an arbitrary nonempty set. The identity function on A, denoted by I A, is defined by I A (a)=a.  Definition 3.3.: Let f be an everywhere function from A to B. Then we say that f is onto(surjective) if R f =B. We say that f is one to one(injective) if we cannot have f(a 1 )=f(a 2 ) for two distinct elements a 1 and a 2 of A. Finally, we say that f is one-to-one correspondence(bijection), if f is onto and one-to- one.  The definition of one to one may be restated in the following equivalent form:  If f(a 1 )=f(a 2 ) then a 1 =a 2 for all a 1, a 2  A Or  If a 1  a 2 then f(a 1 )  f(a 2 ) for all a 1, a 2  A

 Example:1) Let f: R(the set of real numbers)→C(the set of complex number), f(a)=i|a|;  2)Let g: R(the set of real numbers)→C(the set of complex number), g(a)=ia;  3)Let h:Z→Z m ={0,1,…m-1}, h(a)=a mod m  onto,one to one?

 3.2 Composite functions and Inverse functions  1.Composite functions  Relation,Composition,  Theorem3.3: Let g be a (everywhere)function from A to B, and f be a (everywhere)function from B to C. Then composite relation f  g is a (everywhere)function from A to C.

 Proof: (1)For any a  A, there exists c  C such that (a,c)  f  g?  (2)For every a  A, If there exist x,y  C such that (a,x)  f  gand (a,y)  f  g , then x=y?  Definition 3.4: Let g be a (everywhere) function from A to B, and f be a (everywhere) function from B to C. Then composite relation f  g is called a (everywhere) function from A to C, we write f  g:A→C. If a  A, then(f  g)(a)=f(g(a)).

 Since composition of relations has been shown to be associative (Theorem 2.), we have as a special case the following theorem.  Theorem 3.4: Let f be a (everywhere) function from A to B, and g be a (everywhere) function from B to C, and h be a (everywhere) function from C to D. Then h  (g  f )=(h  g)  f

 Exercise: P176 2,9,10,13,14,  28,37,38  Next: Inverse functions  The Characteristic function of the set P  Cardinality  Paradox