2.1.7: Function Rules for Input-Output Tables

Geri is getting ready to go through the automatic car wash with her mom. Geri’s mom gives her several dollar bills and tells her to use it to get quarters for the car wash. Geri puts a dollar in the change machine and the machine gives her 4 quarters. She puts another dollar in the machine and it gives her 4 more quarters. Geri continues until she has 26 quarters. As she walks back to the car, she begins to think about what she put into the change machine and what came out. This is a table to represent the change machine’s input and output.

Input (dollars) Output (quarters)
6 24
5 20
4 16
3 12

What rule could Geri write to represent what happened to the input to equal the output? In this concept, you will learn to evaluate and write function rules for an input-output table.

Writing Function Rules for Input-Output Tables

  1. Decipher the pattern of the function by asking, “What happened to the input to get the output?”
  2. Write the rule as an expression.

Take a look at the following function rule and determine if it is a rule for the data in the table below.

Input Output
2 5
3 6
4 7
5 8

First, substitute the input values in for x to see if you get the corresponding output value.

This does not equal the corresponding output value of 5.

Look at the other input values. Each term in the input became the term in the output when 3 was added to it. The rule states that four was added. Therefore, this is not a viable rule.

Here is another function.

Determine if 5x is a function rule for the data in the table below.

Input Output
20 100
10 50
5 25
1 5

First, substitute the input values in for x to see if you get the corresponding output value.

Substitute another input value.

So, yes it is. In this case, each term in the input was multiplied by five to get the term in the output. Therefore this rule does work for this table.

Examples

Earlier, you were given a problem about Geri and the change machine.

Geri knows that there are 4 quarters in a dollar, and that is why she put 6 dollars in the machine and received 24 quarters. How can Geri write this as a function rule?

This is a table to represent the change machine’s input and output.

Input (dollars) Output (quarters)
6 24
5 20
4 16
3 12

Solution

First, look at the table and ask yourself, “What happened to x (input) to get y (output)?”

What happened to 5 to get 50? What happened to 6 to get 60 and so forth? If you look carefully, you will see that the input value (x) is multiplied by 10 to get the output value.

Next, use a variable for the input and write the rule.

You can write it as an expression, x(10) or 10x. This is the function rule, 10x.

Then, see if the function rule 10x works for each term in the table by plugging the input into the expression and seeing if it equals the listed output?

The answer is yes, this rule works for this table.

Write a function rule to represent the data in this table.

Input Output
3 5
5 9
7 13
8 15
10 19

Solution

First, look at the table and ask yourself, “What happened to x (input) to get y (output)?”

Here two operations were performed. The input value was multiplied by two and then one was subtracted.

Next, use a variable for the input and write the rule.

The answer or function rule is 2x−1.

Then, see if the function rule 2x−1 works for each term in the table by plugging the input into the expression and seeing if it equals the listed output.

Substitute the input values in for x in the function 2x−1 to see if you get the results in the output column.