7.3 Complex Roots & Differential Equations

De Moivre's theorem, $n$th roots, and the connection between complex characteristic roots and real-valued solutions

De Moivre's Theorem

Theorem: De Moivre

For any integer $n$:

$$\bigl(\cos\theta + i\sin\theta\bigr)^n = \cos(n\theta) + i\sin(n\theta)$$

Equivalently, $\bigl(e^{i\theta}\bigr)^n = e^{in\theta}$. This follows directly from the laws of exponents applied to Euler's formula.

De Moivre's theorem has two main applications: computing high powers of complex numbers (covered in 7.2), and finding roots.

Example 1: Computing a Power

Compute $\bigl(\frac{\sqrt{3}}{2} + \frac{1}{2}i\bigr)^{12}$.

Recognize: $\frac{\sqrt{3}}{2} + \frac{1}{2}i = \cos\frac{\pi}{6} + i\sin\frac{\pi}{6}$ (modulus = 1).

By De Moivre:

$$\left(\cos\frac{\pi}{6} + i\sin\frac{\pi}{6}\right)^{12} = \cos\left(\frac{12\pi}{6}\right) + i\sin\left(\frac{12\pi}{6}\right) = \cos 2\pi + i\sin 2\pi = 1$$

Finding $n$th Roots of Complex Numbers

De Moivre's theorem, run in reverse, lets us find all $n$ distinct $n$th roots of any complex number.

Formula: $n$th Roots

The $n$ distinct $n$th roots of $z = re^{i\theta}$ are:

$$z_k = r^{1/n} \exp\!\left(i\,\frac{\theta + 2\pi k}{n}\right), \quad k = 0, 1, 2, \ldots, n-1$$

These $n$ roots are equally spaced around a circle of radius $r^{1/n}$, separated by an angle of $\frac{2\pi}{n}$.

Geometric Picture

The $n$th roots of any complex number form the vertices of a regular $n$-gon inscribed in a circle. The cube roots of 1 form an equilateral triangle; the 4th roots of 1 form a square; the 5th roots of 1 form a regular pentagon.

Example 2: Cube Roots of $-8$

Find all three cube roots of $z = -8$.

Write $-8 = 8 e^{i\pi}$ (modulus 8, argument $\pi$).

$$z_k = 8^{1/3} \exp\!\left(i\,\frac{\pi + 2\pi k}{3}\right) = 2 \exp\!\left(i\,\frac{\pi + 2\pi k}{3}\right), \quad k = 0,1,2$$

$k = 0$: $z_0 = 2e^{i\pi/3} = 2\bigl(\frac{1}{2} + \frac{\sqrt{3}}{2}i\bigr) = 1 + \sqrt{3}\,i$

$k = 1$: $z_1 = 2e^{i\pi} = -2$ (the obvious real root)

$k = 2$: $z_2 = 2e^{i5\pi/3} = 2\bigl(\frac{1}{2} - \frac{\sqrt{3}}{2}i\bigr) = 1 - \sqrt{3}\,i$

Verify: $(-2)^3 = -8$ and $(1+\sqrt{3}\,i)^3 = -8$ (check it!).

Example 3: Fourth Roots of Unity

Find all solutions to $z^4 = 1$.

$1 = 1 \cdot e^{i \cdot 0}$, so:

$$z_k = e^{i \cdot 2\pi k / 4} = e^{i\pi k/2}, \quad k = 0,1,2,3$$
$$z_0 = 1, \quad z_1 = i, \quad z_2 = -1, \quad z_3 = -i$$

These form a square in the complex plane (vertices on the unit circle at $0°, 90°, 180°, 270°$).

Complex Roots of the Characteristic Equation

This is the culmination of Chapter 7 and its direct connection to Chapter 2. When we solve a second-order linear ODE with constant coefficients, the characteristic equation may have complex roots. Here is the complete procedure:

1 Write the characteristic equation. For $ay'' + by' + cy = 0$, form $ar^2 + br + c = 0$.

2 Solve for $r$. Use the quadratic formula: $r = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$.

3 Identify the case.

