Geometry · Study guide

Chapter 3.4: Equations of Lines & Distance

Chapter 3 · Parallel & Perpendicular Lines · Topic 3.4

Equations of Lines & Distance

Every non-vertical line has an equation — its precise address in the plane. Learn the two equation forms, write parallel and perpendicular lines through a chosen point, and measure perpendicular distances from a point to a line and between parallel lines.

§1 Lines Have Addresses

Every non-vertical line in the coordinate plane can be captured by an equation. That equation is the line's exact "address": it says precisely which points belong to the line and which do not. This topic teaches you to write those equations and then to measure distances — from a point to a line, and between two parallel lines.

The two equation forms you'll use constantly are slope-intercept, $y = mx + b$, and point-slope, $y - y_1 = m(x - x_1)$. Combined with the slope rules from Topic 3.3, they let you write the equation of any parallel or perpendicular line through a given point.

Big picture

3.3 gave you slope as a number. 3.4 turns that number into a full equation and a measured distance. With a slope and one point, point-slope writes the whole line; with a line and a point, the distance formula gives the exact perpendicular gap.

§2 Two Forms for a Line

Each form is a tool tuned to a different situation. Knowing when to pick which saves most of the work.

FormEquationWhat it showsUse when
Slope-intercept$y = mx + b$slope $m$, $y$-intercept $(0,b)$the intercept is given or easy to find
Point-slope$y - y_1 = m(x - x_1)$slope $m$, known point $(x_1,y_1)$you have a point that is not the intercept
Standard$Ax + By + C = 0$integer coefficientsapplying the distance formulas

Reading slope-intercept: in $y = 2x + 3$, slope is $2$ and the intercept is $(0,3)$; in $y = -\tfrac12 x - 4$, slope is $-\tfrac12$ and intercept $(0,-4)$; $y = 5$ has slope $0$ and intercept $(0,5)$.

Using point-slope: the line through $(2,5)$ with slope $3$ is $y - 5 = 3(x-2) \Rightarrow y - 5 = 3x - 6 \Rightarrow y = 3x - 1$.

Watch out

Going from $y = mx + b$ to standard form $Ax + By + C = 0$ trips up sign-keeping. Start from $y = 2x + 3$ and move everything to one side: $2x - y + 3 = 0$. Writing $2x + y + 3 = 0$ (forgetting the minus on $y$) is a frequent error that corrupts every later distance calculation.

§3 Writing Parallel & Perpendicular Lines

Both constructions follow the same three steps; only the slope choice differs.

GoalSlope to useThen
Line parallel to a given linesame slope $m$point-slope with the new point, simplify
Line perpendicular to a given linenegative reciprocal $-\tfrac{1}{m}$point-slope with the new point, simplify

Parallel example. Line through $(4,1)$ parallel to $y = -2x + 3$: keep $m = -2$, so $y - 1 = -2(x-4) \Rightarrow y - 1 = -2x + 8 \Rightarrow y = -2x + 9$. Same slope, new intercept.

Perpendicular example. Line through $(3,-2)$ perpendicular to $y = \tfrac32 x + 1$: the perpendicular slope is $-\tfrac23$, so $y + 2 = -\tfrac23(x-3) \Rightarrow y + 2 = -\tfrac23 x + 2 \Rightarrow y = -\tfrac23 x$. Check: $\tfrac32 \cdot (-\tfrac23) = -1$. ✓

Figure 3.4a: The parallel line (dashed indigo) keeps the main line's slope and only shifts. The perpendicular line (clay) uses the negative-reciprocal slope and meets the main line at a right angle.

§4 Distance from a Point to a Line

The distance from a point to a line is the length of the perpendicular segment from the point to the line — always the shortest path between them.

Key formula

For line $Ax + By + C = 0$ and point $(x_0, y_0)$: $$d = \frac{|Ax_0 + By_0 + C|}{\sqrt{A^2 + B^2}}.$$

Find the distance from $P(1,5)$ to $y = 2x - 2$. Rewrite as $2x - y - 2 = 0$, so $A=2,\,B=-1,\,C=-2$: $$d = \frac{|2(1) + (-1)(5) + (-2)|}{\sqrt{2^2 + (-1)^2}} = \frac{|2 - 5 - 2|}{\sqrt5} = \frac{5}{\sqrt5} = \sqrt5.$$

Figure 3.4b: The distance from $P(1,5)$ to the line $y = 2x - 2$ is the perpendicular dashed segment (clay) meeting the line at the foot $Q(3,4)$. Its length is $\sqrt5$.

§5 Distance Between Parallel Lines

Two parallel lines stay the same distance apart everywhere, and that distance is again a perpendicular segment.

Key formula

For parallel lines $Ax + By + C_1 = 0$ and $Ax + By + C_2 = 0$ (same $A$, $B$): $$d = \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}}.$$

Distance between $y = 2x + 3$ and $y = 2x - 7$. In standard form: $2x - y + 3 = 0$ and $2x - y - 7 = 0$, so $$d = \frac{|3 - (-7)|}{\sqrt{2^2 + (-1)^2}} = \frac{10}{\sqrt5} = \frac{10\sqrt5}{5} = 2\sqrt5.$$

Nuance — match the coefficients first

The parallel-line formula only works once both equations share the same $A$ and $B$. If one is written $4x - 2y + 6 = 0$ and the other $2x - y - 7 = 0$, divide the first by $2$ so both read $2x - y + \cdots$ before subtracting the constants.

§6 Don't Confuse These

TermCorrect ideaCommon trap
Slope-intercept$y = mx + b$; read $b$ at $x=0$.Reading $b$ as an $x$-intercept.
Point-slope$y - y_1 = m(x - x_1)$ for any point.Sign slips on $-x_1$ and $-y_1$.
Parallel lineSame slope, new point.Recomputing or changing the slope.
Perpendicular lineNegative reciprocal slope.Flipping but not negating (or vice versa).
Point-to-line $d$$\frac{|Ax_0+By_0+C|}{\sqrt{A^2+B^2}}$ in standard form.Skipping standard form or dropping the absolute value.
Parallel-line $d$$\frac{|C_1-C_2|}{\sqrt{A^2+B^2}}$, matched $A,B$.Subtracting constants before matching coefficients.

§7 Worked Examples

Keep the slope rules from 3.3 close, write standard form before any distance formula, and never drop the absolute value.

Point-slope to slope-intercept

Line through $(-1, 4)$ with slope $2$.
Answer: $y - 4 = 2(x+1) \Rightarrow y = 2x + 6$.

Parallel through a point

Through $(0, 5)$ parallel to $y = 3x - 1$.
Answer: Same slope $3$, intercept $5$: $y = 3x + 5$.

Perpendicular through a point

Through $(2, 3)$ perpendicular to $y = \tfrac12 x + 7$.
Answer: Slope $-2$: $y - 3 = -2(x-2) \Rightarrow y = -2x + 7$.

Point to line

Distance from $(0,0)$ to $3x + 4y - 10 = 0$.
Answer: $\dfrac{|{-10}|}{\sqrt{9+16}} = \dfrac{10}{5} = 2$.

Between parallels

Distance between $y = x + 1$ and $y = x - 5$.
Answer: $x - y + 1 = 0$, $x - y - 5 = 0$: $\dfrac{|1-(-5)|}{\sqrt{1+1}} = \dfrac{6}{\sqrt2} = 3\sqrt2$.

Two lines through one point

Through $(6,-1)$: one parallel, one perpendicular to $y = \tfrac12 x + 4$.
Answer: Parallel $y = \tfrac12 x - 4$; perpendicular $y = -2x + 11$.

§8 Self-Check

Answer each before opening the explanations. Convert to standard form before any distance work.

  1. Write the equation of the line through $(3, -4)$ with slope $-5$ in slope-intercept form.
  2. Write the equation of the line through $(1, 2)$ parallel to $y = 4x - 3$.
  3. Write the equation of the line through $(-2, 5)$ perpendicular to $y = \tfrac13 x + 1$.
  4. Find the distance from $P(2, -1)$ to the line $3x - 4y + 5 = 0$.
  5. Find the distance between the parallel lines $y = 2x + 1$ and $y = 2x + 11$.
  6. A student converts $y = -3x + 2$ to standard form and writes $-3x + y + 2 = 0$, then uses $A = -3$. Is the resulting distance affected? Explain.
Show Answers
  1. $y - (-4) = -5(x-3) \Rightarrow y + 4 = -5x + 15 \Rightarrow y = -5x + 11$.
  2. Same slope $4$: $y - 2 = 4(x-1) \Rightarrow y = 4x - 2$.
  3. Perpendicular slope $-3$: $y - 5 = -3(x+2) \Rightarrow y = -3x - 1$.
  4. $A=3,B=-4,C=5$: $d = \dfrac{|3(2) -4(-1) + 5|}{\sqrt{9+16}} = \dfrac{|6+4+5|}{5} = \dfrac{15}{5} = 3$.
  5. $2x - y + 1 = 0$ and $2x - y + 11 = 0$: $d = \dfrac{|1 - 11|}{\sqrt{4+1}} = \dfrac{10}{\sqrt5} = 2\sqrt5$.
  6. No. Both $3x - y - 2 = 0$ and $-3x + y + 2 = 0$ describe the same line; the formula squares $A$ and $B$ and takes an absolute value, so the sign of $A$ cancels and $d$ is unchanged.