Skip to main content

Complex Numbers — Diagnostic Tests

Unit Tests

Tests edge cases, boundary conditions, and common misconceptions for complex numbers.

UT-1: De Moivre's Theorem and Argument Branch Cuts

Question:

(a) Find all values of zz such that z4=16z^4 = -16.

(b) Express each solution in the form a+bia + bi, in polar form reiθre^{i\theta}, and state the principal argument of each.

(c) A student computes one root as 2eiπ/42e^{i\pi/4} and claims the other roots are obtained by adding π2\frac{\pi}{2} to the argument each time. Verify whether this is correct, and if not, explain the error.

[Difficulty: hard. Tests roots of a negative real number and argument normalisation to (π,π](-\pi, \pi].]

Solution:

(a) Write 16=16eiπ-16 = 16e^{i\pi}. The fourth roots are:

zk=161/4ei(π+2kπ)/4=2ei(2k+1)π/4,k=0,1,2,3z_k = 16^{1/4} \cdot e^{i(\pi + 2k\pi)/4} = 2e^{i(2k+1)\pi/4}, \quad k = 0, 1, 2, 3

(b)

  • k=0k = 0: z0=2eiπ/4=2(cosπ4+isinπ4)=2+i2z_0 = 2e^{i\pi/4} = 2\left(\cos\frac{\pi}{4} + i\sin\frac{\pi}{4}\right) = \sqrt{2} + i\sqrt{2}, arg=π4\arg = \frac{\pi}{4}
  • k=1k = 1: z1=2ei3π/4=2(cos3π4+isin3π4)=2+i2z_1 = 2e^{i3\pi/4} = 2\left(\cos\frac{3\pi}{4} + i\sin\frac{3\pi}{4}\right) = -\sqrt{2} + i\sqrt{2}, arg=3π4\arg = \frac{3\pi}{4}
  • k=2k = 2: z2=2ei5π/4=2(cos5π4+isin5π4)=2i2z_2 = 2e^{i5\pi/4} = 2\left(\cos\frac{5\pi}{4} + i\sin\frac{5\pi}{4}\right) = -\sqrt{2} - i\sqrt{2}, arg=3π4\arg = -\frac{3\pi}{4}
  • k=3k = 3: z3=2ei7π/4=2(cos7π4+isin7π4)=2i2z_3 = 2e^{i7\pi/4} = 2\left(\cos\frac{7\pi}{4} + i\sin\frac{7\pi}{4}\right) = \sqrt{2} - i\sqrt{2}, arg=π4\arg = -\frac{\pi}{4}

Note: 5π4\frac{5\pi}{4} is normalised to 3π4-\frac{3\pi}{4}, and 7π4\frac{7\pi}{4} is normalised to π4-\frac{\pi}{4}, to satisfy the principal argument range (π,π](-\pi, \pi].

(c) The student is correct that the arguments differ by π2\frac{\pi}{2}. Starting from π4\frac{\pi}{4}: 3π4\frac{3\pi}{4}, 5π4\frac{5\pi}{4}, 7π4\frac{7\pi}{4}. These are the correct arguments before normalisation. The student's method works, but they must remember to normalise arguments outside (π,π](-\pi, \pi] to the principal range.


UT-2: Polar Form Conversion — Wrong Quadrant

Question:

Find the modulus and principal argument of z=1i3z = -1 - i\sqrt{3}.

Express zz in all three standard forms (Cartesian, polar, Euler).

A student computes arg(z)=arctan ⁣(31)=arctan(3)=π3\arg(z) = \arctan\!\left(\dfrac{-\sqrt{3}}{-1}\right) = \arctan(\sqrt{3}) = \frac{\pi}{3} and concludes that arg(z)=π3\arg(z) = \frac{\pi}{3}.

(a) Identify the error.

(b) Give the correct argument.

[Difficulty: hard. Tests the most common complex number error: wrong quadrant for the argument.]

Solution:

(a) The point (1,3)(-1, -\sqrt{3}) lies in the third quadrant (both coordinates negative). The student used arctan ⁣(ba)=arctan ⁣(31)\arctan\!\left(\frac{b}{a}\right) = \arctan\!\left(\frac{-\sqrt{3}}{-1}\right), which gives π3\frac{\pi}{3} — a first-quadrant angle. The arctan\arctan function always returns values in (π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2}), so it cannot distinguish between first and third quadrants.

(b) In the third quadrant:

arg(z)=π+arctan ⁣(31)=π+π3=2π3\arg(z) = \pi + \arctan\!\left(\frac{\sqrt{3}}{1}\right) = \pi + \frac{\pi}{3} = -\frac{2\pi}{3}

(The principal value is 2π3-\frac{2\pi}{3}, which lies in (π,π](-\pi, \pi].)

Modulus: z=(1)2+(3)2=1+3=2|z| = \sqrt{(-1)^2 + (-\sqrt{3})^2} = \sqrt{1 + 3} = 2.

