Start with the definition of a function
A relation is a function when every input in its domain is paired with exactly one output. On a coordinate graph, the horizontal coordinate is the input and the vertical coordinate is the output .
The rule does not require different inputs to have different outputs. Several -values may share the same -value. The restriction is only that one particular cannot point to two different -values.
Why a vertical line tests one input
Every point on a vertical line has the same -coordinate. Sliding a vertical line across a graph therefore asks the same question at every possible input: how many plotted points have this -value?
- At most one intersection for every vertical line means the graph represents as a function of .
- Two or more intersections for even one vertical line mean the graph is not a function of .
One failing input is enough. There is no need to inspect every coordinate after finding a vertical line that crosses the graph more than once.
Compare two fresh examples
The graph of passes the test. For any fixed value of , squaring it produces one value of , so a vertical line meets the parabola at no more than one point.
The sideways parabola fails when it is viewed as in terms of . For a positive input such as , both and satisfy the equation. The vertical line at therefore has two intersections.
Include endpoints and isolated points
Open and closed endpoints matter because only included points count as intersections. The same rule also works for a finite set of plotted points: group the points by their -coordinates and check whether any group contains more than one -coordinate.
Do not confuse vertical and horizontal line tests
The vertical line test asks whether the relation is a function. The horizontal line test asks a later, different question: whether a function is one-to-one. A graph must first pass the vertical test before the horizontal test is useful for deciding whether the function has an inverse that is also a function.
Related question
Apply this knowledge
Use the concept guide to understand the reasoning, then return to the complete question and worked answer.
ALEKS Vertical Line Test Answer: Does Graph 2 Represent a Function?Sources
These references support the core concepts and interpretation boundaries explained above.