DiscriminantRoot TypeGeneral Solution
$b^2 - 4ac > 0$Two distinct real roots $r_1, r_2$$y = c_1 e^{r_1 t} + c_2 e^{r_2 t}$
$b^2 - 4ac = 0$Repeated real root $r$$y = (c_1 + c_2 t)e^{rt}$
$b^2 - 4ac < 0$Complex conjugate pair $\alpha \pm \beta i$$y = e^{\alpha t}(c_1 \cos\beta t + c_2 \sin\beta t)$

4 For complex roots $r = \alpha \pm \beta i$: Extract $\alpha = \frac{-b}{2a}$ and $\beta = \frac{\sqrt{4ac - b^2}}{2a}$, then write the real-valued general solution.

Why the Solution is Real

The two complex solutions $e^{(\alpha+\beta i)t}$ and $e^{(\alpha-\beta i)t}$ are complex conjugates of each other. By taking their sum and difference (divided by 2 and $2i$ respectively), we get two independent real solutions: $e^{\alpha t}\cos\beta t$ and $e^{\alpha t}\sin\beta t$. This is exactly what Euler's formula enables.

Worked Examples: Solving DEs with Complex Roots

Example 4: Simple Harmonic Oscillator

Solve $y'' + 4y = 0$, $y(0) = 3$, $y'(0) = -2$.

Step 1: Characteristic equation: $r^2 + 4 = 0$.

Step 2: $r = \pm 2i$. So $\alpha = 0$, $\beta = 2$.

Step 3: General solution:

$$y(t) = e^{0 \cdot t}(c_1 \cos 2t + c_2 \sin 2t) = c_1 \cos 2t + c_2 \sin 2t$$

Step 4: Apply initial conditions:

$y(0) = c_1 = 3$

$y'(t) = -2c_1 \sin 2t + 2c_2 \cos 2t$, so $y'(0) = 2c_2 = -2$, giving $c_2 = -1$.

$$y(t) = 3\cos 2t - \sin 2t$$

Pure oscillation (no growth or decay since $\alpha = 0$).

Example 5: Damped Oscillator

Solve $y'' + 2y' + 5y = 0$, $y(0) = 1$, $y'(0) = 0$.

Step 1: Characteristic equation: $r^2 + 2r + 5 = 0$.

Step 2: $r = \frac{-2 \pm \sqrt{4 - 20}}{2} = \frac{-2 \pm \sqrt{-16}}{2} = \frac{-2 \pm 4i}{2} = -1 \pm 2i$

So $\alpha = -1$, $\beta = 2$.

Step 3: General solution:

$$y(t) = e^{-t}(c_1 \cos 2t + c_2 \sin 2t)$$

Step 4: $y(0) = c_1 = 1$.

$y'(t) = e^{-t}[(-c_1 + 2c_2)\cos 2t + (-c_2 - 2c_1)\sin 2t]$

$y'(0) = -c_1 + 2c_2 = -1 + 2c_2 = 0$, so $c_2 = \frac{1}{2}$.

$$y(t) = e^{-t}\!\left(\cos 2t + \tfrac{1}{2}\sin 2t\right)$$

The factor $e^{-t}$ causes the amplitude to decay to zero as $t \to \infty$ (damped oscillation).

Example 6: Third-Order Equation

