A harmonic oscillator obeys
the simple 1D version of Hooke’s law:
to displace the system away from its equilibrium,
the needed force Fd(x) scales linearly with the displacement x(t):
Fd(x)=kx
Where k is a system-specific proportionality constant,
called the spring constant,
since a spring is a good example of a harmonic oscillator,
at least for small displacements.
Hooke’s law is also often stated for
the restoring force Fr(x) instead:
Fr(x)=−kx
Let a mass m be attached to the end of the spring.
After displacing it, we let it go Fd=0,
so Newton’s second law for the restoring force Fr demands that:
Fr=mx′′
But Fr=−kx,
meaning mx′′=−kx,
leading to the following equation for x(t):
x′′+ω02x=0
Where ω0≡k/m is the natural frequency of the system.
This differential equation has the following general solution:
x(t)=C1sin(ω0t)+C2cos(ω0t)
Where C1 and C2 are constants determined by the initial conditions.
For example, for x(0)=1 and x′(0)=0, the solution becomes:
x(t)=cos(ω0t)
When using Lagrangian
or Hamiltonian mechanics,
we need to know the potential energy V(x)
added to the system by a displacement to x.
This equals the work done by the displacement,
and is therefore given by:
V(x)=∫0xFd(x)dx=21kx2=21mω02x2
Damped oscillation
If there is a friction forceFf affecting the system,
then the oscillation amplitude will decrease,
or it might not oscillate at all.
We define Ff using a viscous damping coefficientc:
Ff=−cx′
Both Fr and Ff are acting on the system,
so Newton’s second law states that:
mx′′=−cx′−kx
This can be rewritten in the following conventional form
by defining the damping coefficientζ≡c/(2mk),
which determines the expected behaviour of the system:
x′′+2ζω0x′+ω02x=0
The general solution is found from the roots u of the auxiliary quadratic equation:
u2+2ζω0u+ω02=0
The discriminant D=4ζ2ω02−4ω02
tells us that the behaviour changes substantially
depending on the damping coefficient ζ,
with three possibilities: ζ<1 or ζ=1 or ζ>1.
If ζ<1, there is underdamping:
the system oscillates with exponentially decaying
amplitude and reduced frequency ω1≡ω01−ζ2.
The general solution is:
x(t)=(C1sin(ω1t)+C2cos(ω1t))exp(−ζω0t)
If ζ=1, there is critical damping:
the system returns to its equilibrium point in minimum time.
The general solution is given by:
x(t)=(C1+C2t)exp(−ζω0t)
If ζ>1, there is overdamping:
the system returns to equilibrium slowly.
The general solution is as follows,
where ω1≡ω0ζ2−1:
x(t)=(C1exp(ω1t)+C2exp(−ω1t))exp(−ζω0t)
Forced oscillation
In the differential equations given above,
the right-hand side has always been zero,
meaning that the oscillator is not affected by any external forces.
What if we put a function there?
x′′+2ζω0x′+ω02x=f(t)
Obviously, there exist infinitely many f(t) to choose from,
and each needs a separate analysis.
However, there is one type of f(t) that deserves special mention,
namely sinusoids:
x′′+2ζω0x′+ω02x=mFcos(ωt+χ)
Where F is a constant force, χ is an arbitrary phase,
and the frequency ω is not necessarily ω0.
We solve this case for x(t) in detail.
Consider the complex version of the equation:
X′′+2ζω0X′+ω02X=mFexp(i(ωt+χ))
Then x(t)=Re{X(t)}.
Inserting the ansatz X(t)=Cexp(iωt),
for some constant C:
−Cω2+C2iζω0ω+Cω02=mFexp(iχ)
Where exp(iωt) has already been divided out.
We isolate this equation for C:
For brevity, let us define the impedanceZ
and the phase shiftϕ
in the following way:
Z≡(ω02−ω2)2/ω2+4ζ2ω02ϕ≡arctan(ω02−ω22ζω0ω)
Returning to the original ansatz X(t)=Cexp(iωt),
we take its real part to find x(t):
x(t)=mωZFsin(ωt+χ−ϕ)
Two things are noteworthy here.
Firstly, f(t) and x(t) are out of phase by ϕ; there is some lag.
This is caused by damping, because if ζ=0, it disappears ϕ=0.
Secondly, the amplitude of x(t) depends on ω and ω0.
This brings us to resonance,
where the amplitude can become extremely large.
Actually, resonance has two subtly different definitions,
depending on which one of ω and ω0 is a free parameter,
and which one is fixed.
If the natural ω0 is fixed and the driving ω is variable,
we find for which ω resonance occurs by minimizing the amplitude denominator ωZ.
We thus find:
Meaning the resonant ω is lower than ω0,
and resonance can only occur if ζ<1/2.
However, if the driving ω is fixed and the natural is ω0 is variable,
the problem is bit more subtle:
the damping coefficient ζ=c/(2mω0)
depends on ω0.
This leads us to:
Surprisingly, the damping does not affect ω0, if ω is given.
However, in both cases, the damping does matter for the eventual amplitude:
c→0 leads to x→∞,
and resonance disappears or becomes negligible for c→∞.
References
M.L. Boas,
Mathematical methods in the physical sciences, 2nd edition,
Wiley.