Horizontal and Vertical Lines
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 and its value is the same everywhere. A vertical line never goes left or right, so it has no slope at all, and its 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 -axis (horizontal) freezes :
A line parallel to the -axis (vertical) freezes :
To find , 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... | Direction | Equation through |
|---|---|---|
| parallel to the -axis | horizontal | |
| perpendicular to the -axis | horizontal | |
| parallel to the -axis | vertical | |
| perpendicular to the -axis | vertical |
Here is a check that helps. The line is parallel to the axis that is not named in its equation.
So is parallel to the -axis, and is parallel to the -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 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 that is parallel to the -axis. Parallel to the -axis means the line is horizontal, so its equation has the form . A horizontal line holds its ordinate constant, and the given point's ordinate is . So every point on the line has , whatever its abscissa:
Explore
Drag B until it is directly above or below A. The run becomes zero, the slope reads undefined, and the equation becomes . Now line the points up side by side. The slope becomes and the equation freezes . These are the only two lines whose equation uses just one letter.
Try this. Move the two points and compare the equation. Equal x values produce a vertical line; equal points cannot define one.
Try it yourself.
Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.
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:
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.
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.