Three forms:

  • Cartesian: z=1i3z = -1 - i\sqrt{3}
  • Polar: z=2(cos ⁣(2π3)+isin ⁣(2π3))z = 2\left(\cos\!\left(-\frac{2\pi}{3}\right) + i\sin\!\left(-\frac{2\pi}{3}\right)\right)
  • Euler: z=2e2πi/3z = 2e^{-2\pi i/3}

UT-3: Complex Division and Conjugate Properties

Question:

(a) Simplify (2+3i)21i\dfrac{(2 + 3i)^2}{1 - i}, giving your answer in the form a+bia + bi.

(b) Prove that for any non-zero complex number zz, z+1zˉ2\left|z + \dfrac{1}{\bar{z}}\right| \geq 2.

[Difficulty: hard. Tests rationalisation with complex conjugate and modulus inequality proof.]

Solution:

(a) First, expand the numerator:

(2+3i)2=4+12i+9i2=4+12i9=5+12i(2 + 3i)^2 = 4 + 12i + 9i^2 = 4 + 12i - 9 = -5 + 12i

Now divide by 1i1 - i by multiplying by the conjugate 1+i1 + i:

5+12i1i1+i1+i=(5+12i)(1+i)1+1=55i+12i+12i22\frac{-5 + 12i}{1 - i} \cdot \frac{1 + i}{1 + i} = \frac{(-5 + 12i)(1 + i)}{1 + 1} = \frac{-5 - 5i + 12i + 12i^2}{2}

=5+7i122=17+7i2=172+72i= \frac{-5 + 7i - 12}{2} = \frac{-17 + 7i}{2} = -\frac{17}{2} + \frac{7}{2}i

(b) Let z=a+biz = a + bi where a,b{R}a, b \in \mathbb{'\{'}R{'\}'} and (a,b)(0,0)(a, b) \neq (0, 0).

1zˉ=1abia+bia+bi=a+bia2+b2=aa2+b2+ba2+b2i\frac{1}{\bar{z}} = \frac{1}{a - bi} \cdot \frac{a + bi}{a + bi} = \frac{a + bi}{a^2 + b^2} = \frac{a}{a^2 + b^2} + \frac{b}{a^2 + b^2}i

z+1zˉ=(a+aa2+b2)+(b+ba2+b2)i=a(1+1a2+b2)+b(1+1a2+b2)iz + \frac{1}{\bar{z}} = \left(a + \frac{a}{a^2 + b^2}\right) + \left(b + \frac{b}{a^2 + b^2}\right)i = a\left(1 + \frac{1}{a^2 + b^2}\right) + b\left(1 + \frac{1}{a^2 + b^2}\right)i

=(1+1a2+b2)(a+bi)=a2+b2+1a2+b2z= \left(1 + \frac{1}{a^2 + b^2}\right)(a + bi) = \frac{a^2 + b^2 + 1}{a^2 + b^2} \cdot z

z+1zˉ=a2+b2+1a2+b2z=a2+b2+1a2+b2a2+b2=a2+b2+1a2+b2\left|z + \frac{1}{\bar{z}}\right| = \frac{a^2 + b^2 + 1}{a^2 + b^2} \cdot |z| = \frac{a^2 + b^2 + 1}{a^2 + b^2} \cdot \sqrt{a^2 + b^2} = \frac{a^2 + b^2 + 1}{\sqrt{a^2 + b^2}}

Since a2+b20a^2 + b^2 \geq 0 and a2+b2>0a^2 + b^2 \gt 0 (as z0z \neq 0):

a2+b2+1a2+b2=a2+b2+1a2+b22\frac{a^2 + b^2 + 1}{\sqrt{a^2 + b^2}} = \sqrt{a^2 + b^2} + \frac{1}{\sqrt{a^2 + b^2}} \geq 2

by the AM-GM inequality (with equality when a2+b2=1\sqrt{a^2 + b^2} = 1).


Integration Tests

Tests synthesis of complex numbers with other topics.

IT-1: Deriving Trig Identities via Euler's Formula (with Trigonometry)

Question:

(a) Using Euler's formula, show that cos3θ=14cos3θ+34cosθ\cos^3\theta = \dfrac{1}{4}\cos 3\theta + \dfrac{3}{4}\cos\theta.

(b) Hence find the exact value of cos3 ⁣(π9)+cos3 ⁣(5π9)+cos3 ⁣(7π9)\cos^3\!\left(\dfrac{\pi}{9}\right) + \cos^3\!\left(\dfrac{5\pi}{9}\right) + \cos^3\!\left(\dfrac{7\pi}{9}\right).

[Difficulty: hard. Uses De Moivre/binomial expansion to derive trig identities and applies them to a non-trivial evaluation.]

Solution:

(a) From Euler's formula: cosθ+isinθ=eiθ\cos\theta + i\sin\theta = e^{i\theta}.

By the binomial theorem:

(cosθ+isinθ)3=cos3θ+3icos2θsinθ3cosθsin2θisin3θ(\cos\theta + i\sin\theta)^3 = \cos^3\theta + 3i\cos^2\theta\sin\theta - 3\cos\theta\sin^2\theta - i\sin^3\theta

