How to tell if a relation is a function with the vertical line test
When we look at a graph, a table, or a list of points, we can ask the same question. Does each input have just one output? Let’s see how to check that in each form.
Look for an input with two different outputs
A function assigns exactly one output to each input in its domain. Two different inputs can share the same output. For example, the points and can both belong to a function because each input still has just one output.
The set , , fails because the input has two outputs, and . The set , , passes because none of its inputs has more than one output.
Use the vertical line test on a graph
A vertical line keeps fixed. If it meets the graph twice, the same input has two different -values, so the graph fails the test. A function’s graph meets every vertical line at most once. A line at an -value outside the domain misses the graph entirely.
An upright parabola such as passes the test because each gives one value when we square it. A circle fails because some vertical lines cross it twice.
Check a relation directly from its equation
For , try . The equation becomes , so can be or . This is the same test in algebra form. One input has two outputs, so the circle does not give as a function of .