Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

We have seen that one-dimensional oscillators with only a confining potential-energy term can oscillate forever because energy is conserved. Their waveforms need not be sinusoidal, but bounded one-dimensional motions between turning points are periodic.

Damped oscillators dissipate energy, and so the oscillations will eventually die out. With the damped harmonic oscillator, the oscillations are still periodic, but the amplitude decreases over time. For that model,

x¨+2βx˙+ω02x=0\ddot{x} + 2\beta \dot{x} + \omega_0^2 x = 0

we found that the relative strengths of β\beta and ω0\omega_0 determined the type of oscillation. But the motion always died out because the damping removed energy from the system.

What if we kept putting energy into the system?

We can replenish the energy that is lost to damping by adding a driving force. These are driven oscillators, sometimes called forced oscillators. The driving force is a time dependent force that is added to the system.

Driving the Oscillator

For the damped harmonic oscillator, we had

mx¨+bx˙+kx=0m\ddot{x} + b \dot{x} + k x = 0

Now we will add a driving force F(t)F(t) to the system, so that the equation of motion becomes

mx¨+bx˙+kx=F(t)m\ddot{x} +b \dot{x} + k x = F(t)

We can represent that setup in the picture below. The blue spring with spring constant kk is attached to a red mass mm. There is a dashpot (damping) in green with damping coefficient b=2mβb=2m\beta. The driving force F(t)F(t) is shown in black and called “driver”.

driven oscillator

We write that differential equation as:

x¨+2βx˙+ω02x=F(t)/m=f(t)\ddot{x} + 2\beta \dot{x} + \omega_0^2 x = F(t)/m=f(t)

where ω02=k/m\omega_0^2 = k/m and 2β=b/m2\beta = b/m. The function f(t)f(t) is the driving force per unit mass.

Note that this differential equation remains linear.

Why? Because the “operations” on x(t) are linear.

Linearity of Differential Equations

A linear differential equation has many nice properties. In particular, the superposition of solutions and the uniqueness of solutions. So it is worth knowing when you have one.

Claim: ddt\dfrac{d}{dt} is a linear operator.

What is an operator? It is simply a function that takes a function as an input and returns another function as an output. The derivative is a function that takes a function and returns another function, namely the slope of the tangent line to the original function everywhere it is defined and differentiable.

Let’s prove that ddt\dfrac{d}{dt} is a linear operator.

Let x(t)=x1(t)+x2(t)x(t) = x_1(t) + x_2(t), where x1(t)x_1(t) and x2(t)x_2(t) are two functions. Then

dx(t)dt=ddt(x1(t)+x2(t))=dx1(t)dt+dx2(t)dt\dfrac{dx(t)}{dt} = \dfrac{d}{dt} \left(x_1(t) + x_2(t)\right) = \dfrac{dx_1(t)}{dt} + \dfrac{dx_2(t)}{dt}

We can distribute the derivative across the sum of the two functions. Thus ddt\dfrac{d}{dt} is a linear operator.

This also suggests that constants and other simple derivatives are linear operators (e.g., d2dt2\dfrac{d^2}{dt^2} and d3dt3\dfrac{d^3}{dt^3}). And because of the distributive property, any linear sum of linear operators is also a linear operator (e.g., d2dt2+ddt\dfrac{d^2}{dt^2} + \dfrac{d}{dt}).

We can write the differential equation for the driven oscillator as

d2x(t)dt2+2βdx(t)dt+ω02x(t)=f(t).\dfrac{d^2x(t)}{dt^2} + 2\beta \dfrac{dx(t)}{dt} + \omega_0^2 x(t) = f(t).

We group the terms of the left hand side into a single operator, D\mathcal{D}, so that

Dx(t)=(d2dt2+2βddt+ω02)x(t)=f(t)\mathcal{D} x(t) = \left(\dfrac{d^2}{dt^2} + 2\beta \dfrac{d}{dt} + \omega_0^2\right) x(t) = f(t)

The operator D\mathcal{D} is a linear differential operator. This compact notation expresses the linearity of the differential equation.

Dx(t)=f(t)\mathcal{D} x(t) = f(t)

