Complex Roots and Oscillations

This is where differential equations become beautiful.

In the previous chapter, we solved second-order homogeneous equations by finding roots of the characteristic equation. When those roots were real and distinct, we got exponential solutions. When they were real and repeated, we introduced a factor of tt. But what happens when the characteristic equation has no real roots at all?

When the Discriminant Goes Negative

Consider the equation:

y+y=0y'' + y = 0

The characteristic equation is r2+1=0r^2 + 1 = 0, which gives r2=1r^2 = -1. There are no real solutions. But if we allow complex numbers, we get r=±ir = \pm i.

This is not a mathematical curiosity. This is where differential equations become beautiful. Complex roots do not mean the solution is imaginary. They reveal something profound: the solution oscillates.

Complex Conjugate Roots

Brief review of complex numbers: Complex numbers extend the real numbers by introducing ii, defined by i2=1i^2 = -1. Every complex number has the form a+bia + bi where aa and bb are real. The conjugate of a+bia + bi is abia - bi. Complex numbers can be added, multiplied, and exponentiated following the usual rules of algebra, with i2i^2 replaced by 1-1 whenever it appears.

When the characteristic equation ar2+br+c=0ar^2 + br + c = 0 has a negative discriminant, the quadratic formula gives:

r=b±b24ac2a=b2a±4acb22air = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{-b}{2a} \pm \frac{\sqrt{4ac - b^2}}{2a}i

We write these roots as:

r=α±βir = \alpha \pm \beta i

where α=b2a\alpha = -\frac{b}{2a} is the real part and β=4acb22a\beta = \frac{\sqrt{4ac - b^2}}{2a} is the imaginary part.

Complex Roots in the Complex Plane

r=0.30±2.00ir = -0.30 \pm 2.00i

Decaying oscillation (α < 0)

The real part α controls decay or growth. The imaginary part β controls oscillation frequency. Complex conjugate roots always come in pairs.

Notice that complex roots always come in conjugate pairs: if α+βi\alpha + \beta i is a root, so is αβi\alpha - \beta i. The real part α\alpha determines whether solutions grow or decay. The imaginary part β\beta determines the frequency of oscillation.

Euler's Formula: The Bridge

How do we turn complex exponentials into real solutions? The key is Euler's remarkable formula:

eiθ=cosθ+isinθe^{i\theta} = \cos\theta + i\sin\theta

This identity connects the exponential function to trigonometry. Where does it come from? One way to see it is through Taylor series: expanding both sides as power series and verifying they match. Another perspective is to define eiθe^{i\theta} to be cosθ+isinθ\cos\theta + i\sin\theta, which makes complex exponentials consistent with all the usual rules of calculus.

The formula tells us that complex exponentials naturally produce sines and cosines. Note also that ea+bi=eaebie^{a+bi} = e^a \cdot e^{bi}, so we can always separate a complex exponential into a real exponential times a unit complex exponential.

For our characteristic roots r=α±βir = \alpha \pm \beta i, the complex solutions would be:

e(α+βi)t=eαteiβt=eαt(cosβt+isinβt)e^{(\alpha + \beta i)t} = e^{\alpha t} \cdot e^{i\beta t} = e^{\alpha t}(\cos\beta t + i\sin\beta t)

and

e(αβi)t=eαt(cosβtisinβt)e^{(\alpha - \beta i)t} = e^{\alpha t}(\cos\beta t - i\sin\beta t)

Extracting Real Solutions

We need real solutions for a real differential equation. The trick is to take linear combinations of the complex solutions that eliminate the imaginary parts.

Adding the two complex solutions:

e(α+βi)t+e(αβi)t=2eαtcosβte^{(\alpha + \beta i)t} + e^{(\alpha - \beta i)t} = 2e^{\alpha t}\cos\beta t

Subtracting them:

e(α+βi)te(αβi)t=2ieαtsinβte^{(\alpha + \beta i)t} - e^{(\alpha - \beta i)t} = 2ie^{\alpha t}\sin\beta t

Dividing by the appropriate constants gives us two real, linearly independent solutions:

y1=eαtcosβty2=eαtsinβty_1 = e^{\alpha t}\cos\beta t \qquad y_2 = e^{\alpha t}\sin\beta t

The general solution is therefore:

y=eαt(C1cosβt+C2sinβt)y = e^{\alpha t}(C_1\cos\beta t + C_2\sin\beta t)

