Lines, Slopes, and Perpendicularity

Watch the video explainer

Learning goals

  • Justify constant slope and the parallel criterion using similar right triangles
  • Prove the perpendicular slope criterion and handle horizontal and vertical cases
  • Find perpendicular bisectors from midpoint and direction information
  • Distinguish median and altitude equations using their geometric definitions
  • Locate intersections of geometric lines and check their defining conditions

A short line-equation refresher

From Algebra, the slope of a nonvertical line is its signed rise divided by its signed run. For distinct points

A=(xA,yA),B=(xB,yB)\begin{aligned}A&=(x_A,y_A),\\B&=(x_B,y_B)\end{aligned}

with different first coordinates,

m=yB−yAxB−xA.m=\frac{y_B-y_A}{x_B-x_A}.

Keep the same subtraction order. A nonvertical line through AA has point-slope equation

y−yA=m(x−xA).y-y_A=m(x-x_A).

Solving for yy gives slope-intercept form. A vertical line instead fixes its first coordinate. Its slope is undefined, never infinity.

Worked example 1 Turn two points into a line equation

Problem. Find an equation for the line through

U=(−5,7),V=(3,3).\begin{aligned}U&=(-5,7),\\V&=(3,3).\end{aligned}

Check both points.

Solution. The first coordinates differ, so the slope calculation is valid.

m=3−73−(−5),m=−12.\begin{aligned} m&=\frac{3-7}{3-(-5)},\\ m&=-\frac12. \end{aligned}

Use UU in point-slope form, then clear the fraction.

y−7=−12(x+5),x+2y=9.\begin{aligned} y-7&=-\frac12(x+5),\\ x+2y&=9. \end{aligned}

At UU, the left side is −5+2(7)-5+2(7), which is 99. At VV, it is 3+2(3)3+2(3), also 99.

Why slope stays the same

Changing the size of a slope triangle changes both legs in the same proportion.

In the figure, the small triangle has rise 22 and run 44. The larger one has rise 55 and run 1010. Both report slope 1/21/2. Their right angles agree, and their acute angles with the horizontal agree because their slanted sides lie on one line. AA similarity makes the matching legs proportional.

Similarity preserves the rise-to-run ratioTwo right triangles share a slanted line through O. The smaller has horizontal leg 4 and vertical leg 2. The larger has horizontal leg 10 and vertical leg 5. Both horizontal legs are parallel, and both vertical legs are perpendicular to them.OQR41025
Matching acute angles and right angles make the two slope triangles similar.

Similarity makes slope independent of the chosen points#

Take two slope triangles on a falling line, with runs 88 and 2020. If the first signed rise is −6-6, AA similarity multiplies its vertical leg by 20/820/8, giving signed rise −15-15 for the second. Both left-to-right trips fall, so

−68=−34,−1520=−34.\begin{aligned} \frac{-6}{8}&=-\frac34,\\ \frac{-15}{20}&=-\frac34. \end{aligned}

For any nonhorizontal, nonvertical line, choose any two pairs of distinct points and travel left to right. Complete each pair to a right triangle with horizontal and vertical legs. The horizontal legs are parallel. The line makes equal corresponding acute angles with them, so AA makes the triangles similar. Hence the ratios of vertical leg length to horizontal leg length agree.

The positive runs give both signed rises the same sign: positive for a rising line and negative for a falling line. Thus the signed rise-to-run ratios also agree. Reversing either pair changes both signs and preserves its ratio. For a horizontal line, every rise is zero and every nonzero run gives slope zero. The particular leg lengths did not matter; the matching angles did.

Check your understanding

Two slope triangles on one falling line have runs 5 and 15. The smaller has signed rise −2-2. What forces the larger rise to be −6-6?

Answer choices

Parallel is a statement about distinct lines

Parallel nonvertical lines have the same slope. For example, slope triangles with runs 44 and 66 on two parallel lines have rises 22 and 33. Corresponding angles make them similar, giving slope 1/21/2 on both.

Parallel lines give similar slope trianglesThe lower solid line and upper dashed line are parallel. A lower right triangle has run 4 and rise 2. An upper right triangle has run 6 and rise 3. Horizontal legs are parallel, so the corresponding acute angles agree.4263ℓn
Corresponding angles on the parallel lines give similar slope triangles.

The parallel slope criterion and its converse#

Take distinct parallel rising lines. A slope triangle on the first has run 66 and rise 55; choose run 1818 on the second. Equal corresponding acute angles and right angles give AA similarity, so its rise is 1515. Thus

56=1518.\begin{aligned} \frac56&=\frac{15}{18}. \end{aligned}

For the forward direction in general, parallel slanted sides make equal angles with parallel horizontal legs. Together with the right angles, this gives AA similarity and equal rise-to-run ratios. This reasoning applies to any parallel slanted lines. If one parallel is horizontal, the other is horizontal too, so both slopes are zero.

For the converse, first compare two lines of slope 2/32/3, one through (0,1)(0,1) and the other through (0,−2)(0,-2). A shared point would require

23x+1=23x−2,1=−2.\begin{aligned} \frac23x+1&=\frac23x-2,\\ 1&=-2. \end{aligned}

The impossible equality shows that they never meet. In general, two distinct nonvertical lines of the same slope have different intercepts. At a shared point, subtracting their equal slope terms would force the intercepts to agree. Hence they cannot meet and are parallel. The values of the intercepts were irrelevant; their difference mattered.

Thus two distinct nonvertical lines are parallel exactly when their slopes agree. Equal slopes and a shared point instead give one line, called coincident lines when described by two equations. Distinct vertical lines are parallel to each other; they have no slope numbers to compare.

Worked example 2 Check distinctness before concluding parallelism

Problem. Compare each line with ℓ\ell, whose equation is

3x−2y=8.3x-2y=8.

Case A. 6x−4y=166x-4y=16.

Case B. 3x−2y=−23x-2y=-2.

Solution. Case A divides by 22 to give precisely the equation of ℓ\ell. The equations describe the same line.

Case B has the same slope, 3/23/2, but a different intercept. Its intercept is 11, whereas ℓ\ell has intercept −4-4. These lines are distinct, so they are parallel.

Check your understanding

Two nonvertical lines both have slope −3/4-3/4 and contain (2,5)(2,5). Which conclusion follows?

Answer choices

A quarter-turn gives the perpendicular criterion

A right-angle turn exchanges the jobs of the horizontal and vertical legs, and one direction changes sign.

Start with run 33 right and rise 22 up. A 90∘90^\circ counterclockwise rotation sends the rightward part upward and the upward part leftward. The rotated triangle has run −2-2 and rise 33, so its slope is −3/2-3/2. The original slope is 2/32/3.

A quarter-turn exchanges signed legsAt O, a solid right triangle has run 3 right and rise 2 up. Its dashed quarter-turn image has horizontal run 2 left and vertical rise 3 up. The solid and dashed hypotenuse lines meet at a right angle.O323−2QQ′
The quarter-turn sends a run of 3 and rise of 2 to a run of negative 2 and rise of 3.

Perpendicular slopes from rotated right triangles#

Use a fresh triangle with run 55 right and signed rise −8-8. A counterclockwise quarter-turn sends the rightward part upward and the downward part rightward. The new signed run is 88 and rise is 55. The slopes multiply to

(−85)58=−1.\left(-\frac85\right)\frac58=-1.

Now take a line that is neither horizontal nor vertical. Choose a positive run rr and a nonzero signed rise ss between two of its points. Its slope is

m=sr.m=\frac{s}{r}.

Rotate the triangle 90∘90^\circ counterclockwise about its starting point. The run becomes a rise of rr, and the signed rise becomes a run of −s-s. This also covers a falling line: a downward step turns right, giving a positive run. The perpendicular direction has slope

n=r−s,mn=−1.\begin{aligned} n&=\frac{r}{-s},\\ mn&=-1. \end{aligned}

The rotation preserves the right triangle and turns its hypotenuse line through a right angle. The earlier uniqueness of a perpendicular through a point, and the perpendicular transversal theorem for parallels, show that any perpendicular line has this direction. Nothing depended on the chosen rr and ss.

Conversely, suppose two nonvertical, nonhorizontal lines have slopes whose product is −1-1. Rotate the first through 90∘90^\circ about one of its points. The image has the same slope as the second, so the image and second line coincide or are parallel. The original line is perpendicular to the image. In the parallel case the perpendicular transversal theorem transfers that right angle to the second line; in the coincident case it is already the same right angle. This proves the converse too.

For two nonvertical, nonhorizontal lines, perpendicularity is equivalent to slopes whose product is negative one. The slopes are negative reciprocals. Check both the sign and the reciprocal, rather than merely changing the sign.

Check your understanding

A slope triangle has run 7 and signed rise −4-4. After a counterclockwise quarter-turn, what are its signed run and rise?

Answer choices

Horizontal and vertical lines need their own case

A horizontal line and a vertical line meet at a right angle because their directions are parallel to the perpendicular coordinate axes. For example, the lines in the figure meet at (−2,3)(-2,3).

Horizontal and vertical perpendicularsThe solid horizontal line has equation y equals 3. The dashed vertical line has equation x equals negative 2. They intersect at negative 2 comma 3 with a square marking a right angle. A horizontal run is available on the first; the second has zero run.y = 3x = −2(−2, 3)
The right angle is valid even though one slope is undefined.

The horizontal slope is zero. The vertical slope is undefined, so there is no slope product to calculate. The negative reciprocal of zero also has no value. Through a specified point, the perpendicular to a horizontal line fixes the point’s first coordinate; the perpendicular to a vertical line fixes its second coordinate.

Perpendicular bisectors combine a point and a direction

The perpendicular bisector of a segment is the line through its midpoint perpendicular to its full line. For distinct endpoints, it passes through neither endpoint. From the earlier construction theorem, its points are exactly the points equidistant from the two endpoints.

