Login
📚 Differential Equations for Engineers
Chapters ▾
⇩ Download ▾

2.6 Forced Oscillations and Resonance

Let us consider to the example of a mass on a spring. We now examine the case of forced oscillations, which we did not yet handle. That is, we consider the equation

m x + c x + k x = F ( t )

for some nonzero F(t). The setup is again: m is mass, c is friction, k is the spring constant, and F(t) is an external force acting on the mass.

Diagram of a horizontal mass-spring system: a hatched wall, spring k, block m, an arrow F of t driving it to the right, and damping c labelled beneath.
Figure 1

What we are interested in is periodic forcing, such as noncentered rotating parts, or perhaps loud sounds, or other sources of periodic force. Once we learn about Fourier series in Chapter 4, we will see that we cover all periodic functions by simply considering F(t)=F0cos(ωt) (or sine instead of cosine, the calculations are essentially the same).

Undamped Forced Motion and Resonance

First let us consider undamped c=0 motion for simplicity. We have the equation

m x + k x = F 0 cos ( ω t )

This equation has the complementary solution (solution to the associated homogeneous equation)

x c = C 1 cos ( ω 0 t ) + C 2 sin ( ω 0 t )

where ω0=km is the natural frequency (angular), which is the frequency at which the system “wants to oscillate” without external interference.

Let us suppose that ω0ω. We try the solution xp=Acos(ωt) and solve for A. Note that we need not have sine in our trial solution as on the left hand side we will only get cosines anyway. If you include a sine it is fine; you will find that its coefficient will be zero.

We solve using the method of undetermined coefficients. We find that

x p = F 0 m ( ω 0 2 ω 2 ) cos ( ω t )

We leave it as an exercise to do the algebra required.

The general solution is

x = C 1 cos ( ω 0 t ) + C 2 sin ( ω 0 t ) + F 0 m ( ω 0 2 ω 2 ) cos ( ω t )

or written another way

x = C cos ( ω 0 t y ) + F 0 m ( ω 0 2 ω 2 ) cos ( ω t )

Hence it is a superposition of two cosine waves at different frequencies.

Now suppose that ω0=ω. Obviously, we cannot try the solution Acos(ωt) and then use the method of undetermined coefficients. We notice that cos(ωt) solves the associated homogeneous equation. Therefore, we need to try xp=Atcos(ωt)+Btsin(ωt). This time we do need the sine term since the second derivative of tcos(ωt) does contain sines. We write the equation

x + ω 2 x = F 0 m cos ( ω t )

Plugging xp into the left hand side we get

2 B ω cos ( ω t ) 2 A ω sin ( ω t ) = F 0 m cos ( ω t )

Hence A=0 and B=F02mω. Our particular solution is F02mωtsin(ωt) and our general solution is

x = C 1 cos ( ω t ) + C 2 sin ( ω t ) + F 0 2 m ω t sin ( ω t )

The important term is the last one (the particular solution we found). We can see that this term grows without bound as t. In fact it oscillates between F0t2mω and F0t2mω. The first two terms only oscillate between ±C12+C22, which becomes smaller and smaller in proportion to the oscillations of the last term as t gets larger. In Figure 3 we see the graph with C1=C2=0,F0=2,m=1,ω=π.

Plot of a blue oscillation over time 0 to 20 with fixed period about 2 and amplitude growing without bound, peaks climbing almost linearly to roughly 6 by time 19.
Figure 3: Graph of 1πtsin(πt).

By forcing the system in just the right frequency we produce very wild oscillations. This kind of behavior is called resonance or perhaps pure resonance. Sometimes resonance is desired. For example, remember when as a kid you could start swinging by just moving back and forth on the swing seat in the “correct frequency”? You were trying to achieve resonance. The force of each one of your moves was small, but after a while it produced large swings.

