Using a Table to Write down a Two-Variable Equation
How to using a table to write down a two-variable equation, step by step: the rule in plain language, solved examples worked one line at a time, and practice questions so you can try it yourself before moving on.
An input-output table (also called an x-y table) is one of the most direct ways to discover the rule connecting two variables. Once you find the pattern in a table, you can write a two-variable equation that describes every pair of values — and then use that equation to find any missing value. This is a key skill for GED Math, graphing, and real-world problem solving.
What Is a Two-Variable Equation?
A two-variable equation shows how two quantities are related. The most common form is (color{blue}{y = text{ mx } + b}), where x is the input (independent variable), y is the output (dependent variable), m is the rate of change (constant difference), and b is the starting value (y-intercept).
Example: (color{blue}{y = 2x + 1}) means “multiply the input by 2, then add 1 to get the output.”
How to Write a Two-Variable Equation from a Table
Step 1: Identify the pattern in the output column
Find the constant rate of change by subtracting consecutive y-values. If the x-values increase by 1 each row, the difference in y-values is the coefficient of x (the rate m).
Step 2: Find the starting value (b)
Use one row from the table and substitute x and y into (color{blue}{y = text{ mx } + b}) to solve for b.
Step 3: Write the equation
Fill in m and b to write (color{blue}{y = text{ mx } + b}).
Inline Example: Table for (color{blue}{y = 2x + 1})
| x | y |
|---|---|
| 0 | 1 |
| 1 | 3 |
| 2 | 5 |
| 3 | 7 |
Rate of change: y increases by 2 each time x increases by 1, so m = 2.
When (color{blue}{x = 0}), (color{blue}{y = 1}), so b = 1.
Equation: (color{blue}{y = 2x + 1}).
Step-by-Step Summary
- Find the constant difference in the y-values as x increases by 1 — this is m.
- Identify the y-value when (color{blue}{x = 0}) — this is b. (If (color{blue}{x = 0}) is not in the table, substitute any row’s values into (color{blue}{y = text{ mx } + b}) to find b.)
- Write the equation: (color{blue}{y = text{ mx } + b}).
- Verify using a second row from the table.
Watch: Two-Variable Linear Equations and Their Graphs (Khan Academy)
This Khan Academy lesson connects tables, equations, and graphs for two-variable equations:
Worked Examples
Example 1: Write the equation for this table.
| x | y |
|---|---|
| 1 | 1 |
| 2 | 4 |
| 3 | 7 |
Rate (color{blue}{m = (4-1) = 3}). Use (1, 1): (color{blue}{1 = 3(1) + b}) → (color{blue}{b = -2}).
Equation: (color{blue}{y = 3x – 2}). Verify (color{blue}{x=3}): (color{blue}{3(3)-2 = 7}) ✓
Example 2: Find the equation for a table where x goes 0, 1, 2, 3 and y goes 5, 8, 11, 14.
Rate (color{blue}{m = 3}). (color{blue}{b = 5}) (when (color{blue}{x = 0}), (color{blue}{y = 5})).
Equation: (color{blue}{y = 3x + 5}).
Example 3: A phone plan charges a flat fee of $10 plus $5 per gigabyte. Write the two-variable equation and complete the table.
Equation: (color{blue}{y = 5x + 10}) where (color{blue}{x = text{ gigabytes }}), (color{blue}{y = text{ total }}) cost.
(color{blue}{x = 0}): $10; (color{blue}{x = 1}): $15; (color{blue}{x = 2}): $20; (color{blue}{x = 3}): $25.
Example 4: Given the equation (color{blue}{y = 2x + 1}), find y when (color{blue}{x = 4}).
(color{blue}{y = 2(4) + 1 = 9}).
More Practice: Solving Equations (Math with Mr. J)
Math with Mr. J reviews the skills you need to substitute and solve in two-variable contexts:
Exercises
Write the two-variable equation for each table, then use it to find the missing value.
- x: 0, 1, 2, 3 | y: 3, 5, 7, 9. What is y when (color{blue}{x = 5})?
- x: 1, 2, 3, 4 | y: 2, 5, 8, 11. What is y when (color{blue}{x = 6})?
- x: 0, 1, 2, 3 | y: 0, 4, 8, 12. What is y when (color{blue}{x = 10})?
- x: 2, 4, 6, 8 | y: 7, 11, 15, 19. Write the equation.
- Use (color{blue}{y = 5x – 3}): find y when (color{blue}{x = 4}).
- Use (color{blue}{y = 2x + 6}): find x when (color{blue}{y = 20}).
Answers
- (color{blue}{y = 2x + 3}); when (color{blue}{x = 5}): (color{blue}{y = 13})
- (color{blue}{y = 3x – 1}); when (color{blue}{x = 6}): (color{blue}{y = 17})
- (color{blue}{y = 4x}); when (color{blue}{x = 10}): (color{blue}{y = 40})
- (color{blue}{y = 2x + 3}) ((color{blue}{m = frac{(11-7)}{(4-2)} = 2}); b: (color{blue}{7 = 2(2)+b}) → (color{blue}{b = 3}))
- (color{blue}{y = 5(4)-3 = 17})
- (color{blue}{20 = 2x+6 rightarrow x = 7})
Frequently Asked Questions
What is the difference between independent and dependent variables?
The independent variable (x) is the input you control or select. The dependent variable (y) is the output whose value depends on x. In the equation (color{blue}{y = 3x + 2}), x is independent and y is dependent.
What if the rate of change is not constant in the table?
If the differences in y are not constant as x increases by equal steps, the relationship is not linear and cannot be written as (color{blue}{y = text{ mx } + b}). You would need a different type of equation (quadratic, exponential, etc.).
Do I always need (color{blue}{x = 0}) in the table to find b?
No. You can use any row. Substitute the x and y values from that row along with the slope m into (color{blue}{y = text{ mx } + b}) and solve for b.
Related Topics
Related to This Article
More math articles
- CLEP U.S. History I 076: Popular Print, Minstrelsy, and Contested Mass Culture
- Free Grade 7 English Worksheets for Ohio Students
- How to Graph Inverse Trigonometric Functions?
- Alaska AK STAR Grade 7 Math Worksheets: 95 Printable PDFs with Worked Examples & Answer Keys
- Top 10 ALEKS Math Prep Books (Our 2023 Favorite Picks)
- Price elasticity of demand uses a magnitude
- Individualism
- Farmers’ Alliances, Populism, and the Realignment of 1896
- The Ultimate 7th Grade OAA Math Course (+FREE Worksheets)
- Free Grade 6 English Worksheets for Indiana Students






















What people say about "Using a Table to Write a Two-Variable Equation"?
No one replied yet.