Exercises – Short Day#

Exercise 1: Python Exercise#

The following questions will show you how you can be more efficient in your work with complex numbers by employing Python.

Question a#

Run the following Python code in your command console Python line for line. When you see text in the code written after the # symbol, then this is a comment that has no effect on the code - you do not need to copy/type in the comments, but it doesn’t hurt either.

from math import sqrt # This rule enables the use of the square root function sqrt later

Re=3

Im=-2

mod=sqrt(Re**2+Im**2)

mod

What is the meaning of mod in this program?

Question b#

Now run the below couple of Python code lines in command console Python.

from math import cos, sin, pi #Enables the use of the functions cos and sin as well as the circle constant pi

mod=4 #mod=modulus

Arg=pi/3 #Arg=argument

Re=mod*cos(Arg)

Im=mod*sin(Arg)

Re

Im

print(f"Real part is {Re} and imaginary part is {Im}")

Re==2

This last line has a surprising output. What is the reason for this?


Exercise 2: \(\mathrm{arccos}\), \(\mathrm{arcsin}\), and Trigonometric Equations#

This exercise continues from Exercise 7 on Week 2’s Long Day. We are given the sets \(\, A=\left[\,0\,,\,2\pi\,\right]\) and \(\, B=\left[\,-\pi\,,\,\pi\,\right]\,.\)

Question a#

Solve the equation \(\,\displaystyle{\mathrm e^{\,i\cdot v}= \frac{1}{2}-\frac{\sqrt 3}{2}\,i\,}\,\) within the sets \(\,A\,\) and \(\,B\,.\)


Exercise 3: Euler’s Formula#

Question a#

Use Euler’s formula to rewrite \(\cos(3t)\sin(2t)\) to the form \(k_1 \sin(c_1t)+k_2 \sin(c_2t).\)

Exercise 4: Polar Coordinates#

Question a#

We are given the numbers \(z_1=1+i\sqrt{3}\,\), \(z_2=-1+i\sqrt{3}\,\), \(z_3=-1-i\sqrt{3}\,\), and \(z_4=1-i\sqrt{3}\,\).

  1. Draw \(z_1\), \(z_2\), \(z_3\), and \(z_4\) in the complex plane and state the rectangular coordinates of the numbers.

  2. Compute the moduli (also known as the absolute values) of \(z_1\), \(z_2\), \(z_3\), and \(z_4\). Conclude that the four numbers are located on a circle centred at \(0\). What is the radius of this circle?

  3. Determine the principal arguments of \(z_1\), \(z_2\), \(z_3\), and \(z_4\) and state the polar coordinates of the numbers.

Question b#

Someone is about to find the polar coordinates of the complex number \(\,-2+2i\,\,\). He/she chooses to use a pocket calculator. First the following is typed in:

\[\sqrt{(-2)^2+2^2}\,,\]

which gives the output \(\,2\sqrt{2}\,\) as the absolute value. Then the following is typed in:

\[\mathrm{arctan}\left(\frac{2}{-2}\right)\,,\]

which gives the output \(\,\displaystyle{-\frac {\pi}4}\,.\)

This answer is wrong. Where is the error?

Question c#

Find absolute value and principal argument of the following complex number:

\[\displaystyle{-\frac{1}{6}+\frac{i}{2\sqrt{3}}}\,.\]

Question d#

About the modulus and argument of three complex numbers \(z_1\), \(z_2\), and \(z_3\) we are informed that:

\[|z_1|=4 \quad \text{and} \quad \mathrm{arg}(z_1)=-\pi,\]
\[|z_2|=2 \quad \text{and} \quad \mathrm{arg}(z_2)=4\pi/3,\]

and

\[|z_3|=6 \quad \text{and} \quad \mathrm{arg}(z_3)=21\pi/4.\]

Note that we have not necessarily been given the principal argument of the numbers, but only an argument.

  1. Determine the principal argument of the numbers.

  2. Find the rectangular form of the numbers.


Exercise 5: The Complex Exponential Function#

Question a#

Write the following complex number in rectangular form by the use of Euler’s formula (Equation (3.7) in the textbook) and draw the numbers in the complex plane:

  1. \(\mathrm e^{i \frac{-\pi}{4}}\)

  2. \(\mathrm e^{i\frac{\pi}{2}}\)

  3. \(\mathrm e^{\pi i}\)

  4. \(\mathrm e^{i \frac{5\pi}{4}}\)

What are the (principal) arguments of the numbers?

Question b#

Write the following complex numbers in rectangular form by using Definition 3.4.1 in the textbook:

  1. \(\mathrm e^{i\frac{\pi}{2}}.\)

  2. \(3\mathrm e^{1+\pi i}.\)

Question c#

The complex number \(w=1-i\) is given.

  1. Determine \(|\,w\,|\) and an argument \(\arg(w)\,\).

  2. Determine \(|\,\mathrm e^w\,|\) and an argument \(\arg(\mathrm e^w)\,\).


Exercise 6: Derivatives of the Complex Exponential Function#

With the two functions \(f_1: \mathbb{R} \to \mathbb{R}\) and \(f_2: \mathbb{R} \to \mathbb{R}\) given we can define a function \(f: \mathbb{R} \to \mathbb{C}\) by the expression \(f(x)=f_1(x)+if_2(x).\) We will in this exercise assume that the derivatives of \(f_1\) and \(f_2\) exist and we will denote them as usual with \(f_1'\) and \(f_2'\). Then one would define the function \(f': \mathbb{R} \to \mathbb{C}\) by the expression

\[f'(x)=f_1'(x)+i f_2'(x).\]

Question a#

Now let us choose \(f_1(x)=\cos(x)\) and \(f_2(x)=\sin(x)\). Show that it then applies that \(f(x)=\mathrm e^{ix}\) and \(f'(x)=i \mathrm e^{ix}\) for all \(x \in \mathbb{R}.\) In other words it applies that \((\mathrm e^{ix})'=i\mathrm e^{ix}.\)

Question b#

Let \(a\) and \(b\) be real numbers. State two functions \(f_1: \mathbb{R} \to \mathbb{R}\) and \(f_2: \mathbb{R} \to \mathbb{R}\) such that the function with the expression \(f(x)=f_1(x)+if_2(x)\) fulfills that

\[f(x)=\mathrm e^{(a+ib)x} \quad \text{for all} \quad x \in \mathbb{R}.\]

Question c#

Show that \((\mathrm e^{(a+ib)x})'=(a+ib)\mathrm e^{(a+ib)x}.\)