A table of values, also called an x and y table, an input–output table or a function table, lists inputs in one column and the outputs a rule gives for them in the next. The method is the same for a linear equation, a quadratic or any other function, so this guide starts with a line, then a parabola, and finishes with practice questions you can check in the table of values calculator.
How to make a table of values in 5 steps
Write the equation with y on its own
A table is easiest when the rule reads or . If it does not, solve for y first: becomes .
Choose the x-values
Pick a start, an end and a step. For a line, five values around 0, such as −2, −1, 0, 1 and 2, are enough. For a curve, cover the part you care about. With step h the table has (end − start)/h + 1 rows.
Substitute each x-value
Replace x with the number and work out y, one row at a time. Put negative inputs in parentheses, so in is written .
Write the pairs in the table
Put x in the first column and y in the second. Each row is one ordered pair (x, y). Add a third column if you want to compare a second function.
Plot the points and check the pattern
Plot every pair and join them: a straight line for a linear equation, a smooth curve otherwise. A point that is off the pattern usually means an arithmetic slip in that row.
Example 1: a table of values for a linear equation
Make a table of values for with x from −2 to 2 and a step of 1. That is (2 − (−2))/1 + 1 = 5 rows. The first row is:
| x | y = 2x + 1 | Ordered pair |
|---|---|---|
| −2 | −3 | (−2, −3) |
| −1 | −1 | (−1, −1) |
| 0 | 1 | (0, 1) |
| 1 | 3 | (1, 3) |
| 2 | 5 | (2, 5) |
Every time x goes up by 1, y goes up by 2. That constant difference is the slope, and the row x = 0 gives the y-intercept, 1. Plot the five points and they lie on one straight line, which is the graph of .
Example 2: a table of values for a quadratic function
Now take from −2 to 4 with step 1, which gives (4 − (−2))/1 + 1 = 7 rows. Each value is a direct substitution:
A second column for the line lets you compare the two functions row by row:
| x | f(x) = x² − 2x − 3 | g(x) = x + 1 |
|---|---|---|
| −2 | 5 | −1 |
| −1 | 0 | 0 |
| 0 | −3 | 1 |
| 1 | −4 | 2 |
| 2 | −3 | 3 |
| 3 | 0 | 4 |
| 4 | 5 | 5 |
Here is what the table tells you:
- Roots. f(x) = 0 at x = −1 and x = 3, so these are the x-intercepts. Indeed, .
- Turning point. The values fall to −4 at x = 1 and then rise again, symmetrically: f(0) = f(2) and f(−1) = f(3). The vertex is (1, −4).
- Where f and g are equal. The columns match at x = −1 (both 0) and x = 4 (both 5). Solving gives , which confirms both.
- Where f is below g. In every row between those two, f(x) is smaller than g(x), so f(x) < g(x) for −1 < x < 4.
From the table to the graph
Plot each row as a point (x, y), then join the points. To tell which shape to draw before you plot, look at how the y-values change from row to row when the x-values are equally spaced:
- Equal first differences mean a line. For the y-values −3, −1, 1, 3, 5 go up by 2 each time, so join the points with a ruler.
- Equal second differences mean a parabola. For the first differences are −5, −3, −1, 1, 3, 5, and the differences of those are all 2. Draw a smooth U-shaped curve through the points.
- Anything else means a different curve. Use more rows, or a smaller step, until the shape is clear, then check it on the graphing calculator.
How to write the equation from a table of values
You can also work backwards. If the x-values go up by 1 and the y-values go up by the same amount d each time, the rule is linear with slope d. The y-value in the row x = 0 is the intercept b, so the equation is . For the table x = 0, 1, 2, 3 and y = 4, 7, 10, 13, the y-values rise by 3 and start at 4, so . Check one more row: . When x goes up in steps of h instead of 1, the slope is d/h.
Zooming in with a smaller step
Roots are not always whole numbers. For , a step of 1 shows a sign change between x = 1 (value −1) and x = 2 (value 2). Rerun that interval with step 0.1 and the sign changes between x = 1.4 (−0.04) and x = 1.5 (0.25). A step of 0.01 narrows it further to between 1.41 (−0.0119) and 1.42 (0.0164), consistent with .
Make a table of values with a calculator
- Table of values calculator: enter the function, the start, the end and the step, then choose Calculate. It shows the substitution for the first rows, keeps exact fractions, marks roots and turning points, and can add a second function as a comparison column.
- Graphing calculator: plot
y = x^2 - 2x - 3andy = x + 1to see the same story as curves. The Key points panel lists the intercepts, the minimum (1, −4) and the intersections (−1, 0) and (4, 5). - Scientific calculator: for a handful of rows, define
f(x) := x^2 - 2x - 3once, then evaluatef(-2),f(-1)and so on. - A handheld calculator. On a TI-84 Plus, type the function in Y=, set the start and step in TBLSET (2nd WINDOW) and open TABLE (2nd GRAPH). On a TI-36X Pro, press table, choose Edit function, then enter the start and step.
Make a table of values for one or two functions with any start, end and step.
Practice: make these tables of values
Make each table by hand, then open the link to check every row in the calculator.
- y = 3x − 2, x = −1 to 3, step 1. Answer: y = −5, −2, 1, 4, 7. Check y = 3x − 2 in the calculator
- y = 4 − x, x = −2 to 2, step 1. Answer: y = 6, 5, 4, 3, 2. The line falls by 1 per row, so its slope is −1. Check y = 4 − x in the calculator
- 2x + y = 6, x = 0 to 3, step 1. Solve for y first: . Answer: y = 6, 4, 2, 0. Check y = 6 − 2x in the calculator
- y = x², x = −3 to 3, step 1. Answer: y = 9, 4, 1, 0, 1, 4, 9. The table is symmetric about x = 0. Check y = x² in the calculator
- f(x) = x³ − 4x, x = −3 to 3, step 1. Answer: f(x) = −15, 0, 3, 0, −3, 0, 15, with roots at x = −2, 0 and 2. Check x³ − 4x in the calculator
Common mistakes
- Not solving for y first. In , substituting x = 1 does not give y directly; rewrite it as before you start the table.
- Squaring negative inputs without parentheses. , but . When you type a row by hand, write
(-2)^2. - A step that is too large. If two roots fall between neighboring rows, both rows can have the same sign and the roots go unnoticed. is 0 at x = 0 and x = 1, yet with start −0.5 and step 2, the rows x = −0.5 and x = 1.5 both show 0.75.
- The wrong angle unit for trigonometric functions. sin(30) is 0.5 in degrees but about −0.988 in radians. The table of values calculator uses radians, so enter 30° as
pi/6. - Reading every sign change as a root. changes sign between x = −1 and x = 1 but has no root at all; it is undefined at 0.