Effect of a Linear Operator on our Solutions

Because D\mathcal{D} is a linear operator, we can distribute it. This results in our finding a linear combination of solutions to the differential equation. This is built up quite easily in three steps.

  1. We can allow the operator to act on a function scaled by a scalar constant aa:

D(ax(t))=aDx(t)\mathcal{D} \left(a x(t)\right) = a \mathcal{D} x(t)
  1. We can allow the operator to act on a sum of functions:

D(x1(t)+x2(t))=Dx1(t)+Dx2(t)\mathcal{D} \left(x_1(t) + x_2(t)\right) = \mathcal{D} x_1(t) + \mathcal{D} x_2(t)
  1. We can allow the operator to act on a linear combination of functions:

D(ax1(t)+bx2(t))=aDx1(t)+bDx2(t)\mathcal{D} \left(a x_1(t) + b x_2(t)\right) = a \mathcal{D} x_1(t) + b \mathcal{D} x_2(t)

This is the superposition principle in action. But we have to be careful when we apply it. For example, when,

Dx(t)=f(t)\mathcal{D} x(t) = f(t)

we must first solve the homogeneous equation, Dx(t)=0\mathcal{D} x(t) = 0.

Homogeneous and Particular Solutions

The damped driven oscillator is a linear differential equation. Because it is linear, any solution to the equation where the driving force is zero can be added to a particular solution of the equation where the driving force is non-zero, and the sum is still a solution of the non-homogeneous equation.

Let’s use the language of differential operators to express this. We want to solve:

Dx(t)=f(t)\mathcal{D} x(t) = f(t)

where D\mathcal{D} is a linear differential operator. Any solution to the homogeneous equation, Dxh(t)=0\mathcal{D} x_h(t) = 0, can be added to a particular solution of the non-homogeneous equation to produce another solution of the non-homogeneous equation.

We use the notation xh(t)x_h(t) to denote the solution to the homogeneous equation.

So let’s use the superposition principle to write the solution to the non-homogeneous equation as a sum of two parts:

x(t)=xh(t)+xp(t)x(t) = x_h(t) + x_p(t)

where xp(t)x_p(t) is a particular solution to the non-homogeneous equation. We will get to the name of xp(t)x_p(t) in a moment. Let’s the focus on the mathematical properties of the solution for a moment.

Dx(t)=Dxh(t)⏟0+Dxp(t)=f(t)\mathcal{D} x(t) = \underbrace{\mathcal{D} x_h(t)}_0 + \mathcal{D} x_p(t) = f(t)

With the homogeneous solution, Dxh(t)=0\mathcal{D} x_h(t) = 0, we have

Dxp(t)=f(t)\mathcal{D} x_p(t) = f(t)

That is what defines the particular solution. In our case, that it is specific to the driving force f(t)f(t) we have chosen.

Summary: When solving Dx(t)=f(t)\mathcal{D} x(t) = f(t), the solution is the sum of the homogeneous solution xh(t)x_h(t) and a particular solution xp(t)x_p(t). We typically solve the homogeneous equation Dxh(t)=0\mathcal{D} x_h(t) = 0 first.

The solutions xh(t)x_h(t) satisfies the unknowns set by the initial conditions. The particular solution xp(t)x_p(t) is a solution to the non-homogeneous equation Dxp(t)=f(t)\mathcal{D} x_p(t) = f(t), so it will not depend on the initial conditions, how it is particular to the driving force f(t)f(t).

Example: Sinusoidal Driving Force

Let’s consider a sinusoidal driving force. We will use the following notation for the driving force:

f(t)=f0cos⁡(ωt)f(t) = f_0 \cos(\omega t)

where f0f_0 is the amplitude of the driving force and ω\omega is the angular frequency of the driving force. Note that ω\omega is not necessarily the same as ω0\omega_0.

So we can write the differential equation for the driven oscillator as

Dx(t)=f0cos⁡(ωt)\mathcal{D} x(t) = f_0 \cos(\omega t)

where D\mathcal{D} is the linear differential operator

