<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />

# Function Rules for Input-Output Tables

## Use data in tables to write rules that have one output for any input.

Estimated15 minsto complete
%
Progress
Practice Function Rules for Input-Output Tables
Progress
Estimated15 minsto complete
%
Writing Function Rules

Alfred is getting ready to decorate the yard for Halloween. He always lights both sides of the driveway with carved jack-o-lanterns. Alfred knows that Jacob, a local farmer sells his smaller pumpkins for 2.75 each. He needs to write some type of a function rule to determine the cost of 25, 35, 45 and 50 pumpkins. How can Alfred use the information he knows to write the function rule? In this concept, you will learn to write function rules. ### Function Rule A function rule expresses the output value in terms of all operations performed on the input value. A function rule can be expressed either using words or symbols. When a function rule is written from the information given in an input/output table, the pattern represented in the table must be represented by the function rule. Let’s write a function rule for each of the following input/output tables:  Input (\begin{align*}x\end{align*}) Output (\begin{align*}y\end{align*}) 2 7 3 10 4 13 5 16 First, look for a pattern between the input numbers and the output numbers. The values of the output numbers are very close to the input number times three. \begin{align*}y=3x\end{align*} Next, try the function rule to see if it works. \begin{align*}\begin{array}{rcl} y &=& 3x \\ y &=& 3(2) \\ y &=& 6 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 3x \\ y &=& 3(3) \\ y&=& 9 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 3x \\ y &=& 3(4) \\ y&=& 12 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 3x \\ y &=& 3(5) \\ y &=& 15 \end{array}\end{align*} Next, if the function rule does not give the output number, determine what value could be added or subtracted from the original function rule to give the desired output number. Each of the given output numbers is one greater than the output values found by \begin{align*}y=3x\end{align*}. Next, write a new function rule to satisfy the values given in the table. \begin{align*}y=3x+1\end{align*} Next, try the new function rule to see if it works. \begin{align*}\begin{array}{rcl} y &=& 3x+1 \\ y&=& 3(2) +1 \\ y &=& 6+1 \\ y &=& 7 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 3x+1 \\ y &=& 3(3)+1 \\ y &=& 9+1 \\ y &=& 10 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 3x+1 \\ y &=& 3(4) +1 \\ y &=& 12+1 \\ y &=& 13 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 3x+1 \\ y &=& 3(5) +1 \\ y &=& 15 +1 \\ y &=& 16 \end{array}\end{align*} The function rule \begin{align*}y=3x+1\end{align*} gives the output values shown in the table when the given input values are used.  Input (\begin{align*}x\end{align*}) Output (\begin{align*}y\end{align*}) -3 -2 -1 2 1 6 3 10 First, look for a pattern between the input numbers and the output numbers. The pattern between the values of the output numbers and the input number is not obvious. Perhaps trial and error may work to get started. Begin by doubling each of the input numbers. \begin{align*}y=2x\end{align*} Next, try the function rule to see if it works. \begin{align*}\begin{array}{rcl} y &=& 2x \\ y &=& 2(-3) \\ y &=& -6 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 2x \\ y &=& 2(-1) \\ y &=& -2 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 2x \\ y &=& 2(1) \\ y &=& 2 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} y &=& 2x \\ y &=& 2(3) \\ y &=& 6 \end{array}\end{align*} Next, if the function rule does not give the output number, determine what value could be added or subtracted from the original function rule to give the desired output number. When \begin{align*}x=1\end{align*} in the function rule \begin{align*}y=2x\end{align*}, the output number was \begin{align*}y=2\end{align*}. If 4 were added to this, then the value of ‘\begin{align*}y\end{align*}’ would be 6 which is the given output number in the table. Next, write a new function rule to satisfy the values given in the table. \begin{align*}y=2x+4\end{align*} Next, try the new function rule to see if it works. \begin{align*}\begin{array}{rcl} x &=& -3 \\ y &=& 2x+4 \\ y &=& 2(-3) +4 \\ y &=& -6+4 \\ y &=& -2 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} x &=& -1 \\ y &=& 2x+4 \\ y &=& 2(-1) +4 \\ y &=& -2+4 \\ y &=& 2 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} x &=& 1 \\ y &=& 2x+4 \\ y &=& 2(1) +4 \\ y &=& 2+4 \\ y &=& 6 \end{array}\end{align*} \begin{align*}\begin{array}{rcl} x &=& 3 \\ y &=& 2x+4 \\ y &=& 2(3) + 4 \\ y &=& 6+4 \\ y &=& 10 \end{array}\end{align*} The function rule \begin{align*}y=2x+4\end{align*} gives the output values shown in the table when the given input values are used.  Input (\begin{align*}x\end{align*}) Output (\begin{align*}y\end{align*}) 2 7 3 10 4 13 5 16 The above input/output table can also be written as  \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 2 7 3 10 4 13 5 16 The input values are now represented by ‘\begin{align*}x\end{align*}’ and the output numbers ‘\begin{align*}y\end{align*}’ are represented by \begin{align*}f(x)\end{align*}. Therefore, the function rule \begin{align*}y=3x+1\end{align*} can also be written as \begin{align*}f(x) = 3x+1\end{align*}. This way of writing a function rule is known as function notation. \begin{align*}f(x) = 3x+1\end{align*} The above function notation can be read as: There is a function ‘\begin{align*}f\end{align*}’ written in terms of the variable ‘\begin{align*}x\end{align*}’ such that it equals \begin{align*}3x+1\end{align*} or \begin{align*}f\end{align*} of \begin{align*}x\end{align*} equals \begin{align*}3x+1\end{align*}. If a function written in function notation form were given then to find the value of the function for the input value ‘3’ the function notation could be written as. If \begin{align*}f(x) = -3x+5\end{align*} find \begin{align*}f(3)\end{align*}. First, substitute ‘3’ for the value of ‘\begin{align*}x\end{align*}.’ \begin{align*}\begin{array}{rcl} f(x) &=& -3x + 5 \\ f(3) &=& -3(3) + 5 \end{array}\end{align*} Next, perform the multiplication to clear the parenthesis. \begin{align*}\begin{array}{rcl} f(3) &=& -3(3) + 5 \\ f(3) &=& -9+5 \end{array} \end{align*} Then, perform the addition on the right side of the function. \begin{align*}\begin{array}{rcl} f(3) &=& -9+5 \\ f(3) &=& -4 \end{array}\end{align*} The answer is -4. If \begin{align*}f(x) = -3x+5\end{align*} then \begin{align*}f(3) =- 4\end{align*}. ### Examples #### Example 1 Earlier, you were given a problem about Alfred and the pumpkins. Alfred needs to buy small pumpkins that cost2.75 each. Alfred needs to write a function rule to figure out the cost of 25, 35, 45 and 50 pumpkins. What function rule can Alfred write using function notation?

