8. Forced oscillations¶
Our standard form for oscillators is
where again \(\omega_0\) is the natural frequency, \(Z\) is the nonnegative damping coefficient, and \(f\) is a forcing function. The most important type of forcing in applications is harmonic, as exemplified by
Let’s start by using a trick of linearity. Define \(g(t)=\sin(\omega t)\), and suppose that \(u\) solves the ODE with forcing \(f(t)+i g(t)\):
We should expect \(z\) to be complex-valued. If we break it into real and imaginary parts, so that \(u(t)=x(t)+i y(t)\), then linearity tell us that
The only way to make these identically true is if \(\opA[x]=f\) and \(\opA[y]=g\). In summary, we can (1) complexify the original forcing \(\cos(\omega t)\) to be \(e^{i\omega t}\), (2) solve the ODE, and then (3) take the real part of that solution at the end to get a particular solution for the original forcing.
A justification for this roundabout procedure is that exponential forcing is by far the easiest kind to solve for. Using undetermined coefficients, we let \(x_p(t)=Ae^{i\omega t}\) and insert it into the ODE with complexified forcing to get
so that
As we work through detailed cases below, bear in mind that none of this affects the homogeneous solution \(x_h\), which has natural oscillation at natural frequency \(\omega_0\) with some level of damping.
8.1. Undamped¶
Things are simplest in the undamped case, \(Z=0\). Then the particular solution for complexified forcing \(e^{i\omega t}\) is
The real part of this gives an \(x_p\) for \(f(t)=\cos(\omega t)\), which is our standard for harmonic forcing.
(More on the exceptional case \(\omega=\omega_0\) in a moment.) The amplitude of \(x_p\) grows without bound as \(\omega\to \omega_0\).
The general solution is a combination of \(x_h\), which oscillates at the natural frequency \(\omega_0\), and \(x_p\), which oscillates at the driving frequency \(\omega\):
8.1.1. Beats¶
Things get interesting when \(\omega \approx \omega_0\). Suppose the initial conditions are chosen so that the complete solution is
Let’s express the frequencies in terms of their average value \(\hat{\omega}\) and their separation \(2\epsilon\):
Some trig identity manipulation leads to
If \(\epsilon\) is small, we can interpret this solution as an oscillation at the average frequency inside an envelope that oscillates at the much lower frequency \(\epsilon\). This phenomenon is called beating and is audible as a modulating change in volume when two instruments slightly out of tune play together. You can hear this phenomenon demonstrated in this video, among many others.
8.1.2. Resonance¶
Formula 8.3 cannot account for the case \(\omega=\omega_0\). This situation is known as resonance. It’s an idealization of pushing someone on a swing at exactly the right moment in each cycle.
We can obtain the resonant solution by taking the limit \(\epsilon\to 0\) in (8.5). (Alternatively, we can start from scratch and use an enhanced form of the method of undetermined coefficients.) Since \(\sin(\theta)/\theta \to 1\), we get the following.
We see that the amplitude of oscillations grows linearly forever. This physically impossible situation will be ruled out when we put some damping back into the system.
8.2. Damped¶
We now turn to the physically realistic situation of \(Z>0\). First, recall that the complete solution is a sum of \(x_h\) and \(x_p\). With nonzero damping, \(x_h(t)\to 0\) exponentially as \(t\to\infty\), and this is often called the transient part of the solution as a result. It matters in the sense of satisfying initial conditions, but has no effect on the long-term or steady behavior. That is entirely due to the real part of \(u_p= A \exp(i \omega t)\), with \(A\) defined in (8.4).
To soften up the notation a bit, we define the frequency ratio \(\rho\) as
Then the coefficient \(A\) is
Taking the modulus of \(A\) gives a quantity called the gain,
The gain is the ratio of the amplitudes of the particular solution and the forcing. i.e., the factor by which the forcing is amplified in the response.
The particular or steady solution in modified amplitude-phase form is
with the phase \(\theta\) determined by the polar angle of \(A\).
8.2.1. Pseudoresonance¶
A little calculus shows that as a function of \(\rho\), the gain is maximized at
When \(0 < Z^2 < 1/2\), this value satisfies \(0 < \rho_\text{max}<1\), i.e., the gain is maximized at a nonzero forcing frequency smaller than the natural frequency. We can consider this to be a pseudoresonance.1 The peak value of the gain at pseudoresonance is found to be
The gain remains finite for all \(\rho\) when \(Z>0\), but it becomes proportional to \(1/Z\) as \(Z\to 0\). The following graph shows the gain as a function of the damping \(Z\) and forcing frequency \(\omega\) when \(\omega_0=1\). The white curve shows the path of pseudoresonance.
A = @(omega,Z) 1./(-omega.^2 + 2i*Z.*omega + 1);
log_g = @(omega,Z) log10(abs(A(omega,Z)));
fsurf( log_g,[0 1.5 1e-3 1])
set(gca,'ydir','rev')
view(20,20)
xlabel('driving frequency')
ylabel('damping coefficient')
zlabel('log_{10}(gain)')
hold on
Z = linspace(1e-3,1,300);
rhomax = real(sqrt(1-2*Z.^2));
plot3(rhomax,Z,1e-2+log_g(rhomax,Z),'w','linew',2)
Here’s a short video showing how the gain of an oscillator varies with the forcing frequency \(\omega\). (I use the term “eigenvalues” to mean characteristic values here.)
- 1
Since pure resonance cannot be observed in real physical systems, one usually refers to pseudoresonance as simply resonance in practice.