Skip to main content

Section 2.1 An Introduction to Functions

Overview.

Calculus studies the relationships between variables. We have been learning about relationships described by equations where a dependent variable, say \(y\text{,}\) is equal to an expression involving only the independent variable, say \(x\text{.}\) In mathematics, such relationships are most are generalized to create the concept of functions. A function is a predictive relationship between an independent and a dependent variable which we interpret as a map, \(x \mapsto y\text{,}\) meaning that knowing \(x\) we can predict the value of \(y\text{.}\)

In this section, we will study an overview of the core concepts relating to functions. Functions will generalize our idea of operations that can act on expressions. We will learn how to think of a function as a map between two variables. Associated with a function as a map are the sets known as the domain, codomain, and range.

Subsection 2.1.1 Models as Functions

We have previously used equations as models of relations between variables. When we think of one variable as a dependent variable based on the other variable as the independent variable, we are mentally thinking of the equation as defining a map. Each model equation where one variable is defined as an expression in terms of the other variable represents such a map. We define the domain as the set of all possible values of the independent variable and the range as the set of all resulting values of the dependent variable.

A graphical view of a map is using two number lines, one for the domain and one for the range. For each value in the domain, we imagine that the map defines an arrow originating at the point in the domain and ending at the point in the range. If a value on the number line does not belong to the domain, there just isn't any arrow originating at that point.

Example 2.1.1.

Consider a function defined by a linear relation with states \((x,y)=(1,2)\) and \((x,y)=(3,8)\text{.}\) We can find the equation of the line by finding the slope and using the slope–intercept equation. The slope is interpreted as the ratio of the change in the output to the change in the input. The increment of the input is \(\Delta x = x_2 -x_1 = 3-1 = 2\text{.}\) The increment of the output is \(\Delta y = y_2 - y_1 = 8-2 = 6\text{.}\) The slope or rate of change is therefore \(m=\frac{6}{2} = 3\text{.}\) The equation of the line using the point \((x,y)=(1,2)\) becomes

\begin{equation*} y-2 = 3 \, (x-1)\text{.} \end{equation*}

If we solve for \(y\text{,}\) we get \(y\) as an explicit function of \(x\text{,}\)

\begin{equation*} y = 3 \, (x-1) + 2\text{.} \end{equation*}

The interactive figure below illustrates the idea of a map. The top number line contains the domain, while the bottom number line contains the range. A slider on the top line allows you to choose a value in the domain. The arrow dynamically moves to connect the point in the domain to the point in the range.

Figure 2.1.2. The linear function that maps \(x=1 \mapsto y=2\) and \(x=3 \mapsto y=8\) has rate of change \(m=2\text{.}\)

This map view of the linear function gives an interesting visual interpretation of the slope. We consider the initial point \((x,y)=(1,2)\) as giving reference values on each number line. The map sends \(x=1 \mapsto y=2\text{.}\) As we move the slider away from \(x=1\text{,}\) the gap between the value of \(x\) and \(x=1\) defines \(\Delta x\text{.}\) The slope of the line then forces the gap from \(y=2\) and the value \(y\) coming from \(x\) will be \(\Delta y = 3 \, \Delta x\text{.}\) That is, the slope is the scaling factor going from \(\Delta x\) to \(\Delta y\text{.}\)

The algebraic interpretation of a map defined by an equation uses variable substitution. To find the value of the dependent variable, we substitute the assigned value of the independent variable into the equation. After we simplify the expression, we determine the value of the dependent variable.

Example 2.1.3.

In 1990, the population of Harrisonburg, Virginia, was 30,707. In 2010, the population was 48,914. If the rate of change of the population increased at a constant rate, find a model for the population of Harrisonburg as a function of the year. What does the model predict for the year 2020?

Solution

The variables involved in the model are the year \(y\) and the population \(P\text{.}\) By saying that the rate of change is constant means that the model uses a linear function. The given data show \(y=1990 \mapsto P=30707\) and \(y=2010 \mapsto P=48914\text{.}\) We find the slope as the ratio of \(\Delta P\) (change in output) to \(\Delta y\) (change in input).

\begin{align*} m &= \frac{\Delta P}{\Delta y} \\ &= \frac{48914 - 30707}{2010-1990} \\ &= \frac{18207}{20} = 910.35 \end{align*}

