Relations and Functions Another Foundational Concept Copyright © 2014 – Curt Hill.

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

Functions Section 2.3 of Rosen Fall 2008
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
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,
2.1 Functions and their Graphs p. 67. Assignment Pp #5-48 all.
Function: Definition A function is a correspondence from a first set, called the domain, to a second set, called the range, such that each element in the.
Functions.
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.
What is a Relation? What is a Function? Have we seen these before??
Functions Domain and range The domain of a function f(x) is the set of all possible x values. (the input values) The range of a function f(x) is the set.
Foundations of Discrete Mathematics Chapter 3 By Dr. Dalia M. Gil, Ph.D.
Functions Copyright © J. Mercer, A function is a number-machine that transforms numbers from one set called the domain into a set of new numbers.
Inverse Relations and Functions 7-7. Inverse Relations If a relation maps element a of its domain to element b of its range, the INVERSE RELATION “undoes”
Copyright © 2014, 2010, 2006 Pearson Education, Inc. 1 Chapter 1 Introduction to Functions and Graphs Book cover will go here.
Chapter 1 A Beginning Library of Elementary Functions
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.
2.1 Functions and their Graphs page 67. Learning Targets I can determine whether a given relations is a function. I can represent relations and function.
Fall 2002CMSC Discrete Structures1 … and the following mathematical appetizer is about… 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.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Section 4.2 Linear Transformations from R n to R m.
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)
CompSci 102 Discrete Math for Computer Science January 31, 2012 Prof. Rodger Slides modified from Rosen AB a b c d x y z.
Objectives 1. To determine if a relation is a function.
Chapter 1 Functions and Graphs Copyright © 2014, 2010, 2007 Pearson Education, Inc Combinations of Functions; Composite Functions.
MATH 224 – Discrete Mathematics
Do Now: Find f(g(x)) and g(f(x)). f(x) = x + 4, g(x) = x f(x) = x + 4, g(x) = x
Chapter 2 Functions and Graphs Copyright © 2014, 2010, 2007 Pearson Education, Inc Combinations of Functions; Composite Functions.
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.
Functions CSRU1400 Spring 2008Ellen Zhang 1 CISC1400, Fall 2010 Ellen Zhang.
Sec  Determine whether relations between two variables are functions; Use function notation.  Find the domains of functions.  Use functions to.
2.1 Functions and their Graphs Standard: Students will understand that when a element in the domain is mapped to a unique element in the range, the relation.
Chapter 2 Functions and Linear Equations. Functions vs. Relations A "relation" is just a relationship between sets of information. A “function” is a well-behaved.
Functions (Section 1-2) Essential Question: How do you find the domain and range of a function? Students will write a description of domain and range.
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.
Review Chapter 1 Functions and Their Graphs. Lines in the Plane Section 1-1.
FUNCTIONS.
1.6 Inverse Functions. Objectives Find inverse functions informally and verify that two functions are inverse functions of each other. Determine from.
Algebra 2 Foundations, pg 64  Students will be able to graph relations and identify functions. Focus Question What are relations and when is a relation.
Section 7.6 Functions Math in Our World. Learning Objectives  Identify functions.  Write functions in function notation.  Evaluate functions.  Find.
Functions Goals Introduce the concept of function
1.7 Combinations of Functions; Composite Functions
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
MATH 224 – Discrete Mathematics
Chapter 2 Sets and Functions.
Relation and function.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Functions Section 2.3.
Warm-up: Given f(x) = 2x3 + 5 and g(x) = x2 – 3 Find (f ° g)(x)
Functions Review.
Splash Screen.
Function notation.
Ch 5 Functions Chapter 5: Functions
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Section 1.8 INVERSE FUNCTIONS.
Warm-Up For the following, make a T-Chart and sketch a graph for x ={-2, -1, 0, 1, 2}
Functions Section 2.3.
Introduction to Functions
UNDERSTANDING FUNCTIONS
Copyright © Zeph Grunschlag,
Function 1 st day Objectives: At the end of the class, the learners shall be able to; 1. demonstrate an understanding of key concepts of functions. 2.
Presentation transcript:

Relations and Functions Another Foundational Concept Copyright © 2014 – Curt Hill

Relations Ordered pairs express relationships A set of ordered pairs define a relation This relation may or may not be a function Every function is a relation but not every relation is a function Copyright © 2014 – Curt Hill

Example An example relation is the origin and destination of all airline flights –(Fargo, Bismarck) –(Fargo, Minneapolis) –(Fargo, Winnipeg) –(Minneapolis, Fargo) –(Minneapolis, St. Louis) When we see a set of ordered pairs, they are always a relation Copyright © 2014 – Curt Hill

