Algebra › Section C · Graphs and functions › Topic C.3

Equations of lines, parallel and perpendicular

A line is fixed the moment you know its slope and one point on it. This topic turns that fact into the standard forms used to write equations, and reads the slopes that tell lines apart as parallel or perpendicular.

Describing a line exactly

Saying "a fairly steep line through that point" does not pin a line down; an equation does. Every non-vertical line is completely determined by its slope and a single point it passes through, so a line's equation is really just that information written in algebra. Two standard forms do the writing. Which one to reach for depends on what you are handed: an intercept calls for slope-intercept form, any other point for point-slope form. Parallel and perpendicular relationships, meanwhile, are slope statements, so the first job in those problems is always reading the slope.

Slope-intercept form

The form

y = mx + b

displays a line's two headline numbers: the slope \(m\) and the y-intercept \(b\). Reading it is direct: \(y = -4x + 9\) has slope \(-4\) and crosses the y-axis at \((0, 9)\). Writing works the same way: a line with slope \(\frac{1}{2}\) and y-intercept \((0, -3)\) is \(y = \frac{1}{2}x - 3\) with no computing at all. When an equation arrives in another shape, such as \(3x + 2y = 12\), solve for \(y\) to reach this form: \(y = -\frac{3}{2}x + 6\), so the slope is \(-\frac{3}{2}\) and the intercept is 6.

Point-slope form

When the known point is not on the y-axis, point-slope form is the tool:

y - y_1 = m(x - x_1)

It restates the slope formula with one fixed point \((x_1, y_1)\) and a moving point \((x, y)\), so it is the slope idea written as an equation. For a line through \((2, 7)\) with slope 3: \(y - 7 = 3(x - 2)\). Distributing and solving for \(y\) converts it to slope-intercept form: \(y = 3x + 1\). Either form describes the same line; slope-intercept is the standard for reporting answers.

From two points to an equation

Given two points, the slope formula from the previous topic supplies \(m\), and then point-slope finishes the job with either point. Through \((1, 2)\) and \((5, 10)\): the slope is \(\frac{10 - 2}{5 - 1} = 2\), and point-slope with \((1, 2)\) gives \(y - 2 = 2(x - 1)\), which simplifies to \(y = 2x\). Using the other point instead, \(y - 10 = 2(x - 5)\), gives the same line — a built-in check, since both descriptions must agree. A horizontal or vertical pair is even easier: same y-values mean a horizontal line \(y = c\); same x-values mean a vertical line \(x = c\).

Worked example: a two-point line

Write the equation of the line through \((-3, 4)\) and \((3, -8)\). The slope is \(\frac{-8 - 4}{3 - (-3)} = \frac{-12}{6} = -2\). Point-slope with \((3, -8)\): \(y + 8 = -2(x - 3)\). Distribute: \(y + 8 = -2x + 6\), so \(y = -2x - 2\). Check with the unused point \((-3, 4)\): \(-2(-3) - 2 = 6 - 2 = 4\), exactly as required. Also confirm the slope-intercept form against the other point: \(-2(3) - 2 = -8\). Both given points satisfy the finished equation, so it is the line through them.

Parallel lines

Two non-vertical lines are parallel exactly when they have the same slope and different intercepts: \(y = 3x - 2\) and \(y = 3x + 5\) climb at the same pitch and never meet. To write a line parallel to a given one through a given point, keep the slope and swap in the new point. Through \((2, 1)\) parallel to \(y = 3x - 2\): \(y - 1 = 3(x - 2)\), which simplifies to \(y = 3x - 5\). The intercepts differ, as parallel lines must, or the two equations would describe the same line.

Perpendicular lines

Two non-vertical lines are perpendicular exactly when their slopes multiply to \(-1\): each slope is the negative reciprocal of the other. Perpendicular to \(y = \frac{3}{4}x + 2\) means slope \(-\frac{4}{3}\): flip the fraction and change the sign. The horizontal-vertical pair is the special case, since a vertical line has no slope at all. Watch the product check: \(\frac{3}{4} \cdot \left(-\frac{4}{3}\right) = -1\). A slope of 0 (horizontal) pairs only with a vertical line; two horizontal lines are parallel, not perpendicular.

Worked example: a perpendicular line

Write the line through \((-1, 5)\) perpendicular to \(y = \frac{3}{4}x + 2\). The given slope is \(\frac{3}{4}\), so the perpendicular slope is its negative reciprocal, \(-\frac{4}{3}\). Point-slope: \(y - 5 = -\frac{4}{3}(x + 1)\). Distribute: \(y - 5 = -\frac{4}{3}x - \frac{4}{3}\), so \(y = -\frac{4}{3}x + \frac{11}{3}\). Check the point: \(-\frac{4}{3}(-1) + \frac{11}{3} = \frac{4 + 11}{3} = \frac{15}{3} = 5\). And the slopes multiply to \(\frac{3}{4} \cdot \left(-\frac{4}{3}\right) = -1\), confirming perpendicularity.

Lines as models: a repair bill

A linear equation with context is a model, and writing it uses the same forms. A repair service charges a $60 call-out fee plus $45 per hour of work. The starting value is the intercept and the constant rate is the slope, so the cost for \(h\) hours is \(C = 45h + 60\). Interpreting it: each extra hour adds $45, and a job of zero hours still costs the $60 fee. For a bill of $375: \(45h + 60 = 375\) gives \(45h = 315\) and \(h = 7\) hours. The model has a sensible domain starting at \(h = 0\), and any context sets such limits.

Common mistakes to avoid

First, sign slips in point-slope form: with the point \((2, 7)\) it is \(y - 7\) and \(x - 2\); a negative coordinate flips the sign, so the point \((-1, 5)\) gives \(x + 1\) inside the brackets. Second, when computing slope from two points, subtract in the same order on top and bottom: \(\frac{4 - (-8)}{-3 - 3}\) is fine, but mixing the orders gives the wrong sign. Third, for a perpendicular line, do not just negate the slope — take the negative reciprocal, and check the product is \(-1\). Fourth, parallel needs equal slopes AND different intercepts; identical intercepts mean the same line twice.

Key takeaways

Slope-intercept form \(y = mx + b\) displays slope and y-intercept directly, and point-slope form \(y - y_1 = m(x - x_1)\) builds an equation from any point plus the slope; convert to slope-intercept by distributing and solving for \(y\). Two points give the slope first, then either point in point-slope form. Parallel non-vertical lines share their slope with different intercepts; perpendicular lines have slopes multiplying to \(-1\), each the negative reciprocal of the other, with horizontal and vertical as the special pair. In context, the intercept is the starting value and the slope is the constant rate with units, as in \(C = 45h + 60\).

Flashcards

Flashcard

Slope-intercept form

y = mx + b

m is the slope, b the y-intercept.

Test your understanding

Question 1 of 5

A line has slope 3 and passes through (2, 7). Which is its point-slope equation?

Question 2 of 5

What is the slope of the line through (1, 3) and (5, 11)?

Question 3 of 5

What is the slope of a line parallel to y = -4x + 9?

Question 4 of 5

What is the slope of a line perpendicular to y = (2/3)x - 5?

Question 5 of 5

A repair service charges a $60 call-out fee plus $45 per hour. What would a 3-hour job cost?

← Previous topicNext topic →