<meta http-equiv="refresh" content="1; url=/nojavascript/">
You are reading an older version of this FlexBook® textbook: CK-12 Algebra - Basic Go to the latest version.

# 1.5: Functions as Rules and Tables

Difficulty Level: At Grade Created by: CK-12

Instead of purchasing a one-day 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, r$r$. An equation can also be written if the total amount he wants to spend is known. An inequality can be used if Joseph wanted to spend less than a certain amount. 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 r$r$. a. 2(r)$2(r)$ b. 2(r)=22$2(r) = 22$ c. 2(r)26$2(r) \le 26$ 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 x$x$, matches with exactly one second coordinate, y$y$. Equations that follow this definition can be written in function notation. The y$y$ coordinate represents the dependent variable, meaning the values of this variable depend upon what is substituted for the other variable. Consider Joseph’s equation m=2r$m = 2r$. Using function notation, the value of the equation (the money spent m$m$) is replaced with f(r)$f(r)$. f$f$ represents the function name and (r)$(r)$ represents the variable. In this case the parentheses do not mean multiplication; they separate the function name from the independent variable. & \quad \ input\\ & \quad \ \ \ \downarrow\\ & \quad \underbrace{f(x)}= y \leftarrow output\\ & \ function\\ & \quad \ \ box Example 2: Rewrite the following equations in function notation. a. y=7x3$y=7x-3$ b. d=65t$d=65t$ c. F=1.8C+32$F=1.8C+32$ Solution: a. According to the definition of a function, y=f(x)$y=f(x)$, so f(x)=7x3$f(x)=7x-3$. b. This time the dependent variable is d$d$. Function notation replaces the dependent variable, so d=f(t)=65t$d = f(t) = 65t$. c. F=f(C)=1.8C+32$F = f(C) = 1.8C + 32$ ## 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 m=2r$m=2r$. Without asking each friend, we could not tell which equation belonged to whom. By substituting function notation for the dependent variable, it is easy to tell which function belongs to whom. By using function notation, it will be much easier to graph multiple lines (Chapter 4).

Example 3: Write functions to represent the total each friend spent at the park.

Solution: J(r)=2r$J(r)= 2r$ represents Joseph’s total, L(r)=2r$L(r)= 2r$ represents Lacy's total, K(r)=2r$K(r)= 2r$ represents Kevin's total, and A(r)=2r$A(r)= 2r$ represents Alfred’s total.

## 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 f(x)$f(x)$.

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.

R$R$ J(r)=2r$J(r) = 2r$
0 2(0)=0$2(0) = 0$
1 2(1)=2$2(1) = 2$
2 2(2)=4$2(2) = 4$
3 2(3)=6$2(3) = 6$
4 2(4)=8$2(4) = 8$
5 2(5)=10$2(5) = 10$
6 2(6)=12$2(6) = 12$

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 h(b)=0.75b$h(b)= 0.75b$, where b$b$ represents the previous bounce height.

Domain: The previous bounce height can be any positive number, so b0$b \ge 0$.

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{Number of CDs} && 2 && 4 && 6 && 8 && 10\\
& \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. Cost=$12×number of CDs$\text{Cost} = \12 \times \text{number of CDs}$ or f(x)=12x$f(x) = 12x$

Example 6: Write a function rule for the table.

&&x && -3  && -2 && -1 && 0 && 1 && 2 && 3\\
&&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: f(x)=|x|$f(x) = |x|$.

## Represent a Real-World Situation with a Function

Let’s look at a real-world 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 x=$x=$ the number of hours Maya spends on the internet in one month and let y=$y=$ Maya’s monthly cost. The monthly fee is $11.95 with an hourly charge of$0.50.

The total cost =$=$ flat fee +$+$ hourly fee ×$\times$ number of hours. The function is y=f(x)=11.95+0.50x$y = f(x) = 11.95 + 0.50x$

## 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. CK-12 Basic Algebra: Domain and Range of a Function (12:52)

1. Rewrite using function notation: y=56x2$y= \frac{5}{6} x-2$.
2. What is one benefit of using function notation?
3. Define domain.
4. True or false? Range is the set of all possible inputs for the independent variable.
5. Generate a table from 5x5$-5 \le x \le 5$ for f(x)=(x)22$f(x)= -(x)^2- 2$
6. 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.
1. Write a function rule for the situation.
2. Can the domain be “all real numbers"? Explain your thinking.
3. How many weeks would it take Sheri to save $1,795.00? In 7 - 11, identify the domain and range of the function. 1. Dustin charges$10 per hour for mowing lawns.
2. Maria charges $25 per hour for math tutoring, with a minimum charge of$15.
3. f(x)=15x12$f(x) = 15x - 12$
4. f(x)=2x2+5$f(x) = 2x^2 + 5$
5. f(x)=1x$f(x)=\frac{1}{x}$
6. What is the range of the function y=x25$y = x^2 - 5$ when the domain is 2$-2$, 1$-1$, 0, 1, 2?
7. What is the range of the function y=2x34$y = 2x - \frac{3}{4}$ when the domain is 2.5$-2.5$, 1.5, 5?

8 , 9

Feb 22, 2012

Dec 11, 2014