Equation of a Line
Three Essential Forms
Master slope-intercept, point-slope, and standard form: when to use each, how to convert between them, and how to read a line's story from its equation.
What Is a Linear Equation?
A linear equation in two variables is any equation whose graph is a straight line. Every point \((x, y)\) on the line satisfies the equation, and every solution of the equation lies on the line.
There are three standard ways to write the same line. Each form highlights different information and is useful in different situations.
Quick Review: Slope
The slope of a line measures its steepness and direction. Given two points \((x_1, y_1)\) and \((x_2, y_2)\):
The Three Forms at a Glance
Shows slope and y-intercept directly
Built from a point and the slope
Integer coefficients, clean intercepts
Slope-Intercept Form: \(y = mx + b\)
Point-Slope Form: \(y - y_1 = m(x - x_1)\)
When you know one point on the line, \((x_1, y_1)\), and the slope \(m\), plug straight into point-slope form. No need to solve for \(b\) first.
Standard Form: \(Ax + By = C\)
Standard form uses integer coefficients with \(A \ge 0\). It makes finding both intercepts quick and appears frequently in systems of equations.
When to Use Which Form?
| You Know... | Best Form | Why |
|---|---|---|
| Slope + y-intercept | \(y = mx + b\) | Plug in directly |
| Slope + any point | \(y - y_1 = m(x - x_1)\) | No need to find \(b\) |
| Two points | Point-slope (after finding \(m\)) | Use either point as \((x_1,y_1)\) |
| Need integer coefficients | \(Ax + By = C\) | Clean form for systems |
Converting Between Forms
Step-by-Step Strategy
Example 1: Slope-Intercept
Problem: Write the equation of a line with slope \(m = \frac{3}{4}\) and y-intercept \(b = -2\).
Example 2: Point-Slope
Problem: Write the equation of a line through \((3, -1)\) with slope \(m = 2\). Give the answer in slope-intercept form.
Example 3: Two Points to Standard Form
Problem: Find the equation of the line through \((-1, 4)\) and \((3, -2)\) in standard form.
Conversion Roadmap
Common Mistakes
Summary Comparison
| Feature | Slope-Intercept | Point-Slope | Standard |
|---|---|---|---|
| Formula | \(y = mx + b\) | \(y - y_1 = m(x - x_1)\) | \(Ax + By = C\) |
| Shows slope? | Yes (\(m\) directly) | Yes (\(m\) directly) | Compute: \(-\frac{A}{B}\) |
| Shows y-intercept? | Yes (\(b\) directly) | After simplifying | Compute: \(\frac{C}{B}\) |
| Best for | Graphing quickly | Building from data | Systems, intercepts |
Question 1 of 5
What is the slope and y-intercept of the line \(y = -3x + 7\)?
Question 2 of 5
Which equation represents the line through \((4, -2)\) with slope \(m = \frac{1}{2}\) in point-slope form?
Question 3 of 5
Convert \(y = \frac{2}{5}x - 3\) to standard form \(Ax + By = C\).
Question 4 of 5
A line passes through \((1, 5)\) and \((4, -1)\). What is its equation in slope-intercept form?
Question 5 of 5
The equation \(6x + 3y = 18\) has a y-intercept of: