# Unit circle method for converting complex number into polar coordinate

This is an excerpt from my textbook:

Find the argument and expression in polar coordinates for (a) $$z=3i$$ and (b) $$w=-\sqrt3+i$$

(a) $$|-3i| = |-3||i| = 3$$, so, in polar coordinates, $$-3i = 3(\cos\theta +i\sin\theta)$$, and thus $$\cos\theta=0$$ and $$\sin\theta=-1$$. This yields that $$\arg(-3i)=\theta=\frac{3\pi}2+2\pi k,\;k\in\mathbb Z$$ Thus, in polar coordinates, $$-3i = 3e^{i3\pi/2}$$

(b) $$|-\sqrt3+i| = \sqrt{3+1} = 2$$, so in polar coordinates, $$-\sqrt3+i=2(\cos\theta+i\sin\theta)$$, thus $$\cos\theta = -\frac{sqrt3}2$$ and $$\sin\theta=\frac12$$. Therefore, $$\arg(-\sqrt3+i)=\theta=\frac{5\pi}6+2\pi k,\;k\in\mathbb Z$$. Thus, in polar coordinates, $$-\sqrt3+i=2e^{i5\pi/6}$$

What I do not understand is quite simple I think: how does he go from $$\cos\theta=0$$ and $$\sin\theta=-1$$ to $$\arg(-3i)=\frac{3\pi}2 +2\pi k$$ And please explain it for the second part also. I just dont seem to understand the unit circle properly.

For the unit circle, each time you reach another axis the sine and cosine of an angle change from negative to positive (and vice versa). Finding $$\arg (a+bi)$$ boils down to which quadrant you're in to get the correct angle.
Thus, using definition of $$\arg (a+bi) = \arctan \frac {b}{a}$$, and that $$k \in \mathbb Z$$...
(a) $$-3i \rightarrow 0-3i$$, so in this case $$a=0$$ and $$b=-3$$. Thus $$\arg (0-3i) \rightarrow \arctan \frac {-3}{0}$$, which only occurs when $$\theta = \frac {3\pi}{2}+2 \pi k$$. (In this case, $$\tan \theta$$ is undefined for $$\frac {(2k+1)\pi}{2}$$; we use $$3\pi /2$$ as $$\sin \theta$$ is negative and $$\cos \theta$$ is $$0$$ in the 3rd quadrant.) Since $$|0-3i| = 3$$, we can then write $$-3i$$ as $$3e^{3i\pi/2}$$.
(b) $${-\sqrt 3 +i}$$ yields $$a=-\sqrt{3}$$ and $$b=1$$, so $$\arg ({-\sqrt 3 +i}) = \arctan (-\frac {\sqrt{3}}{3})$$, which only occurs when $$\theta = \frac {5\pi}{6}+2 \pi k$$. ($$\tan \theta$$ is negative in the second and fourth quadrants.) Since $$|{-\sqrt 3 +i}| = 2$$, we can then write $${-\sqrt 3 +i}$$ as $$2e^{5i\pi/6}$$.
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 43, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://math.stackexchange.com/questions/2952830/unit-circle-method-for-converting-complex-number-into-polar-coordinate", "fetch_time": 1721614022000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2024-30/segments/1720763517805.92/warc/CC-MAIN-20240722003438-20240722033438-00366.warc.gz", "warc_record_offset": 327674381, "warc_record_length": 35835, "token_count": 799, "char_count": 2116, "score": 4.46875, "int_score": 4, "crawl": "CC-MAIN-2024-30", "snapshot_type": "latest", "language": "en", "language_score": 0.7065476179122925, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00006-of-00064.parquet"}