# 1.5: Functions as Rules and Tables

**At Grade**Created by: CK-12

## Learning Objectives

- Identify the domain and range of a function.
- Make a table for a function.
- Write a function rule.
- Represent a real-world situation with a function.

## Introduction

A **function** is a rule for relating two or more variables. For example, the price you pay for phone service may depend on the number of minutes you talk on the phone. We would say that the cost of phone service is a *function* of the number of minutes you talk. Consider the following situation.

*Josh goes to an amusement park where he pays $2 per ride.*

There is a relationship between the number of rides Josh goes on and the total amount he spends that day: To figure out the amount he spends, we multiply the number of rides by two. This rule is an example of a **function**. Functions usually—*but not always*—are rules based on mathematical operations. You can think of a function as a box or a machine that contains a mathematical operation.

Whatever number we feed into the function box is changed by the given operation, and a new number comes out the other side of the box. When we input different values for the number of rides Josh goes on, we get different values for the amount of money he spends.

The input is called the **independent variable** because its value can be any number. The output is called the **dependent variable** because its value depends on the input value.

Functions usually contain more than one mathematical operation. Here is a situation that is slightly more complicated than the example above.

*Jason goes to an amusement park where he pays $8 admission and $2 per ride.*

The following function represents the total amount Jason pays. The rule for this function is "multiply the number of rides by 2 and add 8."

When we input different values for the number of rides, we arrive at different outputs (costs).

These flow diagrams are useful in visualizing what a function is. However, they are cumbersome to use in practice. In algebra, we use the following short-hand notation instead:

First, we define the variables:

So,

In algebra, the notations

## Identify the Domain and Range of a Function

In the last example, we saw that we can input the number of rides into the function to give us the total cost for going to the amusement park. The set of all values that we can use for the input is called the **domain** of the function, and the set of all values that the output could turn out to be is called the **range** of the function. In many situations the **domain** and **range** of a function are both simply the set of all real numbers, but this isn’t always the case. Let's look at our amusement park example.

**Example 1**

Find the domain and range of the function that describes the situation:

*Jason goes to an amusement park where he pays $8 admission and $2 per ride.*

**Solution**

Here is the function that describes this situation:

In this function,

- The values have to be zero or positive, because Jason can't go on a negative number of rides.
- The values have to be integers because, for example, Jason could not go on 2.25 rides.
- Realistically, there must be a maximum number of rides that Jason can go on because the park closes, he runs out of money, etc. However, since we aren’t given any information about what that maximum might be, we must consider that all non-negative integers are possible values regardless of how big they are.

**Answer** For this function, the domain is the set of all non-negative integers.

To find the range of the function we must determine what the values of

**Answer** The range of this function is the set of all even integers greater than or equal to 8.

**Example 2**

*Find the domain and range of the following functions.*

a) A ball is dropped from a height and it bounces up to 75% of its original height.

b)

**Solution**

a) Let’s define the variables:

A function that describes the situation is

**Answer**

The domain is the set of all real numbers greater than zero. The range is also the set of all real numbers greater than zero.

b) Since there is no word problem attached to this equation, we can assume that we can use any real number as a value of

**Answer**

The domain of this function is all real numbers. The range of this function is all non-negative real numbers.

In the functions we’ve looked at so far, **independent variable** because it can be any of the values from the domain, and **dependent variable** because its value depends on

These expressions all represent the same function: a function where the dependent variable is three times the independent variable. Only the symbols are different. In practice, we usually pick symbols for the dependent and independent variables based on what they represent in the real world—like

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: http://www.youtube.com/watch?v=NRB6s77nx2gI.

## Make a Table For a Function

A table is a very useful way of arranging the data represented by a function. We can match the input and output values and arrange them as a table. For example, the values from Example 1 above can be arranged in a table as follows:

A table lets us organize our data in a compact manner. It also provides an easy reference for looking up data, and it gives us a set of coordinate points that we can plot to create a graph of the function.

**Example 3**

*Make a table of values for the function*

**Solution**

Make a table of values by filling the first row with the input values and the next row with the output values calculated using the given function.

When you’re given a function, you won’t usually be told what input values to use; you’ll need to decide for yourself what values to pick based on what kind of function you’re dealing with. We will discuss how to pick input values throughout this book.

## Write a Function Rule

In many situations, we collect data by conducting a survey or an experiment, and then organize the data in a table of values. Most often, we want to find the function rule or formula that fits the set of values in the table, so we can use the rule to predict what could happen for values that are not in the table.

**Example 4**

*Write a function rule for the following table:*

**Solution**

You pay $24 for 2 CDs, $48 for 4 CDs, $120 for 10 CDs. That means that each CD costs $12.

We can write a function rule:

Cost

**Example 5**

*Write a function rule for the following table:*

**Solution**

You can see that a negative number turns into the same number, only positive, while a non-negative number stays the same. This means that the function being used here is the absolute value function:

Coming up with a function based on a set of values really is as tricky as it looks. There’s no rule that will tell you the function every time, so you just have to think of all the types of functions you know and guess which one might be a good fit, and then check if your guess is right. In this book, though, we’ll stick to writing functions for linear relationships, which are the simplest type of function.

## Represent a Real-World Situation with a Function

Let’s look at a few real-world situations that can be represented by a function.

**Example 5**

*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**