Terminology The first item in the ordered pair is the domain and second is the range –Rosen likes codomain instead of range The domain and range are sets Airline example the domain was {Fargo, Minneapolis} and the range {Bismarck, Minneapolis, Winnipeg, St. Louis} Copyright © 2014 – Curt Hill

Example Suppose the following ordered pairs: (2,3),(2,4),(3,5),(4,2),(7,4) What is the domain and range? Copyright © 2014 – Curt Hill

The concept of a function A function is a relation with one item in the range corresponding to only one item in the domain A function is like a black box: –You push a value into the black box –Turn the crank –Out comes a new number Example square root Push in 1 out comes 1 Push in 4 out comes 2 Push in 9 out comes 3 Push in 16 out comes 4 Copyright © 2014 – Curt Hill

Airlines Again The airline example was not a function Fargo flew to both Minneapolis and Bismarck A function must always give the same output for the same input A function may have many parameters –If we increase the parameters from origination city to also include flight number it will then be a function Copyright © 2014 – Curt Hill

Functions Also called mappings or transformations –A function maps one or more values onto a single value –It also transforms values Most sets of ordered pairs are the result of a function The parameter is the first item and the result is the second So the square root function produces the following ordered pairs (1,1) (4,2) (9,3) (16,4) Copyright © 2014 – Curt Hill

Again Many functions produce an infinite number of ordered pairs We have two values here: –The independent and dependent variable Independent is the one that is input to the function –There may multiple independents The dependent variable is output Copyright © 2014 – Curt Hill

Notation A function may be represented as: y = f(x) When we know the exact computation of f we can also write –f(x) = 2x+3 We can also use set notation to represent a function: {(x,y)| y=3x-2} We traditionally use the letters starting at f to designate functions: f,g,h, F,G,H Copyright © 2014 – Curt Hill

Equality Two functions are equal if and only if they have the same: –Domain –Range –Mapping Copyright © 2014 – Curt Hill

Square Consider the square function: –f(x) = x 2 –Domain: all reals –Range: positive reals and zero Notice that this maps two values onto a single value –f(2)=f(-2)=4 Still a function since each value maps to just one Copyright © 2014 – Curt Hill

Other functions Contrast the square function with: –f(x) = 2x+1 –Domain and range is all reals This function has two properties that the square function does not: –One to one –Onto One to one means it does not map two values onto one Onto means that the domain and range are exactly the same Copyright © 2014 – Curt Hill

Terminology One to one functions are also called injunctions –Adjective form is injective Onto functions are also called surjections –Adjective is surjective If both one to one and onto it is a bijection –Bijective Copyright © 2014 – Curt Hill

Composite functions We can also do composite functions, which is f(g(x)) or (f  g)(x) Suppose f(x) = 4x – 3 Suppose g(x) = 2x + 1 Then 2x+1 gets substituted for x in f: Then (f  g)(x) = 4(2x+1)-3 = 8x+1 All this is having a function as an input to another function Copyright © 2014 – Curt Hill

Inverse Functions Functions that are one to one allow the possibility of an inverse function An inverse function reverses the mapping, range and domain of a function The inverse of f(x) is denoted f -1 (x) f(f -1 (x)) = f -1 (f(x)) = x The inverse function only exists for one to one functions Copyright © 2014 – Curt Hill

Graphs In this section a graph has nothing to do with visual representation Instead it is a set of ordered pairs –Which is actually how we generate the visual representation that you remember from algebra Let us consider a couple of examples Copyright © 2014 – Curt Hill

Graph Example 1 Suppose the domain of function f is the set S = {-1, 0, 2, 4, 7} If f(x) = 2x + 1, what is the graph? It is a set of ordered pairs, the first item comes from S and the second is found by plugging the item into f {(-1,-1), (0,1), (2,5), (4,9), (7,15)} Copyright © 2014 – Curt Hill

Graph Example 2 The above method does not work that well for very large sets We do this using set builder notation Specify a set of ordered pairs and give the formula for generation If the domain of the previous function was the real numbers then we would give the following: {(x,y)|x  R  y=f(x)} Copyright © 2014 – Curt Hill

Important Functions Copyright © 2014 – Curt Hill

Partial functions We sometimes refer to functions with limited domains as partial functions The square root function is not the inverse of the square function –It’s domain is reals greater than or equal zero Using an element outside of the domain is undefined Copyright © 2014 – Curt Hill

Exercises 2.3 – 5, 9, 21, 27 61, 77 Copyright © 2014 – Curt Hill