First, he can create a table to represent the information from the problem.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 25 35 45 60

Next, write a function rule, using function notation that can be used to complete the table.

\begin{align*}f(x) = 2.75 x\end{align*}

Next, use the function rule to determine the value of \begin{align*}f(x)\end{align*} for each of the given ‘\begin{align*}x\end{align*}’ values.

If \begin{align*}f(x)=2.75x\end{align*} find \begin{align*}f(25)\end{align*}.

Next, substitute 25 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& 2.75 x \\ f(25) &=& 2.75 (25) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(25) &=& 2.75 (25) \\ f(25) &=& 68.75 \end{array}\end{align*}

Twenty-five pumpkins will cost 68.75. If \begin{align*}f(x)=2.75x\end{align*} find \begin{align*}f(35)\end{align*}. Next, substitute 35 for ‘\begin{align*}x\end{align*}’ in the function rule. \begin{align*}\begin{array}{rcl} f(x) &=& 2.75 x \\ f(35) &=& 2.75 (35) \end{array}\end{align*} Then, perform the multiplication on the right side of the function rule. \begin{align*}\begin{array}{rcl} f(35)&=& 2.75 (35) \\ f(35) &=& 96.25 \end{array}\end{align*} The answer is 96.25. Thirty-five pumpkins will cost96.25.

If \begin{align*}f(x) = 2.75 x\end{align*} find \begin{align*}f(45)\end{align*}.

Next, substitute 45 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& 2.75 x \\ f(45) &=& 2.75 (45) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(45) &=& 2.75 (45) \\ f(45) &=& 123.75 \end{array}\end{align*}

Forty-five pumpkins will cost 123.75. If \begin{align*}f(x)=2.75 x\end{align*} find \begin{align*}f(50)\end{align*}. Next, substitute 50 for ‘\begin{align*}x\end{align*}’ in the function rule. \begin{align*}\begin{array}{rcl} f(x) &=& 2.75 x \\ f(50) &=& 2.75 (50) \end{array}\end{align*} Then, perform the multiplication on the right side of the function rule. \begin{align*}\begin{array}{rcl} f(50) &=& 2.75 (50) \\ f(50) &=& 137.50 \end{array}\end{align*} The answer is 137.50. Fifty pumpkins will cost137.50.

#### Example 2

For the given table, write a function rule using function notation to represent the information given in the table.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 9 8 11 10 15 14 17 16

Remember, the input numbers have been replaced with ‘\begin{align*}x\end{align*}’ and the output numbers have been replaced with \begin{align*}f(x)\end{align*}.

First, look at the two columns of given numbers to determine a pattern between the values.

The numbers in the second column are one less than those in the first column.

Next, write a function rule, using function notation, to represent the pattern.

