Horizontal-line Test : If every horizontal line intersects the graph of a function in at most one point, then
is one-to-one function.
Redraw the diagram by taking horizontal lines intersect the graph.
\Observe the above diagram.
\Since every horizontal line intersects the graph of a function in at most one point, the function
is one-to-one function.
The function is one-to-one function.