Chapter 3 ยท Parallel and Perpendicular Lines

Slope and the Slope Criteria

Find the slope of a line from two points, then use slopes to decide whether two lines are parallel, perpendicular, or neither.

22 min read

You already know how to name the coordinates of a point. Now you can use coordinates to measure a line. Slope is a number that tells you how steep a line is and which way it tilts. (One kind of line has no slope number; you will meet it soon.)

To see where the number comes from, split a trip along a line into two moves: the change in xx, how far you move along the horizontal (left-right) xx-axis, and the change in yy, how far you move along the vertical (up-down) yy-axis.

In the figure below, a line passes through Point A at (1,1)(1, 1) and Point B at (5,3)(5, 3). Follow the horizontal guide line from Point A to Point C at (5,1)(5, 1): xx goes from 11 to 55, a change of 44. Then follow the vertical guide line up to Point B: yy goes from 11 to 33, a change of 22. The line climbs 22 units for every 44 units across, which is 24=12\frac{2}{4} = \frac{1}{2} of a unit up for each unit to the right. That rate is the slope.

Coordinate grid from x 0 to 6 and y 0 to 4, with a grid step of 1, showing 6 plotted elements. Details: line 1 x plus -2 y equals -1; line 0 x plus 1 y equals 1; line 1 x plus 0 y equals 5; point at (1, 1), named Point A; point at (5, 3), named Point B; point at (5, 1), named Point C.
From Point A at (1,1)(1, 1) to Point C at (5,1)(5, 1) the change in xx is 44; from Point C to Point B at (5,3)(5, 3) the change in yy is 22.

Here is the exact definition. A line is vertical if all of its points share one xx-coordinate, and horizontal if all of its points share one yy-coordinate. The slope mm of a nonvertical line is the change in yy divided by the change in xx between two different points on the line. Any two different points on the line give the same value, so use the ones you are given.

Subtract in the same order on the top and the bottom, so both changes describe the same trip. A positive slope means the line rises as you move right, and a negative slope means it falls. For points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), where the small numbers just label the first and second point, the definition reads as below. The change in xx cannot be 00, because division by zero is undefined.

m=y2โˆ’y1x2โˆ’x1,x2โˆ’x1โ‰ 0m = \frac{y_2 - y_1}{x_2 - x_1}, \qquad x_2 - x_1 \neq 0

Worked example

Slope from two points

Find the slope of the line through (โˆ’2,5)(-2, 5) and (4,1)(4, 1).

  1. Name the points in the order you will use them. Their x-coordinates are different, so the change in x is not 0 and the definition of slope applies.

    (x1,y1)=(โˆ’2,5),(x2,y2)=(4,1)(x_1, y_1) = (-2, 5), \quad (x_2, y_2) = (4, 1)
  2. Substitute into the definition of slope. The second point goes first on both the top and the bottom, so both changes describe the same trip.

    m=1โˆ’54โˆ’(โˆ’2)m = \frac{1 - 5}{4 - (-2)}
  3. Do each subtraction. Subtracting -2 is the same as adding 2, so the bottom becomes 4 + 2.

    m=โˆ’44+2=โˆ’46m = \frac{-4}{4 + 2} = \frac{-4}{6}
  4. Simplify the fraction exactly by dividing the top and the bottom by their common factor, 2.

    m=โˆ’4รท26รท2=โˆ’23=โˆ’23m = \frac{-4 \div 2}{6 \div 2} = \frac{-2}{3} = -\frac{2}{3}
  5. Check by reversing the order of the points. The trip now runs the other way, so both changes switch sign and the quotient stays the same.

    m=5โˆ’1โˆ’2โˆ’4=4โˆ’6=โˆ’23m = \frac{5 - 1}{-2 - 4} = \frac{4}{-6} = -\frac{2}{3}

Answer

The slope of the line through (โˆ’2,5)(-2, 5) and (4,1)(4, 1) is โˆ’23-\frac{2}{3}, so the line falls 22 units for every 33 units it moves to the right.

Two kinds of lines need special care, and the definition of slope handles both.

Take the horizontal line through (0,3)(0, 3) and (4,3)(4, 3). Its change in yy is 3โˆ’3=03 - 3 = 0 and its change in xx is 4โˆ’0=44 - 0 = 4, so its slope is 04=0\frac{0}{4} = 0. Every horizontal line has slope zero: it neither rises nor falls.