\begin{align*}f(x) = x-1\end{align*}

Next, test the function rule for each of the given ‘\begin{align*}x\end{align*}’ values.

If \begin{align*}f(x) = x-1\end{align*} find \begin{align*}f(9)\end{align*}.

Next, substitute 9 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& x-1 \\ f(9) &=& 9-1 \end{array}\end{align*}

Then, perform the subtraction on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(9) &=& 9-1 \\ f(9) &=& 8 \end{array}\end{align*}

If \begin{align*}f(x) = x-1\end{align*} find \begin{align*}f(11)\end{align*}.

Next, substitute 11 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& x-1 \\ f(11) &=& 11-1 \end{array}\end{align*}

Then, perform the subtraction on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(11) &=& 11-1 \\ f(11) &=& 10 \end{array}\end{align*}

If \begin{align*}f(x) = x-1\end{align*} find \begin{align*}f(15)\end{align*}.

Next, substitute 15 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& x-1 \\ f(15) &=& 15-1 \end{array}\end{align*}

Then, perform the subtraction on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(15) &=& 15-1 \\ f(15) &=& 14 \end{array}\end{align*}

If \begin{align*}f(x) = x-1\end{align*} find \begin{align*}f(17)\end{align*}.

Next, substitute 17 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& x-1 \\ f(17) &=& 17-1 \end{array}\end{align*}

Then, perform the subtraction on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(17) &=& 17-1 \\ f(17) &=& 16 \end{array}\end{align*}

All of the \begin{align*}f(x)\end{align*} values calculated using the function rule match the \begin{align*}f(x)\end{align*} values given in the table.

The function rule \begin{align*} f(x) = x-1\end{align*} represents the information given in the table.

#### Example 3

Write a function rule using function notation to represent the information given in the following table.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 12 6 9 4.5 7 3.5 4 2

First, look at the two columns of given numbers to determine a pattern between the values.

The numbers in the second column are one-half the numbers in the first column.

Next, write a function rule, using function notation, to represent the pattern.

\begin{align*}f(x) = \frac{1}{2} x\end{align*}

Next, test the function rule for each of the given ‘\begin{align*}x\end{align*}’ values.

If \begin{align*}f(x) = \frac{1}{2} x\end{align*} find \begin{align*}f(12)\end{align*}.

Next, substitute 12 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& \frac{1}{2} x \\ f(12) &=& \frac{1}{2} (12) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(12) &=& \frac{1}{2} (12) \\ f(12) &=& 6 \end{array}\end{align*}

If \begin{align*}f(x) = \frac{1}{2} x\end{align*} find \begin{align*}f(9)\end{align*}.

Next, substitute 9 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& \frac{1}{2} x \\ f(9) &=& \frac{1}{2} (9) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(9) &=& \frac{1}{2} (9) \\ f(9) &=& 4.5 \end{array}\end{align*}

If \begin{align*}f(x) = \frac{1}{2} x\end{align*} find \begin{align*}f(7)\end{align*}.

Next, substitute 7 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& \frac{1}{2} x \\ f(7) &=& \frac{1}{2} (7) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(7) &=& \frac{1}{2} (7) \\ f(7) &=& 3.5 \end{array}\end{align*}

If \begin{align*}f(x)=\frac{1}{2}x\end{align*} find \begin{align*}f(4)\end{align*}.

Next, substitute 4 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& \frac{1}{2} x \\ f(4) &=& \frac{1}{2} (4) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(4) &=& \frac{1}{2} (4) \\ f(4) &=& 2 \end{array}\end{align*}

All of the \begin{align*}f(x)\end{align*} values calculated using the function rule match the \begin{align*}f(x)\end{align*} values given in the table.

The function rule \begin{align*}f(x) = \frac{1}{2} x\end{align*} represents the information given in the table.

#### Example 4

Write a function rule using function notation to represent the information given in the following table.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 9 -27 11 -33 15 -45 16 -48

First, look at the two columns of given numbers to determine a pattern between the values.

The numbers in the second column are negative three times the numbers in the first column.

Next, write a function rule, using function notation, to represent the pattern.

\begin{align*}f(x) = -3x\end{align*}

Next, test the function rule for each of the given ‘\begin{align*}x\end{align*}’ values.

If \begin{align*}f(x)=-3x\end{align*} find \begin{align*}f(9)\end{align*}.

Next, substitute 9 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& -3x \\ f(9) &=& -3(9) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(9) &=& -3(9) \\ f(9) &=& - 27 \end{array}\end{align*}

If \begin{align*}f(x) = -3x\end{align*} find \begin{align*}f(11)\end{align*}.

Next, substitute 11 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& -3x \\ f(11) &=& -3(11) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(11) &=& -3(11) \\ f(11) &=& -33 \end{array}\end{align*}

If \begin{align*}f(x)=-3x\end{align*} find \begin{align*}f(15)\end{align*}.

