01 / 20

Writing
Linear Equations

Master writing equations in slope-intercept and point-slope form from two points, a point and slope, or a real-world context.

Math 1

What Is a Linear Equation?

A linear equation describes a straight-line relationship between two variables. Every point \((x, y)\) on the line satisfies the equation. The two most useful forms are:

Slope-Intercept
\( y = mx + b \)
where \( m \) = slope, \( b \) = \( y \)-intercept
Point-Slope
\( y - y_1 = m(x - x_1) \)
where \( (x_1, y_1) \) is any point on the line

Understanding Slope

Slope measures steepness: the ratio of vertical change (rise) to horizontal change (run) between any two points on a line.

x y 1 2 3 4 5 1 2 3 4 5 (1, 1) (4, 4) rise = 3 run = 3

The \(y\)-Intercept

The \(y\)-intercept is where the line crosses the \(y\)-axis. At this point \(x = 0\). In \(y = mx + b\), the constant \(b\) is the \(y\)-intercept.

x y -1 1 2 3 1 2 3 4 -1 (0, 1) b = 1

Slope-Intercept Form: \(y = mx + b\)

This is the most common form. It reveals two things at a glance:

\(m\) : Slope
The rate of change: how much \(y\) changes for each unit increase in \(x\).
\(b\) : \(y\)-Intercept
The starting value of \(y\) when \(x = 0\).

Point-Slope Form: \(y - y_1 = m(x - x_1)\)

Point-slope form is ideal when you know the slope and any one point on the line. No need to solve for \(b\) first.

1
Identify a point \((x_1, y_1)\) and the slope \(m\).
2
Substitute directly into \(y - y_1 = m(x - x_1)\).
3
Simplify to slope-intercept form if the problem requires it.

When to Use Which Form?

Given Information Best Form Why?
Slope + \(y\)-intercept \(y = mx + b\) Plug in directly
Slope + one point \(y - y_1 = m(x - x_1)\) No need to find \(b\)
Two points Find \(m\), then either Compute slope first
Real-world context Identify \(m\) and a point Rate = slope, known value = point

How to Write a Linear Equation

1
Identify what's given: two points? a point and slope? a verbal description?
2
Find the slope \(m\). If two points are given, use \(\displaystyle m = \frac{y_2 - y_1}{x_2 - x_1}\). In a context, the slope is the rate of change.
3
Choose a form. If you know \(b\), use \(y = mx + b\). Otherwise, pick a known point and use point-slope.
4
Substitute your values and simplify.
5
Check: plug a known point back in. Both sides should be equal.

Example 1: From Two Points

Problem: Write the equation of the line through \((1, 2)\) and \((4, 8)\).

x y 1 2 3 4 5 6 2 4 6 8 (1, 2) (4, 8) rise = 6 run = 3

Example 2: From a Point and Slope

Problem: Write the equation of the line with slope \(m = -\frac{3}{4}\) passing through \((4, 1)\).

1
Given: \(m = -\frac{3}{4}\), point \((4, 1)\).
2
Point-slope: \(y - 1 = -\frac{3}{4}(x - 4)\).
3
Distribute: \(y - 1 = -\frac{3}{4}x + 3\).
4
Solve for \(y\): \(y = -\frac{3}{4}x + 4\).

Example 3: From a Real-World Context

Problem: A plumber charges a $50 service fee plus $30 per hour. Write an equation for the total cost \(C\) after \(h\) hours.

Rate of Change
$30 per hour is the slope: \(m = 30\)
Starting Value
$50 service fee is the \(y\)-intercept: \(b = 50\)

Example 4: Context with Two Data Points

Problem: A candle is 12 inches tall after 1 hour and 6 inches tall after 4 hours. Write an equation for height \(h\) after \(t\) hours.

1
Points: \((1, 12)\) and \((4, 6)\).
2
Slope: \(\displaystyle m = \frac{6 - 12}{4 - 1} = \frac{-6}{3} = -2\) inches per hour.
3
Point-slope with \((1, 12)\): \(h - 12 = -2(t - 1)\).
4
Simplify: \(h = -2t + 14\).

Why Does Point-Slope Work?

Point-slope form comes directly from the definition of slope. If a line has slope \(m\) and passes through \((x_1, y_1)\), then for any other point \((x, y)\) on the line:

That's it. Point-slope form is the slope formula rearranged. Every point on the line makes the equation true; every point off the line does not.

Common Mistakes to Avoid

✕ Swapping Rise and Run
Writing \(\frac{x_2 - x_1}{y_2 - y_1}\) instead of \(\frac{y_2 - y_1}{x_2 - x_1}\). Remember: slope is rise over run.
✕ Sign Errors in Point-Slope
Writing \(y + 3\) instead of \(y - (-3)\) when \(y_1 = -3\). Watch the double negative.
✕ Mismatching Coordinates
Using the \(x\) from one point and the \(y\) from another. Always use \(x\) and \(y\) from the same point.

Summary of Forms

Feature Slope-Intercept Point-Slope
Formula \(y = mx + b\) \(y - y_1 = m(x - x_1)\)
You need Slope + \(y\)-intercept Slope + any point
Best for Graphing quickly Writing from given info
Shows directly Where line crosses \(y\)-axis That a specific point is on the line
Convert to other Substitute \((0, b)\) into PS Distribute and solve for \(y\)

Question 1 of 5

What is the slope of the line through \((2, 3)\) and \((6, 11)\)?

Question 2 of 5

Write the equation of the line with slope \(m = 3\) passing through \((1, 5)\) in slope-intercept form.

Question 3 of 5

A line passes through \((-1, 4)\) and \((3, -2)\). What is the equation in slope-intercept form?

Question 4 of 5

A gym membership costs $25 per month plus a $40 sign-up fee. Which equation models the total cost \(C\) after \(m\) months?

Question 5 of 5

Which equation in point-slope form represents the line through \((5, -2)\) with slope \(\frac{1}{3}\)?