Explainer: Function Rules

In this explainer, we will learn how to find a function rule from a given function table.

We will start be recapping some useful vocabulary.

Definitions: Function, Variable, Input, and Output

  • A function is a rule between an input and an output which assigns exactly one output to each input.
  • Variables are quantities which can change and are usually denoted by letters.
  • The input of a function is the value which you substitute in.
  • The output of a function is the value that results from substituting in a value for the input.

For example, the function 𝑦=π‘₯+1 has the variable π‘₯ as its input and the variable 𝑦 as its output.

We often think of functions as machines. We input a number into the machine and it performs a sequence of calculations with the number, and then it outputs the final answer. For example, the following machine takes any input, multiplies it by 2, and then adds 1.

So, if we input the number 1, the machine multiplies it by 2 to get 2, and then adds 1 to result in an output of 3. We can represent the work of this machine with a function. We can use π‘₯ to denote the input, and 𝑦 to denote the output. The machine will first multiply π‘₯ by 2 to get 2π‘₯, and then add 1 to get 2π‘₯+1. So, we can represent the same function machine as follows.

An input-output table is a useful way of recording pairs of inputs and outputs. The following input-output table shows inputs π‘₯ and outputs 𝑦 for the above function machine.

  • Rule: 𝑦=2π‘₯+1

Input (π‘₯)1234
Output (𝑦)3579

Let us look at an example of how to create an input-output table given a function.

Example 1: Completing Input-Output Tables given a Linear Equation

Fill in the input-output table for the function 𝑦=5π‘₯+3.

Input (π‘₯)0245
Output (𝑦)

Answer

An input-output table tells us the output (or the value of the dependent variable) of the function for a given input (or value of the independent variable).

Here, the input is π‘₯ and the output is 𝑦. To find the values of 𝑦 (the outputs), substitute the values of π‘₯ (the inputs) into the function.

When the input is π‘₯=0, substitute this into 5π‘₯+3 to find the output: 𝑦=5Γ—0+3=0+3=3.

When the input is π‘₯=2, substitute this into 5π‘₯+3 to find the output: 𝑦=5Γ—2+3=10+3=5.

When the input is π‘₯=4, substitute this into 5π‘₯+3 to find the output: 𝑦=5Γ—4+3=20+3=23.

When the input is π‘₯=5, substitute this into 5π‘₯+3 to find the output: 𝑦=5Γ—5+3=25+3=28.

Hence, the finished input-output table is

Input (π‘₯)0245
Output (𝑦)352328

One reason to draw input-output tables is to help us sketch the graph of the function but we will not discuss how to do this here. Instead, we will see how to identify the rule for an input-output table.

Sometimes, we can find the rule by just performing some trial and error; guessing possible functions that work for some pairs of input and output, and then testing whether this function works for the other pairs of values.

Example 2: Finding One-Step Rules for Input-Output Tables

Find the rule for the given function table.

Input (π‘₯)1410
Output (…)91218

Answer

We can start by checking whether any simple functions work and whether the rule has only one step. This step could, for example, be addition, subtraction, multiplication, division, or raising π‘₯ to a power. If we find that none of these one-step rules work, then we have to look for a two-step rule.

Start by considering the first input. When π‘₯=1, the output, which we will call 𝑦, is 9. There are two possible rules for this pair of input and output: 𝑦=π‘₯+8or𝑦=9π‘₯.

Next, we need to see if either of these functions describes all the values in the table.

When the input is π‘₯=4, the output is 12. This means that the rule is not 𝑦=9π‘₯, because 9π‘₯=9Γ—4=36.

However, π‘₯+8=4+8=12, so the rule 𝑦=π‘₯+8 is still a possibility.

Finally, when π‘₯=10, 10+8=18, which is the output in the table.

Hence, we have found a function rule which relates every input value to its output. This means that the function rule is 𝑦=π‘₯+8.

Using trial and error can be time consuming and should not be relied upon for every question. Instead, we can often gain useful information by looking at patterns in the input and output values.

Think about our first example again. We had the following input-output table and we are going to think about how we could figure out the rule using just the information in the table.

  • Rule: 𝑦=?
Input (π‘₯)1234
Output (𝑦)3579

The input values increase by 1 each time and the output values increase by 2 each time. We can say that the common difference between the output values is 2. This tells us that the first operation performed on the input was to multiply it by 2. Hence, part of the function is 2π‘₯.

  • Rule: 𝑦=2π‘₯+?

Since this is clearly not the only operation the function performs, we know that the rule must have at least two steps. We can add an intermediate row into our input-output table to calculate the result of multiplying the input by 2, and then compare these values to the output to see what other calculations are performed. When we do this, we see that we just have to add 1 to get from 2π‘₯ to the output.

  • Rule: 𝑦=2π‘₯+1

Hence, our rule is 2π‘₯+1 which, as a function relating π‘₯ and 𝑦, is 𝑦=2π‘₯+1.

It is always true that if the common difference between consecutive outputs is a constant π‘Ž, then the function begins by multiplying the input by π‘Ž. Note that by β€œconsecutive” we mean that the inputs must be consecutive integers. To gain some understanding as to why this works consider the following.

