This is quite simple. No math is needed, all you need to do is put your pencil vertically and move it from left to right on the graph. If two points touch the pencil in different places while moving vertically, at one spot, it is NOT a function. This is called the vertical line test.