Horizontal and Vertical Lines

LESSON 8 OF 16See the unit map ↗

Distinguish horizontal and vertical line equations.

Builds on The Coordinate Plane · Defining Slope · Writing Line Equations

The bigger question: How can a picture become an equation?

On this page

Idea

Two kinds of line do not need the point-slope formula at all.

A horizontal line never goes up or down, so its slope is 00 and its yy value is the same everywhere. A vertical line never goes left or right, so it has no slope at all, and its xx value is the same everywhere. In both cases one coordinate is fixed, and that fixed coordinate is the equation.

Rule

A line parallel to the xx-axis (horizontal) freezes yy:

y=cy = c m=0m = 0

A line parallel to the yy-axis (vertical) freezes xx:

x=cx = c m is undefinedm \text{ is undefined}

To find cc, read the matching coordinate off any point the line passes through. Nothing is computed.

How it is used

The only decision is which coordinate to freeze. The wording is where mistakes happen.

"Perpendicular to an axis" means parallel to the other axis. Picture the line before you write anything down.

The line is...DirectionEquation through (a,b)(a, b)
parallel to the xx-axishorizontaly=by = b
perpendicular to the yy-axishorizontaly=by = b
parallel to the yy-axisverticalx=ax = a
perpendicular to the xx-axisverticalx=ax = a

Here is a check that helps. The line is parallel to the axis that is not named in its equation.

So y=3y = 3 is parallel to the xx-axis, and x=3x = 3 is parallel to the yy-axis. This feels backwards at first, so test it with a point instead of trusting your instinct.

One more result to remember. A vertical line has no y=mx+ny = mx + n form, because that form needs a slope, and a vertical line has none. You cannot write it in slope-intercept form at all.

Worked example

Find the equation of the line through (4,−2)(4, -2) that is parallel to the xx-axis. Parallel to the xx-axis means the line is horizontal, so its equation has the form y=cy = c. A horizontal line holds its ordinate constant, and the given point's ordinate is −2-2. So every point on the line has y=−2y = -2, whatever its abscissa:

y=−2y = -2

Explore

Drag B until it is directly above or below A. The run becomes zero, the slope reads undefined, and the equation becomes x=ax = a. Now line the points up side by side. The slope becomes 00 and the equation freezes yy. These are the only two lines whose equation uses just one letter.

A line through two points

Try this. Move the two points and compare the equation. Equal x values produce a vertical line; equal points cannot define one.

A line through two points-6-6-4-4-2-2224466xyBA
y = -0.4x + 2.2 · Slope = -0.4
PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

Which equation gives a vertical line through (3,−2)(3,-2)?

Hint 1 · Find a starting point

On a vertical line, the horizontal coordinate never changes.

Hint 2 · Take the next step

Every point must keep x = 3 while y is free.

Show the reasoning

Answer: x=3x=3

The vertical line is x = 3. A horizontal line fixes y instead. Vertical slope is undefined because the horizontal change is zero.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →