vertical line test
If we were to draw a vertical line anywhere through the graph of a relation on the cartesian plane, and the vertical line only touches the graph once, then the relation is a function.
If a vertical lilne drawn anywhere on the graph touches the graph more than once, then relation is not a function.
Check the picture below.