Using a Table to Write down a Two-Variable Equation

Using a Table to Write down a Two-Variable Equation

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).

Original price was: $27.99.Current price is: $17.99.
Satisfied 91 Students

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}\)

xy
01
13
25
37

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

  1. Find the constant difference in the y-values as x increases by 1 — this is m.
  2. 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.)
  3. Write the equation: \(\color{blue}{y = \text{ mx } + b}\).
  4. 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.

xy
11
24
37

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.

  1. x: 0, 1, 2, 3 | y: 3, 5, 7, 9. What is y when \(\color{blue}{x = 5}\)?
  2. x: 1, 2, 3, 4 | y: 2, 5, 8, 11. What is y when \(\color{blue}{x = 6}\)?
  3. x: 0, 1, 2, 3 | y: 0, 4, 8, 12. What is y when \(\color{blue}{x = 10}\)?
  4. x: 2, 4, 6, 8 | y: 7, 11, 15, 19. Write the equation.
  5. Use \(\color{blue}{y = 5x – 3}\): find y when \(\color{blue}{x = 4}\).
  6. Use \(\color{blue}{y = 2x + 6}\): find x when \(\color{blue}{y = 20}\).

Answers

  1. \(\color{blue}{y = 2x + 3}\); when \(\color{blue}{x = 5}\): \(\color{blue}{y = 13}\)
  2. \(\color{blue}{y = 3x – 1}\); when \(\color{blue}{x = 6}\): \(\color{blue}{y = 17}\)
  3. \(\color{blue}{y = 4x}\); when \(\color{blue}{x = 10}\): \(\color{blue}{y = 40}\)
  4. \(\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}\))
  5. \(\color{blue}{y = 5(4)-3 = 17}\)
  6. \(\color{blue}{20 = 2x+6 \rightarrow x = 7}\)
Original price was: $109.99.Current price is: $54.99.

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

What people say about "Using a Table to Write down a Two-Variable Equation - Effortless Math: We Help Students Learn to LOVE Mathematics"?

No one replied yet.

Leave a Reply

X
51% OFF

Limited time only!

Save Over 51%

Take It Now!

SAVE $55

It was $109.99 now it is $54.99

The Ultimate Algebra Bundle: From Pre-Algebra to Algebra II