Using the point-slope form of the line, we start with the known mapping \(1990 \mapsto 30707\) and the constant rate of change to give

\begin{equation*} P = 30707 + 910.35 \, (y - 1990)\text{.} \end{equation*}

The graph of this line is shown below.

To find the predicted population for 2020, we use the model with substitution. Let \(y=2020\) and substitute this into the model:

\begin{align*} P \amp= 30707 + 910.35 \, (y - 1990) \\ \amp= 30707 + 910.35 \, (2020 - 1990) \\ \amp= 30707 + 910.35 \cdot 30 \\ \amp= 58017.5 \end{align*}

Consequently, the model predicts the map \(y=2020 \mapsto P=58017.5\text{.}\) Of course, the real population will not be a non-integer value. This example reminds us to distinguish between a prediction of a model and an actual value.

Because we use functions to find values of the dependent variable by substitution, we have a special notation called function notation. The map or function is assigned a name. The name of the function followed by an expression inside of parentheses represents the value of the dependent variable when the input expression is substituted for the independent variable.

For example, if we write \(f : x \mapsto y = 3x^2\text{,}\) then the name of the function is \(f\text{.}\) The equation defining the relation is \(y=3x^2\text{.}\) This is more commonly written \(y = f(x) = 3x^2\text{.}\) The expression \(f(1)\text{,}\) substituting \(x\) with \(x=1\text{,}\) we find \(y=3(1)^2 = 3\text{.}\) More simply, we write \(f(1) = 3(1)^2 = 3\text{.}\) Substitution can involve entire expressions as well as single values. The expression \(f(2+h)\) represents the expression \(3x^2\) when \(2+h\) is substituted for \(x\text{,}\)

\begin{equation*} f(2+h) = 3 \, (2+h)^2\text{.} \end{equation*}
Example 2.1.4.

Suppose we have a function \(f : t \mapsto B\) where \(t\) measures the time in years since we opened a bank account and \(B\) measures the account balance. If the account grows according to the model \(B = 500 (1.02)^t\text{,}\) we can write \(f(t) = 500 \, (1.02)^t\text{.}\) Find the balance after two, five, and ten years using function notation.

Solution

The values that we want, using function notation, are \(f(2)\text{,}\) \(f(5)\text{,}\) and \(f(10)\text{.}\) Each of these expressions represent values for \(B\) when the value of \(t\) is replaced by \(t=2\text{,}\) \(t=5\text{,}\) and \(t=10\text{.}\) The three values are

\begin{gather*} f(2) = 500 (1.02)^2 = 520.20,\\ f(5) = 500 (1.02)^5 \approx 552.04,\\ f(10) = 500 (1.02)^{10} \approx 609.50. \end{gather*}

Thus, the model predicts balance values of \(B=520.20\) when \(t=2\text{,}\) \(B=552.04\) when \(t=5\text{,}\) and \(B=609.50\) when \(t=10\text{.}\)

Note 2.1.5.

Although writing parentheses in mathematics next to a number or a variable means multiplication, a function is not a variable. The parentheses after the function do not mean multiplication but evaluation. It is unfortunate that the same symbols have different meanings, so you will need to pay close attention to the context. When reading aloud, a function expression like \(f(x)\) should be read “\(f\) of \(x\)”.

If we have an equation involving two variables and can solve to isolate one of the variables to be equal to some expression involving the other variable, then the equation defines a function. The isolated variable is the dependent variable (output) and the other variable is the independent variable. This is a function because once you know the value of the independent variable, the equation allows you to substitute that value and determine a single value of the dependent variable. An equation where the dependent variable is isolated defines the dependent variable as an explicit function of the independent variable.

Example 2.1.6.

Given the equation \(\frac{xy}{x+y} = 3\text{,}\) rewrite \(y\) as an explicit function of \(x\text{.}\)

Solution

To show that \(y\) is a function of \(x\text{,}\) we need to solve the equation for \(y\text{.}\) We can cross multiply the equation and then collect terms involving \(y\text{.}\) Once we factor the common factor of \(y\text{,}\) we can isolate the variable.

\begin{align*} \frac{xy}{x+y} \amp= 3 \\ xy \amp= 3(x+y) \\ xy \amp= 3x + 3y \\ xy - 3y \amp= 3x \\ (x-3) \, y \amp= 3x \\ y \amp= \frac{3x}{x-3} \end{align*}

