I'm just learning about polar coordinates now, and I understand the basics pretty well, but I get confused at a particular part.
I understand the following relations:
$x = r\cos(\theta)$
$y = r\sin(\theta)$
$r^2 = x^2 + y^2$
$\tan(\theta)$ = y / x
but then it says:
$\tan(\theta) = (y/x) + \pi$ if $x < 0$
and
$\tan(\theta) = +- (\pi/2)$ if $x = 0$
and I do not understand why those last two are the way they are... Why does the value of $x$ matter?
Basically, if $x$ is negative, then you have to add $\pi$ to it to make it positive on the graph, while keeping the same angle. I'm not sure what it means by the second one though.