Answer:
To do this, you imagine a vertical (up and down) line moving across your graph from left to right. It should only be touching the line at one point at a time. If it is touching more than one point on the line at a time, the line is not a valid function. The first line and its inverse both pass the test.
Explanation: