Forced Oscillations and Resonance
A spring that keeps getting pushed ends up swinging to the push's rhythm, not its own. How big the swings get depends on how close the two rhythms are: close together they swell and fade in beats, exactly equal with no friction they grow forever, and friction is the only thing that puts a ceiling on them.
What the symbols mean
- Mass
Inertia: how hard the mass is to speed up or slow down.
- Damping coefficient
Friction that pushes back in proportion to velocity (called γ in Mechanical Vibrations).
- Spring constant
The restoring force per unit of stretch.
- Forcing amplitude
The strongest the outside push ever gets.
- Forcing frequency
How fast the push repeats, in radians per second.
What the symbols mean
- Natural frequency
The spring's own rhythm, √(k/m).
What the symbols mean
- Particular solution
The response to the push. The t in front makes it grow without bound.
What the symbols mean
- Transient
The spring's own motion, x_c. Damping makes it die away.
- Steady periodic solution
What's left once the transient is gone: a swing at the forcing frequency.
What the symbols mean
- Steady-state amplitude
How far the mass swings once it settles, for a push at frequency ω.
- Phase lag
How far the response trails the push, between 0 and π. Peaks come φ/ω seconds after the push's peaks.
What the symbols mean
- Practical resonance frequency
The forcing frequency that makes the steady swings biggest. A little below ω₀.
Explanation
A forced oscillation is simply something that would swing back and forth on its own, like a mass on a spring, being pushed by an outside force that repeats, like a motor, footsteps or a washing machine drum that's a little off balance. All we're really asking is how the mass ends up moving when its own rhythm and the push's rhythm meet. The equation is the one from Mechanical Vibrations with a specific push on the right: (how hard the push is at its strongest) and (how fast it repeats, in radians per second). The spring has its own rhythm too, the natural frequency , and almost everything in this lesson comes down to comparing with . It's a lot of letters, but it's only two rhythms meeting; bear with it.
One bit of notation first. We'll write the position as and the damping coefficient as , the way Notes on Diffy Qs does. Mechanical Vibrations called them and ; nothing else changes.
Where we're starting from. Take a look at the equation. It's exactly the kind Undetermined Coefficients handles: the answer is , what the spring does on its own plus one response to the push. The right side is a cosine, so the guess for is a cosine and a sine at the forcing frequency . So the motion is always a mix of two rhythms: the spring's own (inside ) and the push's (inside ). Let's see what that mix looks like, first with no friction at all.
No damping: two rhythms side by side. With the equation is . Suppose . There's no term, so the guess is enough: its second derivative is , still a cosine, and nothing ever produces a sine. Plug it in:
The last step pulls out of the bottom and uses . Notice that denominator: the closer gets to , the smaller it gets and the bigger the response. Hold on to that.
Now start the mass at rest at equilibrium, and . The general solution is . Then gives , and gives . So
Beats. That's a difference of two cosines with nearly the same frequency, and a sum-to-product identity turns it into a product:
Where does that come from? Call and , so and . Expand both with the cosine addition formula: .
Now read the product. When is close to , the average is about the same as either one: that's a fast wave, the swinging you'd actually see. The half-difference is tiny: a slow wave that scales the fast one, like a hand turning a volume knob up and down. So the motion swells, fades almost to nothing, then swells again. That's beats, the same wah-wah you hear when two guitar strings are slightly out of tune. Physically, the push drifts in and out of step with the spring: while they're in step every push adds energy, and while they're out of step every push takes it back out.
The maximum excursion, the farthest the mass ever gets from equilibrium, can't be more than the slow envelope's height, , because each cosine is at most . It hits that height exactly when there's a moment with and at the same time (or the other way around), and the second worked example below has one.
Pure resonance. Now push at exactly the natural frequency, . The formula above divides by zero, which is the math telling you the guess broke. And it did: is already in , so plugging it into gives , never . The duplication rule fixes it: multiply by and guess . The terms with a in front cancel (they're times a homogeneous solution), and what's left is . So and :
That out front is everything. The swings grow along the straight lines without bound, so there's no maximum excursion at all. Every push lands exactly in step, so every push adds energy and nothing ever takes it back out.
You can see it coming from beats, too. As the slow wave gets slower and slower, and for a long stretch . Put that into the beats formula and the envelope becomes , which turns into at . Resonance is a beat so slow it never comes back down. There's an animation further down that slides the forcing frequency up to so you can watch that happen. (A real spring breaks, or stops obeying Hooke's law, long before "without bound" arrives. That's exactly why engineers care.)
Add damping: a transient and a steady state. Real springs have friction, . Then both roots of have a negative real part: complex roots have real part , and real roots have product and sum , so both are negative. Either way dies away no matter how the spring started, which is why it's called the transient, . What's left is , which keeps going as long as the push does: the steady periodic solution, .
To find , think about what damping changes. It brings in an term, and the derivative of a cosine is a sine, so this time the guess needs both: . Plug in and collect the cosines and the sines:
Match coefficients: and . The second says ; put that in the first and solve:
Now write it as one wave, the way Mechanical Vibrations did: with and . That's
Three things to notice. First, doesn't depend on the initial conditions at all: however you start the spring, it ends up doing the same thing, in step with the push. Second, is the phase lag: the response's peaks come seconds after the push's peaks. Since , the point is in the upper half plane and is between and . It's near for a slow push (the mass just follows along), exactly at , and close to for a very fast push (the mass moves opposite to the force). Third, can't be zero when , because . Damping puts a ceiling on the amplitude: no pure resonance.
Practical resonance. The amplitude still has a peak, though, and you've seen a preview of it in the last problem of Mechanical Vibrations. is biggest where is smallest, so differentiate with the chain rule:
Setting it to zero with gives , so
That only makes sense when what's under the root is positive, which is . When the damping is that small, this is the practical resonance frequency: push at it and you get the biggest steady swings, . It sits a little below (damping drags the peak down), and as it slides up to while blows up, so pure resonance is the limit. When there's no peak at all: the amplitude is largest at , where is just how far a steady force would stretch the spring, and it only falls from there. Careful: that cutoff is , not the of critical damping, so a spring can be underdamped and still have no practical resonance.
A common mistake. It's tempting to find and from the starting conditions using alone, then tack on at the end, because is "the part with the constants". It doesn't work: at , has its own position and velocity, and the constants are exactly what has to cancel them. Write the whole first, then plug in .
A common mistake. The opposite slip: since the transient dies out, it's tempting to answer an initial value problem with alone. But usually doesn't start at rest (in the first worked example it starts at ), so it can't be the solution of a problem that does. The transient is the piece that makes the start right. It fades, but the solution needs it; only when the question is "what happens in the long run?" can you drop it.
A common mistake. With no damping, was enough. With damping it isn't: turns the cosine into a sine, and a guess with no sine can't balance it. Always guess when , even when the push is a pure cosine. That sine is the phase lag.
Where this goes. An RLC circuit driven by an AC voltage is this same equation, with inductance for mass, resistance for damping and for stiffness, so tuning a radio is choosing a practical resonance (Resonance and Filters, LC and RLC Oscillations). And a push that isn't a pure cosine, like a motor that kicks on and off, can be split into cosines with Fourier series. Each cosine gets the treatment from this lesson, and whichever one lands near takes over the motion.
See it
Worked examples
A kg mass on a spring with N/m and damping N·s/m is pushed by newtons. It starts at rest at equilibrium. Find its position , and split it into the transient and the steady periodic part.
- 1
Newton's law gives , with and . Divide everything by to clean it up: . Same solutions, smaller numbers.
A kg mass hangs from a spring and stretches it cm when it's at rest. There's no damping. Starting at rest at equilibrium, a motor pushes it with newtons. Use m/s². Find , the position in meters, and the farthest the mass ever gets from equilibrium. At what forcing frequency would this motor cause resonance?
- 1
Start with . Hanging still, the spring's pull balances the weight: , where is the stretch.
Practice
Type your answer and check it. Solve them all to complete the lesson.
A kg mass hangs from a spring and stretches it cm when it's at rest. Use m/s². Find the spring constant in N/m.
A kg mass hangs from a spring with N/m and no damping. Starting at rest at equilibrium, it's pushed by newtons. Find its position in meters.
An undamped spring-mass system starts at rest at equilibrium, and its position in meters is . What is the farthest the mass ever gets from equilibrium, in meters?
A kg mass hangs from an undamped spring and stretches it cm at rest. A motor pushes it with . Use m/s². Which forcing frequency (in rad/s) causes resonance?
A kg mass on a spring with N/m and damping N·s/m is pushed by newtons. Find its steady periodic solution , the motion it settles into however it starts.
A kg mass on a spring with N/m and damping N·s/m is pushed by newtons. It starts at rest at equilibrium. Find its position .
A damped spring-mass system obeys : a push that fades away, like a gust of wind dying down. It starts at rest at equilibrium. Find .
A kg air compressor sits on rubber mounts that act like a spring with N/m and damping N·s/m. At its running speed, an unbalanced rotor shakes it with a force of newtons. How large is the steady-state vibration, in millimeters?
A kg mass on a spring with N/m and damping N·s/m is pushed by . Which forcing frequency (in rad/s) makes the steady-state amplitude as large as possible?
The hardest one here. Get it, and you've got this lesson.
A kg mass on a spring with N/m and an unknown damping coefficient is pushed by newtons. Sweeping the forcing frequency, engineers find that the steady-state amplitude is largest at rad/s. What is that largest amplitude, in meters, to three decimal places?
Where it's used
A washing machine's spin cycle is a forced oscillator: the lopsided load pushes at the drum's spin rate, and the machine shudders hardest as the drum speeds up through the natural frequency of its suspension, then calms down once it's past. Tall buildings and long footbridges carry tuned mass dampers, heavy weights on springs and dampers sized with exactly these formulas so wind or footsteps can't build up resonance. And every radio tuner, quartz watch crystal and MEMS accelerometer in a phone is a forced oscillator deliberately run at or near its practical resonance, because there a small push gives a big, easy-to-measure response.