This is the form you should commit to memory. When you see complex conjugate roots α±βi\alpha \pm \beta i, the solution involves:

  • An exponential factor eαte^{\alpha t} controlling growth or decay
  • Oscillatory factors cosβt\cos\beta t and sinβt\sin\beta t controlling the frequency

Interactive: Explore Oscillating Solutions

y=e0.20t(1.0cos(3.0t)+0.0sin(3.0t))y = e^{-0.20t}(1.0\cos(3.0t) + 0.0\sin(3.0t))

The dashed curves show the exponential envelope. When α < 0, the oscillations decay. When α > 0, they grow. The frequency β controls how fast it oscillates.

The Physical Meaning

The structure of this solution has direct physical interpretation.

The real part α\alpha controls amplitude behavior:

  • When α<0\alpha < 0: the amplitude decays exponentially. Energy is being dissipated.
  • When α=0\alpha = 0: the amplitude stays constant. Pure, sustained oscillation.
  • When α>0\alpha > 0: the amplitude grows exponentially. Energy is being pumped in.

The imaginary part β\beta controls frequency:

  • Larger β\beta means faster oscillation
  • The period of oscillation is T=2πβT = \frac{2\pi}{\beta}

In physical systems, α<0\alpha < 0 corresponds to damping (friction, air resistance, electrical resistance). Pure oscillation with α=0\alpha = 0 is an idealization that never quite happens in reality. Growing oscillations with α>0\alpha > 0 require an external energy source and typically lead to instability.

Amplitude-Phase Form

The general solution y=eαt(C1cosβt+C2sinβt)y = e^{\alpha t}(C_1\cos\beta t + C_2\sin\beta t) can be written in an equivalent form that is sometimes more useful:

y=Aeαtcos(βtϕ)y = Ae^{\alpha t}\cos(\beta t - \phi)

where AA is the amplitude and ϕ\phi is the phase shift.

The conversion formulas are:

A=C12+C22tanϕ=C2C1A = \sqrt{C_1^2 + C_2^2} \qquad \tan\phi = \frac{C_2}{C_1}

Note on the phase: The formula ϕ=arctan(C2/C1)\phi = \arctan(C_2/C_1) works when C1>0C_1 > 0. For the general case, use cosϕ=C1/A\cos\phi = C_1/A and sinϕ=C2/A\sin\phi = C_2/A to determine ϕ\phi in the correct quadrant.

Interactive: Amplitude-Phase Conversion

Linear combination form

1.0cos(βt)+1.0sin(βt)1.0\cos(\beta t) + 1.0\sin(\beta t)

Amplitude-phase form

1.41cos(βt0.79)1.41\cos(\beta t - 0.79)

Conversion formulas

A=C12+C22=1.41,ϕ=arctan(C2C1)=0.79A = \sqrt{C_1^2 + C_2^2} = 1.41, \quad \phi = \arctan\left(\frac{C_2}{C_1}\right) = 0.79

The two forms are equivalent. The amplitude-phase form makes it easier to read off the amplitude A and phase shift φ directly.

The amplitude-phase form makes it easy to read off physical quantities directly. The amplitude AA tells you how big the oscillations are. The phase ϕ\phi tells you when the oscillation reaches its maximum. The damping factor eαte^{\alpha t} modulates the overall size.

Damping: Three Regimes

The discriminant b24acb^2 - 4ac of the characteristic equation determines the nature of the roots and hence the behavior of solutions. For the equation ay+by+cy=0ay'' + by' + cy = 0:

Underdamped (b2<4acb^2 < 4ac): Complex roots. The solution oscillates while decaying. This is what we have been studying in this chapter.

Critically Damped (b2=4acb^2 = 4ac): A repeated real root. The solution decays as fast as possible without oscillating. This is the boundary case.

Overdamped (b2>4acb^2 > 4ac): Two distinct real roots. The solution decays without oscillation, but more slowly than critical damping.

Comparing Damping Behaviors

Overdamped

Two real roots, no oscillation

Critically Damped

Repeated root, fastest decay

Underdamped

Complex roots, oscillates

All three start from the same initial conditions and return to equilibrium. Critically damped reaches equilibrium fastest without overshooting.

Critical damping is often the design goal in engineering. A car's shock absorbers, for instance, should be critically damped: you want the car to return to equilibrium as quickly as possible after hitting a bump, without bouncing up and down (underdamped) or taking too long to settle (overdamped).

A Physical Example: The Damped Spring

A mass attached to a spring with friction satisfies:

my+by+ky=0my'' + by' + ky = 0

where mm is mass, bb is the damping coefficient (friction), and kk is the spring constant.