Worked example 3 Find a perpendicular bisector

Problem. Find the perpendicular bisector of the segment with endpoints

A=(−4,−1),B=(2,3).\begin{aligned}A&=(-4,-1),\\B&=(2,3).\end{aligned}

Solution. Midpoint and slope give different pieces of information.

M=(−1,1),mAB=23.\begin{aligned} M&=(-1,1),\\ m_{AB}&=\frac23. \end{aligned}

The required line goes through MM with slope −3/2-3/2.

y−1=−32(x+1),3x+2y=−1.\begin{aligned} y-1&=-\frac32(x+1),\\ 3x+2y&=-1. \end{aligned}
The midpoint fixes the perpendicular bisectorThe midpoint fixes the perpendicular bisector. Marked points A at (-4, -1); B at (2, 3); M at (-1, 1). Solid and dashed lines distinguish related objects. The two coordinate axes use equal scales.ABMxy
The solution line passes through M and is perpendicular to AB.

Substitution of MM gives −1-1 on the left of the final equation. The product of the two slopes is −1-1, so the line meets both defining conditions.

Check your understanding

A segment has endpoints (−6,4)(-6,4) and (2,4)(2,4). Which equation is its perpendicular bisector?

Answer choices

Medians, altitudes, and intersections

A median joins a triangle’s vertex to the opposite side’s midpoint. Its line needs those two points. An altitude passes through a vertex perpendicular to the opposite side’s full line. Its line needs the vertex and the perpendicular direction. The definitions do not normally select the same line.

Worked example 4 Separate a median from an altitude

Problem. Triangle ABCABC has

A=(0,6),B=(−4,0),C=(8,0).\begin{aligned}A&=(0,6),\\B&=(-4,0),\\C&=(8,0).\end{aligned}

Find the median line and the altitude line from AA.

Solution. For the median, the midpoint of BCBC is M=(2,0)M=(2,0). The slope from AA to MM is −3-3, giving

y=−3x+6.y=-3x+6.

For the altitude, BCBC is horizontal. The perpendicular through AA is vertical, so its equation is

x=0.x=0.
A median and an altitude can have different directionsA median and an altitude can have different directions. Marked points A at (0, 6); B at (-4, 0); C at (8, 0); M at (2, 0). Solid and dashed lines distinguish related objects. The two coordinate axes use equal scales.ABCMxy
The solid median reaches M; the dashed vertical altitude reaches a different point of BC.

The median passes through MM. The altitude meets BCBC at (0,0)(0,0), which is not its midpoint. A perpendicular line alone does not make a median.

An intersection must satisfy both line equations. Solve them together, then check the point in each. Parallel distinct lines have no intersection; coincident lines have infinitely many common points.

Worked example 5 Locate a median-altitude intersection

Problem. Triangle ABCABC has

A=(−2,5),B=(0,−1),C=(6,1).\begin{aligned}A&=(-2,5),\\B&=(0,-1),\\C&=(6,1).\end{aligned}

Find the intersection PP of the median line from AA and the altitude line from BB.

Solution. The midpoint of BCBC is M=(3,0)M=(3,0). The median through AA and MM has slope −1-1:

y=−x+3.y=-x+3.

The slope of ACAC is −1/2-1/2. Its perpendicular through BB has slope 22:

y=2x−1.y=2x-1.

Set the heights equal and solve.

−x+3=2x−1,3x=4,x=43,y=53.\begin{aligned} -x+3&=2x-1,\\ 3x&=4,\\ x&=\frac43,\\ y&=\frac53. \end{aligned}
A median and another vertex altitude meetA median and another vertex altitude meet. Marked points A at (-2, 5); B at (0, -1); C at (6, 1); M at (3, 0); P at (4/3, 5/3). Solid and dashed lines distinguish related objects. The two coordinate axes use equal scales.ABCMPxy
The solid median and dashed altitude meet at P. The triangle sides identify which definition each line uses.

Thus P=(4/3,5/3)P=(4/3,5/3). Substitution gives height 5/35/3 in both equations. The median uses the correct midpoint, and the altitude slopes multiply to −1-1, so the equations represent the requested geometric lines.

Check your understanding

A median line has equation x=2x=2.

Another vertex's altitude line has equation y=−3x+10y=-3x+10.

Where do the lines meet?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

A few pieces of palm leaf and some limestone weights once sat unrecognized among material excavated in Egypt’s Fayum region. The excavation was in 1899; the Science Museum’s account says that the instrument was identified in 1925. Missing parts were later reconstructed.

The object was an early form of the groma, a surveyor’s tool. Two ribs were tied at right angles, with weighted cords hanging from the ends. Sighting along one opposite pair set a straight direction; the other pair supplied a perpendicular direction. Roman surveyors used an improved form to lay out land and roads.

The Science Museum’s object record tells the story of this small tool’s rediscovery. What looked like ordinary plant material held a practical way to carry right angles across open ground.

Your progress

See all your progress →