D=d2dt2+2βddt+ω02\mathcal{D} = \dfrac{d^2}{dt^2} + 2\beta \dfrac{d}{dt} + \omega_0^2

Note that if instead f(t)=f0sin⁡(ωt)f(t) = f_0 \sin(\omega t), then we would have

Dy(t)=f0sin⁡(ωt)\mathcal{D} y(t) = f_0 \sin(\omega t)

where y(t)y(t) is the solution to the differential equation with a sine driving force and D\mathcal{D} is the same linear differential operator. Writing both the x(t)x(t) of y(t)y(t) differential equations out, we have

x¨+2βx˙+ω02x=f0cos⁡(ωt)\ddot{x} + 2\beta \dot{x} + \omega_0^2 x = f_0 \cos(\omega t)
y¨+2βy˙+ω02y=f0sin⁡(ωt)\ddot{y} + 2\beta \dot{y} + \omega_0^2 y = f_0 \sin(\omega t)

Two Birds, One Stone

We can cleverly combine these two equations into a single differential equation by using complex numbers.

z(t)=x(t)+iy(t).z(t) = x(t) + i y(t).

We can similarly write f(t)f(t) as a complex sum:

f(t)=f0cos⁡(ωt)+if0sin⁡(ωt)=f0eiωt.f(t) = f_0 \cos(\omega t) + i f_0 \sin(\omega t) = f_0 e^{i \omega t}.

Now because of linearity, we can write the differential equation for z(t)z(t) as

Dz(t)=f0eiωt.\mathcal{D} z(t) = f_0 e^{i \omega t}.

Written out, we have

z¨+2βz˙+ω02z=f0eiωt.\ddot{z} + 2\beta \dot{z} + \omega_0^2 z = f_0 e^{i \omega t}.

Particular Solution

We note the particular solution depends on the driving force. We can try one that follows the complex exponential form of the driving force.

zp(t)=Ceiωtz_p(t) = C e^{i \omega t}

where CC is a complex constant. We can find CC by substituting zp(t)z_p(t) into the differential equation.

z¨p+2βz˙p+ω02zp=f0eiωt\ddot{z}_p + 2\beta \dot{z}_p + \omega_0^2 z_p = f_0 e^{i \omega t}
(−ω2+2βiω+ω02)Ceiωt=f0eiωt\left(-\omega^2 + 2\beta i \omega + \omega_0^2\right) C e^{i \omega t} = f_0 e^{i \omega t}

We can cancel the eiωte^{i \omega t} terms on both sides of the equation, and we are left with

(−ω2+2βiω+ω02)C=f0.\left(-\omega^2 + 2\beta i \omega + \omega_0^2\right) C = f_0.

We can solve for CC:

C=f0ω02−ω2+2βiω.C = \dfrac{f_0}{\omega_0^2 - \omega^2 + 2\beta i \omega}.

We found CC and it is fully determined. But it is a complex number. Ultimately, we want a real valued solution, but we remember that

Re(z(t))=x(t)Im(z(t))=y(t).Re(z(t)) = x(t) \qquad Im(z(t)) = y(t).

And we can write the coefficient CC as a magnitude AA and a phase δ\delta:

C=Ae−iδC = A e^{-i \delta}

Writing the Complex Amplitude

Let’s find that form of CC.

A2=CC∗A^2 = CC^*
A2=(f0ω02−ω2+2βiω)(f0ω02−ω2−2βiω)A^2 = \left(\dfrac{f_0}{\omega_0^2 - \omega^2 + 2\beta i \omega}\right) \left(\dfrac{f_0}{\omega_0^2 - \omega^2 - 2\beta i \omega}\right)
A2=f02(ω02−ω2)2+4β2ω2A^2 = \dfrac{f_0^2}{\left(\omega_0^2 - \omega^2\right)^2 + 4\beta^2 \omega^2}

So the amplitude of the particular solution is

A=f0(ω02−ω2)2+4β2ω2.A = \dfrac{f_0}{\sqrt{\left(\omega_0^2 - \omega^2\right)^2 + 4\beta^2 \omega^2}}.