The characteristic equation is mr2+br+k=0mr^2 + br + k = 0, giving roots:

r=b±b24mk2mr = \frac{-b \pm \sqrt{b^2 - 4mk}}{2m}

When friction is small (b2<4mkb^2 < 4mk), we get complex roots. The mass oscillates back and forth, but each swing is a little smaller than the last as energy is lost to friction.

Interactive: Damped Spring Oscillation

m

Displacement y(t)

ty
y(t)=e0.15tcos(4.0t)y(t) = e^{-0.15t}\cos(4.0t)

A damped spring oscillates back and forth while the amplitude decays exponentially. With no damping (α = 0), the oscillation would continue forever. In reality, friction always causes some energy loss.

The Pure Oscillator

Setting the damping to zero (b=0b = 0) gives the equation:

my+ky=0my'' + ky = 0

The roots are r=±ik/m=±iω0r = \pm i\sqrt{k/m} = \pm i\omega_0, where ω0=k/m\omega_0 = \sqrt{k/m} is called the natural frequency.

The solution is:

y=C1cos(ω0t)+C2sin(ω0t)y = C_1\cos(\omega_0 t) + C_2\sin(\omega_0 t)

This is simple harmonic motion: pure oscillation that continues forever at a fixed amplitude. It is an idealization, since real systems always have some friction. But it is the starting point for understanding all oscillatory behavior.

The natural frequency ω0\omega_0 depends only on the physical parameters of the system: stiffer springs (larger kk) and lighter masses (smaller mm) oscillate faster.

Solving Initial Value Problems

Given an equation with complex roots and initial conditions, here is the procedure:

  1. Write the characteristic equation and find the roots r=α±βir = \alpha \pm \beta i
  2. Write the general solution: y=eαt(C1cosβt+C2sinβt)y = e^{\alpha t}(C_1\cos\beta t + C_2\sin\beta t)
  3. Apply y(0)=y0y(0) = y_0 to find one equation for C1C_1 and C2C_2
  4. Differentiate: y=αeαt(C1cosβt+C2sinβt)+eαt(βC1sinβt+βC2cosβt)y' = \alpha e^{\alpha t}(C_1\cos\beta t + C_2\sin\beta t) + e^{\alpha t}(-\beta C_1\sin\beta t + \beta C_2\cos\beta t)
  5. Apply y(0)=v0y'(0) = v_0 to find the second equation
  6. Solve for C1C_1 and C2C_2

Example: Solve y+2y+5y=0y'' + 2y' + 5y = 0 with y(0)=1y(0) = 1, y(0)=0y'(0) = 0.

The characteristic equation r2+2r+5=0r^2 + 2r + 5 = 0 has roots r=1±2ir = -1 \pm 2i.

So α=1\alpha = -1 and β=2\beta = 2. The general solution is:

y=et(C1cos2t+C2sin2t)y = e^{-t}(C_1\cos 2t + C_2\sin 2t)

From y(0)=1y(0) = 1: C1=1C_1 = 1.

Differentiating: y=et(C1cos2t+C2sin2t)+et(2C1sin2t+2C2cos2t)y' = -e^{-t}(C_1\cos 2t + C_2\sin 2t) + e^{-t}(-2C_1\sin 2t + 2C_2\cos 2t)

From y(0)=0y'(0) = 0: C1+2C2=0-C_1 + 2C_2 = 0, so C2=1/2C_2 = 1/2.

The solution is:

y=et(cos2t+12sin2t)y = e^{-t}\left(\cos 2t + \frac{1}{2}\sin 2t\right)

Or in amplitude-phase form: y=52etcos(2tarctan(1/2))y = \frac{\sqrt{5}}{2}e^{-t}\cos(2t - \arctan(1/2)).

Key Takeaways

  • Complex roots r=α±βir = \alpha \pm \beta i produce oscillating solutions
  • The general solution is y=eαt(C1cosβt+C2sinβt)y = e^{\alpha t}(C_1\cos\beta t + C_2\sin\beta t)
  • The real part α\alpha controls decay (negative) or growth (positive)
  • The imaginary part β\beta controls the oscillation frequency
  • Euler's formula eiθ=cosθ+isinθe^{i\theta} = \cos\theta + i\sin\theta is the bridge between complex exponentials and trigonometry
  • Underdamped systems oscillate while decaying; critically damped systems decay fastest without oscillating; overdamped systems decay slowly without oscillating
  • The amplitude-phase form y=Aeαtcos(βtϕ)y = Ae^{\alpha t}\cos(\beta t - \phi) is equivalent and often more physically intuitive