Damped Harmonic Oscillator
Alexei Gilchrist
1 Introduction
We will introduce a particular type of damping that is proportional to the velocity (simply because it’s easier to deal with). The faster an object is moving the more drag it experiences and this frictional force opposes the objects velocity. That is, \(F=-b v\). This type of damping dominates when an object moves slowly through a viscous medium.
2 Equation of motion and solution
Including the damping, the total force on the object is
3 Solution regimes
The behaviour of the solution depends on what is happening under the square-root in the exponents, and naturally splits into three types depending on whether \((\gamma/2)^2-\omega_0^2\) is positive, negative, or zero. (Actually, the form of the general solution will change slightly for each of these regimes due to technical reasons).
3.1 Over-damped oscillator: \((\gamma/2)^2-\omega_0^2>0\)
Defining \(\Omega = \sqrt{(\gamma/2)^2-\omega_0^2}\) (which will be a real number), the solution becomes
In the plot below the total amplitude is the solid line, the dashed lines are the two terms in the equation above that add to give the total amplitude.
Here is the solution when begun at rest with some initial amplitude. The smaller the damping the faster the decay to zero. If this appears counter intuitive remember that the damping we have included is the sort of drag forces that a marble would experience falling through oil—the thicker the oil the slower it would move.
3.2 Critically-damped oscillator: \((\gamma/2)^2-\omega_0^2=0\)
In this case, naively substituting in the above expression will yield only a single free parameter. The general method of solving such equations (in the case where the complementary equation has repeated roots) will yield an extra term proportional to \(t\), so the general solution in this case is
3.3 Under-damped oscillator: \((\gamma/2)^2-\omega_0^2<0\)
Now the exponent is pure imaginary, and the solution reduces to
Below is an example where the dashed lines are the undamped case, and the two exponential decays \(\pm e^{-\gamma/2\; t}\) that bracket the amplitude. If you look carefully, you will notice that the frequency of the damped oscillator is slightly smaller than the undamped case.
3.4 Solution in general
It would be nice if we had a single closed form general solution that was valid in all the parameter ranges and initial conditions. This is indeed possible. Assuming the oscillator has initial position \(x_0\) and velocity \(v_0\) then the motion is given by:
It would be tempting to simplify the expression further using \(\sinh(i x)=i\sin(x)\) and \(\cosh(i x)=\cos(x)\) but remember that \(\omega_d = \sqrt{\omega_0^2-\gamma^2/4}\) and if \(\gamma>2\omega_0\) this will be pure imaginary. Normally, the argument to \(\sin\) and \(\cos\) is real so keeping the solution in the above form is less confusing.
Note: in the case of \(\omega_d = 0\) the second term requires that the limit \(\omega_d\rightarrow 0\) be taken in order to evaluate it (using L’H\^{o}pital’s rule).
Equipped with this solution we can create a simulation for all parameter values and initial conditions:
4 Relaxation time
For an under-damped oscillator we’ve found the position goes as
As we’ve defined it the relaxation time is not very precise. For example, in the diagram the oscillator attains the amplitude \(A e^{-1}\) much earlier! Instead, what we mean is either the smooth curve that connects the peaks of the motion, or the curve obtained by maximising the amplitude over all phases at each time.
The peaks of the motion occur when \(\cos(\omega_d t+\phi)=1\). That is, we can imagine a strobe light that goes off at the times \(t_n=n 2\pi/\omega_d - \phi/\omega_d\), and at these times the oscillator’s amplitude will be \(x_n = Ae^{-\gamma/2\; t_n}\). The relaxation time is then when this interpolated curve intersects \(Ae^{-1}\).
Alternatively if at each instance in time we maximise the amplitude by varying the phase to that \(\cos(\omega_d t+\phi)=1\), then the decay of the oscillator will be the smooth curve \(\tilde{x}(t) = Ae^{-\gamma/2\; t}\).