Writing Linear Equations
\( y = mx + b \)
Learn to write the equation of a line from a graph, table, or real-world context using slope-intercept form.
What Is a Linear Equation?
A linear equation describes a relationship between two variables that forms a straight line when graphed. Every point on the line is a solution to the equation.
The Two Key Ingredients
Why Does This Matter?
Linear equations model countless real-world situations: earning money over time, tracking distance traveled, measuring growth, or comparing phone plans. Writing the equation lets you predict values you haven't observed yet.
The Slope-Intercept Form
Reading \( m \) and \( b \) from a Graph
Positive vs Negative Slope
Writing from a Table
| \( x \) | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| \( y \) | 5 | 8 | 11 | 14 | 17 |
Writing from a Real-World Context
How to Apply the Method
Example 1: From a Graph
Example 2: From a Table
| \( x \) | 2 | 4 | 6 | 8 |
|---|---|---|---|---|
| \( y \) | 1 | 5 | 9 | 13 |
Example 3: Word Problem
Common Mistakes to Avoid
Summary: Three Sources
| Source | How to find \( m \) | How to find \( b \) |
|---|---|---|
| Graph | Count \(\frac{\text{rise}}{\text{run}}\) between two points | Read where line crosses y-axis |
| Table | Compute \( \frac{\Delta y}{\Delta x} \) from two rows | Find \( y \) when \( x = 0 \), or solve for \( b \) |
| Context | Identify the "per" rate | Identify the starting/fixed amount |
Question 1 of 5
A line passes through \((0, 3)\) and \((2, 7)\). What is the equation of the line?
Question 2 of 5
A table shows: when \( x = 1 \), \( y = 10 \); when \( x = 3 \), \( y = 4 \). What is the slope?
Question 3 of 5
A gym charges a $30 sign-up fee plus $15 per month. Which equation represents the total cost \( y \) after \( x \) months?
Question 4 of 5
The equation of a line is \( y = -4x + 12 \). What is the y-intercept?
Question 5 of 5
A line has slope \( \frac{1}{2} \) and passes through the point \((4, 5)\). What is the equation?