How do I get from
$$-2j=\cos\left(\frac{\pi}{2}\right) + 2j\sin\left(\frac{\pi}{2}\right)$$
to the following?
$$-2j=2e^{-j\frac{\pi}{2}}$$
Background:
Given $x(t)=10+3\cos\omega_0t+5\cos(2\omega_0t+30°)+4\sin3\omega_0t$, its period is $T_0=\frac{2\pi}{\omega_0}$
Using Euler's relation,
$x(t)=10+\frac{3}{2}(e^{j\omega_0t}+e^{-j\omega_0t})+\frac{5}{2}[e^{j(2\omega_0t+30°)}+e^{-j(2\omega_0t+30°)}]+\frac{4}{2j}(e^{j3\omega_0t}-e^{-j3\omega_0t})$
I'd like to know, in detail, how the last term of the equation $\frac{4}{2j}(e^{j3\omega_0t}-e^{-j3\omega_0t})$ can be rearranged to $2e^{-j\frac{\pi}{2}}e^{j3\omega_0t}+2e^{j\frac{\pi}{2}}e^{-j3\omega_0t}$.
You need to observe that $\frac{4}{2j}=-2j=-2e^{j\pi/2}=2e^{-j\pi/2}$, then the rest follows.
The result used is that if $j=e^{j\theta}=\cos(\theta)+j\sin(\theta)$ then $\theta=\pi/2+2n\pi,\mbox{ for }n=0, \pm1,...$,that is you want $\cos(\theta)=0$ and $\sin(\theta)=1$