To find the function rule from an input-output table, subtract each output from the next to test for a constant rate of change, then express the result as output = (rate × input) + starting value for a linear pattern. Check linearity first, because a single non-constant difference signals a different family entirely, and the arithmetic that follows changes with it. Worked on a real pair of rows, the whole method takes under two minutes for a linear table.
1: Confirm every input appears exactly once. 2: Compute consecutive output differences. 3: Test those differences for constancy. 4: Derive rate and starting value. 5: Write and verify the rule.
The hardest part isn't the arithmetic — it's deciding which pattern family you're looking at before committing to a formula.
Check Four Things Before Doing Any Arithmetic
A table is a function only if each input maps to exactly one output. Scan the input column first: a repeated input sitting next to two different outputs means the relation fails the vertical line test, and the rest of the procedure is wasted. Duplicate inputs with identical outputs are harmless, just redundant.
Ordinal inputs like 1, 2, 3, 4 are the easiest case, but real tables often skip values. Inputs of 0, 5, 10, 15 still work — the difference method tolerates any constant step. Uneven spacing is the trap, and it's the one that breaks careless work most often.
When inputs jump by different amounts, divide each output difference by the matching input gap. That's the rate you compare, not the raw output difference. A 3-unit input jump with a 12-unit output jump gives the same rate as a 1-unit jump producing 4, but the raw numbers look nothing alike.
Sort the rows by input in ascending order before continuing, since the procedure reads left-to-right by definition. And note whether the table's displayed domain tells you anything — inputs from 0 to 6 hint at discrete whole-number data, while a table extending into negatives usually means a rule you can evaluate anywhere.
Name the Rate of Change First, Then the Rule
The rate of change is how much the output moves for each one-unit step in the input, and for a linear table every row must produce the same figure. Subtract consecutive outputs in order, then divide each difference by its matching input step. Five differences that all equal 3 mean the rate is 3 — a fact you can state before you've found the rest of the rule.
Terminology matters here because textbooks mix three labels. The slope of a line is what a graph shows; the rate of change is what the table measures; the constant of variation applies only when the rule is proportional. Layers of vocabulary set tables that are otherwise identical apart, and each label changes which question you answer next.
Most tables in introductory algebra use evenly spaced inputs starting from 1, which makes the first differences themselves the rate. The moment a table starts at input 0, the first difference still works but the next step simplifies considerably. Recognizing both layouts by inspection saves a full round of subtraction.
Write the rate as a single integer or fraction, not a range. "The rate is about 3" hides an arithmetic error, since a linear table produces exactly one rate. If your differences land at 3, 3, 3, 4, the table isn't linear — and the next section handles that case.
Spot the Family Before You Solve
The differences between consecutive outputs tell you which function family a table belongs to, and the first test separates two common and easily confused families. A constant first difference means linear. A constant difference of the differences — the second difference — means quadratic. That distinction decides your next step, and the table below shows how each behaves on small inputs:
| Function type | Rule for the sample table | First differences | Second differences | Key checkpoint | Caution |
|---|---|---|---|---|---|
| Linear | y = 4x + 5 | 4, 4, 4, 4 | Not needed | D1 constant | A single non-4 difference rejects it |
| Quadratic | y = x² + 2x | 3, 5, 7, 9 | 2, 2, 2 | D2 constant, D1 rising | Slower start fooled me at first |
| Exponential | y = 2 × 3ˣ | 4, 12, 36, 108 | Not constant | Ratios 3, 3, 3 | Doubling outputs isn't enough to confirm |
A constant ratio between consecutive outputs, not a constant difference, identifies exponential rules. Ratios of 3, 3, 3 on the sample above point to y = 2 × 3ˣ.
Reading across, the first-difference row is the fastest diagnostic. When it changes once and never settles, the family might not be polynomial at all — absolute value tables drop for negative inputs and rise afterward. Plotting three consecutive points as a sketch on scratch paper often settles the family question faster than more subtraction.
Once the family is established, the general form dictates what to solve for. Linear form is y = mx + b, quadratic form is y = ax² + bx + c, and exponential form is y = a × rˣ. Choose the form before plugging in numbers, not after.
Derive the Rule With the Difference Method
For a linear table, the rule is output = rate × input + starting value, and the starting value is the output paired with input 0. If input 0 appears in the table, read b directly and you're finished. If it doesn't, backtrack with the rate: output at input 0 equals the output at the first listed input minus the rate times that input's distance from 0. Take y = 4x + 5 when input 0 is missing and the first listed pair is (1, 9): backtrack to 9 − 4 × 1 = 5, and you have b.
That backtrack is where most students reverse the subtraction order. Output at input 3 of 17 with a rate of 4 gives b = 17 − 4 × 3 = 5, but someone writes 4 × 3 − 17 and lands on −5. The rule to memorize: multiply the rate by the input, then subtract the product from the output.
If the rate isn't an integer, keep it as a fraction in the written rule. A rate of 2/3 with a starting value of 7 gives y = (2/3)x + 7, and plugging x = 3 back in produces 9, matching any table pair it came from. Rounding the rate to 0.67 introduces error that compounds over larger inputs — a trap in applied work where decimals look tidier.
Check the work by substituting two non-adjacent rows back into the finished rule. Substituting the row you derived from proves nothing; substituting a row three positions away catches multiplication slips. Two independent checks consistent with the rule means the linear model is sound for the whole table.
Work a Full Table in 90 Seconds
Take this input-output table and find its rule with the method above.
| x | y |
|---|---|
| 1 | 9 |
| 2 | 13 |
| 3 | 17 |
| 4 | 21 |
| 5 | 25 |
The consecutive differences are all 4, so the rule is y = 4x + b. Backtrack: 9 − 4 × 1 = 5, so b = 5 and the rule is y = 4x + 5. Check with the far row x = 5: 4 × 5 + 5 = 25, which matches.
The table's pattern is recognizable at a glance — starting at 9 and rising by 4 each time — but the difference method and the backtrack together are what generate the rule rather than a fitted guess. Guessing 9x from the first row produces 13x at x = 2, and that's already wrong at the second row.
For the same table with input 0 omitted, which happens whenever a real data source starts at 1, the backtrack still gives b = 5. The starting value at input 0 sits one row off the top of the table, and the rate supplies the missing 4.
Cost of an error here is obvious. If a student copies the rate as 5 by subtracting y-values alone across an input jump of one, every later evaluation sits high by x, and the check against x = 5 returns 30 instead of 25. The two-row verification exists to catch precisely this.
Solve a Non-Linear Table Without Guessing
When second differences are constant, the rule is quadratic in the form y = ax² + bx + c. The constant second difference equals 2a, so divide by 2 to get a. For y = x² + 2x on the sample table, second differences of 2 give a = 1. Substitute two rows into y = x² + bx + c, then subtract the two equations to isolate b: (3 + b) − (0) from row x = 1 giving 3 + b = 4, so b = 2. With b known, subtract to get c = 0.
That three-step sequence — a from the second difference, b from a row, c from subtraction — solves any quadratic reliably and needs no graph. Each step consumes one row, and the third row pins c.
Exponential tables use ratios instead of differences. A ratio of 3 over consecutive inputs with a starting value of 2 gives y = 2 × 3ˣ, and a starting value of 1/2 with a ratio of 2 gives y = (1/2) × 2ˣ. Ratio detection requires nonzero outputs, so any table touching 0 needs a shift.
If first differences change and second differences change too, the table may belong to a cubic or to no elementary family. Compute third differences before concluding; constant third differences indicate a cubic with a equal to that difference divided by 6. Otherwise state the polynomial isn't the right model and move toward interpolation.
Verify the Rule Against Every Row and the Pattern Family
Plug every row back into the finished rule before declaring it correct. For y = 4x + 5, all five sample rows return their listed outputs, which is the standard the rule must meet. A rule that fits four of five rows is a model, not a function-rule read-out.
For quadratics, verification overshoots faster. The rule y = x² + 2x produces values that rise by increasing amounts, and a single arithmetic slip at x = 3 has no matching value at x = 4. The check catches it.
For irrational-looking rates, keep verification symbolic where possible. Compare your rule's output expression to the listed value and confirm they're equal fractions, not decimals that could falsely match to two places.
Write the domain restriction if the table clearly limits it. A table with inputs 0 through 6 answers the question on that interval; extending the rule into negatives changes what's claimed, so note the range you verified.
Record the Rule as Output = Rate × Input + Starting Value
The convention that survives scrutiny writes the rule in the form output = rate × input + starting value, using letters for the variables and the numbers you derived. y = 4x + 5 follows it, since 4 is the rate and 5 is the starting value. Restating the rule in sentence form adds nothing the symbolic version lacks.
Two rate forms are acceptable in most curricula. Rate times input can be written as 4x or 4·x; convention favors the coefficient form whenever the rate is a single letter or number. When the rule is native to a spreadsheet, an Excel formula reads =4*A2+5, and the same structure mirrors the written form.
Data-driven tables often arrive as a spreadsheet range, and the trendline function is the natural check on the manual result. The manual method above lands on the same coefficients, but checking them against a spreadsheet's linear regression catches an outlier row a hand computation missed. Plenty of real tables carry measurement noise that a clean rule would quietly smooth away.
Label the row number next to each derived step. A later reviewer re-deriving the rule needs to see that b came from 17 − 4 × 3, and the labeling reveals any step whose subtraction went backward. Each labeled step rebuilds in under ten seconds.
Use the Table to Predict, With Its Limits
A fitted linear rule predicts outside the table's inputs, but the prediction isn't a promise. From y = 4x + 5, input 10 predicts 45 and input 100 predicts 405, and both follow from arithmetic, not from the pattern of the sample data. The four steps to produce a prediction are: compute the rate and starting value, write the rule, substitute the target input, and label the prediction as extrapolation.
Extrapolation fails hardest where the underlying process changes. Hours of study and test scores look linear across 0–6 hours but flatten at 12 hours, and a rule fitted on the tight range overpredicts badly.
Interpolation is the safer use. Input 2.5 inside the table's range from 1 to 5 produces 15 in the linear rule, and if the data are genuinely smooth the estimate is sensible.
Check whether the underlying table has physically impossible inputs. Negative hours or distances make a mathematically valid rule worthless as a prediction, and the domain restriction — inputs at or above 0 — prevents the error.
FAQ
What if the input values skip numbers?
Recompute the rate by dividing each output difference by the matching input gap before comparing, and the method works on any evenly spaced inputs. A table with inputs 0, 3, 6, 9 has an input gap of 3, and an output jump of 15 across that gap corresponds to a rate of 5. Don't compare raw output differences on unevenly spaced inputs; the comparison is invalid and produces a rate that's wrong by the gap factor.
Can a table have a rule without being linear, quadratic, or exponential?
Some tables don't belong to a named elementary family, and the honest answer is a polynomial or interpolating model rather than a discovery. First, second, and third differences all failing to settle means the family is cubic or beyond, and the division constant rises to 6 for third differences. If you need a formula regardless, fit a polynomial of degree one less than the number of rows, and label it.
Is the starting value the same as the y-intercept?
Yes for a linear rule, since the y-intercept is by definition the output when input is 0. A table omitting input 0 requires the backtrack described above, and the number you find is the intercept. Qualitative terms like starting value and initial fee are interchangeable with y-intercept in this context, and a textbook that uses only one of the terms is still describing the same quantity.
How do I tell linear from exponential quickly?
Compute consecutive differences and consecutive ratios and check which is constant. Outputs of 3, 7, 11, 15 give a constant difference of 4 and a changing ratio, which means linear. Outputs of 3, 9, 27, 81 give a constant ratio of 3 and a rising difference of 6, 18, 54, which means exponential. Doubling outputs alone proves nothing; only constant ratios do.
What does a constant rate of zero mean?
A rate of zero produces a horizontal line and the rule y = b, where b is any listed output. Every row shares the same output, and the table reads as a constant. It's a valid linear function despite having no growth, and the difference between consecutive outputs is 0 rather than absent.
Can the same input appear twice?
Only if both occurrences share the same output, since a function maps each input to exactly one output. Inputs of 2 paired with 5 and 8 fail the definition, and the table represents a relation, not a function. Remove the duplicate pair before applying the method, or state the failure explicitly as the answer.
How many rows do I need to confirm the rule?
Two rows set a linear rule, and one more nonzero row confirms it — three rows is the minimum for confidence. For quadratics the minimum is three rows to determine a, b, and c, with a fourth row as a check. A linear rule that happens to fit three rows of a quadratic table is possible for a narrow input range, so verify the second-difference check before trusting the linear rule.
Does a spreadsheet trendline give the same answer?
It gives the same coefficient values for linear data when the data are exactly linear and the trendline includes the same rows. Spreadsheets fit least-squares models, and a table with measurement noise produces a coefficient that minimizes error rather than one that passes through every row. The hand method above passes through every row when the table is exact; the spreadsheet answer is a fit, not a read-out, and the distinction matters for published data.