We can find the phase by looking at C=Ae−iδC= A e^{-i \delta}:

C=f0ω02−ω2+2βiω=Ae−iδC = \dfrac{f_0}{\omega_0^2 - \omega^2 + 2\beta i \omega} = A e^{-i \delta}
f0eiδ=A(ω02−ω2+2βiω)f_0e^{i\delta} = A \left(\omega_0^2 - \omega^2 + 2\beta i \omega\right)

Note that both f0f_0 and AA are real numbers, so the complex phase of δ\delta is determined by the complex number on the right side of the equation.

That is, the phase of the e−iδe^{-i\delta} term and the phase of the complex number (ω02−ω2+2βiω)\left(\omega_0^2 - \omega^2 + 2\beta i \omega\right) are the same. So we can write ratio of their imaginary and real parts as,

tan⁡(δ)=2βωω02−ω2\tan(\delta) = \dfrac{2\beta \omega}{\omega_0^2 - \omega^2}
δ=atan2⁡(2βω, ω02−ω2)\delta = \operatorname{atan2}\left(2\beta \omega,\ \omega_0^2 - \omega^2\right)

Note that we need the two-argument arctangent (choosing the quadrant from the signs of the numerator and denominator separately) rather than a plain arctan⁡\arctan of the ratio: since 2βω≥02\beta\omega \geq 0 always, δ\delta ranges over (0,π)(0,\pi), but a plain arctan⁡\arctan only returns values in (−π/2,π/2)(-\pi/2,\pi/2) and would give the wrong branch once ω>ω0\omega > \omega_0. Again, this number is fully determined without initial conditions.

Back to the Particular Solution

We proposed a solution zp(t)=Ceiωtz_p(t) = C e^{i \omega t}, where CC is a complex constant. This became

zp(t)=Ae−iδeiωt=Aei(ωt−δ)z_p(t) = A e^{-i \delta} e^{i \omega t} = A e^{i(\omega t - \delta)}

where AA is a real number and δ\delta is a real number. Note we can write the particular solutions for both x(t)x(t) and y(t)y(t) as

xp(t)=Re(zp(t))=Acos⁡(ωt−δ)x_p(t) = Re\left(z_p(t)\right) = A \cos(\omega t - \delta)
yp(t)=Im(zp(t))=Asin⁡(ωt−δ)y_p(t) = Im\left(z_p(t)\right) = A \sin(\omega t - \delta)

General Solution

The proposed general solution was

x(t)=xh(t)+xp(t)x(t) = x_h(t) + x_p(t)

And for our sinusoidal driving force, we have found the particular solution, so that we can write:

x(t)=xh(t)+Acos⁡(ωt−δ)x(t) = x_h(t) + A \cos(\omega t - \delta)

where xh(t)x_h(t) is the solution to the homogeneous equation, Dxh(t)=0\mathcal{D} x_h(t) = 0.

We propose a solution form for xh(t)x_h(t) that is a linear combination of two exponential functions (as we did before):

xh(t)=C1eλ1t+C2eλ2t.x_h(t) = C_1 e^{\lambda_1 t} + C_2 e^{\lambda_2 t}.

These are solutions to the damped oscillator, and we refer to them as the “transient” solutions. They are transient because they die out over time due to damping.

For a weakly damped system, β2<ω02\beta^2 < \omega_0^2, which is the case that is most interesting to us, we can write the solution as,

x(t)=Acos⁡(ωt−δ)+Atre−βtcos⁡(ω1t−δtr)x(t) = A \cos(\omega t - \delta) + A_{tr}e^{-\beta t} \cos(\omega_1 t - \delta_{tr})

where AtrA_{tr} is the amplitude of the transient solution, ω1=ω02−β2\omega_1 = \sqrt{\omega_0^2 - \beta^2} is the damped frequency (per usual), and δtr\delta_{tr} is the phase of the transient solution.

Resonance and Tuning

A curious thing about the long-term behavior (after the transients die out) is that we can observe large amplitudes at particular choices of driving. Consider the long term (steady state) solution to the driven damped harmonic oscillator:

xlongterm(t)=Acos⁡(ωt−δ)x_{longterm}(t) = A \cos(\omega t - \delta)

where,

A2=f02(ω02−ω2)2+4β2ω2.A^2 = \dfrac{f_0^2}{\left(\omega_0^2 - \omega^2\right)^2 + 4\beta^2 \omega^2}.

Let’s allow β\beta to be small so that 4β2ω24\beta^2 \omega^2 is small. If we focus on the denominator, we can see that the amplitude will be small when ω\omega is far from ω0\omega_0. But if we choose ω\omega to be close to ω0\omega_0, then the denominator will be small, and the amplitude will be large.

The second result is a resonance effect. For zero damping, the amplitude is largest at the natural frequency ω0\omega_0. For nonzero damping, the displacement amplitude is maximized at ω=ω02−2β2\omega=\sqrt{\omega_0^2-2\beta^2} when this is real. Below is a sketch of the response of a driven damped harmonic oscillator.

Resonance Sketch

Achieving Resonance

There’s two ways that we can approach this. Let’s focus on the denominator of the amplitude equation:

(ω02−ω2)2+4β2ω2\left(\omega_0^2 - \omega^2\right)^2 + 4\beta^2 \omega^2

When that denominator is small, the amplitude will be large. There’s two ways to make the denominator small.

Case 1: Tune the ω0\omega_0 (the natural frequency of the system) to be close to ω\omega (the driving frequency). This is how a car radio works. You change the capacitance (e.g., with a variable tuning capacitor) of the radio’s LC circuit to change its natural frequency, ω0=1/LC\omega_0 = 1/\sqrt{LC}. You can then tune the radio to a particular station that is broadcasting at a particular frequency. This gives an amplified signal,

When ω0=ω\omega_0 = \omega, then the denominator is equal to 4β2ω024\beta^2 \omega_0^2. The amplitude is

A=f02βω0.A = \dfrac{f_0}{2\beta \omega_0}.

Case 2: Tune the driver (ω\omega) to be close to ω0\omega_0.

Because we are adjusting the driver, we are seeking the driving frequency that minimizes the denominator. We can do this by setting the derivative of the denominator with respect to ω\omega to zero.

ddω((ω02−ω2)2+4β2ω2)=0\dfrac{d}{d\omega} \left(\left(\omega_0^2 - \omega^2\right)^2 + 4\beta^2 \omega^2\right) = 0
2(ω02−ω2)(−2ω)+8β2ω=02\left(\omega_0^2 - \omega^2\right) \left(-2\omega\right) + 8\beta^2 \omega = 0
−4ω02ω+4ω3+8β2ω=0-4\omega_0^2 \omega + 4\omega^3 + 8\beta^2 \omega = 0
4ω(ω2−ω02+2β2)=04\omega\left(\omega^2 - \omega_0^2 + 2\beta^2\right) = 0
ω=0orω2−ω02+2β2=0\omega = 0 \qquad \text{or} \qquad \omega^2 - \omega_0^2 + 2\beta^2 = 0

The first solution is when there is no driver. But the second, ω2\omega_2, is the frequency that minimizes the denominator. We can write that as

ω2=ω02−2β2\omega_2 = \sqrt{\omega_0^2 - 2\beta^2}

We can a strong response when ω02≫2β2\omega_0^2 \gg 2\beta^2 or when ω2≈ω0\omega_2 \approx \omega_0.

Let’s compute the amplitude and phase response for a range of driving frequencies ω\omega and several damping strengths β\beta, so we can see the sketch above turned into an actual curve.

<Figure size 1100x450 with 2 Axes>

As damping β\beta decreases, the resonance peak grows taller and narrower, and shifts closer to ω=ω0\omega=\omega_0 (consistent with ω2=ω02−2β2\omega_2=\sqrt{\omega_0^2-2\beta^2}). The phase lag δ\delta always passes through π/2\pi/2 exactly at ω=ω0\omega=\omega_0, transitioning from in-phase (δ≈0\delta\approx0) at low driving frequency to out-of-phase (δ≈π\delta\approx\pi) at high driving frequency, with the transition becoming sharper as damping decreases.