Plot the multiples of any number on a number line. We will use the multiples of 3. So, we plot the values of 3π‘₯ on the number line. Since we know that multiplication is just repeated addition, the common difference between the multiples is 3. Now, think about adding or subtracting any number from these values of 3π‘₯. For example, we could add 2 to all of the multiples of 3. Then, the resulting numbers all follow the rule 3π‘₯+2. It is important to notice that all of the numbers move by the same amount, which means that the difference between them doesn’t change.

The common difference would also stay the same if we added 4, subtracted 7, or any other number. The common difference between consectutive outputs of the functions 𝑦=3π‘₯, 𝑦=3π‘₯+2, 𝑦=3π‘₯+4, 𝑦=3π‘₯βˆ’7, and all other functions which add to or subtract from a multiple of 3 will always be 3.

To see this another way, think about outputs of the function 𝑦=π‘Žπ‘₯+𝑏. For simplicity, we will take π‘Ž to be 3 but this will work for any number. Consider inputting π‘₯=1, π‘₯=2, and π‘₯=3 into 𝑦=3π‘₯+𝑏: π‘₯=1βŸΆπ‘¦=3Γ—1+𝑏=3+𝑏,π‘₯=2βŸΆπ‘¦=3Γ—2+𝑏=3+3+𝑏,π‘₯=3βŸΆπ‘¦=3Γ—3+𝑏=3+3+3+𝑏.

Each time we increase the input by 1, we add another 3 term to the output, so the output values increase by 3 each time. Hence, they have a common difference of 3.

Now, we will look at an example where we can use this.

Example 3: Finding Linear Equations Which Describe Input-Output Tables with Consecutive Terms

Find the function rule for this table. Then calculate the two missing numbers.

Input (π‘₯)1213141516
Output (𝑦)768288

Answer

We could guess possible rules and check to see if they work for all pairs of input and output, but it is better to first check whether the function is of the form 𝑦=π‘Žπ‘₯ or 𝑦=π‘Žπ‘₯+𝑏 for some numbers π‘Ž and 𝑏. To do this, we can check to see if the difference between the output values is always the same constant π‘Ž.

In fact, the difference between outputs is always 6, and since the input values are consecutive, this means that the rule is 𝑦=6π‘₯+𝑏 and we need to work out the value of 𝑏.

To do this, compare the values of 6π‘₯ to the output values.

Notice that, to get from 6π‘₯ to the output 𝑦 we need to add 4. Hence, we conclude that the function rule is 𝑦=6π‘₯+4.

Now, we can use this rule to find the missing values by substituting the values of π‘₯ into the function.

When the input is π‘₯=15, substitute this into 6π‘₯+4 to find the output: 𝑦=6Γ—15+4=90+4=94.

When the input is π‘₯=16, substitute this into 6π‘₯+4 to find the output: 𝑦=6Γ—16+4=96+4=100.

Hence, the completed input-output table is as follows.

  • Rule: 𝑦=6π‘₯+4
Input (π‘₯)1213141516
Output (𝑦)76828894100

We have seen how to find rules of the form 𝑦=π‘Žπ‘₯+𝑏 by looking for a common difference. We will summarize this method below.

How to Check If an Input-Output Table Follows a Rule of the Form 𝑦 = π‘Žπ‘₯ + 𝑏

Step 1: Check that the input values are consectutive integers.

Step 2: Check whether there is a common difference between successive output values.

Step 3: If the common difference is π‘Ž, then the function rule is 𝑦=π‘Žπ‘₯+𝑏.

Step 4: To find 𝑏, compare the values of π‘Žπ‘₯ to the output values.

  • Rule: 𝑦=π‘Žπ‘₯+𝑏

Remember that this method assumes that the input values are consecutive integers. We will finish by looking at an example when the input-output table does not contain input values which are consecutive.

Example 4: Finding Linear Equations for Input-Output Tables with Non-Consecutive Terms

Find the function rule for the following input-output table.

Input (π‘₯)135811
Output (𝑦)711193143

Answer

The rule is a function 𝑦=? and we have to find the calculations performed on the input π‘₯ to get the output 𝑦. To start with, we do not even know how many operations are performed on π‘₯ to get 𝑦.

Let us first check whether the table has a one-step rule.

Consider the first input-output pair and look at all the possibilities to get from π‘₯=1 to 𝑦=7 with one calculation. These would be π‘₯+6or7π‘₯.

However, neither of these rules works for the other pairs of inputs and outputs. For example, when π‘₯=3, π‘₯+6=3+6=9but𝑦=15.

So, the table does not have a one-step rule.

Next, we will check whether the table has a two-step rule like 𝑦=π‘Žπ‘₯+𝑏.

If this is the correct form of the rule (it might not be), then increasing the input by 1 will increase the output by π‘Ž, increasing the input by 2 will increase the output by 2π‘Ž, and so on. So, we need to investigate the differences between the input terms and the output terms.

At first glance, it looks like there is no common difference between the output values. However, this is because the difference between the input terms is also not constant. In fact, there are the following relationships between the input and output: increaseinputby2⟢increaseoutputby8,increaseinputby3⟢increaseoutputby12.

This suggests that there is a common difference between consecutive terms, following the pattern increaseinputby1⟢increaseoutputby4.

Hence, the rule is 𝑦=4π‘₯+𝑏 and we can find the value of 𝑏 by comparing the values of 4π‘₯ to the output values in the table.

By doing this, we see that the output value is always equal to 4π‘₯βˆ’1, hence the function rule is 𝑦=4π‘₯βˆ’1.

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.