01 / 21

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.

College Algebra

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)\):

Positive slope
Line rises left to right: \(m > 0\)
Negative slope
Line falls left to right: \(m < 0\)
Zero slope
Horizontal line: \(m = 0\)

The Three Forms at a Glance

Slope-Intercept
\(y = mx + b\)
Shows slope and y-intercept directly
Point-Slope
\(y - y_1 = m(x - x_1)\)
Built from a point and the slope
Standard Form
\(Ax + By = C\)
Integer coefficients, clean intercepts

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

x y 1 2 3 4 1 2 3 \(b = 1\) run = 3 rise = 2 \(m = \tfrac{2}{3}\)

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.

x y 1 2 3 4 1 2 3 \((2, 3)\) +1 −1 \((3, 2)\)

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.

1
\(A\), \(B\), and \(C\) are integers (no fractions)
2
\(A \ge 0\): the coefficient of \(x\) is non-negative
3
x-intercept: set \(y = 0\) and solve \(Ax = C\)
4
y-intercept: set \(x = 0\) and solve \(By = C\)

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

1
Point-slope → Slope-intercept: distribute \(m\), then add \(y_1\) to both sides to isolate \(y\)
2
Slope-intercept → Standard: move \(mx\) to the left side, multiply to clear fractions, ensure \(A \ge 0\)
3
Standard → Slope-intercept: solve for \(y\):  \(y = -\frac{A}{B}x + \frac{C}{B}\)

Step-by-Step Strategy

1
Identify the given info: slope, y-intercept, one or two points?
2
If two points: compute slope $$m = \frac{y_2 - y_1}{x_2 - x_1}$$
3
Choose the best form: have \(b\)? use slope-intercept. Have a point? use point-slope.
4
Substitute your values into the chosen formula
5
Simplify and convert to the required form if the problem asks for a specific format

Example 1: Slope-Intercept

Problem: Write the equation of a line with slope \(m = \frac{3}{4}\) and y-intercept \(b = -2\).

x y 1 2 3 4 5 1 2 −1 −2 −3 \((0, -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

Slope-Intercept \(y = mx + b\) Point-Slope \(y - y_1 = m(x - x_1)\) Standard Form \(Ax + By = C\) distribute, isolate y move terms, clear fractions solve for y via slope-intercept

Common Mistakes

✕ Sign errors in point-slope
Writing \(y - (-1)\) as \(y - 1\) instead of \(y + 1\). Always use parentheses around negative coordinates.
✕ Forgetting to clear fractions
Leaving \(\frac{1}{2}x + y = 3\) as "standard form." All coefficients \(A\), \(B\), \(C\) must be integers.
✕ Negative \(A\) in standard form
Writing \(-2x + y = 5\). Convention requires \(A \ge 0\): multiply by \(-1\) to get \(2x - y = -5\).

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: