01 / 20

Writing Linear Equations
From Points, Slope & Context

Learn to build the equation \( y = mx + b \) from any starting information: two points, a slope and a point, or a real-world situation.

ACCUPLACER Advanced Algebra & Functions

What Is a Linear Equation?

A linear equation describes a straight line on the coordinate plane. Every point \((x, y)\) on the line satisfies the equation. The most useful form is slope-intercept form:

Reading Slope and Intercept

x y b (y-intercept) run rise
\( m = \frac{\text{rise}}{\text{run}} \)

Why This Matters

Modeling
Linear equations describe constant rates: cost per item, distance per hour, savings per week.
Prediction
Once you have an equation, you can predict any output \( y \) for a given input \( x \).
Test Skill
The ACCUPLACER often gives you points or context and asks for the equation.

The Slope Formula

Given two points \( (x_1, y_1) \) and \( (x_2, y_2) \), the slope of the line through them is:

\( (x_1, y_1) \)
\( (x_2, y_2) \)
\( x_2 - x_1 \)
\( y_2 - y_1 \)

The Point-Slope Form

When you know the slope \( m \) and one point \( (x_1, y_1) \), use point-slope form to build the equation directly:

Two Forms, One Line

Slope-Intercept Point-Slope
Equation\( y = mx + b \)\( y - y_1 = m(x - x_1) \)
Best when you knowslope & y-interceptslope & any point
Shows directlyintercept \( b \)a known point
Used forgraphing fastbuilding from data

How to Write the Equation

1
Find the slope \( m \). If given two points, use \( m = \dfrac{y_2 - y_1}{x_2 - x_1} \).
2
Pick a point. Use either given point with point-slope form \( y - y_1 = m(x - x_1) \).
3
Solve for \( y \). Distribute and isolate \( y \) to get \( y = mx + b \).
4
Check. Substitute a point back in to confirm both sides match.

Example 1: Slope and a Point

Write the equation of the line with slope \( m = 2 \) passing through \( (1, 4) \).

Example 2: From Two Points

Find the equation of the line through \( (2, 3) \) and \( (4, 11) \).

Example 3: From Context

A gym charges a $30 sign-up fee plus $15 per month. Write an equation for total cost \( y \) after \( x \) months.

Common Mistakes

✕ Flipping the slope
Using \( \dfrac{x_2-x_1}{y_2-y_1} \) (run over rise) instead of rise over run.
✕ Order mismatch
Subtracting y-values one way but x-values the other way gives the wrong sign.
✕ Forgetting to distribute
Leaving \( m(x - x_1) \) un-expanded, so \( b \) ends up wrong.
✕ Mixing up m and b
In context problems, treating the fixed fee as the rate, or vice versa.

Choosing Your Starting Point

You are given First step Tool
Slope + y-interceptPlug in directly\( y = mx + b \)
Slope + a pointUse the point\( y - y_1 = m(x - x_1) \)
Two pointsFind slope firstslope formula, then point-slope
A word problemIdentify rate & startrate = \( m \), start = \( b \)

Quick Recap

In context, the constant fee or starting value is \( b \), and the per-unit rate of change is \( m \). Always finish by solving for \( y \) and checking a point.

Question 1 of 5

What is the slope of the line through \( (1, 2) \) and \( (3, 8) \)?

Question 2 of 5

Write the equation of the line with slope \( m = 5 \) and y-intercept \( -2 \).

Question 3 of 5

Find the equation of the line with slope \( m = 2 \) through the point \( (3, 1) \).

Question 4 of 5

Find the equation of the line through \( (0, 4) \) and \( (2, 10) \).

Question 5 of 5

A phone plan costs $40 to start plus $25 per month. Which equation gives total cost \( y \) after \( x \) months?

You Can Write Any Line

From two points, a slope and a point, or a real-world story, you now have a reliable path to \( y = mx + b \). Find the slope, use a point, solve for \( y \), and check.