The equation shows that we have a function \(x \mapsto y = \displaystyle \frac{3x}{x-3}\text{,}\) an explicit function of \(x\text{.}\)

If an equation can be solved for two different values of the dependent variable for a single value of the independent variable, then the equation does not define the dependent variable as a function of the independent variable. We will later learn that we can often restrict the equation to define an implicit function.

Example 2.1.7.

Show that \(x^2+y^2=25\) does not define \(y\) as a function of \(x\text{.}\)

Solution

The equation \(x^2+y^2=25\) defines a circle with radius \(r=5\text{.}\) For each value \(a\) with \(-5 \lt a \lt 5\text{,}\) the graph of the circle will intersect the vertical line \(x=a\) at two different points. To demonstrate this, consider \(x=3\text{.}\) When we substitute \(x=3\) into the equation \(x^2+y^2=25\text{,}\) we obtain the equation \(9 + y^2 = 25\) which is equivalent to \(y^2=16\text{.}\) There are two values, \(y=\pm 4\text{,}\) that solve this equation. Because there are two values for the dependent variable for this point, we see that the equation does not define an explicit function.

Subsection 2.1.2 Domain and Range

The domain of a function is the set of possible input values for the function. The domain might be all possible real numbers. It might also be a set restricted by algebraic constraints or by physical considerations. A second set associated with a function is the range. The range is the set of all possible output values for the function. We often consider a set called the codomain, which is a set to which all output values must belong. The range is always a subset of the codomain.

Definition 2.1.8. Function.

