The Vertical Line Test
The vertical line test is a simple way of checking if a numerical relation is or is not a function by looking at its graph. If R is a numerical relation, then for a given number x in the domain of R, the values y such that xRy are recorded in the graph of R as points (x,y). For the given x, all the related values of y give points (x, y) that lie on the vertical line through (x, 0). If R is a function, there should be only one such y, and therefore the graph of R will intersect each vertical line in at most one point. In other words, on a graph of a relation, if a vertical line passes through more than one point, the relation is not a function.
The two relations whose graphs are shown here in red color do not represent functions because the blue vertical line is touching the graph in more than one point.
Comments: