Given \(z = a + bi\), the right triangle relationships give:
\( r = \sqrt{a^2 + b^2} \)
\( \theta = \tan^{-1}\left(\dfrac{b}{a}\right) \)
This distance formula for \(r\) works the same way as the distance formula you use to find the distance between two points, since the origin and \((a, b)\) are just two points on a coordinate grid. Finding \(\theta\) uses the tangent ratio, and you must check which quadrant the point lies in, since a calculator's inverse tangent only returns angles between negative 90 and 90 degrees.
Example 1: Convert \(3 + 4i\) to polar form
Here \(a = 3\) and \(b = 4\), both positive, so the point lies in the first quadrant.
\( r = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5 \)
\( \theta = \tan^{-1}\left(\dfrac{4}{3}\right) \approx 53.13^\circ \)
So \(3 + 4i = 5(\cos 53.13^\circ + i\sin 53.13^\circ)\).
Example 2: Convert \(-1 + i\) to polar form
Here \(a = -1\) and \(b = 1\), so the point lies in the second quadrant. The reference angle comes from a 45-45-90 triangle, since the two legs are equal in size (ignoring sign). This is the same triangle you use when solving expressions using 45-45-90 special right triangles.
\( r = \sqrt{(-1)^2 + 1^2} = \sqrt{2} \)
Since the reference angle is \(45^\circ\) and the point is in the second quadrant, \(\theta = 180^\circ - 45^\circ = 135^\circ\).
So \(-1 + i = \sqrt{2}(\cos 135^\circ + i\sin 135^\circ)\).