A function \(f\) is a rule or relation from a given set \(D\) (the domain) to another set \(D'\) (the codomain) such that every value \(a \in D\) is related (mapped) to a unique value \(b \in D'\text{.}\) We write \(f : D \to D'\text{.}\) If \(D'\) is not stated, it is assumed that \(D' = \mathbb{R}\text{.}\)

A function must assign a value for the output for every value in the domain. Functions using the same rule but for different domains are different functions. Choosing a domain is part of the modeling process. The domain specifies what type of values are acceptable for the independent variable (input). For example, some modeling scenarios might require that the independent variable must be an integer, so we choose a domain \(D = \mathbb{Z}\text{.}\) Other modeling scenarios might require that the independent variable is constrained to be between two values \(a \lt b\text{,}\) so we choose a domain \(D = (a,b)\text{.}\)

The codomain could always be chosen to be the set of real numbers \(\mathbb{R}\text{.}\) In mathematics, the codomain is usually required to distinguish different types of functions, such as whether the value of the function is a real number, a complex number, or even maybe a more complicated object like a matrix. For modeling, we would specify a codomain that is more precise in order to characterize some aspect of a function. For example, if the output variable is meant to represent a probability, then only values from 0 to 1 make sense, and we choose \(D' = [0,1]\text{.}\) Frequently, we want to have a function that is non-negative. We can communicate this by saying \(D' = [0,\infty)\text{.}\)

Example 2.1.9.

Consider a grocery store that charges $0.25 per ear of corn. We can define a function \(n \mapsto c\) that maps the number of ears purchased \(n\) to the pre-tax subtotal to charge \(c\) in dollars. Describe the function.

Solution

The function is characterized by the rule and by the domain. The rule is one of proportionality, \(c = 0.25 n\text{.}\) The independent (input) variable \(n\) is discrete and only makes sense for non-negative integers. We include \(n=0\) because a customer might not purchase corn. Consequently, \(D = \{0, 1, 2, \ldots\} = \mathbb{N}_0\text{.}\) If a store had a customer limit on how many ears could be purchased, then our domain \(D\) would have to be modified.

If we named our function \(f\text{,}\) the following notation communicates our summary:

\begin{equation*} f : \mathbb{N}_0 \to \mathbb{R}; n \mapsto c = 0.25 n\text{.} \end{equation*}

The notation states the name of the function \(f\text{,}\) the domain \(\mathbb{N}_0\text{,}\) the input and output variables \(n\) and \(c\text{,}\) and the rule \(c = 0.25 n\text{.}\)

Example 2.1.10.

Consider a grocery store that charges $0.25 per pound of bananas. We can define a function \(w \mapsto c\) that maps the weight of bananas purchased \(w\) to the pre-tax subtotal to charge \(c\) in dollars. Describe the function.

Solution

The function is characterized by the rule and by the domain. The rule is again one of proportionality, \(c = 0.25 w\text{.}\) However, weight is a continuous variable; the weight of bananas purchased could conceivably be any positive real number. To allow for no purchase, we again include \(w=0\text{.}\) The domain is therefore an interval of values \(0 \le w\text{,}\) written \(D = [0,\infty)\text{.}\) If we named our function \(g\text{,}\) the following notation communicates our summary:

\begin{equation*} g : [0,\infty) \to \mathbb{R}; w \mapsto c = 0.25 w\text{.} \end{equation*}

In the two previous examples, the formulas for two different functions described the same calculation—multiply the input by 0.25. In the examples, we used mapping notation to describe the functions. Mapping notation has the advantage of being precise but a disadvantage in being a little cumbersome. We can use function notation to define each function if we include a restriction on the domain. For \(f\) we would write

\begin{equation*} f(n) = c = 0.25 n, \quad n=0, 1, 2, \ldots\text{.} \end{equation*}

For \(g\) we would write

\begin{equation*} g(w) = c = 0.25 w, \quad w \ge 0\text{.} \end{equation*}

Notice that if we were to substitute a generic variable \(x\) for the input values, we would have \(f(x)=0.25x\) and \(g(x)=0.25x\text{.}\) Nevertheless, the functions are not the same because they have different domains.

The graphs of these functions are also related but different. The discrete function \(f\) will have isolated points for its graph. The continuous function \(g\) will have a connected graph. Both functions will have all points on their graphs sitting on the line \(y=0.25x\text{.}\)

Graph of the discrete function f showing isolated points on the line y = 0.25 x.
Graph of the continuous function g along with the line y = 0.25 x.
Figure 2.1.11. Graphs of the functions \(f : \mathbb{N}_0 \to \mathbb{R}; n \mapsto c = 0.25 n\) and \(g : [0,\infty) \to \mathbb{R}; w \mapsto c = 0.25 w\text{,}\) each overlaid with the graph of the line \(y=0.25 x\text{.}\)

Unless specified otherwise, the domain of a function defined by a formula will be the largest set of real numbers for which the formula is defined. This type of domain is called the natural domain of the function or of the defining expression. However, the codomain might include values that are not necessarily in the range. For example, the function \(x \mapsto y = 3\) can be defined for a domain \(\mathbb{R}\) (all real numbers) and the range is the set with a single value \(\{3\}\text{.}\) The codomain could be defined to be any set that includes 3, such as the set of non-negative numbers \([0,\infty)\) or the set of all real numbers \(\mathbb{R}\text{.}\) The default codomain will be \(\mathbb{R}\text{.}\)

Definition 2.1.12.

For a function \(f\) defined by a formula, such as \(y=f(x)\text{,}\) the natural domain is the set of all real numbers for which the formula is defined.

Definition 2.1.13.

For a function \(f : D \to D'\text{,}\) the range is the set of all values \(y\) for which there exists a state \((x,y)\text{.}\) That is, there exists \(x \in D\) so that \(f(x)=y\text{.}\)

We find the natural domain by identifying which operations might not be defined for all values and then solve either equations or inequalities that will identify where the function is defined. Our elementary operations and functions use the following constraints to find the domain.

  • Division is undefined if the denominator equals zero.
  • Even roots (e.g., square roots) and irrational powers are undefined if the inner expression is negative.
  • Logarithms are undefined if the inner expression is non-positive (zero or negative).

The inequalities that arise in finding the domain can be solved directly or by using factor analysis.

Example 2.1.14.

Determine the domain of \(\displaystyle f(x) = \frac{2x+3}{x^2-4}\text{.}\)

Solution

Because \(f(x)\) is defined as a quotient, the domain will be the set of all values where \(x^2-4 \ne 0\text{.}\) We solve this inequality by factoring and considering the complementary equation \(x^2-4=0\text{,}\) since a product can only equal zero if one of the factors equals zero.

\begin{gather*} x^2-4 = 0\\ (x+2)(x-2) = 0 \\ x+2 = 0 \quad \text{or} \quad x-2=0\\ x=-2 \quad \text{or} \quad x=2 \end{gather*}

This means \(f(x)\) is defined for all inputs except \(x=-2\) or \(x=2\text{.}\)

To describe the domain using intervals, we think of the real number line and remove \(x=\pm 2\text{.}\) A graphical representation of the set using a number line is shown below. Intervals are read from the line left-to-right. It starts at \(-\infty\) and continues until \(-2\text{,}\) then goes from \(-2\) to \(2\text{,}\) and finally goes from \(2\) until \(+\infty\text{.}\) We write

\begin{equation*} D = (-\infty,-2) \cup (-2, 2) \cup (2,+\infty)\text{.} \end{equation*}

Sometimes finding the domain of a function involves performing sign analysis (such as for a square root or a logarithm). We identify end points of intervals where the expression of interest might change sign by solving equations. These end points only occur where the expression equals zero or where the expression itself is undefined (a discontinuity). We test the sign of the expression in each of the resulting intervals by using test points or counting the number of negative factors. Testing the sign at single points is often more efficient than counting negative factors.

Example 2.1.15.

Find the domain of the function \(\displaystyle g(x)=\log_{4}(x^2-x-6)\text{.}\)

Solution

The logarithm in \(g(x)\) will only have a real value when the input expression is positive, \(x^2-x-6 \gt 0\text{.}\) Our task becomes determining the signs of the expression \(x^2-x-6\text{.}\) To illustrate the process of testing points in intervals, we first find possible sign-changing points. The expression is always defined (no discontinuities) so we just solve for zeros \(x^2-x-6=0\) by factoring.

\begin{gather*} x^2-x-6=0 \\ (x-3)(x+2)=0\\ x-3=0 \quad \text{or} \quad x+2=0\\ x=3 \quad \text{or} \quad x=-2 \end{gather*}

If we mark these points on a number line, we can easily identify the intervals to test for signs. It is helpful to use the same number line to record the resulting signs, so we can label \(x\)-values below the line and the resulting sign or value of the expression above the line.

The number line shows we need to test the intervals \((-\infty,-2)\text{,}\) \((-2,3)\text{,}\) and \((3,\infty)\text{.}\) Choosing one value from each interval, we can evaluate the expression at that point and identify the sign.

\begin{align*} x=-3 \quad &\Rightarrow \quad x^2-x-6 = (-3)^2-(-3)-6 = 6\\ x=0 \quad &\Rightarrow \quad x^2-x-6 = 0^2-0-6 = -6\\ x=4 \quad & \Rightarrow \quad x^2-x-6 = 4^2-4-6 = 6 \end{align*}

We can now update the number line we started by recording either \(+\) or \(-\) above each interval that we tested. These signs are identical to what we would get by using the number of negative factors for values in each interval. In fact, we could test the intervals by thinking about the factors instead of completely evaluating the expression's value.

We were finding the domain of \(g(x)=\log_4(x^2-x-6)\text{,}\) which requires \(x^2-x-6 \gt 0\text{.}\) Based on our summary, we need to find all values which result in the expression having a positive sign. So our solution is the set \(D\) formed from the union of intervals \((-\infty,-2)\) and \((3,\infty)\text{,}\)

\begin{equation*} D = (-\infty,-2) \cup (3,\infty)\text{.} \end{equation*}

A visualization of the domain on the number line might also help solidify the connections between the sign analysis number line and the domain set.

Example 2.1.16.

Find the domain of the function \(\displaystyle h(x) = \sqrt{\frac{4x}{x^2-9}}\text{.}\)

Solution

A square root (any even root) requires that the input expression is non-negative. Our domain is to solve the inequality

\begin{equation*} D = \{ x : \frac{4x}{x^2-9} \ge 0 \}\text{.} \end{equation*}

To use sign analyis, we need to know the zeros and discontinuities and then test each resulting interval. Discontinuities occur when we try to divide by zero.

\begin{gather*} x^2-9 = 0\\ (x+3)(x-3) = 0\\ x+3=0 \quad \text{or} \quad x-3=0\\ x=-3 \quad \text{or} \quad x=3 \end{gather*}

Zeros for a quotient require that the numerator equals zero.

\begin{gather*} 4x=0\\ x=0 \end{gather*}

Our sign analysis number line will have three points.

Checking one point in each resulting interval gives us the sign. To find the sign, we count the number of negative factors, including the factors in the denominator.

\begin{align*} x = -4 \quad &\Rightarrow \quad \frac{4x}{(x+3)(x-3)} = \frac{4(-4)}{(-4+3)(-4-3)} = \frac{(-)}{(-)(-)}\\ x = -1 \quad &\Rightarrow \quad \frac{4x}{(x+3)(x-3)} = \frac{4(-1)}{(-1+3)(-1-3)} = \frac{(-)}{(+)(-)}\\ x = 1 \quad &\Rightarrow \quad \frac{4x}{(x+3)(x-3)} = \frac{4(1)}{(1+3)(1-3)} = \frac{(+)}{(+)(-)}\\ x = 4 \quad &\Rightarrow \quad \frac{4x}{(x+3)(x-3)} = \frac{4(4)}{(4+3)(4-3)} = \frac{(+)}{(+)(+)} \end{align*}

The signs can be summarized on the number line.

We interpret our analysis to find the domain of \(h(x)\text{.}\) The domain must include intervals where the inner expression is positive, \((-3,0)\) and \((3,\infty)\text{,}\) along with points where the expression equals zero, \(x=0\text{.}\) The set is visualized below. We do not include the points where the expression was undefined, \(x = \pm 3\text{.}\) The domain is the set

\begin{equation*} D = (-3,0] \cup (3,\infty)\text{.} \end{equation*}

Subsection 2.1.3 Other Representations for Functions

A function can be defined by rules other than formulas. Any method that creates a unique output result for each given input value in the domain is a valid function. When the domain is a small finite set, we can simply define the output values with a table. We could also define a function through a graph of the pairs \((x,y)\text{.}\) Sometimes, a function can be defined according to an algorithm that is not described by a formula.

Example 2.1.17.

One round of a game called “Pig” involves the throw of a single six-sided die. If the die shows one dot, the round scores 100 points. If the die shows five dots, the round scores 50 points. Any other face on the die results in 0 points.

The score for a round is a function of the thrown face. The input for the function, or independent variable, is the number of dots showing on the thrown die's face, say \(D\text{.}\) The output for the function, or dependent variable, is the score for the round, say \(S\text{.}\) The domain involves six possible values,

\begin{equation*} D = \{ 1, 2, 3, 4, 5, 6 \}\text{.} \end{equation*}

The range has three values, \(R = \{0, 50, 100\}\text{.}\)

The function can be characterized by a table. The table has two columns, one for the input (dots on the die) and one for the output (round score). The key feature of this table representing a function is that every value in the domain appears as exactly one entry in the input column. The function maps \(D \mapsto S\) We can never allow a single input value to map to two different output values.

Number of Dots (\(D\)) Score for Round (\(S\))
1 100
2 0
3 0
4 0
5 50
6 0

A graph of this function has exactly six points, corresponding to the six values in the domain. Each point is a state \((D,S)\) appearing in the table. Notice how the graph and the table show the same information in different ways.

The inverse relation using the same table \((S,D)\) is not a function. Multiple die throws correspond to the same score. Thus, knowing the score \(S\) is not enough information to know the value of the number of dots showing on a throw \(D\text{.}\)

Subsection 2.1.4 Summary

  • A function is a relation between an independent variable (input) and a dependent variable (output) such that for each value of the input, there is exactly one value for the output.
  • An equation in two variables defines a relation. When we can solve the equation for one variable (dependent) as a single expression of the other variable (independent), the expression defines an explicit function.
  • Function mapping notation \(x \overset{f}{\mapsto} y\) indicates that \(y\) is a function of \(x\) and \(f\) is the name of the function.
  • Function evaluation notation \(f(\square)\) uses substitution of whatever appears between the parentheses \((\square)\) in place of the independent variable.

Exercises 2.1.5 Exercises

For each function defining a map between two variables, interpret the stated function value by indicating the value of each variable.
1.

Suppose that \(P\) represents the population size in millions and \(B\) represents the birth rate in hundreds of births per month. If \(f : P \mapsto B\text{,}\) interpret \(f(30) = 12\text{.}\)

2.

Suppose that \(t\) represents time in seconds and \(h\) represents the height of an object above the ground in meters. If \(g : t \mapsto h\text{,}\) interpret \(g(2) = 3\text{.}\)

3.

Suppose that \(n\) represents the number of items a company will sell in thousands and \(p\) represents the price the company charges per item in dollars. If \(h : p \mapsto n\text{,}\) interpret \(h(2) = 5\text{.}\)

For each function, illustrate how the function maps values between variables. Draw two parallel number lines, with the top number line corresponding to the independent variable. Mark the given domain as shaded segments or points, as appropriate. Choose three different values in the domain and then indicate with arrows how the function maps these values.

4.

\(\displaystyle f: [0,1] \to \mathbb{R}; x \mapsto y = 2x - 5\)

5.

\(\displaystyle g: [-1,1] \to \mathbb{R}; s \mapsto T = \frac{1}{s+2}\)

6.

\(\displaystyle h: {0,1,2,3,4,5} \to \mathbb{R}; n \mapsto p = 10-2n\)

7.

\(\displaystyle F: \mathbb{N} \to \mathbb{R}; t \mapsto x = 2^t\)

Find the natural domain for each function defined by an equation.

8.

\(\displaystyle f(x) = x^2-4x+3\)

9.

\(\displaystyle g(x) = \sqrt{x^2-4x+3}\)

10.

\(\displaystyle h(x) = \log\left(x^2-4x+3\right)\)

11.

\(\displaystyle f(x) = \frac{x^2-1}{x^2-4}\)

12.

\(\displaystyle g(x) = \sqrt{\frac{x^2-1}{x^2-4}}\)

13.

\(\displaystyle h(x) = \log\left(\frac{x^2-1}{x^2-4}\right)\)

14.

\(\displaystyle f(x) = \frac{2x}{x^2-x-6}\)

15.

\(\displaystyle g(x) = \sqrt{\frac{2x}{x^2-x-6}}\)

16.

\(\displaystyle h(x) = \log\left(\frac{2x}{x^2-x-6}\right)\)

17.

A function \(f : x \mapsto y\) is defined by a table shown below.

  1. Graph the points represented by the function.
  2. What are the domain and range of \(f\text{?}\)
  3. What is \(f(3)\text{?}\)
  4. What value or values of \(x\) satisfy \(f(x)=4\text{?}\)
\(x\) \(y\)
1 4
2 2
3 1
4 3
5 4
18.

A function \(g : x \mapsto y\) is defined by a graph shown below.

  1. What are the domain and range of \(g\text{?}\)
  2. What is \(g(4)\text{?}\)
  3. What value or values of \(x\) satisfy \(g(x)=3\text{?}\)
  4. Find the table representation for \(g\text{.}\)

Applications

19.

Let \(C\) be the temperature measured in degrees Celsius, and let \(F\) be the temperature measured in degrees Fahrenheit. The function \(g(x) = \frac{9}{5}x + 32\) defines the map \(g : C \mapsto F\text{,}\) and \(h(x) = \frac{5}{9}(x-32)\) defines \(h : F \mapsto C\text{.}\)

  1. What is the value and interpretation of \(g(30)\text{?}\)
  2. What is the value and interpretation of \(h(70)\text{?}\)
20.

A spring force scale uses the distance a spring is stretched to determine the force that is applied to the spring. We calibrate the scale by using known forces (e.g., weights) and record the corresponding location of the tip on a ruler. Let \(F\) be the force (Newtons) applied to the spring and let \(L\) be the corresponding location (centimeters). The following table is used for calibration.

\(F\) (N) 0 10.0
\(L\) (cm) 20.0 42.5
  1. Find a linear equation relating the variables \(F\) and \(L\text{.}\)
  2. Determine functions \(g\) and \(h\) so that \(g : F \mapsto L\) and \(h : L \mapsto F\text{.}\) What are the corresponding equations using evaluation notation?
  3. Suppose a force of 5 N is applied to the spring. What will be the location of the tip of the ruler? Which function was used?
  4. Suppose a force is applied that results in the tip having a location of 28.7 cm. What was the force? Which function was used?
21.

The cost \(C\) of materials for a project depends on the required area \(A\) of materials needed. The unit price is $3.50 per m2. The project involves making two squares, each of them having sides with length \(s\) (meters).

  1. Find \(f : A \mapsto C\text{.}\)
  2. Find \(g : s \mapsto A\text{.}\)
  3. How much would a project with \(s=4\) cost? How is each function used in order to answer this question?