Deriving Equations from Graphs and Points
From the Algebra 1 curriculum
Deriving Equations from Graphs and Points
TL;DR
You'll learn to write the equation of a line ($y = mx + b$) by finding its slope and y-intercept from either a graph or a set of points. We'll focus on straight lines since that's what you're working on in Algebra 1 right now. This skill is crucial for predicting values and understanding relationships.
1. The Mental Model
Imagine you're giving directions to someone who can only follow a starting point and a consistent turn. In math, that starting point is the y-intercept, and the consistent turn is the slope. We're just translating those directions into an equation.
2. The Core Material
When you're trying to find the equation of a straight line, you're essentially looking for two key pieces of information: its slope ($m$) and its y-intercept ($b$). The standard form for a linear equation is $y = mx + b$.
Understanding Slope ($m$)

Photo by Sergio Zhukov on Pexels
Slope tells you how steep a line is and in what direction it's going. It's often described as "rise over run."
* Rise is the vertical change (change in $y$).
* Run is the horizontal change (change in $x$).
You can calculate slope using two points, $(x_1, y_1)$ and $(x_2, y_2)$, with the formula:
$m = \frac{y_2 - y_1}{x_2 - x_1}$
A positive slope means the line goes up from left to right. A negative slope means it goes down. A slope of zero is a horizontal line, and an undefined slope is a vertical line.
Understanding Y-intercept ($b$)

Photo by Sami Abdullah on Pexels
The y-intercept is where the line crosses the y-axis. At this point, the x-coordinate is always 0. So, it's the point $(0, b)$. It's your starting value or initial condition.
The Process: From Graph to Equation

Photo by Sergey Meshkov on Pexels
graph TD
A["Start with a graph of a line"] --> B{"Is y-intercept (b) clearly visible?"};
B -- "Yes, at (0, b)" --> C["Record b value"];
B -- "No" --> D["Pick two clear points (x1, y1) and (x2, y2) on the line"];
C --> E["Find another clear point (or use one if D was taken)"];
D --> E;
E --> F["Calculate slope m = (y2 - y1) / (x2 - x1)"];
F --> G{"Do you have b yet?"};
G -- "Yes" --> I["Substitute m and b into y = mx + b"];
G -- "No (you only had points)" --> H["Pick one point (x, y) and the calculated m"];
H --> J["Substitute x, y, and m into y = mx + b"];
J --> K["Solve for b"];
K --> I;
I --> L["Your equation is y = mx + b"];
The Process: From Points to Equation

Photo by Monstera Production on Pexels
If you're given two points $(x_1, y_1)$ and $(x_2, y_2)$:
1. Calculate the slope ($m$) using the formula $m = \frac{y_2 - y_1}{x_2 - x_1}$.
2. Find the y-intercept ($b$):
* Take the slope ($m$) you just calculated and one of the given points (either $(x_1, y_1)$ or $(x_2, y_2)$).
* Substitute $m$, $x$, and $y$ into the equation $y = mx + b$.
* Solve the equation for $b$.
3. Write the equation: Once you have both $m$ and $b$, plug them into $y = mx + b$.
3. Worked Example
Let's find the equation of the line that passes through the points $(2, 1)$ and $(5, 7)$.
-
Calculate the slope ($m$):
Let $(x_1, y_1) = (2, 1)$ and $(x_2, y_2) = (5, 7)$.
$m = \frac{7 - 1}{5 - 2} = \frac{6}{3} = 2$
So, the slope $m = 2$. -
Find the y-intercept ($b$):
We have $m = 2$. Let's use the point $(2, 1)$ for $(x, y)$.
Substitute these values into $y = mx + b$:
$1 = (2)(2) + b$
$1 = 4 + b$
Subtract 4 from both sides:
$1 - 4 = b$
$b = -3$
So, the y-intercept $b = -3$. -
Write the equation:
Now that we have $m = 2$ and $b = -3$, plug them into $y = mx + b$:
$y = 2x - 3$
This is the equation of the line.
4. Key Takeaways
- Every straight line can be described by the equation $y = mx + b$.
- The slope ($m$) tells you the line's steepness and direction (rise over run).
- The y-intercept ($b$) is where the line crosses the y-axis, always at $(0, b)$.
- You need two pieces of information (like two points, or one point and the slope) to find a unique line's equation.
- Calculating the slope is usually your first step if you don't already have it.
- Always use the full $y = mx + b$ equation to solve for $b$ once you have $m$ and an $(x, y)$ pair.
Common Mistakes to Avoid:
- Mixing up $x$ and $y$ coordinates in the slope formula or when substituting into $y = mx + b$.
- Forgetting the negative signs when subtracting coordinates.
- Assuming the y-intercept is just any point on the y-axis; it must be where the line crosses it.
- Not isolating $b$ correctly after substituting values into $y = mx + b$.
5. Now Try It
Find the equation of the line that passes through the points $(-3, 4)$ and $(1, -4)$.
What success looks like: You should end up with a fully formed linear equation in the $y = mx + b$ format, with the correct values for $m$ and $b$.
Frequently asked about Deriving Equations from Graphs and Points
Study this next
Get the full Algebra 1 curriculum
Clone the complete plan to your dashboard for unlimited AI-generated notes, practice quizzes, and a personalised revision schedule.
Create Free Account