Vertical Line: Equation, Slope, and the Function Test
Graph x equals a constant, identify undefined slope, find intersections, and apply the vertical-line test with six examples.
TL;DR
A vertical line has the equation and undefined slope. Its points all have the same -coordinate. A vertical line through a graph tests whether one input has multiple outputs.
Key Points
- A vertical line is parallel to the y-axis, or coincides with it if .
- The y-coordinate can vary freely along the line.
- Vertical lines are perpendicular to horizontal lines.
- The x-intercept is . Only intersects the y-axis.
- The vertical-line test checks functions, not whether a graph has a vertical tangent.
What is a vertical line on a coordinate plane?
Draw a point such as . Moving straight up or down changes the second coordinate while the first remains 3. The full vertical line through the point contains every point , so its equation is .
When you draw , locate on the x-axis and draw straight through it in both directions, parallel to the y-axis. If , the line is the y-axis. The coordinate plane guide explains where to place the fixed coordinate. OpenStax, Graphing Functions
Why is the slope of a vertical line undefined?
Slope is change in over change in . For and , the rise is 4 and the run is 0. Division by zero is undefined. A horizontal line has the reverse pattern. Its rise is zero and its run between distinct points is nonzero, so its slope is zero.
| Property | Vertical line | Horizontal line |
|---|---|---|
| Equation | ||
| Fixed coordinate | First | Second |
| Slope | Undefined | Zero |
| Axis direction | Parallel to the y-axis when distinct | Parallel to the x-axis when distinct |
The horizontal-line guide works through the other orientation. The straight-line equation guide shows why fits standard form even though it cannot be written as . OpenStax, Understand Slope of a Line
Where does a vertical line intersect other lines?
The x-intercept of is . If , it never meets the y-axis because the y-axis requires . If , the two lines coincide. Two distinct vertical lines are parallel. A horizontal line meets at at a right angle. OpenStax, Slope of a Line
To intersect a vertical line with a nonvertical relation, substitute its fixed into the relation. The substitution may give zero, one, or several intersection points. The intercept guide applies the same reasoning to the axes.
What does the vertical-line test tell you?
A graph represents as a function of if each input in its domain has exactly one output. Start with a vertical test line and slide it across the graph. If it meets two distinct points at the same input, the relation is not a function of .
A vertical tangent does not cause an automatic failure. The graph has one output at every input, including , where it has a vertical tangent. The test counts intersections, not slopes. A piecewise graph showing an open circle and a filled point at the same input counts only the filled point if the open circle indicates exclusion. OpenStax, Functions and Function Notation
A vertical line of symmetry is different. Reflection across sends to . An upward or downward parabola in the form has vertical symmetry about . Its two reflected points can have the same y-coordinate and different x-coordinates without violating the vertical-line test.
Six Worked Vertical Line Examples
Example 1
Find the vertical line through .
- Read the first coordinate, .
- Fix while allowing all real y-values.
- The equation is .
Example 2
Find the slope between and .
- The rise is .
- The run is .
- The slope is undefined since has no real value.
Example 3
Find the intersection of and .
- Substitute into the second equation.
- This gives .
- Both equations hold at .
Example 4
Find the vertical line perpendicular to that passes through .
- A line perpendicular to a horizontal line is vertical.
- Fix the x-coordinate at 5.
- The line is . It meets at .
Example 5
Check whether defines as a function of .
- Test the vertical line .
- Substituting gives , so or .
- The full circle fails the function test because one input has two outputs.
Example 6
Reflect across the line .
- The point is 5 units to the right of the line.
- Move 5 units left from to find the reflected x-coordinate, .
- The y-coordinate remains , so the image is .
Common Vertical Line Mistakes
Mistake 1: Writing y equals the first coordinate
A vertical line through has equation . The equation would draw a different, horizontal line.
Mistake 2: Calling undefined slope zero
Check which term in rise over run is zero. A zero denominator makes the slope undefined.
Mistake 3: Counting a test line as part of the graph
Only count its intersection points with the given relation. The test line is a tool for checking one x-coordinate.
Try It Yourself
- Find the equation of the vertical line through .
- Where does meet ?
- Does the graph containing the two points and pass the vertical-line test?
Answers. 1. . 2. . 3. No. The test line meets both points.
Conclusion
- Fix the first coordinate when drawing a vertical line.
- Check the run before dividing to find slope.
- Use one vertical test line per x-coordinate to check for multiple outputs.
Read More
- Check whether ordered pairs describe a relation or function
- Find when one shape reflects across a line of symmetry
- Distinguish parallel and perpendicular lines