10.2. Polar form of complex numbers#
10.2.1. Modulus and argument#
To consider the multiplication of complex numbers, it is best to first consider the polar coordinates of a complex number. Polar coordinates is a concept that works for points in a plane. The idea is that instead of looking at the \(x\) and \(y\) coordinates of a point, we describe the point by the distance to the origin and the direction from the origin.
The distance from zero to the point in the complex plane, we call the modulus \(|z|\). By using Pythagoras theorem and with \(z=a+bi\), it holds that \(|z|=\sqrt{a^2+b^2}\) and equivalently \(|z|=\sqrt{z\overline{z}}\). We often denote the modulus by the symbol \(r\), so \(r=|z|\). The direction is designated by the angle measured from the positive real axis in a anticlockwise direction towards the ray from zero through the point. This angle, we call the argument or \(\arg(z)\) as seen in Figure 10.2.1. We often denote the argument by the symbol \(\theta\), so \(\theta=\arg(z)\). The argument uses the convention similar to the unit circle: the direction straight the right corresponds to \(0\) radians, up corresponds to \(\frac{1}{2}\pi\) radians, to the left to \(\pi\) radians and down to \(\frac{3}{2}\pi\) radians.
Fig. 10.2.1 The polar coordinates of a point in the complex plane \(\C\) are the distance \(r=|z|\) from zero to the point and the angle \(\theta=\arg(z)\) measured from the positive real axis in a anticlockwise direction towards the ray from zero through the point.#
Notice that the argument is not uniquely defined, as you can always go a full circle extra and add \(2\pi\) radians to the angle. For example, the number \(1\) has argument \(0\) (as it is on the positive real axis), but also \(2\pi\), \(4\pi\), and \(-2\pi\) (etc.). In order to make a uniform choice, we sometimes work with the principal value of the argument, which is by definition the unique value of the argument between \(-\pi\) and \(\pi\). We write the principal value using a capital A. Thus we have \(-\pi < \arg{z} \leq \pi\).
Example 10.2.1
Suppose \(z=3+3i\). We find by using Pythagoras that the modulus (the distance to the origin) equals \(|z|=\sqrt{3^2+3^2}=3\sqrt{2}\). The argument, the corresponding angle, equals \(\frac14\pi\) as you can see in Figure 10.2.2.
Fig. 10.2.2 The complex number \(3+3i\).#
Example 10.2.2
Suppose \(w=2+3i\). We can still use Pythagoras for the modulus and obtain \(|w|=\sqrt{2^2+3^2} = \sqrt{13}\). The argument can’t be deduced immediately from a picture, see Figure 10.2.3, but we do see that
Therefore \(\arg(w) = \arctan\left(\frac32\right) \approx 0.982794\).
Fig. 10.2.3 The complex number \(2+3i\).#
Example 10.2.3
As a final example we consider \(v=-1+2i\). Using Pythagoras theorem once again, we find that \(|v|=\sqrt{(-1)^2+2^2} = \sqrt{5}\). For the argument, we obtain that, just as in the previous example, \(\tan(\arg(v)) = \frac{2}{-1}\), so we would expect that \(\arg(v) = \arctan( -2) \approx -1.10715\). But this answer is negative, while we can see in Figure 10.2.4 that the true argument is something between \(\frac12\pi\) and \(\pi\). Thus, this argument cannot be correct. If we multiply both the real and imaginary parts of a complex number by \(-1\), then the quotient stays the same. Thus in this case the arctangent gives the argument of \(1-2i\) instead. Fortunately, we can easily find the correct argument as it is exactly \(\pi\) higher. We find \(\arg(v) = \arctan(-2) + \pi \approx 2.03444\).
Fig. 10.2.4 The complex number \(-1+2i\).#
You always have to check whether the value you find with the arctangent gives the correct angle. As the range of the arctangent is \(\left(-\frac12\pi,\frac12\pi\right)\) you can only find the correct argument if the complex number is to the right of the imaginary axis, that is, if the real part is positive.
If the real part is negative, the argument is between \(\frac12\pi\) and \(\frac32\pi\) (or between \(-\frac12\pi\) and \(-\frac32\pi\) depending on which direction you want to consider) and outside the range of the arctangent. To get the correct value for the argument in these cases, you have to add or subtract \(\pi\) from the arctangent.
If we write \(z=a+bi\) and \(r=|z|\) and \(\theta=\arg(z)\), then we have the following formulas for calculating \(a\) and \(b\) from \(r\) and \(\theta\):
For calculating \(r\) and \(\theta\) from \(a\) and \(b\) we can use
where it should be noted you cannot say \(\theta= \arctan(b/a)\) in general. For \(a\neq 0\), we can use
In particular, we see that the complex number with modulus \(r\) and argument \(\theta\) equals \(r\bigl(\cos(\theta) + i\sin(\theta)\bigr)\) and vice versa. The form \(r\cos(\theta) + ir\sin(\theta)\) is called the polar form of the complex number:
Definition 10.2.1
The polar form of a complex number \(z=a+bi\) is defined as
where \(r=|z|\) is the modulus of \(z\) and \(\theta=\arg(z)\) is an argument of \(z\).
10.2.2. Geometric interpretation#
First we consider conjugation. Suppose \(z\) is the complex number with modulus \(|z|=r\) and argument \(\arg(z)=\theta\). Hence, \(z=r\cos(\theta) + i r\sin(\theta)\) and \(\overline{z}=r\cos(\theta) - i r\sin(\theta)\). This least equation we can rewrite:
From the last line we see that conjugating a complex number means negating the argument of that complex number.
We can now see what happens to the product of two complex numbers. Suppose we have the complex number \(z\) with modulus \(|z|=r\) and argument \(\arg(z)=\theta\). Hence, \(z=r\cos(\theta) + i r\sin(\theta)\). The second complex number we consider is \(w\) with modulus \(|w|=s\) and argument \(\arg(w) = \phi\); thus \(w=s\cos(\phi) + i s \sin(\phi)\). We can then calculate the product using the addition formulas for cosine and sine.
We recognize this product as the number with modulus \(|zw|=rs\) and argument \(\arg(zw) = \theta+\phi\). In particular we find:
Theorem 10.2.1
If you take the complex conjugate of a complex number \(z\), the modulus remains the same and the argument is negated:
-
\(|\overline{z}| = |z|\),
-
\(\arg(\overline{z}) = -\arg(z)\).
If you multiply two complex numbers \(z\) and \(w\), you multiply the moduli and add the arguments:
-
\(|zw| = |z| \cdot |w|\),
-
\(\arg(zw) = \arg(z) + \arg(w)\).
If you divide the complex number \(z\) by the complex number \(w\neq0\) you divide the modulus of \(z\) by the modulus of \(w\) and subtract the argument of \(w\) from the argument of \(z\):
-
\(\left|\frac{z}{w}\right| = \frac{|z|}{|w|}\),
-
\(\arg\left(\frac{z}{w}\right) = \arg(z) - \arg(w)\).
Proof of Theorem 10.2.1
Proof for conjugation
With \(|z|=r\) and \(\arg{z}=\theta\), Equation (10.2.1) shows that \(|\overline{z}|=|z|\) and \(\arg(\overline{z})=-\arg(z)\).
Proof for multiplication
With \(|z|=r\), \(|w|=s\), \(\arg{z}=\theta\) and \(\arg{w}=\phi\), Equation (10.2.2) shows that \(|zw| = |z| \cdot |w|\) and \(\arg(zw) = \arg(z) + \arg(w)\).
Proof for division
For division (assuming \(w\neq0\)) we do the following:
where the last line shows that \(\left|\frac{z}{w}\right| = \frac{|z|}{|w|}\) and \(\arg\left(\frac{z}{w}\right) = \arg(z) - \arg(w)\).
You can see each of these operations illustrated in Figures 10.2.5, 10.2.6 and 10.2.7.
Fig. 10.2.5 Conjugating a complex number means negating the argument and keeping the modulus the same.#
Fig. 10.2.6 Multiplying complex numbers means adding the arguments and multiplying the moduli.#
Fig. 10.2.7 Dividig complex numbers means substracting the arguments and dividing the moduli.#
10.2.3. Euler’s formula#
Given that the polar coordinates of a complex number are so convenient and that the polar form \(r\left(\cos(\theta) + i\sin(\theta)\right)\) is such a long expression to write down, we would like to have a simple way of representing the complex number with given modulus \(r\) and argument \(\theta\).
Therefore we introduce the following identity:
Definition 10.2.2
Let \(\theta\in\mathbb{R}\). Then
which is called Euler’s formula.
Using this definition we even can prove the following theorem:
Theorem 10.2.2
Let \(z=a+bi\) with \(a,b\in\mathbb{R}\) and define \(r=|z|\) and \(\theta=\arg{z}\). Then
Proof of Theorem 10.2.2
The proof is relatively straight forward:
We can even show that the following property of the derivative still is true:
Theorem 10.2.3
Let \(\theta\in\mathbb{R}\). Then
Proof of Theorem 10.2.3
The proof is again straight forward:
You might think it is strange to use the number \(e\) and superscripts which would suggest some sort of power of \(e\). But it turns out this is very convenient as this expression satisfies the rules of calculation for exponentials. Indeed the calculation in Equation (10.2.2) shows that
This corresponds precisely with the rules for multiplying exponentials.
Thus, you can calculate with this strange notation \(re^{i\theta}\) for complex numbers just as you would if you were indeed taking imaginary powers of \(e\) (\(=2.71828\ldots\)). Some deep mathematics show that the definition given here is the only reasonable way to define taking imaginary exponents.
In practice, this polar notation of complex numbers is convenient to use when you take products or powers, whereas the \(a+bi\) notation is more convenient when you have to add complex numbers.
Example 10.2.4
Let us calculate \((1+i)^6\). As this is a high power of a complex number, we use Euler’s formula for the polar form. First, we write \(1+i=\sqrt{2} e^{i \frac{\pi}{4}}\). Thus, we have
Example 10.2.5
Let us calculate \(\dfrac{(1-\sqrt{3}i)^3}{(2+2i)^6}\). We have \(1-\sqrt{3}i=2e^{-i\frac{\pi}{3}}\) and \(2+2i=2\sqrt{2} e^{i\frac{\pi}{4}}\). Thus, we obtain
De Moivre and other trigonometric identities
The notation invented by Euler of \(e^{i\theta} = \cos(\theta) + i\sin(\theta)\) allows us to quickly derive trigonometric identities. The most famous one is De Moivre’s identity \(e^{in\theta} = (e^{i\theta})^n\), which seems obvious now, but was discovered by De Moivre decades before the exponential notation was introduced and is a lot more impressive in the form
Example 10.2.6
De Moivre’s identity allows us to find an expression for \(\cos(3\theta)\) in terms of \(\cos(\theta)\) and \(\sin(\theta)\). Indeed, expanding the right-hand side of the identity we have
Comparing the real and imaginary parts on both sides of this equation we find
You can also easily derive other formulas.
Example 10.2.7
Formulas for \(\cos(\theta+\phi)\) and \(\sin(\theta+\phi)\) are often used in calculus courses. These formulas can be derived using De Moivre’s identity.
Thus \(\cos(\theta+\phi) = \cos(\theta) \cos(\phi) - \sin(\theta) \sin(\phi)\) and \(\sin(\theta +\phi)=\sin(\theta) \cos(\phi) +\cos(\theta) \sin(\phi)\).
Solving \(z^n=w\)
The most basic equations we want to solve are of the form \(z^n=w\) for a given complex number \(w\), where \(z\) is the variable we want to solve for. Let’s consider an example:
Example 10.2.8
Consider the equation \(z^3=-16+16i\). We know it has \(3\) complex solutions, as it is a third degree equation. If we write \(z=a+bi\) and expand (to find \(a\) and \(b\)), we get a very large expression which is not easy to work with.
If we write \(z=re^{i\phi}\) in polar coordinates instead, we can easily express \(z^3=r^3e^{3i\phi}\). We also have to express the right-hand side in polar coordinates: \(-16+16i=16\sqrt{2} e^{\frac34 \pi i}\). Comparing the modulus and argument of these two expressions, we find
Taking a cube root, we find \(r=2\sqrt{2}\). Note that \(r>0\) is real, so here we need to consider only the single positive real solution, we don’t want to find the complex solutions.
Moreover, we have \(3\phi = \frac34\pi\), so \(\phi = \frac14\pi\). This gives the solution \(z=2\sqrt{2} e^{\frac14 \pi i}\). But this is just one solution and there ought to be two more by the fundamental theorem of algebra. So what are the remaining two?
As you know, the argument is only defined up to a multiple of \(2\pi\). Thus, when we get the equation \(3\phi = \frac34\pi\), we should actually write \(3\phi = \frac34\pi + 2\pi k\) for some integer \(k\). Dividing this by \(3\) gives \(\phi = \frac14\pi + \frac23 \pi k\). We see that different values of \(k\) give different values of \(\phi\). For \(k=0\), we obtain \(\phi=\frac14\pi\) as before. For \(k=1\), we obtain \(\phi = \frac14\pi + \frac23\pi = \frac{11}{12}\pi\). For \(k=2\), we have \(\phi = \frac14\pi + \frac43\pi = \frac{19}{12}\pi\). For \(k=3\), we obtain \(\phi = \frac14\pi + 2\pi\). This gives the same complex number as \(\phi=\frac14\pi\), as the argument is shifted by one full period. Indeed, if we add a multiple of \(3\) to \(k\), the argument of \(\phi\) is shifted by a multiple of \(2\pi\) and thus the corresponding solution \(z\) does not change. Therefore, only the cases \(k=0\), \(k=1\), and \(k=2\) suffice to obtain all solutions.
The three solutions, \(z_0\), \(z_1\) and \(z_2\), to the equation \(z^3=-16+16i\) thus are
You can find a visualisation of these three solutions in Figure 10.2.8.
Fig. 10.2.8 The three solutions from Example 10.2.8.#
We can generalise the method for solving \(z^n=w\) from the example above:
Algorithm 10.2.1 (Solving \(z^n=w\))
-
Write \(z=re^{i\phi}\) (for unknown \(r\) and \(\phi\)) and express the right-hand side \(w\) in polar coordinates.
-
Obtain equations for the modulus \(r\) and argument \(\phi\) by equating the modulus and argument on both sides of this equation.
-
Solve for \(r\) (you only need the single positive real solution).
-
Solve for \(\phi\), remembering to add \(+2\pi k\) first to the right-hand side.
-
You obtain all solutions to the equation by taking \(n\) (the degree of the equation) subsequent values of \(k\) in your expression of \(\phi\).
-
Combine the solution for \(r\) and the \(n\) values for \(\phi\) to obtain the \(n\) solutions.
Adding trigonometric functions
Quite often, you come across expressions where a cosine and a sine of identical frequency are added. If you plot a function of the form \(f(t)=b\cos(\omega t) + c\sin(\omega t)\), you notice that it becomes a new single wave. You can use complex numbers in a smart way to rewrite \(f(t)\) to the form \(A \cos(\omega t -\phi)\) as a single cosine with shifted argument. The variable \(A\) gives the amplitude of the combined wave and the variable \(\phi\) gives the phase-shift.
Example 10.2.9
Take \(f(t) = \cos(2t) + \sqrt{3} \sin(2t)\). If you plot the graph of this function (see Figure 10.2.9), you notice it is a single wave.
Indeed, we have
We first wrote both the cosine as the sine as real parts of complex exponentials. For the sine, we use that \(-ie^{i\theta} = -i\cos(\theta) + \sin(\theta)\), so \(\Re{-ie^{i\theta}} = \sin(\theta)\). Subsequently, we can take out the common factor \(e^{2it}\); it is a common factor as the periods of both the cosine and sine are identical. Next, we rewrite \(1-i\sqrt{3}\) in polar coordinates and work out what the result is.
Fig. 10.2.9 The graph of the sum of a cosine and a sine of identical period is a sinusoid as well.#
Example 10.2.10
In the same way you can add two cosines (or sines) with shifted arguments.
10.2.4. Derivations of Euler’s formula#
Using a scalar initial value problem
To find Euler’s formula, consider the initial value problem
Because we assumed that \(i\) behaves like any other number, we can solve this initial value problem, which leads to the solution
Now we have a solution, we put it aside and focus on another function \(q\), which we define as
Let us calculate first the value of \(q\) in \(\theta=0\):
This indicates that \(q\) satisfies the same initial condition from Equation (10.2.3) as the function \(y\) from Equation (10.2.4). Could it also be that \(q\) is a solution to the differential equation from Equation (10.2.3)? Let us investigate by looking at the first derivative of \(q\):
So we found that our function \(q\) from Equation (10.2.5) is also a solution to initial value problem from Equation (10.2.3).
But because this initial value problem can only have one unique solution, the function \(q\) from Equation (10.2.5) must be the same function as the first solution \(y\) in Equation (10.2.4). This means that we found Euler’s formula:
Using series
Euler’s formula can also be derived using series. You may already be familiar with the following three series
We can use these series to derive Euler’s formula.
First consider the following \(12\) powers of the complex number \(\theta i\) with \(\theta\in\mathbb{R}\):
Do you notice the pattern that even powers give real numbers and odd powers give complex numbers with zero real part? And also that for the list of even powers the sign flips each time? And the same for the odd powers?
Now let us consider \(e^{\theta i}\) and expand the series of the exponential function using these patterns:
As you can see we have arrived at Euler’s formula.
10.2.5. Grasple exercises#
Grasple exercise 10.2.1
From polar form to Cartesian form.
Click to show/hide
Grasple exercise 10.2.2
From Cartesian form to polar form.
Click to show/hide
Grasple exercise 10.2.3
Multiplication of powers of complex numbers.
Click to show/hide
Grasple exercise 10.2.4
Division of powers of complex numbers.
Click to show/hide
Grasple exercise 10.2.5
Cubic root of a complex number.
Click to show/hide
Grasple exercise 10.2.6
Fourth root of a complex number.
Click to show/hide
Grasple exercise 10.2.7
A slightly different cubic root question.