6 Functions
6.2 More about Functions
In Section 6.1, we have seen many examples of functions. We have also seen various ways to represent functions and to convey information about them. For example, we have seen that the rule for determining outputs of a function can be given by a formula, a graph, or a table of values. We have also seen that sometimes it is more convenient to give a verbal description of the rule for a function. In cases where the domain and codomain are small, finite sets, we used an arrow diagram to convey information about how inputs and outputs are associated without explicitly stating a rule. In this section, we will study some types of functions, some of which we may not have encountered in previous mathematics courses.
6.2.1 Beginning Activity 1 (The Number of Diagonals of a Polygon)
A polygon is a closed plane figure formed by the joining of three or more straight
lines. For example, a triangle is a polygon that has three sides; a quadrilateral is a polygon that has four sides and includes squares, rectangles, and parallelograms; a pentagon is a polygon that has five sides; and an octagon is a polygon that has eight sides. A regular polygon is one that has equal-length sides and congruent interior angles.
A diagonal of a polygon is a line segment that connects two nonadjacent vertices of the polygon. In this activity, we will assume that all polygons are convex polygons so that, except for the vertices, each diagonal lies inside the polygon. For example, a triangle (3-sided polygon) has no diagonals and a rectangle has two diagonals.
-
1.
How many diagonals does any quadrilateral (4 -sided polygon) have?
-
2.
Let . Define so that is the number of diagonals of a convex polygon with sides. Determine the values of , , and . Arrange the results in the form of a table of values for the function .
-
3.
Let be defined by
Determine the values of , , and . Arrange the results in the form of a table of values for the function .
-
4.
Compare the functions in Parts (2) and (3). What are the similarities between the two functions and what are the differences? Should these two functions be considered equal functions? Explain.
6.2.2 Beginning Activity 2 (Derivatives)
In calculus, we learned how to find the derivatives of certain functions. For example, if , then we can use the product rule to obtain
-
1.
If possible, find the derivative of each of the following functions:
-
(a)
-
(b)
-
(c)
-
(d)
-
(e)
-
(a)
-
2.
Is it possible to think of differentiation as a function? Explain. If so, what would be the domain of the function, what could be the codomain of the function, and what is the rule for computing the element of the codomain (output) that is associated with a given element of the domain (input)?
6.2.3 Functions Involving Congruences
Theorem 3.31 and Corollary 3.32 state that an integer is congruent to its remainder when it is divided by . (Recall that we always mean the remainder guaranteed by the Division Algorithm, which is the least nonnegative remainder.) Since this remainder is unique and since the only possible remainders for division by are , we then know that each integer is congruent, modulo , to precisely one of the integers . So for each natural number , we will define a new set as the set of remainders upon division by . So
For example, and . We will now explore a method to define a function from to .
For each , we can compute and then determine the value of in so that
Since must be in , we must have . The results are shown in the following table.
| where | |
| 0 | 3 |
| 1 | 4 |
| 2 | 1 |
| 3 | 0 |
| 4 | 1 |
| 5 | 4 |
Table 6.1: Table of Values Defined by a Congruence
The value of in the first column can be thought of as the input for a function with the value of in the second column as the corresponding output. Each input produces exactly one output. So we could write
This description and the notation for the outputs of this function are quite cumbersome. So we will use a more concise notation. We will, instead, write
6.2.4 Progress Check 6.5 (Functions Defined by Congruences)
We have . Define
-
1.
Determine , and and represent the function with an arrow diagram.
-
2.
Determine , and and represent the function with an arrow diagram.
6.2.5 Equality of Functions
The idea of equality of functions has been in the background of our discussion of functions, and it is now time to discuss it explicitly. The preliminary work for this discussion was Beginning Activity 1, in which , and there were two functions:
-
•
, where is the number of diagonals of a convex polygon with sides
-
•
, where , for each real number .
In Beginning Activity 1, we saw that these two functions produced the same outputs for certain values of the input (independent variable). For example, we can
verify that
| and |
Although the functions produce the same outputs for some inputs, these are two different functions. For example, the outputs of the function are determined by a formula, and the outputs of the function are determined by a verbal description. This is not enough, however, to say that these are two different functions. Based on the evidence from Beginning Activity 1, we might make the following conjecture:
Although we have not proved this statement, it is a true statement. (See Exercise 6.) However, we know the function and the function are not the same function. For example,
-
•
, but 0 is not in the domain of ;
-
•
, but is not in the domain of .
We thus see the importance of considering the domain and codomain of each of the two functions in determining whether the two functions are equal or not. This motivates the following definition.
Definition. Two functions and are equal provided that
-
•
The domain of equals the domain of . That is, .
-
•
The codomain of equals the codomain of . That is, .
-
•
For each in the domain of (which equals the domain of ), .
6.2.6 Progress Check 6.6 (Equality of Functions)
Let be a nonempty set. The identity function on the set , denoted by , is
the function defined by for every in . That is, for the identity map, the output is always equal to the input.
For this progress check, we will use the functions and from Progress Check 6.5. The identity function on the set is
Is the identity function on equal to either of the functions or from Progress Check 6.5? Explain.
6.2.7 Mathematical Processes as Functions
Certain mathematical processes can be thought of as functions. In Beginning Activity 2, we reviewed how to find the derivatives of certain functions, and we considered whether or not we could think of this differentiation process as a function. If we use a differentiable function as the input and consider the derivative of that function to be the output, then we have the makings of a function. Computer algebra systems such as Maple and Mathematica have this derivative function as one of their predefined operators.
Different computer algebra systems will have different syntax for entering functions and for the derivative function. The first step will be to input a real function . This is usually done by entering a formula for , which is valid for all real numbers for which is defined. The next step is to apply the derivative function to the function . For purposes of illustration, we will use to represent this derivative function. So this function will give .
For example, if we enter
for the function , we will get
We must be careful when determining the domain for the derivative function since there are functions that are not differentiable. To make things reasonably easy, we will let be the set of all real functions that are differentiable and call this the domain of the derivative function . We will use the set of all real functions as the codomain. So our function is
6.2.8 Progress Check 6.7 (Average of a Finite Set of Numbers)
Let be a finite set whose elements are the distinct real numbers . We define the average of the set to be the real number , where
-
1.
Find the average of .
-
2.
Find the average of .
-
3.
Find the average of .
-
4.
Now let be the set of all nonempty finite subsets of . That is, a subset of is in if and only if contains only a finite number of elements. Carefully explain how the process of finding the average of a finite subset of can be thought of as a function. In doing this, be sure to specify the domain of the function and the codomain of the function.
6.2.9 Sequences as Functions
A sequence can be considered to be an infinite list of objects that are indexed (subscripted) by the natural numbers (or some infinite subset of ). Using this idea, we often write a sequence in the following form:
In order to shorten our notation, we will often use the notation to represent this sequence. Sometimes a formula can be used to represent the terms of a sequence, and we might include this formula as the th term in the list for a sequence such as in the following example:
In this case, the term of the sequence is . If we know a formula for the term, we often use this formula to represent the sequence. For example, we might say
Define the sequence by for each .
This shows that this sequence is a function with domain . If it is understood that the domain is , we could refer to this as the sequence . Given an element of the domain, we can consider to be the output. In this case, we have used subscript notation to indicate the output rather than the usual function notation. We could just as easily write
We make the following formal definition.
Definition. An (infinite) sequence is a function whose domain is or some infinite subset of .
6.2.10 Progress Check 6.8 (Sequences)
Find the sixth and tenth terms of the following sequences, each of whose domain is :
-
1.
-
2.
, where for each
-
3.
6.2.11 Functions of Two Variables
In Section 5.4, we learned how to form the Cartesian product of two sets. Recall that a Cartesian product of two sets is a set of ordered pairs. For example, the set is the set of all ordered pairs, where each coordinate of an ordered pair is an integer. Since a Cartesian product is a set, it could be used as the domain or codomain of a function. For example, we could use as the domain of a function as follows:
Let be defined by .
-
•
Technically, an element of is an ordered pair, and so we should write for the output of the function when the input is the ordered pair . However, the double parentheses seem unnecessary in this context
and there should be no confusion if we write for the output of the function when the input is . So, for example, we simply write
-
•
Since the domain of this function is and each element of is an ordered pair of integers, we frequently call this type of function a function of two variables.
Finding the preimages of an element of the codomain for the function , usually involves solving an equation with two variables. For example, to find the preimages of , we need to find all ordered pairs such that . This means that we must find all ordered pairs such that
Three such ordered pairs are , and . In fact, whenever we choose an integer value for , we can find a corresponding integer such that . This means that 0 has infinitely many preimages, and it may be difficult to specify the set of all of the preimages of 0 using the roster method. One way that can be used to specify this set is to use set builder notation and say that the following set consists of all of the preimages of 0 :
The second formulation for this set was obtained by solving the equation for .
6.2.12 Progress Check 6.9 (Working with a Function of Two Variables)
Let be defined by for all .
-
1.
Determine , and .
-
2.
Determine the set of all preimages of the integer 0 for the function . Write your answer using set builder notation.
-
3.
Determine the set of all preimages of the integer 5 for the function . Write your answer using set builder notation.
6.2.13 Exercises 6.2
-
1.
Let . Define by , and define by .
-
(a)
Calculate , and .
-
(b)
Calculate , and .
-
(c)
Is the function equal to the function ? Explain.
-
(a)
-
2.
Let . Define by , and define by .
-
(a)
Calculate , and .
-
(b)
Calculate , and .
-
(c)
Is the function equal to the function ? Explain.
-
(a)
-
3.
Let by and let by .
-
(a)
Calculate , and .
-
(b)
Calculate , and .
-
(c)
Is the function equal to the function ? Explain.
-
(d)
Now let by . Is the function equal to the function ? Explain.
-
(a)
-
4.
Represent each of the following sequences as functions. In each case, state a domain, codomain, and rule for determining the outputs of the function. Also, determine if any of the sequences are equal.
-
(a)
-
(a)
-
(b)
-
(d)
-
(a)
-
5.
Let and be two nonempty sets. There are two projection functions with domain , the Cartesian product of and . One projection function will map an ordered pair to its first coordinate, and the other projection function will map the ordered pair to its second coordinate. So we define
Let and let .
-
(a)
Determine the outputs for all possible inputs for the projection function .
-
(b)
Determine the outputs for all possible inputs for the projection function .
-
(c)
What is the range of these projection functions?
-
(d)
Is the following statement true or false? Explain.
For all , if , then .
-
(a)
-
6.
Let and define by the number of diagonals of a convex polygon with sides. In Beginning Activity 1, we showed that for values of from 3 through 8,
Use mathematical induction to prove that for all ,
Hint: To get an idea of how to handle the inductive step, use a pentagon. First, form all the diagonals that can be made from four of the vertices. Then consider how to make new diagonals when the fifth vertex is used. This may generate an idea of how to proceed from a polygon with sides to a polygon with sides.
-
7.
Let be defined by .
-
(a)
Calculate and .
-
(b)
Determine the set of all the preimages of 4 by using set builder notation to describe the set of all such that .
-
(a)
-
8.
Let be defined by .
-
(a)
Calculate and .
-
(b)
Determine all the preimages of . That is, find all such that .
-
(c)
Determine the set of all the preimages of .
-
(d)
Determine the set of all the preimages of .
-
(e)
Is the following proposition true or false? Justify your conclusion.
For each , there exists an such that .
-
(a)
-
9.
A 2 by 2 matrix over is a rectangular array of four real numbers arranged in two rows and two columns. We usually write this array inside brackets (or parentheses) as follows:
where , and are real numbers. The determinant of the 2 by 2 matrix , denoted by , is defined as
-
(a)
Calculate the determinant of each of the following matrices:
-
(a)
Let be the set of all 2 by 2 matrices over . The mathematical process of finding the determinant of a 2 by 2 matrix over can be thought of as a function. Explain carefully how to do so, including a clear statement of the domain and codomain of this function.
-
(a)
-
10.
Using the notation from Exercise (9), let
be a 2 by 2 matrix over . The transpose of the matrix , denoted by , is the 2 by 2 matrix over defined by
-
(a)
Calculate the transpose of each of the following matrices:
-
(b)
Let be the set of all 2 by 2 matrices over . The mathematical process of finding the transpose of a 2 by 2 matrix over can be thought of as a function. Carefully explain how to do so, including a clear statement of the domain and codomain of this function.
-
(a)
6.2.14 Explorations and Activities
-
11.
Integration as a Function. In calculus, we learned that if is real function that is continuous on the closed interval , then the definite integral is a real number. In fact, one form of the Fundamental Theorem of Calculus states that
where is any antiderivative of , that is, where .
-
(a)
Let be a closed interval of real numbers and let be the set of all real functions that are continuous on . That is,
-
i.
Explain how the definite integral can be used to define a function from to .
-
ii.
Let . Calculate , where .
-
iii.
Let . Calculate , where .
In calculus, we also learned how to determine the indefinite integral of a continuous function .
-
i.
-
(b)
Let and . Determine and .
-
(c)
Let be a continuous function on the closed interval and let be the set of all real functions. Can the process of determining the indefinite integral of a continuous function be used to define a function from to ? Explain.
-
(d)
Another form of the Fundamental Theorem of Calculus states that if is continuous on the interval and if
for each in , then . That is, is an antiderivative of . Explain how this theorem can be used to define a function from to , where the output of the function is an antiderivative of the input. (Recall that is the set of all real functions.)
-
(a)