By De Moivre's theorem: (cosθ+isinθ)3=cos3θ+isin3θ(\cos\theta + i\sin\theta)^3 = \cos 3\theta + i\sin 3\theta.

Equating real parts:

cos3θ=cos3θ3cosθsin2θ=cos3θ3cosθ(1cos2θ)\cos 3\theta = \cos^3\theta - 3\cos\theta\sin^2\theta = \cos^3\theta - 3\cos\theta(1 - \cos^2\theta)

cos3θ=4cos3θ3cosθ\cos 3\theta = 4\cos^3\theta - 3\cos\theta

cos3θ=14cos3θ+34cosθ\cos^3\theta = \frac{1}{4}\cos 3\theta + \frac{3}{4}\cos\theta

(b) Note that π9\frac{\pi}{9}, 5π9\frac{5\pi}{9}, and 7π9\frac{7\pi}{9} are the three distinct solutions to cos3θ=cosπ3=12\cos 3\theta = \cos\frac{\pi}{3} = \frac{1}{2}, since 3π9=π33 \cdot \frac{\pi}{9} = \frac{\pi}{3}, 35π9=5π33 \cdot \frac{5\pi}{9} = \frac{5\pi}{3}, and 37π9=7π3=π32π3 \cdot \frac{7\pi}{9} = \frac{7\pi}{3} = \frac{\pi}{3} - 2\pi.

So cos3θ=12\cos 3\theta = \frac{1}{2} for all three angles. Using the identity:

cos3θ=14cos3θ+34cosθ=18+34cosθ\cos^3\theta = \frac{1}{4}\cos 3\theta + \frac{3}{4}\cos\theta = \frac{1}{8} + \frac{3}{4}\cos\theta

Summing over the three values:

cos3θ=18+34cosθ=38+34cosθ\sum \cos^3\theta = \sum \frac{1}{8} + \frac{3}{4}\sum \cos\theta = \frac{3}{8} + \frac{3}{4}\sum \cos\theta

The values cosπ9\cos\frac{\pi}{9}, cos5π9\cos\frac{5\pi}{9}, cos7π9\cos\frac{7\pi}{9} are the three roots of 4cos3θ3cosθ12=04\cos^3\theta - 3\cos\theta - \frac{1}{2} = 0, i.e., 8x36x1=08x^3 - 6x - 1 = 0. By Vieta's formula, the sum of the roots is zero (coefficient of x2x^2 is 00).

Therefore:

cos3θ=38+34×0=38\sum \cos^3\theta = \frac{3}{8} + \frac{3}{4} \times 0 = \frac{3}{8}


IT-2: Rotation Matrices from Roots of Unity (with Matrices)

Question:

Let ω=e2πi/3\omega = e^{2\pi i/3} be a primitive cube root of unity.

(a) Show that the matrix R=(cos2π3sin2π3sin2π3cos2π3)R = \begin{pmatrix} \cos\frac{2\pi}{3} & -\sin\frac{2\pi}{3} \\ \sin\frac{2\pi}{3} & \cos\frac{2\pi}{3} \end{pmatrix} represents a rotation by 120120^\circ anticlockwise.

(b) Find R2R^2 and R3R^3, and explain the connection to the cube roots of unity.

[Difficulty: hard. Connects complex roots of unity to 2×22 \times 2 rotation matrices.]

Solution:

(a) The matrix RR is the standard 2×22 \times 2 rotation matrix for angle 2π3\frac{2\pi}{3}. Applying RR to the vector (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix}:

R(10)=(cos2π3sin2π3)=(1232)R\begin{pmatrix} 1 \\ 0 \end{pmatrix} = \begin{pmatrix} \cos\frac{2\pi}{3} \\ \sin\frac{2\pi}{3} \end{pmatrix} = \begin{pmatrix} -\frac{1}{2} \\ \frac{\sqrt{3}}{2} \end{pmatrix}

This is the point on the unit circle at angle 2π3\frac{2\pi}{3}, confirming a 120120^\circ rotation.

(b) R2R^2 represents a rotation by 4π3\frac{4\pi}{3}:

R2=(cos4π3sin4π3sin4π3cos4π3)=(12323212)R^2 = \begin{pmatrix} \cos\frac{4\pi}{3} & -\sin\frac{4\pi}{3} \\ \sin\frac{4\pi}{3} & \cos\frac{4\pi}{3} \end{pmatrix} = \begin{pmatrix} -\frac{1}{2} & \frac{\sqrt{3}}{2} \\ -\frac{\sqrt{3}}{2} & -\frac{1}{2} \end{pmatrix}

R3=IR^3 = I (the identity matrix), since rotating by 2π2\pi returns to the original position.

The connection: ω=e2πi/3\omega = e^{2\pi i/3} corresponds to RR, ω2=e4πi/3\omega^2 = e^{4\pi i/3} corresponds to R2R^2, and ω3=1\omega^3 = 1 corresponds to R3=IR^3 = I. The cube roots of unity {1,ω,ω2}\{1, \omega, \omega^2\} correspond to the matrices {I,R,R2}\{I, R, R^2\}.