Find the general solution of $y''' - y'' + y' - y = 0$.

Step 1: $r^3 - r^2 + r - 1 = 0$. Factor by grouping: $r^2(r-1) + 1(r-1) = (r^2+1)(r-1) = 0$.

Step 2: Roots: $r = 1$ and $r = \pm i$.

Step 3: From $r = 1$: $e^t$. From $r = \pm i$ ($\alpha = 0$, $\beta = 1$): $\cos t$ and $\sin t$.

$$y(t) = c_1 e^t + c_2 \cos t + c_3 \sin t$$

Physical Interpretation of Complex Roots

The form $y = e^{\alpha t}(c_1 \cos\beta t + c_2 \sin\beta t)$ has a clear physical meaning that depends on the sign of $\alpha$:

ConditionBehaviorPhysical Example
$\alpha < 0$Decaying oscillationUnderdamped spring-mass, RLC circuit with resistance
$\alpha = 0$Sustained oscillation (no damping)Ideal LC circuit, frictionless spring
$\alpha > 0$Growing oscillation (unstable)Positive feedback in amplifier, flutter

Frequency & Period

The angular frequency is $\beta$ rad/s, so the natural frequency is $f = \frac{\beta}{2\pi}$ Hz and the period is $T = \frac{2\pi}{\beta}$ seconds.

Time Constant

When $\alpha < 0$, the time constant is $\tau = \frac{1}{|\alpha|}$ — the time for the amplitude to decay by a factor of $e \approx 2.718$.

EE Application: RLC Underdamped Response

For the series RLC circuit $L\ddot{q} + R\dot{q} + \frac{1}{C}q = 0$, the characteristic roots are $r = -\frac{R}{2L} \pm i\sqrt{\frac{1}{LC} - \frac{R^2}{4L^2}}$ when $R^2 < \frac{4L}{C}$. Here $\alpha = -\frac{R}{2L}$ (always negative, since $R > 0$) and $\beta = \sqrt{\frac{1}{LC} - \frac{R^2}{4L^2}}$. The current oscillates at the damped frequency $\beta$ while decaying exponentially.

📝 Exam-Style Practice Problems

These problems are similar in style and difficulty to past exam questions. Click each problem to reveal the step-by-step solution.

Practice 1 (IVP): $y'' + 6y' + 13y = 0$, $\;y(0) = 2$, $\;y'(0) = -1$

Solution

Step 1: Write and solve the characteristic equation

$$r^2 + 6r + 13 = 0 \;\Longrightarrow\; r = \frac{-6 \pm \sqrt{36 - 52}}{2} = \frac{-6 \pm \sqrt{-16}}{2} = \frac{-6 \pm 4i}{2}$$ $$r = -3 \pm 2i \qquad\text{so}\qquad \alpha = -3,\; \beta = 2$$

Step 2: Convert the complex roots to the real general solution

Roots $\alpha \pm \beta i$ always give the pair $e^{\alpha t}\cos\beta t$ and $e^{\alpha t}\sin\beta t$:

$$y(t) = e^{-3t}\left(c_1\cos 2t + c_2\sin 2t\right)$$

Step 3: Apply $y(0) = 2$

$$y(0) = e^{0}(c_1 \cdot 1 + c_2 \cdot 0) = c_1 = 2$$

Step 4: Differentiate with the product rule

$$y'(t) = e^{-3t}\left[(-3c_1 + 2c_2)\cos 2t + (-3c_2 - 2c_1)\sin 2t\right]$$

At $t = 0$ only the cosine term survives:

$$y'(0) = -3c_1 + 2c_2 = -6 + 2c_2 = -1 \;\Longrightarrow\; c_2 = \frac{5}{2}$$

Step 5: Write the particular solution

$$\boxed{y(t) = e^{-3t}\left(2\cos 2t + \tfrac{5}{2}\sin 2t\right)}$$
Physical reading: $\alpha = -3 < 0$ means the amplitude envelope $e^{-3t}$ decays — an underdamped system. The oscillation has angular frequency $\beta = 2$, so its period is $\pi$ while the amplitude has already fallen by a factor $e^{-3\pi} \approx 8\times 10^{-5}$ over that one cycle.
Practice 2: Find the four fourth roots of $-16$, then solve $y^{(4)} + 16y = 0$

Solution

Step 1: Put $-16$ in polar form

$$-16 = 16e^{i\pi} \qquad (r = 16,\; \theta = \pi)$$

Step 2: Apply the $n$th-root formula with $n = 4$

$$w_k = 16^{1/4}\exp\!\left(i\,\frac{\pi + 2\pi k}{4}\right) = 2\exp\!\left(i\,\frac{\pi + 2\pi k}{4}\right), \qquad k = 0, 1, 2, 3$$

All four roots have modulus $2$ and are spaced $2\pi/4 = 90^\circ$ apart.

Step 3: List the angles and convert

$$k=0:\; 2e^{i\pi/4} = \sqrt{2} + i\sqrt{2} \qquad k=1:\; 2e^{i3\pi/4} = -\sqrt{2} + i\sqrt{2}$$ $$k=2:\; 2e^{i5\pi/4} = -\sqrt{2} - i\sqrt{2} \qquad k=3:\; 2e^{i7\pi/4} = \sqrt{2} - i\sqrt{2}$$

Taking $k = 4$ would give the angle $9\pi/4 = \pi/4 + 2\pi$, which is the same number as $k = 0$ — there are exactly four distinct roots.

Step 4: Recognise these as characteristic roots

The equation $y^{(4)} + 16y = 0$ has characteristic equation $r^4 + 16 = 0$, i.e. $r^4 = -16$. So the roots we just found are the characteristic roots, arriving as two conjugate pairs:

$$r = \sqrt{2} \pm i\sqrt{2} \qquad\text{and}\qquad r = -\sqrt{2} \pm i\sqrt{2}$$

Step 5: Translate each pair into real solutions

$$\boxed{y(t) = e^{\sqrt{2}\,t}\!\left(c_1\cos\sqrt{2}\,t + c_2\sin\sqrt{2}\,t\right) + e^{-\sqrt{2}\,t}\!\left(c_3\cos\sqrt{2}\,t + c_4\sin\sqrt{2}\,t\right)}$$
Check the count: a fourth-order equation needs four independent solutions, and two conjugate pairs deliver exactly four. The pair with $\alpha = +\sqrt{2}$ grows and the pair with $\alpha = -\sqrt{2}$ decays, both oscillating at the same frequency $\beta = \sqrt{2}$.
Practice 3 (Mass–spring): $x'' + 4x' + 20x = 0$, $\;x(0) = 0$, $\;x'(0) = 8$

Solution

A $1$ kg mass on a spring with stiffness $k = 20$ N/m and damping $c = 4$ N·s/m is struck so that it starts at equilibrium with velocity $8$ m/s.

Step 1: Characteristic equation

$$r^2 + 4r + 20 = 0 \;\Longrightarrow\; r = \frac{-4 \pm \sqrt{16 - 80}}{2} = \frac{-4 \pm 8i}{2} = -2 \pm 4i$$

The discriminant is negative, which is precisely the underdamped case $c^2 < 4mk$: here $16 < 80$.

Step 2: General real solution

$$x(t) = e^{-2t}\left(c_1\cos 4t + c_2\sin 4t\right)$$

Step 3: Apply $x(0) = 0$

$$x(0) = c_1 = 0 \;\Longrightarrow\; x(t) = c_2 e^{-2t}\sin 4t$$

Step 4: Apply $x'(0) = 8$

$$x'(t) = c_2 e^{-2t}\left(-2\sin 4t + 4\cos 4t\right), \qquad x'(0) = 4c_2 = 8 \;\Longrightarrow\; c_2 = 2$$

Step 5: Particular solution

$$\boxed{x(t) = 2e^{-2t}\sin 4t}$$

Step 6: Read the physics off the root $-2 + 4i$

  • Decay rate $|\alpha| = 2$, so the time constant is $1/2$ s.
  • Damped angular frequency $\beta = 4$ rad/s, period $2\pi/4 \approx 1.57$ s.
  • Undamped natural frequency $\omega_0 = \sqrt{k/m} = \sqrt{20} \approx 4.47$ rad/s, so damping has slightly lowered the frequency, exactly as $\beta = \sqrt{\omega_0^2 - \alpha^2} = \sqrt{20 - 4} = 4$ predicts.
The pedagogical point of Chapter 7: the single complex number $-2 + 4i$ carries both physical facts at once — its real part is how fast the motion dies out, its imaginary part is how fast it wiggles.

Practice Problems

Problem 1

Find all five 5th roots of $32$.

$32 = 32 e^{i \cdot 0}$, so $z_k = 32^{1/5} e^{i \cdot 2\pi k/5} = 2 e^{i \cdot 2\pi k/5}$ for $k=0,1,2,3,4$.

$$z_0 = 2, \quad z_1 = 2e^{2\pi i/5}, \quad z_2 = 2e^{4\pi i/5}, \quad z_3 = 2e^{6\pi i/5}, \quad z_4 = 2e^{8\pi i/5}$$

In rectangular form: $z_0 = 2$, $z_1 \approx 0.618 + 1.902i$, $z_2 \approx -1.618 + 1.176i$, $z_3 \approx -1.618 - 1.176i$, $z_4 \approx 0.618 - 1.902i$.

These form a regular pentagon inscribed in a circle of radius 2.

Problem 2

Solve $y'' + 6y' + 13y = 0$, $y(0) = 2$, $y'(0) = -1$.

Characteristic equation: $r^2 + 6r + 13 = 0$.

$r = \frac{-6 \pm \sqrt{36 - 52}}{2} = \frac{-6 \pm \sqrt{-16}}{2} = -3 \pm 2i$

General solution: $y = e^{-3t}(c_1\cos 2t + c_2\sin 2t)$.

$y(0) = c_1 = 2$.

$y'(t) = e^{-3t}[(-3c_1+2c_2)\cos 2t + (-3c_2-2c_1)\sin 2t]$.

$y'(0) = -3c_1 + 2c_2 = -6 + 2c_2 = -1$, so $c_2 = \frac{5}{2}$.

$$y(t) = e^{-3t}\!\left(2\cos 2t + \tfrac{5}{2}\sin 2t\right)$$
Problem 3

For the equation $y'' + \omega^2 y = 0$, show that the general solution can be written in the amplitude-phase form $y = A\cos(\omega t - \phi)$ and express $A$ and $\phi$ in terms of initial conditions $y(0) = y_0$ and $y'(0) = v_0$.

General solution: $y = c_1\cos\omega t + c_2\sin\omega t$ with $c_1 = y_0$ and $c_2 = v_0/\omega$.

Using the identity $c_1\cos\omega t + c_2\sin\omega t = A\cos(\omega t - \phi)$:

$$A = \sqrt{c_1^2 + c_2^2} = \sqrt{y_0^2 + \frac{v_0^2}{\omega^2}}, \qquad \tan\phi = \frac{c_2}{c_1} = \frac{v_0}{\omega y_0}$$

$A$ is the amplitude and $\phi$ is the phase shift. This form is preferred in engineering because it explicitly separates amplitude from timing.

Problem 4

An RLC circuit has $L = 0.5$ H, $R = 4$ $\Omega$, $C = 0.04$ F. Write the general solution for the charge $q(t)$.

ODE: $0.5\ddot{q} + 4\dot{q} + 25q = 0$, or equivalently $\ddot{q} + 8\dot{q} + 50q = 0$.

$r = \frac{-8 \pm \sqrt{64 - 200}}{2} = \frac{-8 \pm \sqrt{-136}}{2} = -4 \pm i\sqrt{34}$

Since $\sqrt{34} \approx 5.83$:

$$q(t) = e^{-4t}\bigl(c_1\cos\sqrt{34}\,t + c_2\sin\sqrt{34}\,t\bigr)$$

This is underdamped: oscillation at $\approx 5.83$ rad/s with exponential decay at rate 4. The damped frequency is $\frac{\sqrt{34}}{2\pi} \approx 0.93$ Hz.

Chapter 7 Summary

The Big Picture

Complex numbers are not an abstract curiosity — they are the natural language for oscillatory phenomena. Every time a differential equation produces complex roots, those roots encode both the frequency and the growth/decay rate of the physical solution. Euler's formula $e^{i\theta} = \cos\theta + i\sin\theta$ is the translator between the compact complex exponential form and the real trigonometric form you can measure in the lab.

Key Takeaways

ConceptFormula / Rule
Complex arithmeticFOIL with $i^2 = -1$; divide by multiplying by $\bar{z}/\bar{z}$
Polar form$z = re^{i\theta}$; multiply moduli, add arguments
Euler's formula$e^{i\theta} = \cos\theta + i\sin\theta$
$n$th roots$n$ equally-spaced points on circle of radius $r^{1/n}$
Complex DE roots $\alpha \pm \beta i$$y = e^{\alpha t}(c_1\cos\beta t + c_2\sin\beta t)$
رَبِّ زِدْنِي عِلْمًا
"My Lord, increase me in knowledge."
— Quran, Surah Ta-Ha (20:114)

← Back to Home    Practice with AI Tutor

Self-Check Quiz

Six questions covering the whole chapter. Your answers are recorded so the AI tutor can tailor its recommendations — answer honestly rather than guessing.

Answered 0 of 6

1. What is $i^{42}$?

2. Which expression equals $\dfrac{1}{z}$ for a nonzero complex $z$?

3. In polar form, what does multiplying two complex numbers do to their arguments?

4. How many distinct 6th roots does a nonzero complex number have?

5. The characteristic equation of an ODE has roots $r = -1 \pm 4i$. What is the general solution?

6. For roots $\alpha \pm \beta i$, which part controls whether the oscillation grows or decays?