5 Functions
5.1 Defining Functions
Objectives:
-
•
Discover how sets can be used to define functions
-
•
Prove statements involving functions and their sets, including domain, codomain, and range
5.1.1 Review of Functions
Example 5.1.1.
Define each of the terms below:
Domain:
Codomain:
Range:
For the function below, give the domain, codomain, and range as sets:
Example 5.1.2.
A social media company wants to map every user’s unique username (the domain called ) to the email address they signed up with (the codomain called ). The function maps a username to its corresponding email.
Could two different usernames be mapped to the same email address? Would this be a problem for the system? Discuss the pros and cons.
Say the company wants to make a “reverse lookup” feature that helps find a username associated with a given email. Given your answer to the previous question, what is a potential problem with this? What condition would need to be true about the origianl function to guarantee the reverse lookup is unambiguous?
Anytime there is a relationship between two corresponding entities, we wish to find a function that describes exactly how the two entities are related.
An object falling with time: we know that meters per second squared, which helps us calculate position when giving an initial position and velocity. The subject of physics survives on understanding relationships between physical entities.
Profit changing with different investments: If you invest more in gold than in stocks, what can you expect your money to do in the short-term? What about the long-term? Financial analysts need these functions to better inform their clients. Specifically, the subject of optimization handles finding maximum revenues and minimum costs given certain constraints.
We have already seen as well how functions can describe entire business processes. Our society survives based on the power of the functions it exploits. As mathematicians it behooves us to be very knowledgeable about how to use functions.
Moving forward we need a strong understanding of functions, and we will take our time seeing how functions, numbers, and sets all interact with one another. The goal of functions is to grasp the concepts of calculus! This content will be assumed in MATH-409, with perhaps only one or two days given for review.
5.1.2 Well-Defined Functions
Definition 5.1.3.
Let and be two nonempty sets. A function from to is a rule from to that assigns to every element a unique element . We usually will write (read “ of equals ”) to describe that the function maps to .
The set is called the domain of , and the set is called the codomain of .
An important subset of the codomain is the range of , defined as
In the expression “”, is considered the input of the function, with being the corresponding output of the function.
Note that we define a function as a “rule”. A natural question might be, “What is a rule?” For now we will understanding what this means intuitively - later we will define a function as a special case of relation (Chapter 7).
Example 5.1.4.
Let and . Define the graph of from to to be
Write this function using the mapping diagram below.
What is the range of this function?
Interpret the definition of graph given above in the context of the graph you know about.
Example 5.1.5.
For each of the following, explain why the given description does not describe a function.
-
(a)
Blank space for you to write your work.
Define via .
-
(b)
Blank space for you to write your work.
Define via .
-
(c)
Blank space for you to write your work.
Define via
-
(d)
Blank space for you to write your work.
Define via .
The last example from the previous page is an example of a function that is not well-defined. If there are multiple different ways to express a value of an input, the output must be the same irrespective of the expression. For example, even though , , so technically cannot be a function as the same value is being mapped to two different outputs.
Example 5.1.6.
Let be defined by . Show that by showing these two are equal as sets.
Example 5.1.7.
Let . Then let be defined as . Show that .