Now take the vertical line through (2,1)(2, 1) and (2,5)(2, 5). Its change in xx is 2โˆ’2=02 - 2 = 0, so the formula would have to divide 5โˆ’1=45 - 1 = 4 by 00. Division by zero is undefined, so every vertical line has undefined slope. Undefined is not the same as 00: slope 00 is a number, and a vertical line has no slope number at all.

The figure below shows both lines, with the xx-axis horizontal and the yy-axis vertical. Line A is the vertical line and Line B is the horizontal line, and the marked points are the ones you just used.

Coordinate grid from x -1 to 5 and y 0 to 6, with a grid step of 1, showing 6 plotted elements. Details: line 1 x plus 0 y equals 2, named Line A; line 0 x plus 1 y equals 3, named Line B; point at (2, 1), named (2, 1); point at (2, 5), named (2, 5); point at (0, 3), named (0, 3); point at (4, 3), named (4, 3).
Line A has undefined slope because both of its marked points have x=2x = 2; Line B has slope 00 because both of its marked points have y=3y = 3.

Slopes also tell you how two lines are related. Parallel lines are different lines in the same plane that never meet. Perpendicular lines are lines that meet at a right angle, an angle of 90โˆ˜90^\circ.

You cannot decide either one by looking at a drawing, because a picture can mislead, so you always work from the coordinates. In the next figure, the xx-axis is horizontal and the yy-axis is vertical. You are given that Line A passes through (0,1)(0, 1) and (1,3)(1, 3), Line B passes through (2,0)(2, 0) and (3,2)(3, 2), and Line C passes through (1,3)(1, 3) and (3,2)(3, 2).

Coordinate grid from x -1 to 6 and y -1 to 6, with a grid step of 1, showing 7 plotted elements. Details: line 2 x plus -1 y equals -1, named Line A; line 2 x plus -1 y equals 4, named Line B; line 1 x plus 2 y equals 7, named Line C; point at (0, 1), named (0, 1); point at (1, 3), named (1, 3); point at (2, 0), named (2, 0); point at (3, 2), named (3, 2).
Using the marked points, Line A and Line B each have slope 22, and Line C has slope โˆ’12-\frac{1}{2}.

Apply the definition of slope to the marked points:

  • Line A: 3โˆ’11โˆ’0=21=2\frac{3 - 1}{1 - 0} = \frac{2}{1} = 2
  • Line B: 2โˆ’03โˆ’2=21=2\frac{2 - 0}{3 - 2} = \frac{2}{1} = 2
  • Line C: 2โˆ’33โˆ’1=โˆ’12=โˆ’12\frac{2 - 3}{3 - 1} = \frac{-1}{2} = -\frac{1}{2}

Lines A and B have equal slopes, so each time xx grows by 11, both lines climb 22. The vertical gap between them never changes, so they never meet. They are also different lines: if (3,2)(3, 2) were on Line A, the slope from (1,3)(1, 3) to (3,2)(3, 2) would be 22, but it is โˆ’12-\frac{1}{2}.

Now compare Lines A and C. A trip along Line A from (0,1)(0, 1) to (1,3)(1, 3) has a change in xx of 11 and a change in yy of 22. A trip along Line C from (1,3)(1, 3) to (3,2)(3, 2) has a change in xx of 22 and a change in yy of โˆ’1-1. The numbers 11 and 22 traded places, and one sign changed. That is exactly what a quarter turn does to a trip, so these lines meet at a right angle, and their slopes multiply to 2โ‹…(โˆ’12)=โˆ’12 \cdot \left(-\frac{1}{2}\right) = -1.

Key concept

The slope criteria

A criterion (plural criteria) is a test that settles a question. Take two different nonvertical lines with slopes m1m_1 and m2m_2.

  • Parallel Lines Slope Criterion: the lines are parallel exactly when m1=m2m_1 = m_2.
  • Perpendicular Lines Slope Criterion: the lines are perpendicular exactly when m1m2=โˆ’1m_1 m_2 = -1.

A vertical line has undefined slope, so neither test applies to it. A vertical line and a horizontal line are perpendicular without a product, because the coordinate plane is built with perpendicular axes and these lines run in the axes' directions.

