How to Write Linear Functions from Tables
A Step-by-step Guide to Writing Linear Functions from Tables
Here is a step-by-step guide on how to write linear functions from tables:
Quick answer: To write a linear function from a table, use two rows to find the slope: m = (change in y) ÷ (change in x). Find b, the y-value at x = 0, or use b = y − mx. Write f(x) = mx + b. Example: rows (1, 3) and (2, 5) give m = 2 and b = 3 − 2 = 1, so f(x) = 2x + 1.
Step 1: Identify the Variables
The first step in writing a linear function from a table is identifying the variables. Typically, tables for linear functions feature two columns, one for each variable ((x) and (y)).
Step 2: Determine the Slope
The slope ((m)) of a line is the rate at which (y) changes for each change in (x). To find the slope, subtract the (y)-value of the second row from the (y)-value of the first row. Then subtract the x-value of the second row from the (x)-value of the first row. Dividing these two differences gives you the slope: (m =frac{y2 – y1}{x2 – x1}).
Step 3: Calculate the Y-Intercept
The y-intercept ((b)) is the point at which the line crosses the (y)-axis. This point can be directly seen in the table as the (y)-value when (x) equals zero. If the (x = 0) value isn’t available in the table, you can use the slope ((m)) and one set of coordinates ((x, y)) from the table to solve for (b) using the formula: (b=y-mx).
Example: Creating a Linear Function from a Table
Consider the following table:
| x | y |
| 1 | 3 |
| 2 | 5 |
| 3 | 7 |
| 4 | 9 |
To determine the slope, subtract the (y)-values ((5-3=2)) and the (x)-values ((2-1=1)) between the first two rows. The slope (m=frac{2}{1}=2).
For the y-intercept, you can see when (x =1, y=3). Using the slope ((2)), and substituting (x (1)) and (y (3)) into the formula (b=y-mx), we find that (b=3-2times 1 = 1).
Thus, the linear function corresponding to this table is (f(x)=2x+1) or simply, (f(x)=2x+1).
The Real-World Relevance of Linear Functions
Understanding how to write linear functions from tables is not just critical in mathematics but also in real-world scenarios. These scenarios include predicting sales growth, estimating profit margins, and even modeling natural phenomena such as population growth.
How to Tell If a Table Is Linear
Before you write an equation, make sure the table really shows a linear function. Find the change in y and the change in x between each pair of rows, then divide. If the result is the same every time, the table is linear and that number is the slope.
| x | y | Change in x | Change in y | Rate |
|---|---|---|---|---|
| 1 | 4 | |||
| 2 | 7 | 1 | 3 | 3 |
| 4 | 13 | 2 | 6 | 3 |
| 7 | 22 | 3 | 9 | 3 |
The x-values jump by different amounts, but the rate is always 3, so the table is linear. Using b = y − mx with the row (1, 4): b = 4 − 3 × 1 = 1, so f(x) = 3x + 1. Check the last row: 3 × 7 + 1 = 22.
Now look at x = 1, 2, 3, 4 with y = 1, 4, 9, 16. The y-values change by 3, 5 and 7, so the rate is not constant. This table is not linear (it follows y = x²).
Another Example: Negative Slope, No x = 0 Row
Write a linear function for this table: x = 2, 4, 6, 8 and y = 11, 5, −1, −7.
- Slope: between (2, 11) and (4, 5), m = (5 − 11) ÷ (4 − 2) = −6 ÷ 2 = −3. The other rows give −3 as well.
- Y-intercept: there is no x = 0 row, so use b = y − mx with (2, 11): b = 11 − (−3)(2) = 11 + 6 = 17.
- Function: f(x) = −3x + 17.
- Check: f(8) = −24 + 17 = −7, which matches the table.
Common mistakes: dividing change in x by change in y (flip it back), subtracting the rows in a different order on the top and bottom, and forgetting that subtracting a negative slope times x adds to y.
Frequently Asked Questions
How do you tell if a function is linear from a table?
Find the change in y divided by the change in x between each pair of rows. If that rate is the same every time, the function is linear. If the x-values go up by 1 each time, you can simply check whether the y-values go up or down by the same amount each step.
How do you write a linear function?
A linear function has the form f(x) = mx + b. Find the slope m, which is the rate of change, and the y-intercept b, which is the output when x = 0. Then put both numbers into the form. For a slope of 4 and a y-intercept of −2, the function is f(x) = 4x − 2.
What if the table does not include x = 0?
Use the slope and any row of the table. Substitute into b = y − mx. For example, if m = 5 and one row is (3, 20), then b = 20 − 5 × 3 = 5, so f(x) = 5x + 5. You can also extend the table backward, step by step, until you reach x = 0.
Can the slope from a table be a fraction or negative?
Yes. If y drops as x grows, the slope is negative. If y changes by 3 while x changes by 4, the slope is 3/4. For a table with rows (0, 2) and (4, 5), the function is f(x) = (3/4)x + 2.
What is a linear table?
A linear table is an input-output table where the output changes by a constant amount for each unit change in the input. When you plot its rows on a coordinate plane, the points fall on a straight line, and that line is the graph of the function f(x) = mx + b.
Related to This Article
More math articles
- A Deep Dive Into The World of Vector-Valued Function
- Accuplacer Math: How to Place Out of Remedial Courses
- Samples, Populations, and Bias
- Political Parties, Campaigns, and Elections
- Political Ideology and Social Policy: Values and Program Design
- Federalist No. 10 and factions
- What Is a Good ALEKS Score?
- Math, Graphs, and Economic Reasoning
- How to Read and Interpret Graphs: Bar, Line, Pie & Scatter
- CLEP College Math FREE Sample Practice Questions












What people say about "How to Write a Linear Function from a Table (Examples)"?
No one replied yet.