Function graph showing y = 20/(16 - w^2)*(cos(w*t) - cos(4*t)) on t in [0, 40], y = (40/(16-w^2))*sin(((4-w)/2)*t) on t in [0, 40] and y = -(40/(16-w^2))*sin(((4-w)/2)*t) on t in [0, 40]. Adjustable parameter: Forcing frequency (w) = 3.14 rad/s. Viewing window: x from -3.35 to 41.35, y from -13.82 to 13.82.
This section's own example 0.5x″ + 8x = 10cos(ωt) with x(0) = x′(0) = 0, generalized to a draggable ω and drawn with the slow modulating wave Lebl's own product identity gives: x = 40/(16 − ω²)·sin(((4−ω)/2)t)·sin(((4+ω)/2)t). At the default ω = π it reproduces Figure 2 exactly. Drag ω toward ω₀ = 4 and the beat period 4π/(4 − ω) stretches from about 10 s to about 31 s while the peak amplitude 40/(16 − ω²) climbs from 4.9 to 13.2. That prefactor diverges at ω = ω₀ — which is precisely why this closed form breaks down at resonance, and why the resonant case needs the separate growing solution (F₀/2mω₀)·t·sin(ω₀t), the shape plotted in Figure 3.

On the other hand resonance can be destructive. In an earthquake some buildings collapse while others may be relatively undamaged. This is due to different buildings having different resonance frequencies. So figuring out the resonance frequency can be very important.

A common (but wrong) example of destructive force of resonance is the Tacoma Narrows bridge failure. It turns out there was a different phenomenon at play.to the power 1

Damped Forced Motion and Practical Resonance

In real life things are not as simple as they were above. There is, of course, some damping. Our equation becomes

m x + c x + k x = F 0 cos ( ω t ) ,

(2.6.1)

for some c>0. We have solved the homogeneous problem before. We let

p = c 2 m ω 0 = k m

We replace equation (2.6.1) with

x + 2 p x + ω 0 2 x = F 0 m cos ( ω t )

The roots of the characteristic equation of the associated homogeneous problem are r1,r2=p±p2ω02. The form of the general solution of the associated homogeneous equation depends on the sign of p2ω02, or equivalently on the sign of c24km, as we have seen before. That is,

