How to Write a Function Rule for the Table of Values
Learning how to write a function rule for the table of values is one of the most practical skills in middle school and high school mathematics. On the flip side, a function rule is simply an equation that describes the relationship between an input (usually x) and an output (usually y). Once you can read a table and turn it into an equation such as y = 3x + 2, you open up the ability to predict missing values, graph the relationship, and solve real-world problems involving patterns, money, distance, and growth Simple as that..
What Exactly Is a Function Rule?
A function rule is an algebraic expression that tells you exactly how to transform every input value into its matching output value. If a table shows that an input of 2 produces an output of 7, and an input of 5 produces an output of 16, the rule is the "recipe" that works for both rows — and for every possible row in between.
Key vocabulary you should know:
- Input (x) — the independent variable, the number you start with.
- Output (y) — the dependent variable, the number you get after applying the rule.
- Constant rate of change — the amount the output changes each time the input increases by 1.
- Y-intercept (b) — the output when the input is 0.
A table represents a function only if each input is paired with exactly one output. If the same x-value appears twice with different y-values, no function rule exists for that table.
Step-by-Step Guide to Writing a Function Rule
Follow this process every time you are asked to write a function rule for a table.
Step 1: Label the input and output columns
Decide which column is x and which is y. The input usually comes first, and the output depends on it Worth keeping that in mind. Practical, not theoretical..
Step 2: Check that the relation is a function
Scan the input column for repeats. Repeated inputs with different outputs mean the table is not a function.
Step 3: Look at the first differences
Find how much the output changes as the input increases by 1.
- Constant first differences → linear rule: y = mx + b
- Constant second differences → quadratic rule: y = ax² + bx + c
- Constant ratios (multiplying by the same number) → exponential rule: y = a·bˣ
Step 4: Find the rate of change (the slope)
For a linear relationship, the slope m is the constant first difference you found in Step 3. Divide the change in output by the change in input:
m = (change in y) ÷ (change in x)
If the input increases by 1 each time, the slope is simply the amount the output increases by 1 each time.
Step 5: Find the y-intercept
The y-intercept b is the output value when the input is 0. If the table already includes an x = 0 row, read it directly. If not, work backward using the slope until you reach x = 0 Not complicated — just consistent. Practical, not theoretical..
Step 6: Write the rule and test it
Combine your slope and intercept into the form y = mx + b, then plug in a row from the table to confirm both sides match. Test at least two rows — if the rule works for every row, you are done Small thing, real impact..
Worked Example: A Linear Table
Consider this table:
| x | y |
|---|---|
| 0 | 3 |
| 1 | 7 |
| 2 | 11 |
| 3 | 15 |
First differences: 7 − 3 = 4, 11 − 7 = 4, 15 − 11 = 4. The differences are constant, so the rule is linear.
Slope: m = 4 Small thing, real impact..
Y-intercept: The x = 0 row gives y = 3, so b = 3.
Rule: y = 4x + 3.
Test: For x = 2, the rule gives 4(2) + 3 = 11, which matches the table. ✓
Worked Example: An Exponential Table
Not every table is linear. Look at this one:
| x | y |
|---|---|
| 0 | 2 |
| 1 | 6 |
| 2 | 18 |
| 3 | 54 |
First differences: 4, 12, 36 — not constant, so this is not linear.
Ratios: 6 ÷ 2 = 3, 18 ÷ 6 = 3, 54 ÷ 18 = 3. The output is multiplied by 3 each time, so the rule is exponential: y = a·bˣ Small thing, real impact. And it works..
Starting value: When x = 0, y = 2, so a = 2. The multiplier gives b = 3.
Rule: y = 2·3ˣ And that's really what it comes down to..
Test: For x = 2, the rule gives 2·3² = 2·9 = 18, which matches. ✓
Common Mistakes to Avoid
- Assuming the rule is linear. Always check the differences before jumping to y = mx + b. A table that grows faster and faster is usually exponential.
- Forgetting the y-intercept. The slope alone is not enough; you need both m and b to pin down the line.
- Skipping the test step. A rule that works for one row but not the others is wrong. Always verify against multiple rows.
- Confusing input and output. Keep x as the independent value you start with and y as the result you calculate.
Connecting Tables to Graphs and Real Life
Once you have a rule, the table, the graph, and the equation all tell the same story. Which means the slope m is the steepness of the line, and the y-intercept b is where the line crosses the vertical axis. Also, in real-world problems, these numbers carry meaning: if y is the total cost and x is the number of items, then m is the price per item and b is a fixed starting fee. Recognizing this connection lets you move fluidly between a list of numbers, a picture, and an equation.
Conclusion
Writing a function rule for a table of values comes down to a repeatable process: label your columns, confirm the relation is a function, examine the differences or ratios to identify the type of pattern, extract the slope and intercept, and then test your rule against the data. Whether the relationship is linear, quadratic, or exponential, the same disciplined approach applies. With practice, you will begin to recognize patterns at a glance and turn any table into a rule that predicts values you have never even seen — a skill that forms the foundation for algebra, graphing, and countless real-world applications.