MX Algebra Relations and Functions

Section 3.5Relations and Functions

Definition

Before you get started, take this readiness quiz.

1

Evaluate \(3x-5\) when \(x=-2\) .
If you missed this problem, review Example 6.

\(-11\)

Definition
2

Evaluate \(2{x}^{2}-x-3\) when \(x=a.\)
If you missed this problem, review Example 6.

\(2{a}^{2}-a-3\)

Definition
3

Simplify: \(7x-1-4x+5.\)
If you missed this problem, review Example 7.

\(3x+4\)

Find the Domain and Range of a Relation

As we go about our daily lives, we have many data items or quantities that are paired to our names. Our social security number, student ID number, email address, phone number and our birthday are matched to our name. There is a relationship between our name and each of those items.

When your professor gets her class roster, the names of all the students in the class are listed in one column and then the student ID number is likely to be in the next column. If we think of the correspondence as a set of ordered pairs, where the first element is a student name and the second element is that student’s ID number, we call this a relation.

\[\text{(Student name, Student ID \#)}\]

The set of all the names of the students in the class is called the domain of the relation and the set of all student ID numbers paired with these students is the range of the relation.

There are many similar situations where one variable is paired or matched with another. The set of ordered pairs that records this matching is a relation.

Relation

A relation is any set of ordered pairs, \((x,y).\) All the x-values in the ordered pairs together make up the domain. All the y-values in the ordered pairs together make up the range.

Example 1

For the relation \(\{(1,1),(2,4),(3,9),(4,16),(5,25)\}:\)

ⓐ Find the domain of the relation.

ⓑ Find the range of the relation.

List all the x-values in the ordered pairs for the domain, and all the y-values for the range.

\(\,\{(1,1),(2,4),(3,9),(4,16),(5,25)\}\)

ⓐ The domain is the set of all x-values of the relation. \(\,\{1,2,3,4,5\}\)

ⓑ The range is the set of all y-values of the relation. \(\,\{1,4,9,16,25\}\)

Try It #1

For the relation \(\{(1,1),(2,8),(3,27),(4,64),(5,125)\}:\)

ⓐ Find the domain of the relation.

ⓑ Find the range of the relation.

ⓐ \(\{1,2,3,4,5\}\)
ⓑ \(\{1,8,27,64,125\}\)

Did you get it?
Try It #2

For the relation \(\{(1,3),(2,6),(3,9),(4,12),(5,15)\}:\)

ⓐ Find the domain of the relation.

ⓑ Find the range of the relation.

ⓐ \(\{1,2,3,4,5\}\)
ⓑ \(\{3,6,9,12,15\}\)

Did you get it?
Mapping

A mapping is sometimes used to show a relation. The arrows show the pairing of the elements of the domain with the elements of the range.

Example 2

Use the mapping of the relation shown to ⓐ list the ordered pairs of the relation, ⓑ find the domain of the relation, and ⓒ find the range of the relation.

This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Alison”, “Penelope”, “June”, “Gregory”, “Geoffrey”, “Lauren”, “Stephen”, “Alice”, “Liz”, “Danny”. The table on the right has the header “Birthday” and lists the dates “January 12”, “February 3”, “April 25”, “May 10”, “May 23”, “July 24”, “August 2”, and “September 15”. There is one arrow for each name in the Name table that starts at the name and points toward a date in the Birthday table. While most dates have only one arrow pointing to them, there are two arrows pointing to July 24: one from Stephen and one from Liz.

Turn each arrow into an ordered pair (name, birthday) first, then read the domain and range off those pairs.

ⓐ The arrow shows the matching of the person to their birthday. We create ordered pairs with the person’s name as the x-value and their birthday as the y-value.

{(Alison, April 25), (Penelope, May 23), (June, August 2), (Gregory, September 15), (Geoffrey, January 12), (Lauren, May 10), (Stephen, July 24), (Alice, February 3), (Liz, August 2), (Danny, July 24)}

ⓑ The domain is the set of all x-values of the relation.

{Alison, Penelope, June, Gregory, Geoffrey, Lauren, Stephen, Alice, Liz, Danny}

ⓒ The range is the set of all y-values of the relation.

{January 12, February 3, April 25, May 10, May 23, July 24, August 2, September 15}

Try It #3

Use the mapping of the relation shown to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.

This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Khanh Nguyen”, “Abigail Brown”, “Sumantha Mishal”, and “Jose Hern and ez”. The table on the right has the header “Student ID #” and lists the codes “a b 56781”, “j h 47983”, “k n 68413”, and “s m 32479”. There is one arrow for each name in the Name table that starts at the name and points toward a code in the student ID table. The first arrow goes from Khanh Nguyen to k n 68413. The second arrow goes from Abigail Brown to a b 56781. The third arrow goes from Sumantha Mishal to s m 32479. The fourth arrow goes from Jose Hern and ez to j h 47983.

ⓐ (Khanh Nguyen, kn68413), (Abigail Brown, ab56781), (Sumantha Mishal, sm32479), (Jose Hern and ez, jh47983) ⓑ {Khanh Nguyen, Abigail Brown, Sumantha Mishal, Jose Hern and ez} ⓒ {kn68413, ab56781, sm32479, jh47983}

Did you get it?
Try It #4

Use the mapping of the relation shown to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.

This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Maria”, “Arm and o”, “Cynthia”, “Kelly”, and “Rachel”. The table on the right has the header “Birthday” and lists the dates “January 18”, “March 15”, “November 6”, and “December 8”. There is one arrow for each name in the Name table that starts at the name and points toward a date in the Birthday table. The first arrow goes from Maria to November 6. The second arrow goes from Arm and o to a January 18. The third arrow goes from Cynthia to December 8. The fourth arrow goes from Kelly to March 15. The fifth arrow goes from Rachel to November 6.

ⓐ (Maria, November 6), (Arm and o, January 18), (Cynthia, December 8), (Kelly, March 15), (Rachel, November 6) ⓑ {Maria, Arm and o, Cynthia, Kelly, Rachel} ⓒ {November 6, January 18, December 8, March 15}

Did you get it?

A graph is yet another way that a relation can be represented. The set of ordered pairs of all the points plotted is the relation. The set of all x-coordinates is the domain of the relation and the set of all y-coordinates is the range. Generally we write the numbers in ascending order for both the domain and range.

Example 3

Use the graph of the relation to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.

The figure shows the graph of some points on the x y-coordinate plane. The x and y-axes run from negative 6 to 6. The points (negative 3, 4), (negative 3, negative 1), (0, 3), (1, 5), (2, negative 2), and (4, negative 2).

Read the coordinates of each plotted point off the graph first, then list the domain and range without repeating values.

ⓐ The ordered pairs of the relation are: \(\,\{(1,5),(-3,-1),(4,-2),(0,3),(2,-2),(-3,4)\}.\)

ⓑ The domain is the set of all x-values of the relation: \(\,\{-3,0,1,2,4\}.\)

Notice that while \(-3\) repeats, it is only listed once.

ⓒ The range is the set of all y-values of the relation: \(\,\{-2,-1,3,4,5\}.\)

Notice that while \(-2\) repeats, it is only listed once.

Try It #5

Use the graph of the relation to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.

The figure shows the graph of some points on the x y-coordinate plane. The x and y-axes run from negative 6 to 6. The points (negative 3, 3), (negative 2, 2), (negative 1, 0), (0, negative 1), (2, negative 2), and (4, negative 4).

ⓐ \((-3,3),(-2,2),(-1,0),\)
\((0,-1),(2,-2),(4,-4)\)
ⓑ \(\{-3,-2,-1,0,2,4\}\)
ⓒ \(\{3,2,0,-1,-2,-4\}\)

Did you get it?
Try It #6

Use the graph of the relation to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.

The figure shows the graph of some points on the x y-coordinate plane. The x and y-axes run from negative 6 to 6. The points (negative 3, 5), (negative 3, 0), (negative 3, negative 6), (negative 1, negative 2), (1, 2), and (4, negative 4).

ⓐ \((-3,0),(-3,5),(-3,-6),\)
\((-1,-2),(1,2),(4,-4)\)
ⓑ \(\{-3,-1,1,4\}\)
ⓒ \(\{-6,0,5,-2,2,-4\}\)

Did you get it?

Determine if a Relation is a Function

A special type of relation, called a function, occurs extensively in mathematics. A function is a relation that assigns to each element in its domain exactly one element in the range. For each ordered pair in the relation, each x-value is matched with only one y-value.

Function

A function is a relation that assigns to each element in its domain exactly one element in the range.

The birthday example from Example 2 helps us understand this definition. Every person has a birthday but no one has two birthdays. It is okay for two people to share a birthday. It is okay that Danny and Stephen share July 24th as their birthday and that June and Liz share August 2nd. Since each person has exactly one birthday, the relation in Example 2 is a function.

The relation shown by the graph in Example 3 includes the ordered pairs \((-3,-1)\) and \((-3,4).\) Is that okay in a function? No, as this is like one person having two different birthdays.

Example 4

Use the set of ordered pairs to (i) determine whether the relation is a function (ii) find the domain of the relation (iii) find the range of the relation.

ⓐ \(\{(-3,27),(-2,8),(-1,1),(0,0),(1,1),(2,8),(3,27)\}\)

ⓑ \(\{(9,-3),(4,-2),(1,-1),(0,0),(1,1),(4,2),(9,3)\}\)

Check whether any x-value in each set repeats with two different y-values.

ⓐ \(\{(-3,27),(-2,8),(-1,1),(0,0),(1,1),(2,8),(3,27)\}\)

(i) Each x-value is matched with only one y-value. So this relation is a function.

(ii) The domain is the set of all x-values in the relation.
The domain is: \(\{-3,-2,-1,0,1,2,3\}.\)

(iii) The range is the set of all y-values in the relation. Notice we do not list range values twice.
The range is: \(\{27,8,1,0\}.\)

ⓑ \(\{(9,-3),(4,-2),(1,-1),(0,0),(1,1),(4,2),(9,3)\}\)

(i) The x-value 9 is matched with two y-values, both 3 and \(-3.\) So this relation is not a function.

(ii) The domain is the set of all x-values in the relation. Notice we do not list domain values twice.
The domain is: \(\{0,1,4,9\}.\)

(iii) The range is the set of all y-values in the relation.
The range is: \(\{-3,-2,-1,0,1,2,3\}.\)

Try It #7

Use the set of ordered pairs to (i) determine whether the relation is a function (ii) find the domain of the relation (iii) find the range of the function.

ⓐ \(\{(-3,-6),(-2,-4),(-1,-2),(0,0),(1,2),(2,4),(3,6)\}\)

ⓑ \(\{(8,-4),(4,-2),(2,-1),(0,0),(2,1),(4,2),(8,4)\}\)

ⓐ Yes; \(\{-3,-2,-1,0,1,2,3\};\)
\(\left\{-6,-4,\right.-2,0,2,4,6\}\)
ⓑ No; \(\{0,2,4,8\};\)
\(\{-4,-2,-1,0,1,2,4\}\)

Did you get it?
Try It #8

Use the set of ordered pairs to (i) determine whether the relation is a function (ii) find the domain of the relation (iii) find the range of the relation.

ⓐ \(\{(27,-3),(8,-2),(1,-1),(0,0),(1,1),(8,2),(27,3)\}\)

ⓑ \(\{(7,-3),(-5,-4),(8,0),(0,0),(-6,4),(-2,2),(-1,3)\}\)

ⓐ No; \(\{0,1,8,27\};\)
\(\{-3,-2,-1,0,2,2,3\}\)
ⓑ Yes; \(\{7,-5,8,0,-6,-2,-1\};\)
\(\{-3,-4,0,4,2,3\}\)

Did you get it?
Example 5

Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.

This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Lydia”, “Eugene”, “Janet”, “Rick”, and “Marty”. The table on the right has the header “Phone number” and lists the numbers “321-549-3327 home”, “427-658-2314 cell”, “321-964-7324 cell”, “684-358-7961 home”, “684-369-7231 cell”, and “798-367-8541 cell”. There are arrows that start at a name and points toward a number in the phone number table. The first arrow goes from Lydia to 321-549-3327 home. The second arrow goes from Lydia to a 321-964-7324 cell. The third arrow goes from Eugene to 427-658-2314 cell. The fourth arrow goes from Janet to 427-658-2314 cell. The fifth arrow goes from Rick to 798-367-8541 cell. The sixth arrow goes from Marty to 684-358-7961 home. The seventh arrow goes from Marty to 684-369-7231 cell.

Check whether any name in the mapping has more than one arrow leaving it.

ⓐ Both Lydia and Marty have two phone numbers. So each x-value is not matched with only one y-value. So this relation is not a function.

ⓑ The domain is the set of all x-values in the relation. The domain is: {Lydia, Eugene, Janet, Rick, Marty}

ⓒ The range is the set of all y-values in the relation. The range is:

\(\left\{321-549-3327,\right.\) \(427-658-2314,\) \(321-964-7324,\) \(684-358-7961,\) \(684-369-7231,\) \(798-367-8541\}\)

Try It #9

Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.

This figure shows two table that each have one column. The table on the left has the header “Network” and lists the television stations “NBC”, “HGTV”, and “HBO”. The table on the right has the header “Program” and lists the television shows “Ellen Degeneres Show”, “Law and Order”, “Tonight Show”, “Property Brothers”, “House Hunters”, “Love it or List it”, “Game of Thrones”, “True Detective”, and “Sesame Street”. There are arrows that start at a network in the first table and point toward a program in the second table. The first arrow goes from NBC to Ellen Degeneres Show. The second arrow goes from NBC to Law and Order. The third arrow goes from NBC to Tonight Show. The fourth arrow goes from HGTV to Property Brothers. The fifth arrow goes from HGTV to House Hunters. The sixth arrow goes from HGTV to Love it or List it. The seventh arrow goes from HBO to Game of Thrones. The eighth arrow goes from HBO to True Detective. The ninth arrow goes from HBO to Sesame Street.

ⓐ no ⓑ {NBC, HGTV, HBO} ⓒ {Ellen Degeneres Show, Law and Order, Tonight Show, Property Brothers, House Hunters, Love it or List it, Game of Thrones, True Detective, Sesame Street}

Did you get it?
Try It #10

Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.

This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Neal”, “Krystal”, “Kelvin”, “George”, “Christa”, and “Mike”. The table on the right has the header “Phone number” and lists the numbers “123-567-4389 work”, “231-378-5941 cell”, “753-469-9731 cell”, “567-534-2970 work”, “684-369-7231 cell”, “798-367-8541 cell”, and “639-847-6971 cell”. There are arrows that start at a name and points toward a number in the phone number table. The first arrow goes from Neal to 753-469-9731 cell. The second arrow goes from Krystal to a 684-369-7231 cell. The third arrow goes from Kelvin to 231-378-5941 cell. The fourth arrow goes from George to 123-567-4389 work. The fifth arrow goes from George to 639-847-6971 cell. The sixth arrow goes from Christa to 567-534-2970 work. The seventh arrow goes from Mike to 567-534-2970 work. The eighth arrow goes from Mike to 798-367-8541 cell.

ⓐ No ⓑ {Neal, Krystal, Kelvin, George, Christa, Mike} ⓒ {123-567-4839 work, 231-378-5941 cell, 743-469-9731 cell, 567-534-2970 work, 684-369-7231 cell, 798-367-8541 cell, 639-847-6971 cell}

Did you get it?

In algebra, more often than not, functions will be represented by an equation. It is easiest to see if the equation is a function when it is solved for y. If each value of x results in only one value of y, then the equation defines a function.

Example 6

Determine whether each equation is a function. Assume \(x\) is the independent variable.

ⓐ \(2x+y=7\) ⓑ \(y={x}^{2}+1\) ⓒ \(x+{y}^{2}=3\)

Solve each equation for y first, then check whether every x-value gives only one y-value.

ⓐ \(2x+y=7\)

For each value of x, we multiply it by \(-2\) and then add 7 to get the y-value

Table 1
The image displays the linear equation y = -2x + 7, shown in a simple, clear font against a white background.
For example, if \(x=3:\,\)The equation y = -2 '.' 3 + 7 is shown, with the number 3 highlighted in red.
The image shows the mathematical equation y = 1 in a bold, sans-serif font on a white background. It represents a horizontal line where the y-coordinate is constant at 1.

We have that when \(x=3,\) then \(y=1.\) It would work similarly for any value of x. Since each value of x, corresponds to only one value of y the equation defines a function.

ⓑ \(y={x}^{2}+1\)

For each value of x, we square it and then add 1 to get the y-value.

Table 2
The equation y = x^2 + 1 is displayed in a mathematical expression. This represents a parabola shifted upwards by one unit on the y-axis, centered at x=0.
For example, if \(x=2:\,\)A mathematical equation is displayed on a white background, which reads 'y = 2^2 + 1'. The number 2 in '2^2' is highlighted in red, suggesting it might be the focus of the equation.
The image displays the mathematical equation 'y = 5' in a clean, straightforward manner on a white background, highlighting a constant value for the variable 'y'.

We have that when \(x=2,\) then \(y=5.\) It would work similarly for any value of x. Since each value of x, corresponds to only one value of y the equation defines a function.


Table 3
A mathematical equation is displayed, showing 'x + y^2 = 3' in a clear, dark font against a white background.
Isolate the y term.The image displays the mathematical equation y^2 = -x + 3, presented in a clear, digital format on a plain white background.
Let’s substitute \(x=2.\)A mathematical equation is displayed, showing 'y² = -2 + 3' with the number 2 highlighted in red, indicating a specific part of the calculation.
The mathematical equation y^2 = 1 is displayed in black text on a white background.
This give us two values for y.\(y=1\,y=-1\)

We have shown that when \(x=2,\) then \(y=1\) and \(y=-1.\) It would work similarly for any value of x. Since each value of x does not corresponds to only one value of y the equation does not define a function.

Try It #11

Determine whether each equation is a function.

ⓐ \(4x+y=-3\) ⓑ \(x+{y}^{2}=1\) ⓒ \(y-{x}^{2}=2\)

ⓐ yes ⓑ no ⓒ yes

Did you get it?
Try It #12

Determine whether each equation is a function.

ⓐ \(x+{y}^{2}=4\) ⓑ \(y={x}^{2}-7\) ⓒ \(y=5x-4\)

ⓐ no ⓑ yes ⓒ yes

Did you get it?

Find the Value of a Function

It is very convenient to name a function and most often we name it f, g, h, F, G, or H. In any function, for each x-value from the domain we get a corresponding y-value in the range. For the function f, we write this range value y as \(f(x).\) This is called function notation and is read f of x or the value of f at x. In this case the parentheses does not indicate multiplication.

Function Notation

For the function \(y=f(x)\)

\[\begin{array}{l}f\,\text{is the name of the function} \\ x\,\text{is the domain value} \\ f(x)\,\text{is the range value}\,y\,\text{corresponding to the value}\,x\end{array}\]

We read \(f(x)\) as f of x or the value of f at x.

We call x the independent variable as it can be any value in the domain. We call y the dependent variable as its value depends on x.

Independent and Dependent Variables

For the function \(y=f(x),\)

\[\begin{array}{l}x\,\text{is the independent variable as it can be any value in the domain} \\ y\,\text{the dependent variable as its value depends on}\,x\end{array}\]

Much as when you first encountered the variable x, function notation may be rather unsettling. It seems strange because it is new. You will feel more comfortable with the notation as you use it.

Let’s look at the equation \(y=4x-5.\) To find the value of y when \(x=2,\) we know to substitute \(x=2\) into the equation and then simplify.

Table 4
A linear equation is displayed as y = 4x - 5, representing a straight line with a slope of 4 and a y-intercept of -5.
Let \(x=2.\)A mathematical equation reads y = 4 ×7 2 ×1 5, where the number 2 is highlighted in red. This shows the initial setup for solving for y.
The equation y = 3 is displayed on a white background, representing a horizontal line in a Cartesian coordinate system where the y-coordinate for any point on the line is always 3.

The value of the function at \(x=2\) is 3.

We do the same thing using function notation, the equation \(y=4x-5\) can be written as \(f(x)=4x-5.\) To find the value when \(x=2,\) we write:

Table 5
The image displays the function f(x) = 4x - 5, a linear equation often encountered in algebra and pre-calculus.
Let \(x=2.\)A mathematical equation showing the function f evaluated at 2, expressed as f(2) = 4 * 2 - 5. The number 2 in '4 * 2' is highlighted in red.
The mathematical equation f(2) = 3 is displayed on a white background.

The value of the function at \(x=2\) is 3.

This process of finding the value of \(f(x)\) for a given value of x is called evaluating the function.

Example 7

For the function \(f(x)=2{x}^{2}+3x-1,\) evaluate the function.

ⓐ \(f(3)\) ⓑ \(f(-2)\) ⓒ \(f(a)\)

Substitute each given input directly into the formula for f(x) in place of x.


Table 6
A mathematical equation for a quadratic function, f(x) = 2x^2 + 3x - 1, is displayed on a white background. The equation is rendered clearly in black text, showing the function definition and its polynomial expression.
To evaluate \(f(3),\) substitute 3 for x.An equation evaluating f(3) as 2(3)^2 + 3 * 3 - 1, with the substituted value of '3' highlighted in red.
Simplify.A mathematical equation shows 'f(3) = 2 multiplied by 9 plus 3 multiplied by 3 minus 1'.
A mathematical equation is displayed, showing 'f(3) = 18 + 9 - 1' in a horizontal layout against a white background.
A mathematical equation reads 'f(3) = 26' in a clear, sans-serif font against a plain white background.


Table 7
A mathematical equation displays the quadratic function f(x) = 2x^2 + 3x - 1 on a white background, representing a parabola in a clear, straightforward algebraic form.
The image displays the mathematical instruction: 'To evaluate f(-2), substitute -2 for x.' An image displays the mathematical expression for function f, where f(-2) is calculated as 2 multiplied by -2 squared, plus 3 multiplied by -2, minus 1. The value -2 is highlighted in red.
Simplify.A mathematical equation f(-2) = 2 * 4 + (-6) - 1 is shown on a white background.
The image shows a mathematical equation in black text on a white background. The equation reads as 'f(-2) = 8 + (-6) - 1'.
A mathematical equation is displayed on a white background, reading 'f(-2) = 1' in black text.


Table 8
A mathematical equation is displayed, showing a quadratic function: f(x) = 2x^2 + 3x - 1. The text is in a dark gray font against a white background.
To evaluate \(f(a),\) substitute a for x.A mathematical equation is displayed, showing f(a) = 2(a)^2 + 3 * a - 1. The variable 'a' is highlighted in red within the function and the expression.
Simplify.A mathematical equation for a quadratic function, shown as f(a) = 2a^2 + 3a - 1, against a white background.
Try It #13

For the function \(f(x)=3{x}^{2}-2x+1,\) evaluate the function.

ⓐ \(f(3)\) ⓑ \(f(-1)\) ⓒ \(f(t)\)

ⓐ \(f(3)=22\) ⓑ \(f(-1)=6\) ⓒ \(f(t)=3{t}^{2}-2t+1\)

Did you get it?
Try It #14

For the function \(f(x)=2{x}^{2}+4x-3,\) evaluate the function.

ⓐ \(f(2)\) ⓑ \(f(-3)\) ⓒ \(f(h)\)

ⓐ \((2)=13\) ⓑ \(f(-3)=3\)
ⓒ \(f(h)=2{h}^{2}+4h-3\)

Did you get it?

In the last example, we found \(f(x)\) for a constant value of x. In the next example, we are asked to find \(g(x)\) with values of x that are variables. We still follow the same procedure and substitute the variables in for the x.

Example 8

For the function \(g(x)=3x-5,\) evaluate the function.

ⓐ \(g({h}^{2})\) ⓑ \(g(x+2)\) ⓒ \(g(x)+g(2)\)

Substitute each given expression in place of x in the formula for g(x).


Table 9
A mathematical equation is displayed on a white background, reading g(x) = 3x - 5, representing a linear function.
To evaluate \(g({h}^{2}),\) substitute \({h}^{2}\) for x.A mathematical equation is displayed on a white background: g(h^2) = 3h^2 - 5. The variable 'h' is highlighted in red, indicating its specific role within the function.
A mathematical equation shows g(h squared) equals 3h squared minus 5, representing a function where the input and the variable in the expression are both h squared.


Table 10
A mathematical equation for a linear function, g(x) = 3x - 5, is displayed in black text on a white background.
To evaluate \(g(x+2),\) substitute \(x+2\) for x.The equation g(x + 2) = 3(x + 2) - 5 is displayed, showing a function transformation where the input (x) is replaced by (x + 2) in a linear function.
Simplify.The image displays a mathematical equation, g(x + 2) = 3x + 6 - 5, presented in a black font on a white background.
A mathematical equation is displayed: g(x + 2) = 3x + 1, against a white background.


Table 11
The mathematical function g(x) = 3x - 5 is displayed.
To evaluate \(g(x)+g(2),\) first find \(g(2).\)A mathematical equation shows 'g(2) = 3 * 2 - 5', with the number 2 highlighted in red in both instances.
The image displays a mathematical equation, g(2) = 1, presented in a clear, digital format on a plain white background.
A mathematical expression asks to 'Now find g(x) + g(2)'. Equation g(x) + g(2) = 3x - 5 + 1, where 3x - 5 is identified as g(x) and 1 as g(2) by blue underbraces.
Simplify.A mathematical equation is displayed, showing 'g(x) + g(2) = 3x - 5 + 1' in black text on a white background.
The image shows a mathematical equation in black text on a white background. The equation is 'g(x) + g(2) = 3x - 4'.

Notice the difference between part ⓑ and ⓒ. We get \(g(x+2)=3x+1\) and \(g(x)+g(2)=3x-4.\) So we see that \(g(x+2)\ne g(x)+g(2).\)

Try It #15

For the function \(g(x)=4x-7,\) evaluate the function.

ⓐ \(g({m}^{2})\) ⓑ \(g(x-3)\) ⓒ \(g(x)-g(3)\)

ⓐ \(4{m}^{2}-7\) ⓑ \(4x-19\)
ⓒ \(4x-12\)

Did you get it?
Try It #16

For the function \(h(x)=2x+1,\) evaluate the function.

ⓐ \(h({k}^{2})\) ⓑ \(h(x+1)\) ⓒ \(h(x)+h(1)\)

ⓐ \(2{k}^{2}+1\) ⓑ \(2x+3\)
ⓒ \(2x+4\)

Did you get it?

Many everyday situations can be modeled using functions.

Example 9

The number of unread emails in Sylvia’s account is 75. This number grows by 10 unread emails a day. The function \(N(t)=75+10t\) represents the relation between the number of emails, N, and the time, t, measured in days.

ⓐ Determine the independent and dependent variable.

ⓑ Find \(N(5).\) Explain what this result means.

Decide which quantity depends on the other to name the independent and dependent variables, then substitute t=5 into N(t) to evaluate N(5).

ⓐ The number of unread emails is a function of the number of days. The number of unread emails, N, depends on the number of days, t. Therefore, the variable N, is the dependent variable and the variable \(t\) is the independent variable.

ⓑ Find \(N(5).\) Explain what this result means.

Table 12
A mathematical equation is displayed on a white background: N(t) = 75 + 10t, with 'N' and 't' in italicized font.
Substitute in \(t=5.\)A mathematical expression shows N(5) = 75 + 10 * 5, representing an equation with multiplication and addition.
Simplify.A mathematical equation shows 'N(5) = 75 + 50' in a bold, sans-serif font against a white background.
A mathematical expression 'N(5) = 125' is displayed, indicating that the value of the function N at 5 is 125.

Since 5 is the number of days, \(N(5),\) is the number of unread emails after 5 days. After 5 days, there are 125 unread emails in the account.

Try It #17

The number of unread emails in Bryan’s account is 100. This number grows by 15 unread emails a day. The function \(N(t)=100+15t\) represents the relation between the number of emails, N, and the time, t, measured in days.

ⓐ Determine the independent and dependent variable.

ⓑ Find \(N(7).\) Explain what this result means.

t IND; N DEP ⓑ 205; the number of unread emails in Bryan’s account on the seventh day.

Did you get it?
Try It #18

The number of unread emails in Anthony’s account is 110. This number grows by 25 unread emails a day. The function \(N(t)=110+25t\) represents the relation between the number of emails, N, and the time, t, measured in days.

ⓐ Determine the independent and dependent variable.

ⓑ Find \(N(14).\) Explain what this result means.

t IND; N DEP ⓑ 460; the number of unread emails in Anthony’s account on the fourteenth day

Did you get it?
Media

Access this online resource for additional instruction and practice with relations and functions.

Key Concepts

Section Exercises

Practice Makes Perfect

Find the Domain and Range of a Relation

In the following exercises, for each relation ⓐ find the domain of the relation ⓑ find the range of the relation.

4

\(\left\{(1,4),(2,8),(3,12),(4,16),\right.(5,20)\}\)

ⓐ {1, 2, 3, 4, 5} ⓑ {4, 8, 12, 16, 20}

5

\(\left\{(1,-2),(2,-4),(3,-6),(4,-8),\right.(5,-10)\}\)

6

\(\{(1,7),(5,3),(7,9),(-2,-3),(-2,8)\}\)

ⓐ {1, 5, 7, −2} ⓑ {7, 3, 9, −3, 8}

7

\(\{(11,3),(-2,-7),(4,-8),(4,17),(-6,9)\}\)

In the following exercises, use the mapping of the relation to ⓐ list the ordered pairs of the relation, ⓑ find the domain of the relation, and ⓒ find the range of the relation.

8


This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Rebecca”, “Jennifer”, “John”, “Hector”, “Luis”, “Ebony”, “Raphael”, “Meredith”, “Karen”, and “Joseph”. The table on the right has the header “Birthday” and lists the dates “January 18”, “February 15”, “April 1”, “April 7”, “June 23”, “July 30”, “August 19”, and “November 6”. There are arrows starting at names in the Name table and pointing towards dates in the Birthday table. The first arrow goes from Rebecca to January 18. The second arrow goes from Jennifer to April 1. The third arrow goes from John to January 18. The fourth arrow goes from Hector to June 23. The fifth arrow goes from Luis to February 15. The sixth arrow goes from Ebony to April 7. The seventh arrow goes from Raphael to November 6. The eighth arrow goes from Meredith to August 19. The ninth arrow goes from Karen to August 19. The tenth arrow goes from Joseph to July 30.

ⓐ (Rebecca, January 18), (Jennifer, April 1), (John, January 18), (Hector, June 23), (Luis, February 15), (Ebony, April 7), (Raphael, November 6), (Meredith, August 19), (Karen, August 19), (Joseph, July 30)
ⓑ {Rebecca, Jennifer, John, Hector, Luis, Ebony, Raphael, Meredith, Karen, Joseph}
ⓒ {January 18, April 1, June 23, February 15, April 7, November 6, August 19, July 30}

9


This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Amy”, “Carol”, “Devon”, “Harrison”, “Jackson”, “Labron”, “Mason”, “Natalie”, “Paul”, and “Sylvester”. The table on the right has the header “Birthday” and lists the dates “January 5”, “January 7”, “February 14”, “March 1”, “April 7”, “May 30”, “July 20”, “August 1”, “November 13”, and “November 26”. There are arrows starting at names in the Name table and pointing towards dates in the Birthday table. The first arrow goes from Amy to February 14. The second arrow goes from Carol to May 30. The third arrow goes from Devon to January 5. The fourth arrow goes from Harrison to January 7. The fifth arrow goes from Jackson to November 26. The sixth arrow goes from Labron to April 7. The seventh arrow goes from Mason to July 20. The eighth arrow goes from Natalie to March 1. The ninth arrow goes from Paul to August 1. The tenth arrow goes from Sylvester to November 13.
10

For a woman of height \(5\prime 4\prime\prime\) the mapping below shows the corresponding Body Mass Index (BMI). The body mass index is a measurement of body fat based on height and weight. A BMI of \(18.5-24.9\) is considered healthy.

This figure shows two table that each have one column. The table on the left has the header “Weight (lbs)” and lists the numbers plus 100, 110, 120, 130, 140, 150, and 160. The table on the right has the header “BMI” and lists the numbers 18. 9, 22. 3, 17. 2, 24. 0, 25. 7, 20. 6, and 27. 5. There are arrows starting at numbers in the weight table and pointing towards numbers in the BMI table. The first arrow goes from plus 100 to 17. 2. The second arrow goes from 110 to 18. 9. The third arrow goes from 120 to 20. 6. The fourth arrow goes from 130 to 22. 3. The fifth arrow goes from 140 to 24. 0. The sixth arrow goes from 150 to 25. 7. The seventh arrow goes from 160 to 27. 5.

ⓐ (+100, 17. 2), (110, 18.9), (120, 20.6), (130, 22.3), (140, 24.0), (150, 25.7), (160, 27.5) ⓑ {+100, 110, 120, 130, 140, 150, 160,} ⓒ {17.2, 18.9, 20.6, 22.3, 24.0, 25.7, 27.5}

11

For a man of height \(5\prime 11\prime \prime\) the mapping below shows the corresponding Body Mass Index (BMI). The body mass index is a measurement of body fat based on height and weight. A BMI of \(18.5-24.9\) is considered healthy.

This figure shows two table that each have one column. The table on the left has the header “Weight (lbs)” and lists the numbers 130, 140, 150, 160, 170, 180, 190, and 200. The table on the right has the header “BMI” and lists the numbers 22. 3, 19. 5, 20. 9, 27. 9, 25. 1, 26. 5, 23. 7, and 18. 1. There are arrows starting at numbers in the weight table and pointing towards numbers in the BMI table. The first arrow goes from 130 to 18. 1. The second arrow goes from 140 to 19. 5. The third arrow goes from 150 to 20. 9. The fourth arrow goes from 160 to 22. 3. The fifth arrow goes from 170 to 23. 7. The sixth arrow goes from 180 to 25. 1. The seventh arrow goes from 190 to 26. 5. The eighth arrow goes from 200 to 27. 9.

In the following exercises, use the graph of the relation to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.

12


The figure shows the graph of some points on the x y-coordinate plane. The x and y-axes run from negative 6 to 6. The points (negative 3, 4), (negative 3, negative 1), (0, negative 3), (2, 3), (4, negative 1), and (4, negative 3).

ⓐ (2, 3), (4, −3), (−2, −1), (−3, 4), (4, −1), (0, −3) ⓑ {−3, −2, 0, 2, 4}
ⓒ {−3, −1, 3, 4}

13


The figure shows the graph of some points on the x y-coordinate plane. The x and y-axes run from negative 6 to 6. The points (negative 3, 4), (negative 3, negative 4), (negative 2, 0), (negative 1, 3), (1, 5), and (4, negative 2).
14


The figure shows the graph of some points on the x y-coordinate plane. The x and y-axes run from negative 6 to 6. The points (negative 1, 4), (negative 1, negative 4), (0, 3), (0, negative 3), (1, 4), and (1, negative 4).

ⓐ (1, 4), (1, −4), (−1, 4), (−1, −4), (0, 3), (0, −3) ⓑ {−1, 0, 1} ⓒ {−4, −3, 3,4}

15


The figure shows the graph of some points on the x y-coordinate plane. The x and y-axes run from negative 10 to 10. The points (negative 2, negative 6), (negative 2, negative 3), (0, 0), (0. 5, 1. 5), (1, 3), and (3, 6).

Determine if a Relation is a Function

In the following exercises, use the set of ordered pairs to ⓐ determine whether the relation is a function, ⓑ find the domain of the relation, and ⓒ find the range of the relation.

16

\(\left\{(-3,9),(-2,4),(-1,1),\right.\)
\((0,0),(1,1),(2,4),(3,9)\}\)

ⓐ yes ⓑ {−3, −2, −1, 0, 1, 2, 3} ⓒ {9, 4, 1, 0}

17

\(\left\{(9,-3),(4,-2),(1,-1),\right.\)
\((0,0),(1,1),(4,2),(9,3)\}\)

18

\(\left\{(-3,27),(-2,8),(-1,1),\right.\)
\((0,0),(1,1),(2,8),(3,27)\}\)

ⓐ yes ⓑ {−3, −2, −1, 0, 1, 2, 3} ⓒ 0, 1, 8, 27}

19

\(\left\{(-3,-27),(-2,-8),(-1,-1),\right.\)
\((0,0),(1,1),(2,8),(3,27)\}\)

In the following exercises, use the mapping to ⓐ determine whether the relation is a function, ⓑ find the domain of the function, and ⓒ find the range of the function.

20


This figure shows two table that each have one column. The table on the left has the header “Number” and lists the numbers negative 3, negative 2, negative 1, 0, 1, 2, and 3. The table on the right has the header “Absolute Value” and lists the numbers 0, 1, 2, and 3. There are arrows starting at numbers in the number table and pointing towards numbers in the absolute value table. The first arrow goes from negative 3 to 3. The second arrow goes from negative 2 to 2. The third arrow goes from negative 1 to 1. The fourth arrow goes from 0 to 0. The fifth arrow goes from 1 to 1. The sixth arrow goes from 2 to 2. The seventh arrow goes from 3 to 3.

ⓐ yes ⓑ {−3, −2, −1, 0, 1, 2, 3} ⓒ {0, 1, 2, 3}

21


This figure shows two table that each have one column. The table on the left has the header “Number” and lists the numbers negative 3, negative 2, negative 1, 0, 1, 2, and 3. The table on the right has the header “Square” and lists the numbers 0, 1, 4, and 9. There are arrows starting at numbers in the number table and pointing towards numbers in the square table. The first arrow goes from negative 3 to 9. The second arrow goes from negative 2 to 4. The third arrow goes from negative 1 to 1. The fourth arrow goes from 0 to 0. The fifth arrow goes from 1 to 1. The sixth arrow goes from 2 to 4. The seventh arrow goes from 3 to 9.
22


This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Jenny”, “R and y”, “Dennis”, “Emily”, and “Raul”. The table on the right has the header “Email” and lists the email addresses RHern and ez@state. edu, JKim@gmail.com, Raul@gmail.com, ESmith@state. edu, DBrown@aol.com, jenny@aol.com, and R and y@gmail.com. There are arrows starting at names in the name table and pointing towards addresses in the email table. The first arrow goes from Jenny to JKim@gmail.com. The second arrow goes from Jenny to jenny@aol.com. The third arrow goes from R and y to R and y@gmail.com. The fourth arrow goes from Dennis to DBrown@aol.com. The fifth arrow goes from Emily to ESmith@state. edu. The sixth arrow goes from Raul to RHern and ez@state. edu. The seventh arrow goes from Raul to Raul@gmail.com.

ⓐ no ⓑ {Jenny, R and y, Dennis, Emily, Raul} ⓒ {RHern and ez@state.edu, JKim@gmail.com, Raul@gmail.com, ESmith@state.edu, DBroen@aol.com, jenny@aol.cvom, R and y@gmail.com}

23


This figure shows two table that each have one column. The table on the left has the header “Name” and lists the names “Jon”, “Rachel”, “Matt”, “Leslie”, “Chris”, “Beth”, and “Liz”. The table on the right has the header “Email” and lists the email addresses chrisg@gmail.com, lizzie@aol.com, jong@gmail.com, mattg@gmail.com, Rachel@state. edu, leslie@aol.com, and bethc@gmail.com. There are arrows starting at names in the name table and pointing towards addresses in the email table. The first arrow goes from Jon to jong@gmail.com. The second arrow goes from Rachel to Rachel@state. edu. The third arrow goes from Matt to mattg@gmail.com. The fourth arrow goes from Leslie to leslie@aol.com. The fifth arrow goes from Chris to chrisg@gmail.com. The sixth arrow goes from Beth to bethc@gmail.com. The seventh arrow goes from Liz to lizzie@aol.com.

In the following exercises, determine whether each equation is a function.

24


ⓐ \(2x+y=-3\)
ⓑ \(y={x}^{2}\)
ⓒ \(x+{y}^{2}=-5\)

ⓐ yes ⓑ yes ⓒ no

25


ⓐ \(y=3x-5\)
ⓑ \(y={x}^{3}\)
ⓒ \(2x+{y}^{2}=4\)

26


ⓐ \(y-3{x}^{3}=2\)
ⓑ \(x+{y}^{2}=3\)
ⓒ \(3x-2y=6\)

ⓐ yes ⓑ no ⓒ yes

27


ⓐ \(2x-4y=8\)
ⓑ \(-4={x}^{2}-y\)
ⓒ \({y}^{2}=\text{-}x+5\)

Find the Value of a Function

In the following exercises, evaluate the function: ⓐ \(f(2)\) ⓑ \(f(-1)\) ⓒ \(f(a).\)

28

\(f(x)=5x-3\)

ⓐ \(f(2)=7\) ⓑ \(f(-1)=-8\) ⓒ \(f(a)=5a-3\)

29

\(f(x)=3x+4\)

30

\(f(x)=-4x+2\)

ⓐ \(f(2)=-6\) ⓑ \(f(-1)=6\) ⓒ \(f(a)=-4a+2\)

31

\(f(x)=-6x-3\)

32

\(f(x)={x}^{2}-x+3\)

ⓐ \(f(2)=5\) ⓑ \(f(-1)=5\)
ⓒ \(f(a)={a}^{2}-a+3\)

33

\(f(x)={x}^{2}+x-2\)

34

\(f(x)=2{x}^{2}-x+3\)

ⓐ \(f(2)=9\) ⓑ \(f(-1)=6\)
ⓒ \(f(a)=2{a}^{2}-a+3\)

35

\(f(x)=3{x}^{2}+x-2\)

In the following exercises, evaluate the function: ⓐ \(g({h}^{2})\) ⓑ \(g(x+2)\) ⓒ \(g(x)+g(2).\)

36

\(g(x)=2x+1\)

ⓐ \(g({h}^{2})=2{h}^{2}+1\)
ⓑ \(g(x+2)=2x+5\)
ⓒ \(g(x)+g(2)=2x+6\)

37

\(g(x)=5x-8\)

38

\(g(x)=-3x-2\)

ⓐ \(g({h}^{2})=-3{h}^{2}-2\)
ⓑ \(g(x+2)=-3x-8\)
ⓒ \(g(x)+g(2)=-3x-10\)

39

\(g(x)=-8x+2\)

40

\(g(x)=3-x\)

ⓐ \(g({h}^{2})=3-{h}^{2}\)
ⓑ \(g(x+2)=1-x\)
ⓒ \(g(x)+g(2)=4-x\)

41

\(g(x)=7-5x\)

In the following exercises, evaluate the function.

42

\(f(x)=3{x}^{2}-5x;\) \(f(2)\)

2

43

\(g(x)=4{x}^{2}-3x;\) \(g(3)\)

44

\(F(x)=2{x}^{2}-3x+1;\)
\(F(-1)\)

6

45

\(G(x)=3{x}^{2}-5x+2;\)
\(G(-2)\)

46

\(h(t)=2|t-5|+4;\) \(h(-4)\)

22

47

\(h(y)=3|y-1|-3;\) \(h(-4)\)

48

\(f(x)=\frac{x+2}{x-1};\) \(f(2)\)

4

49

\(g(x)=\frac{x-2}{x+2};\) \(g(4)\)

In the following exercises, solve.

50

The number of unwatched shows in Sylvia’s DVR is 85. This number grows by 20 unwatched shows per week. The function \(N(t)=85+20t\) represents the relation between the number of unwatched shows, N, and the time, t, measured in weeks.

ⓐ Determine the independent and dependent variable.

ⓑ Find \(N(4).\) Explain what this result means

t IND; N DEP
ⓑ \(N(4)=165\) the number of unwatched shows in Sylvia’s DVR at the fourth week.

51

Every day a new puzzle is downloaded into Ken’s account. Right now he has 43 puzzles in his account. The function \(N(t)=43+t\) represents the relation between the number of puzzles, N, and the time, t, measured in days.

ⓐ Determine the independent and dependent variable.

ⓑ Find \(N(30).\) Explain what this result means.

52

The daily cost to the printing company to print a book is modeled by the function \(C(x)=3.25x+1500\) where C is the total daily cost in dollars and x is the number of books printed.

ⓐ Determine the independent and dependent variable.

ⓑ Find \(C(0).\) Explain what this result means.

ⓒ Find \(C(1000).\) Explain what this result means.

x IND; C DEP
ⓑ \(N(0)=1500\) the daily cost if no books are printed
ⓒ \(N(1000)=4750\) the daily cost of printing 1000 books

53

The daily cost to the manufacturing company is modeled by the function \(C(x)=7.25x+2500\) where \(C(x)\) is the total daily cost and x is the number of items manufactured.

ⓐ Determine the independent and dependent variable.

ⓑ Find \(C(0).\) Explain what this result means.

ⓒ Find \(C(1000).\) Explain what this result means.

Writing Exercises

54

In your own words, explain the difference between a relation and a function.

55

In your own words, explain what is meant by domain and range.

56

Is every relation a function? Is every function a relation?

57

How do you find the value of a function?

Self Check

ⓐ After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

The figure shows a table with four rows and four columns. The first row is a header row and it labels each column. The first column header is “I can…”, the second is “confidently”, the third is “with some help”, “no minus I don’t get it!”. Under the first column are the phrases “find the domain and range of a relation”, “determine if a relation is a function”, and “find the value of a function”. Under the second, third, fourth columns are blank spaces where the learner can check what level of mastery they have achieved.

ⓑ After looking at the checklist, do you think you are well-prepared for the next section? Why or why not?

Glossary

domain of a relation
The domain of a relation is all the x-values in the ordered pairs of the relation.
function
A function is a relation that assigns to each element in its domain exactly one element in the range.
mapping
A mapping is sometimes used to show a relation. The arrows show the pairing of the elements of the domain with the elements of the range.
range of a relation
The range of a relation is all the y-values in the ordered pairs of the relation.
relation
A relation is any set of ordered pairs, \((x,y).\) All the x-values in the ordered pairs together make up the domain. All the y-values in the ordered pairs together make up the range.