Differentย nonverticalย lines:ย m1=m2โ€…โ€ŠโŸบโ€…โ€Šparallel,m1m2=โˆ’1โ€…โ€ŠโŸบโ€…โ€Šperpendicular\text{Different nonvertical lines: } m_1 = m_2 \iff \text{parallel}, \quad m_1 m_2 = -1 \iff \text{perpendicular}

The words exactly when pack a theorem (a statement that can be proved) and its converse into one sentence. A converse switches the if part and the then part. For two different nonvertical lines:

  • Lines to slopes: if the lines are parallel, then m1=m2m_1 = m_2; if the lines are perpendicular, then m1m2=โˆ’1m_1 m_2 = -1.
  • Slopes to lines: if m1=m2m_1 = m_2, then the lines are parallel; if m1m2=โˆ’1m_1 m_2 = -1, then the lines are perpendicular.

A converse is not automatically true, but here both directions hold, and they do different jobs. Use slopes to lines to conclude that a relationship holds. Use lines to slopes to rule one out: if the slopes differ, the lines cannot be parallel, and if the product is not โˆ’1-1, they cannot be perpendicular. In this lesson you use the criteria as stated, and you will prove them in the next unit.

Worked example

Identifying lines from their slopes

Given: four different nonvertical lines have these slopes. Line P has slope 34\frac{3}{4}, Line Q has slope 34\frac{3}{4}, Line R has slope โˆ’43-\frac{4}{3}, and Line S has slope 43\frac{4}{3}. Decide which pairs are parallel, which are perpendicular, and which are neither.

  1. Check the conditions. The problem states that the lines are different and nonvertical, so both slope criteria apply.

  2. Look for equal slopes. Lines P and Q both have slope 3/4, and no other pair matches. By the Parallel Lines Slope Criterion, in the slopes-to-lines direction, equal slopes mean Lines P and Q are parallel.

    mP=mQ=34m_P = m_Q = \frac{3}{4}
  3. Multiply slopes to test for perpendicular lines, starting with Lines P and R. The product is -1, so by the Perpendicular Lines Slope Criterion, in the slopes-to-lines direction, they are perpendicular. Line Q has the same slope as Line P, so Lines Q and R are perpendicular too.

    34โ‹…(โˆ’43)=โˆ’3โ‹…44โ‹…3=โˆ’1212=โˆ’1\frac{3}{4} \cdot \left(-\frac{4}{3}\right) = -\frac{3 \cdot 4}{4 \cdot 3} = -\frac{12}{12} = -1
  4. Test Line S with Line P. The slopes differ and the product is 1, not -1, so the lines-to-slopes direction of each criterion rules out that relationship. This pair is neither. Line Q has the same slope as Line P, so Lines S and Q are neither as well.

    34โ‹…43=3โ‹…44โ‹…3=1212=1\frac{3}{4} \cdot \frac{4}{3} = \frac{3 \cdot 4}{4 \cdot 3} = \frac{12}{12} = 1
  5. Test Line S with Line R. The slopes differ and the product is not -1, so by the same reasoning this pair is neither.

    (โˆ’43)โ‹…43=โˆ’4โ‹…43โ‹…3=โˆ’169\left(-\frac{4}{3}\right) \cdot \frac{4}{3} = -\frac{4 \cdot 4}{3 \cdot 3} = -\frac{16}{9}

Answer

Lines P and Q are parallel, and Line R is perpendicular to both of them. Line S is neither parallel nor perpendicular to any of the other three lines.

How to decide how two lines are related
What you findConclusionReason
Both nonvertical and different, with m1=m2m_1 = m_2
Parallel
Parallel Lines Slope Criterion, slopes to lines
Both nonvertical, with m1m2=โˆ’1m_1 m_2 = -1
Perpendicular
Perpendicular Lines Slope Criterion, slopes to lines
Both nonvertical, with m1โ‰ m2m_1 \neq m_2 and m1m2โ‰ โˆ’1m_1 m_2 \neq -1
Neither
Both criteria, lines to slopes
One vertical and one horizontal
Perpendicular
The coordinate axes are perpendicular, and no product is used
One vertical, the other neither vertical nor horizontal
Neither
A line parallel to a vertical line is vertical; one perpendicular to it is horizontal
Two different vertical lines
Parallel
Their xx-coordinates differ, so they share no point (definition of parallel lines)

Worked example

Deciding from four points

