Slope and Y-Intercept- Writing Linear Equations Made Easy
What Slope and Y-Intercept Actually Mean
Before you can write linear equations, you need to understand what you're actually working with. Slope measures how steep a line is. Y-intercept is where the line crosses the y-axis.
That's it. Two concepts. Once you see them clearly, the algebra practically solves itself.
The Slope-Intercept Form
Every linear equation you write should end up in this form:
y = mx + b
Where:
- m = slope (rise over run)
- b = y-intercept (where the line hits the y-axis)
This is the most useful form because it tells you everything about a line at a glance.
How to Find Slope From Two Points
Given two points (xβ, yβ) and (xβ, yβ), the slope formula is:
m = (yβ - yβ) / (xβ - xβ)
Let's work through a real example. Points: (2, 3) and (6, 11)
m = (11 - 3) / (6 - 2) = 8 / 4 = 2
Positive slope means the line goes up as you move right. Negative slope means it goes down. A slope of zero is a flat horizontal line.
Slope Quick Reference
- Slope = 2 β rises 2 units for every 1 unit right
- Slope = -3 β falls 3 units for every 1 unit right
- Slope = 0 β horizontal line
- Slope = undefined β vertical line (you can't divide by zero)
Finding the Y-Intercept
The y-intercept is the value of y when x = 0. That's all it is.
If you have the equation y = 2x + 5, the y-intercept is 5. The point is (0, 5).
Sometimes you need to find it. If you know the slope and one point on the line, plug in what you know and solve for b.
Example: slope = 3, point = (2, 7)
7 = 3(2) + b
7 = 6 + b
b = 1
Writing Linear Equations: Four Common Situations
1. Given Slope and Y-Intercept
Easiest case. Just plug into y = mx + b.
Slope = 4, y-intercept = -2
Answer: y = 4x - 2
2. Given Slope and One Point
Use point-slope form first, then rearrange.
Slope = -1, point = (3, 5)
y - 5 = -1(x - 3)
y - 5 = -x + 3
y = -x + 8
3. Given Two Points
Find the slope first, then find the y-intercept.
Points: (1, 2) and (4, 8)
Slope: m = (8 - 2) / (4 - 1) = 6/3 = 2
Using point (1, 2): 2 = 2(1) + b β b = 0
Answer: y = 2x
4. Given a Table of Values
Pick any two x,y pairs to find slope. Then use one pair to find b.
| x | y |
|---|---|
| 0 | 4 |
| 2 | 10 |
| 5 | 19 |
m = (10 - 4) / (2 - 0) = 6/2 = 3
Since x = 0 gives y = 4, the y-intercept is 4
Answer: y = 3x + 4
Point-Slope Form: When to Use It
Point-slope form is:
y - yβ = m(x - xβ)
Use this when you know the slope and one point. It's often easier than solving for b directly, especially when the point has ugly coordinates.
Practical How-To: Writing Any Linear Equation
Follow this decision tree:
- Do you have the slope? If no, find it from two points or a graph.
- Do you have the y-intercept? If yes β plug into y = mx + b. If no β find it using one point.
- Write your equation. Rearrange to y = mx + b if needed.
Getting Started Checklist
- Identify two points or the slope value from the given information
- Calculate slope using m = (yβ - yβ) / (xβ - xβ) if needed
- Find the y-intercept by solving for b
- Write the final equation as y = mx + b
- Verify by plugging in a point
Forms of Linear Equations Compared
| Form | Equation | Best Used When |
|---|---|---|
| Slope-Intercept | y = mx + b | You know slope and intercept |
| Point-Slope | y - yβ = m(x - xβ) | You know slope and one point |
| Standard Form | Ax + By = C | Working with integers, intercepts |
| Two-Point Form | (y - yβ)/(x - xβ) = (yβ - yβ)/(xβ - xβ) | You have two points only |
Common Mistakes to Avoid
- Sign errors when calculating slope. Double-check yβ - yβ and xβ - xβ.
- Forgetting to distribute when using point-slope form.
- Confusing x and y when finding intercepts.
- Vertical lines have undefined slope, not zero. Remember: slope = rise/run. Vertical lines have no run.
Final Take
Writing linear equations comes down to two numbers: slope and y-intercept. Get those right, plug them in, and you're done. The formulas exist to serve youβdon't memorize them as rituals. Understand what each one does and use the right tool for the given information.