x c = { C 1 e r 1 t + C 2 e r 2 t , if  c 2 > 4 k m , C 1 e p t + C 2 t e p t , if  c 2 = 4 k m , e p t ( C 1 cos ( ω 1 t ) + C 2 sin ( ω 1 t ) ) , if  c 2 < 4 k m ,

where ω1=ω02p2. In any case, we can see that xc(t)0 as t. Furthermore, there can be no conflicts when trying to solve for the undetermined coefficients by trying xp=Acos(ωt)+Bsin(ωt). Let us plug in and solve for A and B. We get (the tedious details are left to reader)

( ( ω 0 2 ω 2 ) B 2 ω p A ) sin ( ω t ) + ( ( ω 0 2 ω 2 ) A + 2 ω p B ) cos ( ω t ) = F 0 m cos ( ω t )

We get that

A = ( ω 0 2 ω 2 ) F 0 m ( 2 ω p ) 2 + m ( ω 0 2 ω 2 ) 2

B = 2 ω p F 0 m ( 2 ω p ) 2 + m ( ω 0 2 ω 2 ) 2

We also compute C=A2+B2 to be

C = F 0 m ( 2 ω p ) 2 + ( ω 0 2 ω 2 ) 2

Thus our particular solution is

x P = ( ω 0 2 ω 2 ) F 0 m ( 2 ω p ) 2 + m ( ω 0 2 ω 2 ) 2 cos ( ω t ) + 2 ω p F 0 m ( 2 ω p ) 2 + m ( ω 0 2 ω 2 ) 2 sin ( ω t )

Or in the alternative notation we have amplitude C and phase shift γ where (if ωω0)

tan γ = B A = 2 ω p ω 0 2 ω 2

Hence we have

x p = F 0 m ( 2 ω p ) 2 + ( ω 0 2 ω 2 ) 2 cos ( ω t γ )

If ω=ω0 we see that A=0,B=C=F02mωp, and γ=π2.

The exact formula is not as important as the idea. Do not memorize the above formula, you should instead remember the ideas involved. For different forcing function F, you will get a different formula for xp. So there is no point in memorizing this specific formula. You can always recompute it later or look it up if you really need it.

For reasons we will explain in a moment, we call xcthe transient solution and denote it by xtr. We call the xp we found above the steady periodic solution and denote it by xsp. The general solution to our problem is

x = x c + x p = x t r + x s p

We note that xc=xtr goes to zero as t, as all the terms involve an exponential with a negative exponent. Hence for large t, the effect of xtr is negligible and we will essentially only see xsp. Hence the name transient. Notice that xsp involves no arbitrary constants, and the initial conditions will only affect xtr. This means that the effect of the initial conditions will be negligible after some period of time. Because of this behavior, we might as well focus on the steady periodic solution and ignore the transient solution. See Figure 4 for a graph of different initial conditions.

Five solution curves over time 0 to 20 from initial displacements between about -5.3 and 4.7; the transients differ, then from about time 13 all five trace one steady oscillation of amplitude 1.2.
Figure 4: Solutions with different initial conditions for parameters k=1,m=1,F0=1,c=0.7, and ω=1.1.

Notice that the speed at which xtr goes to zero depends on P (and hence c). The bigger P is (the bigger c is), the “faster” xtr becomes negligible. So the smaller the damping, the longer the “transient region.” This agrees with the observation that when c=0, the initial conditions affect the behavior for all time (i.e. an infinite “transient region”).

Let us describe what we mean by resonance when damping is present. Since there were no conflicts when solving with undetermined coefficient, there is no term that goes to infinity. What we will look at however is the maximum value of the amplitude of the steady periodic solution. Let C be the amplitude of xsp. If we plot C as a function of ω (with all other parameters fixed) we can find its maximum. We call the ω that achieves this maximum the practical resonance frequency. We call the maximal amplitude C(ω) the practical resonance amplitude. Thus when damping is present we talk of practical resonance rather than pure resonance. A sample plot for three different values of c is given in Figure 5. As you can see the practical resonance amplitude grows as damping gets smaller, and any practical resonance can disappear when damping is large.

Function graph showing y = 1/sqrt((c*x)^2 + (1 - x^2)^2) on x in [0, 4]. Adjustable parameter: Damping coefficient (c) = 0.4 N·s/m. Viewing window: x from -1.28 to 5.28, y from -0.53 to 3.53.
The steady-periodic amplitude C(ω) for this section's own parameters m = k = F₀ = 1, so ω₀ = 1 and p = c/2. Figure 5's three frozen curves are three ticks of this one slider — set c to 0.4, 0.8 and 1.6 to reproduce them. Drag c upward and watch the peak slide left of ω₀ and collapse, then vanish entirely as c crosses √2 ≈ 1.414, the exact threshold ω₀² − 2p² > 0 derived just below.
Plot of three amplitude-response curves against forcing frequency 0 to 3, all starting at 1: blue peaks sharply at about 2.55, green gently at about 1.37, dark red not at all, so less damping gives a taller peak.
Figure 5: Graph of C(ω) showing practical resonance with parameters k=1,m=1,F0=1. The top line is with c=0.4, the middle line with c=0.8, and the bottom line with c=1.6.

To find the maximum we need to find the derivative C(ω). Computation shows

C ( ω ) = 4 ω ( 2 p 2 + ω 2 ω 0 2 ) F 0 m ( ( 2 ω p ) 2 + ( ω 0 2 ω 2 ) ) 3 / 2

This is zero either when ω=0 or when 2p2+ω2ω02=0. In other words, C(ω)=0 when

ω = ω 0 2 2 p 2   o r   ω = 0

It can be shown that if ω022p2 is positive, then ω022p2 is the practical resonance frequency (that is the point where C(ω) is maximal, note that in this case C(ω)>0 for small ω). If ω=0 is the maximum, then essentially there is no practical resonance since we assume that ω>0 in our system. In this case the amplitude gets larger as the forcing frequency gets smaller.

If practical resonance occurs, the frequency is smaller than ω0. As the damping c (and hence P) becomes smaller, the practical resonance frequency goes to ω0. So when damping is very small, ω0 is a good estimate of the resonance frequency. This behavior agrees with the observation that when c=0, then ω0 is the resonance frequency.

Another interesting observation to make is that when ω, then ω0. This means that if the forcing frequency gets too high it does not manage to get the mass moving in the mass-spring system. This is quite reasonable intuitively. If we wiggle back and forth really fast while sitting on a swing, we will not get it moving at all, no matter how forceful. Fast vibrations just cancel each other out before the mass has any chance of responding by moving one way or the other.

The behavior is more complicated if the forcing function is not an exact cosine wave, but for example a square wave. A general periodic function will be the sum (superposition) of many cosine waves of different frequencies. The reader is encouraged to come back to this section once we have learned about the Fourier series.

Footnotes

1K. Billah and R. Scanlan, Resonance, Tacoma Narrows Bridge Failure, and Undergraduate Physics Textbooks, American Journal of Physics, 59(2), 1991, 118–124, http://www.ketchum.org/billah/Billah-Scanlan.pdf

Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.