Given: Line J passes through (โˆ’1,โˆ’2)(-1, -2) and (5,2)(5, 2), and Line K passes through (4,โˆ’3)(4, -3) and (โˆ’2,6)(-2, 6). Decide whether the lines are parallel, perpendicular, or neither.

  1. Use the definition of slope for Line J. The change in x is 6, not 0, so Line J is nonvertical. Divide the top and bottom by 2 to simplify.

    mJ=2โˆ’(โˆ’2)5โˆ’(โˆ’1)=2+25+1=46=23m_J = \frac{2 - (-2)}{5 - (-1)} = \frac{2 + 2}{5 + 1} = \frac{4}{6} = \frac{2}{3}
  2. Do the same for Line K. The change in x is -6, not 0, so Line K is nonvertical. Divide the top and bottom by 3 to simplify.

    mK=6โˆ’(โˆ’3)โˆ’2โˆ’4=6+3โˆ’6=9โˆ’6=โˆ’32m_K = \frac{6 - (-3)}{-2 - 4} = \frac{6 + 3}{-6} = \frac{9}{-6} = -\frac{3}{2}
  3. Compare the slopes. They are not equal, so the Parallel Lines Slope Criterion, in the lines-to-slopes direction, rules out parallel.

    23โ‰ โˆ’32\frac{2}{3} \neq -\frac{3}{2}
  4. Multiply the slopes. Both lines are nonvertical, so the Perpendicular Lines Slope Criterion applies.

    23โ‹…(โˆ’32)=โˆ’2โ‹…33โ‹…2=โˆ’66=โˆ’1\frac{2}{3} \cdot \left(-\frac{3}{2}\right) = -\frac{2 \cdot 3}{3 \cdot 2} = -\frac{6}{6} = -1
  5. The product is -1, so the slopes-to-lines direction of that criterion tells you the lines are perpendicular.

Answer

Line J and Line K are perpendicular.

Worked example

A vertical line in the mix

Given: Line T passes through (3,โˆ’1)(3, -1) and (3,4)(3, 4), Line U passes through (โˆ’2,1)(-2, 1) and (2,3)(2, 3), and Line V passes through (โˆ’2,1)(-2, 1) and (4,1)(4, 1). Decide whether each pair of lines is parallel, perpendicular, or neither.

  1. Check the change in x first. For Line T it is 0, so Line T is vertical and its slope is undefined.

    x2โˆ’x1=3โˆ’3=0x_2 - x_1 = 3 - 3 = 0
  2. Line U has a nonzero change in x, so use the definition of slope.

    mU=3โˆ’12โˆ’(โˆ’2)=22+2=24=12m_U = \frac{3 - 1}{2 - (-2)} = \frac{2}{2 + 2} = \frac{2}{4} = \frac{1}{2}
  3. Line V also has a nonzero change in x. Its slope is 0, so it is horizontal.

    mV=1โˆ’14โˆ’(โˆ’2)=04+2=06=0m_V = \frac{1 - 1}{4 - (-2)} = \frac{0}{4 + 2} = \frac{0}{6} = 0
  4. Lines T and V: one is vertical and one is horizontal, so they are perpendicular. No product is used, because Line T has undefined slope.

  5. Lines T and U: Line U is nonvertical, so it is not parallel to Line T, since a line parallel to a vertical line is vertical. Its slope is not 0, so it is not horizontal, and only a horizontal line is perpendicular to a vertical line. This pair is neither.

    mU=12โ‰ 0m_U = \frac{1}{2} \neq 0
  6. Lines U and V: both are nonvertical, so the criteria apply. The slopes differ and the product is not -1, so the lines-to-slopes direction of each criterion rules out that relationship. This pair is neither.

    12โ‰ 0,12โ‹…0=0โ‰ โˆ’1\frac{1}{2} \neq 0, \qquad \frac{1}{2} \cdot 0 = 0 \neq -1

Answer

Lines T and V are perpendicular, Lines T and U are neither parallel nor perpendicular, and Lines U and V are neither parallel nor perpendicular.

Takeaway: slope is the change in yy divided by the change in xx, for a nonzero change in xx, and it lets you compare lines with numbers instead of judging by how a picture looks. Two different nonvertical lines are parallel exactly when their slopes are equal and perpendicular exactly when the product of their slopes is โˆ’1-1. A vertical line and a horizontal line are perpendicular without a product. Next, you will graph a line through a point parallel or perpendicular to a given line, and you will prove these slope criteria.