functions
play

Functions Jason Filippou CMSC250 @ UMCP 06-22-2016 Jason Filippou - PowerPoint PPT Presentation

Functions Jason Filippou CMSC250 @ UMCP 06-22-2016 Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 1 / 19 Outline 1 Basic definitions and examples 2 Properties of functions 3 The pigeonhole principle Jason Filippou (CMSC250 @ UMCP)


  1. Functions Jason Filippou CMSC250 @ UMCP 06-22-2016 Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 1 / 19

  2. Outline 1 Basic definitions and examples 2 Properties of functions 3 The pigeonhole principle Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 2 / 19

  3. Basic definitions and examples Basic definitions and examples Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 3 / 19

  4. Basic definitions and examples Functions, intuitively We all have an intuitive understanding of functions. Can we recognize those? f ( x ) = sin ( x ). Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 4 / 19

  5. Basic definitions and examples Functions, intuitively We all have an intuitive understanding of functions. Can we recognize those? f ( x ) = sin ( x ). g ( y ) = cos ( y ) Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 4 / 19

  6. Basic definitions and examples Functions, intuitively We all have an intuitive understanding of functions. Can we recognize those? f ( x ) = sin ( x ). g ( y ) = cos ( y ) f ( z ) = arctan ( z ) Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 4 / 19

  7. Basic definitions and examples Functions, intuitively We all have an intuitive understanding of functions. Can we recognize those? f ( x ) = sin ( x ). g ( y ) = cos ( y ) f ( z ) = arctan ( z ) � 1 , 0 ≤ x ≤ 1 f ( x ) = 0 , otherwise Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 4 / 19

  8. Basic definitions and examples Functions, intuitively We all have an intuitive understanding of functions. Can we recognize those? f ( x ) = sin ( x ). g ( y ) = cos ( y ) f ( z ) = arctan ( z ) � 1 , 0 ≤ x ≤ 1 f ( x ) = 0 , otherwise c ( x, y ) = x 2 + y 2 In this lecture, we will formally define functions and talk about some of their properties. Warning: We won’t do calculus today! Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 4 / 19

  9. Basic definitions and examples Basic definitions Definition (Function) A function f from set A to set B , denoted f : A �→ B , is a mapping from A to B such that each element of A is mapped to a unique element of B . Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 5 / 19

  10. Basic definitions and examples Basic definitions Definition (Function) A function f from set A to set B , denoted f : A �→ B , is a mapping from A to B such that each element of A is mapped to a unique element of B . Definition (Domain) Let f be a function from set A to set B . Then, A is f ’s domain . Definition (Co-domain) Let f be a function from set A to set B . Then, B is f ’s co-domain . What are the domains and co-domains for the following functions? (whiteboard) Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 5 / 19

  11. Basic definitions and examples More definitions Definition (Image / Range) Suppose f : A �→ B . The set { b ∈ B | ∃ a ∈ A | f ( a ) = b } is called the image (or range ) of f . The image and co-domain don’t necessarily coincide! Examples will follow. Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 6 / 19

  12. Basic definitions and examples Arrow diagrams A convenient representation for finding the domain, co-domain and range of a function. Can also help us weed out mappings that are not functions! Infeasible for all but the smallest domains and co-domains. Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 7 / 19

  13. Basic definitions and examples Arrow diagrams: examples Which one of these are functions? For every function, provide the domain, co-domain, and image. X Y X Y a 1 a 1 b 2 b 2 c c 3 3 X X Y Y a 1 a 1 b 2 b 2 c c 3 3 Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 8 / 19

  14. Properties of functions Properties of functions Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 9 / 19

  15. Properties of functions Surjective (“onto”) functions Definition (Surjective function) Let f : X �→ Y . f is surjective ( “onto” ) if, and only if, ∀ y ∈ Y, ∃ x ∈ X : f ( x ) = y . Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 10 / 19

  16. Properties of functions Surjective (“onto”) functions Definition (Surjective function) Let f : X �→ Y . f is surjective ( “onto” ) if, and only if, ∀ y ∈ Y, ∃ x ∈ X : f ( x ) = y . Intuitively: Onto functions have a “full” co-domain. Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 10 / 19

  17. Properties of functions Surjective (“onto”) functions Definition (Surjective function) Let f : X �→ Y . f is surjective ( “onto” ) if, and only if, ∀ y ∈ Y, ∃ x ∈ X : f ( x ) = y . Intuitively: Onto functions have a “full” co-domain. Example of onto function: f ( x ) = 4 x + 1 , f : R �→ R Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 10 / 19

  18. Properties of functions Surjective (“onto”) functions Definition (Surjective function) Let f : X �→ Y . f is surjective ( “onto” ) if, and only if, ∀ y ∈ Y, ∃ x ∈ X : f ( x ) = y . Intuitively: Onto functions have a “full” co-domain. Example of onto function: f ( x ) = 4 x + 1 , f : R �→ R Examples of non-onto function: g ( n ) = 4 n − 1 , g : Z �→ Z Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 10 / 19

  19. Properties of functions Surjective (“onto”) functions Definition (Surjective function) Let f : X �→ Y . f is surjective ( “onto” ) if, and only if, ∀ y ∈ Y, ∃ x ∈ X : f ( x ) = y . Intuitively: Onto functions have a “full” co-domain. Example of onto function: f ( x ) = 4 x + 1 , f : R �→ R Examples of non-onto function: g ( n ) = 4 n − 1 , g : Z �→ Z What about this? z ( n ) = 4 n − 1 , z : R �→ Z Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 10 / 19

  20. Properties of functions Surjective (“onto”) functions Definition (Surjective function) Let f : X �→ Y . f is surjective ( “onto” ) if, and only if, ∀ y ∈ Y, ∃ x ∈ X : f ( x ) = y . Intuitively: Onto functions have a “full” co-domain. Example of onto function: f ( x ) = 4 x + 1 , f : R �→ R Examples of non-onto function: g ( n ) = 4 n − 1 , g : Z �→ Z What about this? z ( n ) = 4 n − 1 , z : R �→ Z Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 10 / 19

  21. Properties of functions Injective (“one-to-one”) functions Definition (Injective function) Let f : X �→ Y . f is injective (or “one-to-one” ) if, and only if ∀ x ∈ X, ∃ ! y a ∈ Y : y = f ( x ) a “Exists a unique y ”. Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 11 / 19

  22. Properties of functions Injective (“one-to-one”) functions Definition (Injective function) Let f : X �→ Y . f is injective (or “one-to-one” ) if, and only if ∀ x ∈ X, ∃ ! y a ∈ Y : y = f ( x ) a “Exists a unique y ”. Equivalently: ∀ x 1 , x 2 ∈ X, f ( x 1 ) = f ( x 2 ) ⇒ x 1 = x 2 Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 11 / 19

  23. Properties of functions Injective (“one-to-one”) functions Definition (Injective function) Let f : X �→ Y . f is injective (or “one-to-one” ) if, and only if ∀ x ∈ X, ∃ ! y a ∈ Y : y = f ( x ) a “Exists a unique y ”. Equivalently: ∀ x 1 , x 2 ∈ X, f ( x 1 ) = f ( x 2 ) ⇒ x 1 = x 2 Intuitively: no two arrows from the domain will start from the same point. Graphical intuition: At most one intersection of graph with a horizontal line. Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 11 / 19

  24. Properties of functions Injective (“one-to-one”) functions Definition (Injective function) Let f : X �→ Y . f is injective (or “one-to-one” ) if, and only if ∀ x ∈ X, ∃ ! y a ∈ Y : y = f ( x ) a “Exists a unique y ”. Equivalently: ∀ x 1 , x 2 ∈ X, f ( x 1 ) = f ( x 2 ) ⇒ x 1 = x 2 Intuitively: no two arrows from the domain will start from the same point. Graphical intuition: At most one intersection of graph with a horizontal line. Examples of injective functions: f ( x ) = ax ∀ a ∈ R ∗ , g ( x ) = tan ( x ) , x ∈ R − { π 2 + kπ, k ∈ Z } Examples of non-injective functions: r ( x ) = x 2 , sin ( x ) , cos ( x ) Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 11 / 19

  25. Properties of functions Bijections Definition (Bijection) f : A �→ B is a bijection from A to B if, and only if, it is surjective and injective. Perfect correspondences. Interesting properties. Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 12 / 19

  26. Properties of functions Bijections Definition (Bijection) f : A �→ B is a bijection from A to B if, and only if, it is surjective and injective. Perfect correspondences. Interesting properties. Examples of bijections: f ( x ) = x 3 , exp ( x ) , log ( x ) Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 12 / 19

  27. Properties of functions Bijections Definition (Bijection) f : A �→ B is a bijection from A to B if, and only if, it is surjective and injective. Perfect correspondences. Interesting properties. Examples of bijections: f ( x ) = x 3 , exp ( x ) , log ( x ) Examples of non-bijections: Whichever function is either non-injective or non-surjective! Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 12 / 19

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend