Function Terminology
A function is a relation between a set of inputs (called the domain) and a permissible set of outputs (called the codomain), such that each input is related to exactly one output. We often denote a function on one variable by . When is an element of the domain, we say that the value of the output is .
Contents
Terminology
- Function: A function is a relation between each element in the domain and a unique element in the codomain. This is denoted by .
- Domain: The domain of a function is the set of inputs of the function. This is denoted by .
- Codomain: The codomain of a function is the set of all permissible outputs. This is denoted by
- Range: The range of a function is set of all attained outputs. By definition, the range is a subset of the codomain. This is denoted by .
- Image of : The image of a set is the set of all attained outputs whose inputs are elements in the set . This is denoted by
- Composition: The composition of 2 functions and is denoted by . In order for this function to be well defined, the range of must be a subset of the domain of .
- Inverse of an element: The inverse of an element in is the set of all possible values in such that . This is denoted by .
- Graph: The graph of a function is the set of all ordered pairs .
- Injective: An injective function is one that maps every value in the domain to a unique value in the codomain, such that for any given value in the range there is only one corresponding value in the domain. Injective functions are also called "one-to-one" functions.
- Surjective: A surjective function is one that covers every element in the codomain, such that there are no elements in the codomain that are not a value of the function. In a surjective function the range and the codomain will be identical.
- Bijective: A bijective function is both injective and surjective.
Further details
Note that the domain and codomain need not always be the set of real numbers. Other common sets that are used are the complex numbers, positive integers, people, matrices, graphs, etc. For example, consider the function which takes as input the name of a Brilliant student and outputs the country of citizenship of that student. In this case, the domain is the set of names of Brilliant students, while the codomain is the set of countries. In order for this to be truly a function, we must make the assumption that a student is a citizen of only 1 country. In order to deal with the possibility of dual citizenships, we must add pairs of countries to our codomain.
We can certainly add irrelevant items to the codomain, like {alligator}, {purple}, and {Calvin}. As such, we define the range of a function (also called the image) to be the set of all outputs. Note that by definition, the range of a function has to be a subset of the codomain.
The mathematical shorthand (since mathematicians are lazy) to state that is a function from set to set is . For example, since stands for complex numbers, stands for integers, and stands for positive integers, refers to a function from the set of complex numbers to the set of positive integers. Because we mainly deal with functions of real numbers, if the domain and codomain are not explicitly stated (or immediately obvious from the setup), they are assumed to be the set of real numbers,
While it is common for the domain and codomain to be the same set, it is important to make a clear distinction between the two. The identity function is the unique function on a set, which maps every element to itself. We denote this function be , where for all elements of .
If we were to change the domain of a function, then we will get a different function. For example, is a very different function from . This is because we have , while does not make any sense. As such, we say that 2 functions and are equal if and for all values in , . The codomain is less important, since by our previous observation we can add arbitrary elements to it while not affecting the essence of the function.
Given a function and any subset , we say that the image of is the set of all values , where is an element of . Given a subset , we say that the preimage of is the set of all values where is an element of . Using this terminology, we say that the range is the image of the domain. Essentially, the range is the part of the codomain that we really care about, which is why we will like to restrict our attention to just the range.
When the domain is the set of real numbers, we like to think of as the graph of the function. Conversely, given any graph, it is a function if each -value corresponds to at most 1 -value. Such a graph must pass the vertical line test: every vertical line cuts the graph in at most 1 point.
What if we want to find all possible inputs, which give a certain output? For example, if I want to know who are all the Brilliant students that are citizens of India, I am asking for the list of students who satisfy The inverse of a function need not always be a function (as in this example). In order for an inverse to be an actual function, the original function needs to pass the horizontal line test: every horizontal line cuts the graph in at most 1 point.
If the inverse is a function, we denote it as . What is the domain and codomain of ? Can we take the inverse of any value in the codomain? We certainly could, though it might not make sense. For example, would not be valid. As such, we often restrict our attention to simply the range of the original function (which, as you recall, is the image of the domain). What is the codomain of the inverse? It would be the pre-image of the range. Note that the pre-image of the range need not be the entire domain of .
In the event that the inverse is not a function, we can restrict our attention to a subset of the domain. Specifically, if and , we define the function as for all values in . For example, the function given by does not have an inverse function because it doesn't satisfy the horizontal line test. However, since does satisfy the horizontal line test, it has an inverse. In this case, we know that .
A function is injective (or one-to-one) if for any 2 distinct elements in the domain. A function is surjective (or onto) if for every element in the codomain, there exists an element in the domain such that . A function is bijective if it is both injective and surjective. With this terminology, an injective function has an inverse that is a function. A bijective function has an inverse (which is a function by the previous observation) whose domain is .
Now that we've built up this vocabulary, we can talk about the composition of functions. You may not always be able to compose 2 functions. For example, will not make any sense, no matter what we try to do. Let's understand how to make composition of functions work.
Assuming that we have 2 functions and , when does make sense? Given any value in the domain A, we must be able to apply to the value . Hence, this implies that must be a subset of . With this condition, we can define to be equal to . Note that the order of composition is important, since we might not be able to define , unless we further know that is a subset of .
Example Problems
Let and For a given pair of numbers, let Is a function for the following set of pairs:
For to be a function, the following conditions must be satisfied:
- is evaluated for every element in the domain;
at 1 through 8 have their own evaluations (satisfied).- has only one evaluation for each element in the domain;
at 1 through 8 each has only one output (satisfied).- The outputs of should be elements of the codomain;
(unsatisfied).Condition 3 is not satisfied, so is not a function
Let and where is the set of integers. When what is the sum of all elements in the image of
We have
Therefore, the image of is so the answer is
Let Is a surjective function?
The square of a real number is positive or zero. Therefore, the range of is smaller than and is not a surjective function.
If function is defined as what's its domain?
Consider the function in the domain and . What is the value of