There is an example in my textbook (Mathematical Methods for Physicists) that goes like this:
$$z=x+iy=r\cos\theta+ir\sin\theta=r(\cos\theta+i\sin\theta)=re^{i\theta}$$ It states that $re^{i\theta}$ is the polar form of a complex number, and $x+iy$ is the rectangular form of the complex number. Now I follow along with this just fine, but it made me confused about the other examples of the complex exponentials. Is something like $e^{{i\pi\over 2}}=i$ also in polar form? I think my confusion may come from there being an angle in the exponential, and I'm kind of rusty on polar coordinates (I've been working on that, though!).
For $z=x+iy\quad$ the norm is given by $|z|^2=z\bar z=(x+iy)(x-iy)=x^2+y^2$
Why is this important?
Because if we set $r=\sqrt{x^2+y^2}$
Then we arrive at $z=x+iy=\dfrac rr\times(x+iy)=r\left(\dfrac xr+i\dfrac yr\right)=r\ (a+ib)$
Notice that $a^2+b^2=\dfrac{x^2}{r^2}+\dfrac{y^2}{r^2}=\dfrac{x^2+y^2}{r^2}=1$
Now $a^2+b^2=1$ is the equation of the circle of center $(0,0)$ and radius $1$ i.e. the unit circle.
And as you know, a point on the unit circle can be represented by $(\cos \theta,\sin \theta)$
Finally $a=\cos \theta$ and $b=\sin \theta$ for some $\theta$
And $z=x+iy=r\ (\cos \theta+i\sin\theta)=r\ e^{i\theta}$
So given a non-zero point $(x,y)$ in rectangular form $z=x+iy$, it is always possible to find $(r,\theta)$ in polar form $z=r\ e^{i\theta}$.
When $z=0$, we cannot determine a unique $\theta$ since we can't divide by $r=0$, but $z=0=0\ e^{ia}$ with any $a$ is a valid polar form anyway.
So for $z=i=0+1\,i$ in rectangular form you have $r=\sqrt{0^2+1^2}=1$ and $a=0$ and $b=1$.
Now solving $\begin{cases}\cos\theta=a=0\\\sin\theta=b=1\end{cases}\implies \theta=\dfrac{\pi}2$ if we limit ourselves to $[0,2\pi[$.
And the polar form is $z=re^{i\theta}=e^{\frac{i\pi}2}$