1.5: Functions as Rules and Tables
Instead of purchasing a oneday ticket to the theme park, Joseph decided to pay by ride. Each ride costs $2.00. To describe the amount of money Joseph will spend, several mathematical concepts can be used.
First, an expression can be written to describe the relationship between the cost per ride and the number of rides,
Example 1: Using Joseph’s situation, write the following:
a. An expression representing his total amount spent
b. An equation that shows Joseph wants to spend exactly $22.00 on rides
c. An inequality that describes the fact that Joseph will not spend more than $26.00 on rides
Solution: The variable in this situation is the number of rides Joseph will pay for. Call this
a.
b.
c.
In addition to an expression, equation, or inequality, Joseph’s situation can be expressed in the form of a function or a table.
Definition: A function is a relationship between two variables such that the input value has ONLY one output value.
Writing Equations as Functions
A function is a set of ordered pairs in which the first coordinate, usually
Consider Joseph’s equation
& \quad \ \ \ \downarrow\\
& \quad \underbrace{f(x)}= y \leftarrow output\\
& \ function\\
& \quad \ \ box
Example 2: Rewrite the following equations in function notation.
a.
b.
c.
Solution:
a. According to the definition of a function,
b. This time the dependent variable is
c.
Why Use Function Notation?
Why is it necessary to use function notation? The necessity stems from using multiple equations. Function notation allows one to easily decipher between the equations. Suppose Joseph, Lacy, Kevin, and Alfred all went to the theme park together and chose to pay $2.00 for each ride. Each person would have the same equation
Example 3: Write functions to represent the total each friend spent at the park.
Solution:
Using a Function to Generate a Table
A function really is an equation. Therefore, a table of values can be created by choosing values to represent the independent variable. The answers to each substitution represent
Use Joseph’s function to generate a table of values. Because the variable represents the number of rides Joseph will pay for, negative values do not make sense and are not included in the value of the independent variable.



0 

1 

2 

3 

4 

5 

6 

As you can see, the list cannot include every possibility. A table allows for precise organization of data. It also provides an easy reference for looking up data and offers a set of coordinate points that can be plotted to create a graphical representation of the function. A table does have limitations; namely it cannot represent infinite amounts of data and it does not always show the possibility of fractional values for the independent variable.
Domain and Range of a Function
The set of all possible input values for the independent variable is called the domain. The domain can be expressed in words, as a set, or as an inequality. The values resulting from the substitution of the domain represent the range of a function.
The domain of Joseph’s situation will not include negative numbers because it does not make sense to ride negative rides. He also cannot ride a fraction of a ride, so decimals and fractional values do not make sense as input values. Therefore, the values of the independent variable r will be whole numbers beginning at zero.
Domain: All whole numbers
The values resulting from the substitution of whole numbers are whole numbers times two. Therefore, the range of Joseph’s situation is still whole numbers just twice as large.
Range: All even whole numbers
Example 4: A tennis ball is bounced from a height and bounces back to 75% of its previous height. Write its function and determine its domain and range.
Solution: The function of this situation is
Domain: The previous bounce height can be any positive number, so
Range: The new height is 75% of the previous height, and therefore will also be any positive number (decimal or whole number), so the range is all positive real numbers.
Multimedia Link For another look at the domain of a function, see the following video where the narrator solves a sample problem from the California Standards Test about finding the domain of an unusual function. Khan Academy CA Algebra I Functions (6:34)
Write a Function Rule
In many situations, data is collected by conducting a survey or an experiment. To visualize the data, it is arranged into a table. Most often, a function rule is needed to predict additional values of the independent variable.
Example 5: Write a function rule for the table.
& \text{Cost}\ (\$) && 24 && 48 && 72 && 96 && 120
Solution: You pay $24 for 2 CDs, $48 for 4 CDs, and $120 for 10 CDs. That means that each CD costs $12.
We can write the function rule.
Example 6: Write a function rule for the table.
&&y && \quad 3 && \quad 2 && \quad 1 && 0 && 1 && 2 && 3
Solution: The values of the dependent variable are always the positive outcomes of the input values. This relationship has a special name, the absolute value. The function rule looks like this:
Represent a RealWorld Situation with a Function
Let’s look at a realworld situation that can be represented by a function.
Example 7: Maya has an internet service that currently has a monthly access fee of $11.95 and a connection fee of $0.50 per hour. Represent her monthly cost as a function of connection time.
Solution: Let
The total cost
Practice Set
Sample explanations for some of the practice exercises below are available by viewing the following video. Note that there is not always a match between the number of the practice exercise in the video and the number of the practice exercise listed in the following exercise set. However, the practice exercise is the same in both. CK12 Basic Algebra: Domain and Range of a Function (12:52)
 Rewrite using function notation:
y=56x−2 .  What is one benefit of using function notation?
 Define domain.
 True or false? Range is the set of all possible inputs for the independent variable.
 Generate a table from
−5≤x≤5 forf(x)=−(x)2−2  Use the following situation for question 6: Sheri is saving for her first car. She currently has $515.85 and is savings $62 each week.
 Write a function rule for the situation.
 Can the domain be “all real numbers"? Explain your thinking.
 How many weeks would it take Sheri to save $1,795.00?
In 7  11, identify the domain and range of the function.
 Dustin charges $10 per hour for mowing lawns.
 Maria charges $25 per hour for math tutoring, with a minimum charge of $15.

f(x)=15x−12 
f(x)=2x2+5 
f(x)=1x  What is the range of the function
y=x2−5 when the domain is−2 ,−1 , 0, 1, 2?  What is the range of the function
y=2x−34 when the domain is−2.5 , 1.5, 5?  Angie makes $6.50 per hour working as a cashier at the grocery store. Make a table of values that shows her earning for the input values 5, 10, 15, 20, 25, 30.
 The area of a triangle is given by:
A=12bh . If the base of the triangle is 8 centimeters, make a table of values that shows the area of the triangle for heights 1, 2, 3, 4, 5, and 6 centimeters.  Make a table of values for the function
f(x)=2x+3−−−−−√ for the input values−1 , 0, 1, 2, 3, 4, 5.  Write a function rule for the table.
&&y && 9 && 16 && 25 && 36
 Write a function rule for the table.
&\text{cost} && 15 && 20 && 25 && 30
 Write a function rule for the table.
&&y && 24 && 12 && 6 && 3
 Write a function that represents the number of cuts you need to cut a ribbon in
x number of pieces.  Solomon charges a $40 flat rate and $25 per hour to repair a leaky pipe. Write a function that represents the total fee charged as a function of hours worked. How much does Solomon earn for a threehour job?
 Rochelle has invested $2500 in a jewelry making kit. She makes bracelets that she can sell for $12.50 each. How many bracelets does Rochelle need to make before she breaks even?
 Make up a situation in which the domain is all real numbers but the range is all whole numbers.
Mixed Review
 Compare the following numbers
23 −−− 21.999 .  Write an equation to represent the following: the quotient of 96 and 4 is
g .  Write an inequality to represent the following: 11 minus
b is at least 77.  Find the value of the variable
k:13(k)=169 .
Quick Quiz
1. Write a function rule to describe the following table:
&\text{Cost} && 4.75 && 5.25 && 5.75 && 6.25 && 6.75 && 7.25
2. Simplify:
3. Evaluate the expression
4. Rewrite using function notation:
5. You purchased six video games for $29.99 each and three DVD movies for $22.99. What is the total amount of money you spent?