Skip to main content
K12 LibreTexts

2.1.8: Input-Output Tables for Function Rules

  • Page ID
    4350
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Input-Output Tables for Function Rules

    Figure \(\PageIndex{1}\)

    Soren is working on a project about the eating behavior of the Mandarin duck from East Asia. He has gathered some data about the Mandarin duck’s weight and the approximate amount of plant matter it eats in a day. Soren put this information in a table and noticed a pattern in the duck’s weight and the approximate amount of plant matter eaten.

    Input (Mandarin duck weight in grams) Output (Plant matter eaten in grams)
    400 250
    500 300
    600 350
    700 400

    Can you write a rule that describes the data in this table?

    In this concept, you will learn to evaluate a given function rule using an input-output table.

    Using Input-Output Tables for Function Rules

    An input-output table, like the one shown below, can be used to represent a function.

    3 times x
    Input number (x) Output number (y)
    0 0
    1 3
    2 6
    3 9

    Each pair of numbers in the table is related by the same function rule. That rule is: multiply each input number (x-value) by 3 to find each output number (y-value). You can use a rule like this to find other values for this function, too.

    Now look at how to use a function rule to complete a table.

    The rule for the input-output table below is: add 1.5 to each input number to find its corresponding output number. Use this rule to find the corresponding output numbers.

    x+1.5
    Input number (x) Output number (y)
    0
    1
    2.5
    5
    10

    To find each output number, add 1.5 to each input number. Then, write that output number in the table.

    x+1.5
    Input number (x) Output number (y)
    0 1.5 ←0+1.5=1.5
    1 2.5 ←1+1.5=2.5
    2.5 4 ←2.5+1.5=4.0
    5 6.5 ←5+1.5=6.5
    10 11.5 ←10+1.5=11.5

    You can represent the information in this table as five ordered pairs from the function.

    Now, write the answer in ordered pairs.

    The answer is (0,1.5)(1,2.5)(2.5,4)(5,6.5)(10,11.5).

    Let’s look at another example to show how to create a function table given a rule.

    Let’s say that the domain of a function is all real numbers. The rule for this function is: multiply each x-value (the input) by 4 and then subtract 2. Make a table that shows three inputs and three corresponding outputs for a function that follows this rule. Then, represent this information as ordered pairs.

    First, choose three x-values for the table. You may choose any numbers in the domain of the function, but let’s select some numbers that are easy to work with such as 1, 2, and 3.

    Next, you take an input value (x-value), and apply the function rule to find the corresponding output value (y-value).

    The rule for this function is: multiply each x-value (the input) by 4 and then subtract 2.

    4x−2
    Input number (x) Output number (y)
    1 2 ←4(1)−2=2
    2 6 ←4(2)−2=6
    3 10 ←4(3)−2=10

    You can represent the information in this table (the inputs and outputs of the function) as three ordered pairs.

    The answer is {(1,2),(2,6),(3,10)}.

    You can also write the rule for a function rule as an equation.

    Here is an example.

    The equation y=x/3+1 is a function. The input is the x-value and the corresponding y-value is the output. Use this rule to find the missing x and y values in the table below.

    y=x/3+1
    Input number (x) Output number (y)
    0 1
    3 2
    9
    8

    First, when x is 9, use the function to solve for y. You do this by substituting 9 in for x in y=x/3+1.

    y=x/3+1

    y=9/3+1

    y=3+1

    y=4

    One answer is when x=9,y=4. This means that (9,4) is an ordered pair for this function.

    Next, solve for the other missing value.

    You know that y=8. So, plug that into the function and solve for x.

    y=x/3+1

    8=x/3+1

    Then, use the subtraction property of equality and subtract 1 from both sides of the equation.

    8−1=x/3+1−1

    7=x/3

    Next, use the multiplication property of equality and multiply both sides of the equation by 3.

    7×3=x/3×3

    21=(3/3)x

    21=1x

    21=x

    The answer is when the output value (y) is 8 the input value (x) is 21. This means that (21,8) is an ordered pair for this function.

    Examples

    Example 2.1.8.1

    Earlier, you were given a problem about Soren and the information he’s gathering about Mandarin ducks.

    Soren notices a pattern in the information he’s collected so far. Can you write a rule that takes the input and gives the output number?

    Input (Mandarin duck weight in grams) Output (Plant matter eaten in grams)
    400 250
    500 300
    600 350
    700 400

    Solution

    Let x be the input, and y be the output.

    You can notice that the outputs are about half the inputs, and as you look closer you may notice that the outputs are half the input plus 50. That is, the output, y, is x/2+50.

    You can write this as a function taking an input value (x) to an output value (y).

    y=x/2+50

    The answer for a rule or a function which takes duck weight as an input and gives plant matter eaten as an output is y=x/2+50.

    Example 2.1.8.2

    Data about the number of chipmunks and the corresponding number of nuts eaten is presented in the following table.

    Input (number of chipmunks) Ouptut (nuts eaten)
    12 6
    10 5
    8 4
    6 3
    4 2

    Can you write a rule for a function that describes this information?

    Solution

    First, examine the inputs and outputs to see if there is a clear pattern. You can see that if you divide the input by 2 you get the output.

    Next, let x be the input, and y be the output. You can then write a rule that describes this function.

    The answer is y=x/2.

    Solve each equation.

    Example 2.8.1.3

    Complete the table given the following rule: Add 2 to the input to get the output.

    Input (x) Output (y)
    3
    5
    6

    Solution

    First, add 2 to each input to find the output.

    The answers are 5, 7 and 8.

    Example 2.1.8.4

    Write an equation that describes the function in Example 1.

    Solution

    Use the rule: add 2 to the input to get the output. Substitute x for the input, and y for the output.

    The answer is y=x+2.

    Example 2.1.8.5

    Create a table for the function y=x/2+3. Use three values for the inputs.

    Solution

    First, it is a good idea to pick numbers for the inputs that will be easy to calculate. Let’s take the numbers 2, 4, and 6 since they are all even numbers divisible by 2.

    Next, plug each input value into x, in the function y=x2+3 and solve for y.

    Input (x) Output (y)
    2 4
    4 5
    6 6

    Review

    Use the given rule or equation to complete the table.

    1. The rule for the input-output below table is: multiply each input number by 7 and then add 2. Use this rule to find the corresponding output numbers.
    Input number (x) Output number (y)
    0
    1
    2
    3
    4
    1. The rule for this function table is: subtract 6 from each x-value to find each y-value. Use this rule to find the missing numbers in the table. Fill in the table with those numbers.
    Input number (x) Output number (y)
    0
    6
    7
    16
    1. The equation y=x/2−1 is a function. Use this function to find the missing values in the table below.
    Input number (x) Output number (y)
    2 0
    4 1
    8
    6

    Determine if the rule provided would give the information in the input-output table. If it works write “yes” if not, write “no”.

    1. 2x
    Input number (x) Output number (y)
    1 2
    2 5
    3 7
    1. 3x−1
    Input number (x) Output number (y)
    1 2
    2 5
    3 8
    4 11
    1. 2x+1
    Input number (x) Output number (y)
    1 3
    2 4
    3 6
    5 10
    1. 4x
    Input number (x) Output number (y)
    0 0
    1 4
    2 8
    3 12
    1. 6x−3
    Input number (x) Output number (y)
    1 3
    2 9
    3 15
    1. 2x
    Input number (x) Output number (y)
    0 0
    1 2
    2 4
    3 6
    1. 3x−3
    Input number (x) Output number (y)
    1 0
    2 3
    4 9
    5 12

    Create a table for each rule. Use five input values.

    1. 7x
    2. 3x+1
    3. 5x−3
    4. 4x+3
    5. 4x−5

    Review (Answers)

    To see the Review answers, open this PDF file and look for section 7.16.

    Vocabulary

    Term Definition
    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)=x2+3.
    Function Table A function table is another name for an input-output table, a table that shows how a value changes according to a rule.
    Input-Output Table An input-output table is a table that shows how a value changes according to a rule.
    Linear Function A linear function is a relation between two variables that produces a straight line when graphed.
    Range The range of a function is the set of y values for which the function is defined.

    Additional Resources

    Video:

    PLIX: Play, Learn, Interact, eXplore: Input-Output Tables for Function Rules

    Practice: Input-Output Tables for Function Rules


    This page titled 2.1.8: Input-Output Tables for Function Rules is shared under a CC BY-NC license and was authored, remixed, and/or curated by CK-12 Foundation via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.