Next, substitute 15 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& -3x \\ f(15) &=& -3(15) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(15) &=& -3(15) \\ f(15) &=& -45 \end{array}\end{align*}

If \begin{align*}f(x)=-3x\end{align*} find \begin{align*}f(16)\end{align*}.

Next, substitute 16 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& -3x \\ f(16) &=& -3(16) \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(16) &=& -3(16) \\ f(16) &=& -48 \end{array}\end{align*}

All of the \begin{align*}f(x)\end{align*} values calculated using the function rule match the \begin{align*}f(x)\end{align*} values given in the table.

The function rule \begin{align*}f(x)=-3x\end{align*} represents the information given in the table.

#### Example 5

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 1 4 2 7 3 10 4 13

First, look at the two columns of given numbers to determine a pattern between the values.

The numbers in the second column are one greater than three times the values in the first column.

Next, write a function rule, using function notation, to represent the pattern.

\begin{align*}f(x) = 3x+1\end{align*}

Next, test the function rule for each of the given ‘\begin{align*}x\end{align*}’ values.

If \begin{align*}f(x)=3x+1\end{align*} find \begin{align*}f(1)\end{align*}.

Next, substitute 1 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& 3x+1 \\ f(1) &=& 3(1) +1 \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(1) &=& 3(1) +1 \\ f(1) &=& 4 \end{array}\end{align*}

If \begin{align*}f(x)=3x+1\end{align*} find \begin{align*}f(2)\end{align*}.

Next, substitute 2 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& 3x+1 \\ f(2) &=& 3(2) +1 \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(2) &=& 3(2) +1 \\ f(2) &=& 7 \end{array}\end{align*}

If \begin{align*}f(x)=3x+1\end{align*} find \begin{align*}f(3)\end{align*}.

Next, substitute 3 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& 3x+1 \\ f(3) &=& 3(3) + 1 \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(3) &=& 3(3)+1 \\ f(3) &=& 10 \end{array}\end{align*}

If \begin{align*}f(x)=3x+1\end{align*} find \begin{align*}f(4)\end{align*}.

Next, substitute 4 for ‘\begin{align*}x\end{align*}’ in the function rule.

\begin{align*}\begin{array}{rcl} f(x) &=& 3x+1 \\ f(4) &=& 3(4) +1 \end{array}\end{align*}

Then, perform the multiplication on the right side of the function rule.

\begin{align*}\begin{array}{rcl} f(4) &=& 3(4) +1 \\ f(4) &=& 13 \end{array}\end{align*}

All of the \begin{align*}f(x)\end{align*} values calculated using the function rule match the \begin{align*}f(x)\end{align*} values given in the table.

The function rule \begin{align*}f(x)=3x+1\end{align*} represents the information given in the table.

### Review

1. Write a function rule for the following data.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 9 12 11 9 15 7 16 4

2. Write a function rule for the following data.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} -2 -6 0 -4 2 -2 4 0

3. Write a function rule for the following data.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 0 0 1 2 4 8 5 10

4. Write a function rule for the following data.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 1 0 2 2 4 6 8 14

5. Write a function rule for the following data.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 2 1 4 2 8 4 10 5 18 9

6. Write a function rule for the following data.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 6 2 9 3 15 5 21 7 30 10

7. Write a function rule for the following data.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 2 3 9 10 15 16 21 22 30 31

8. Write a function rule for the following data.

 \begin{align*}x\end{align*} \begin{align*}f(x)\end{align*} 3 -6 9 -18 15 -30 20 -40 24 -48

Solve the following problem.

9. Sandwiches cost \$3.45 each. Write a function rule for the cost, \begin{align*}c\end{align*}, for a number of sandwiches, \begin{align*}s\end{align*}.

10. Now, find the cost of 3 sandwiches.

11. Find the cost of 6 sandwiches.

12. Find the cost of 9 sandwiches.

13. Find the cost of 2 sandwiches.

14. Find the cost of 8 sandwiches.

15. Find the cost of a dozen sandwiches.

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

Color Highlighted Text Notes

### Vocabulary Language: English

domain

The domain of a function is the set of $x$-values for which the function is defined.

Function

A function is a relation where there is only one output for every input. In other words, for every value of $x$, there is only one value for $y$.

Function Rule

A function rule describes how to convert an input value ($x$) into an output value ($y$) for a given function. An example of a function rule is $f(x) = x^2 + 3$.

input

The input of a function is the value on which the function is performed (commonly the $x$ value).

Output

The output of a function is the result of the operations performed on the independent variable (commonly $x$). The output values are commonly the values of $y$ or $f(x)$.

Range

The range of a function is the set of $y$ values for which the function is defined.

Relation

A relation is any set of ordered pairs $(x, y)$. A relation can have more than one output for a given input.