**Define**

Let

Let

**Translate**

The cost has two parts: the one-time fee of $11.95 and the per-hour charge of $0.50. So the total cost is the flat fee

**Answer**

The function is

**Example 6**

*Alfredo wants a deck build around his pool. The dimensions of the pool are 12 feet×24 feet and the decking costs $3 per square foot. Write the cost of the deck as a function of the width of the deck.*

**Solution**

**Define**

Let

Let \begin{align*}y =\end{align*} cost of the deck

**Make a sketch and label it**

**Translate**

You can look at the decking as being formed by several rectangles and squares. We can find the areas of all the separate pieces and add them together:

\begin{align*}\text{Area} = 12x + 12x + 24x + 24x + x^2 + x^2 + x^2 + x^2 = 72x + 4x^2\end{align*}

To find the total cost, we then multiply the area by the cost per square foot ($3).

**Answer**

\begin{align*}f(x) = 3(72x + 4x^2) = 216x + 12x^2\end{align*}

**Example 7**

*A cell phone company sells two million phones in their first year of business. The number of phones they sell doubles each year. Write a function that gives the number of phones that are sold per year as a function of how old the company is.*

**Solution**

**Define**

Let \begin{align*}x =\end{align*} age of company in years

Let \begin{align*}y =\end{align*} number of phones that are sold per year

**Make a table**

\begin{align*}& \text{Age (years)} \qquad \qquad 1 \quad 2 \quad 3 \quad 4 \quad \ 5 \quad \ \ 6 \quad \ \ 7\\ & \text{Millions of phones} \quad 2 \quad 4 \quad 8 \quad 16 \quad 32 \quad 64 \quad 128\end{align*}

**Write a function rule**

The number of phones sold per year doubles every year, so the first year the company sells 2 million phones, the next year it sells \begin{align*}2 \times 2\end{align*} million, the next year it sells \begin{align*}2 \times 2 \times 2 \end{align*} million, and so on. You might remember that when we multiply a number by itself several times we can use exponential notation: \begin{align*}2 = 2^1, \ 2 \times 2 = 2^2, \ 2 \times 2 \times 2 = 2^3,\end{align*} and so on. In this problem, the exponent just happens to match the company’s age in years, which makes our function easy to describe.

**Answer**

\begin{align*}y = f(x) = 2^x\end{align*}

## Review Questions

- Identify the domain and range of the following functions.
- Dustin charges $10 per hour for mowing lawns.
- Maria charges $25 per hour for tutoring math, with a minimum charge of $15.
- \begin{align*}f(x) = 15x - 12\end{align*}
- \begin{align*}f(x) = 2x^2 + 5\end{align*}
- \begin{align*}f(x) = \frac{1}{x}\end{align*}
- \begin{align*}f(x) = \sqrt{x}\end{align*}

- What is the range of the function \begin{align*}y = x^2 - 5\end{align*} when the domain is -2, -1, 0, 1, 2?
- What is the range of the function \begin{align*}y = 2x - \frac{3}{4}\end{align*} when the domain is -2.5, -1.5, 5?
- What is the domain of the function \begin{align*}y = 3x\end{align*} when the range is 9, 12, 15?
- What is the range of the function \begin{align*}y = 3x\end{align*} when the domain is 9, 12, 15?
- Angie makes $6.50 per hour working as a cashier at the grocery store. Make a table that shows how much she earns if she works 5, 10, 15, 20, 25, or 30 hours.
- The area of a triangle is given by the formula \begin{align*}A = \frac{1}{2}bh\end{align*}. If the base of the triangle measures 8 centimeters, make a table 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 \begin{align*}f(x) = \sqrt{2}x + 3\end{align*} for input values -1, 0, 1, 2, 3, 4, 5.
- Write a function rule for the following table: \begin{align*}& x \quad 3 \quad 4 \quad \ \ 5 \quad \ 6\\ & y \quad 9 \quad 16 \quad 15 \quad 36\end{align*}
- Write a function rule for the following table: \begin{align*}& \text{Hours} \quad 0 \quad \ 1 \quad \ 2 \quad \ \ 3\\ & \text{Cost} \quad \ 15 \quad 20 \quad 25 \quad 30\end{align*}
- Write a function rule for the following table: \begin{align*}& x \quad 0 \quad \ \ 1 \quad \ 2 \quad 3\\ & y \quad 24 \quad 12 \quad 6 \quad 3\end{align*}
- Write a function that represents the number of cuts you need to cut a ribbon into \begin{align*}x\end{align*} pieces.
- Write a function that represents the number of cuts you need to divide a pizza into \begin{align*}x\end{align*} slices.
- Solomon charges a $40 flat rate plus $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 3-hour job?
- How much does he earn for three separate 1-hour jobs?

- Rochelle has invested $2500 in a jewelry making kit. She makes bracelets that she can sell for $12.50 each.
- Write a function that shows how much money Rochelle makes from selling \begin{align*}b\end{align*} bracelets.
- Write a function that shows how much money Rochelle has after selling \begin{align*}b\end{align*} bracelets, minus her investment in the kit.
- How many bracelets does Rochelle need to make before she breaks even?
- If she buys a $50 display case for her bracelets, how many bracelets does she now need to sell to break even?

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Please Sign In to create your own Highlights / Notes | |||

Show More |