Differential Equations
Units and Topics
Unit 3. Second Order Linear Equations
3.7 Forced Oscillations and Resonance
A force from outside that repeats in time makes an oscillator move with the frequency of the force. The size of the motion depends strongly on how close this frequency is to the natural frequency of the oscillator. This topic covers the forced oscillator without damping, beats, resonance, the steady state of a damped oscillator, and the resonance curve.
You need Topics 3.4 and 3.6 for this topic. The topic uses the method of undetermined coefficients and the formula that turns a difference of two cosines into a product of two sines.
1. The Equation of the Forced Oscillator
A force F₀ cos ωt acts on the block of Topic 3.6. The number F₀ is the largest value of the force, and ω is its angular frequency. The second law of Newton gives
m x″ + b x′ + k x = F₀ cos ωtDividing by m gives the form of this topic.
x″ + 2γx′ + ω₀²x = f₀ cos ωt with f₀ = F₀/mTwo angular frequencies appear in this equation. The natural angular frequency ω₀ belongs to the oscillator. The driving angular frequency ω belongs to the force. They are independent of each other.
2. No Damping: The Particular Solution
For γ = 0 the equation is x″ + ω₀²x = f₀ cos ωt. The equation has no term with x′, so a cosine alone is enough as the trial function.
xp = a cos ωtthe trial functionxp″ = −ω²a cos ωtthe second derivative(ω₀² − ω²)a cos ωt = f₀ cos ωtsubstitute in the equationa = f₀/(ω₀² − ω²)compare the coefficients, for ω not equal to ω₀xp = f₀/(ω₀² − ω²) cos ωtthe particular solutionThe sign of a depends on the driving frequency.
| Driving frequency | Sign of a | Motion |
|---|---|---|
| ω less than ω₀ | Positive | The block moves in the direction of the force at each time |
| ω greater than ω₀ | Negative | The block moves opposite to the force at each time |
| ω close to ω₀ | Large in size | The amplitude is large |
For a very slow force, ω is close to 0 and a is close to f₀/ω₀², which is F₀/k. This is the distance by which a constant force F₀ stretches the spring.
3. Starting from Rest: Beats
The general solution adds the homogeneous solution. For a block that starts at rest at x = 0, the constants are found from the two conditions.
x = a cos ωt + c₁ cos ω₀t + c₂ sin ω₀tthe general solution, with a = f₀/(ω₀² − ω²)a + c₁ = 0the condition x(0) = 0ω₀c₂ = 0the condition x′(0) = 0x = a(cos ωt − cos ω₀t)the solutionA difference of two cosines is a product of two sines.
cos ωt − cos ω₀t = 2 sin(((ω₀ − ω)t)/2) sin(((ω₀ + ω)t)/2)When ω is close to ω₀, the first sine changes slowly and the second sine changes fast. The motion is a fast oscillation with an amplitude that slowly grows and shrinks. This is called beats. Two musical notes with close frequencies produce beats that can be heard as a slow change of loudness.
For ω₀ = 2, ω = 1.8, and f₀ = 1, the constant a is 1/(4 − 3.24), which is 1.32. The slow sine is sin 0.1t, and it needs the time π/0.1, which is 31.4, from one zero to the next. The largest distance from x = 0 is 2a, which is 2.63.
4. No Damping: Resonance
For ω = ω₀, the trial function a cos ω₀t is a solution of the homogeneous equation, and the formula for a divides by 0. This is the exception of Topic 3.4, and the trial function is multiplied by t. The result contains only the sine.
xp = Bt sin ω₀tthe trial functionxp′ = B sin ω₀t + Bω₀t cos ω₀tthe product rulexp″ = 2Bω₀ cos ω₀t − Bω₀²t sin ω₀tthe product rule one more timexp″ + ω₀²xp = 2Bω₀ cos ω₀tthe terms with t cancel2Bω₀ = f₀compare with the right side f₀ cos ω₀txp = f₀/2ω₀ t sin ω₀tthe particular solutionThis is also the solution that starts from rest at x = 0. The factor t makes the amplitude grow in proportion to the time, without a limit. This is called resonance. The force is in step with the velocity of the block at each time, so it adds energy during the whole motion.
In a real system, damping or the breaking of the system limits the amplitude.
5. With Damping: The Steady State
With damping, the equation contains the term 2γx′, and the trial function needs a cosine and a sine.
xp = a cos ωt + b sin ωtthe trial function(ω₀² − ω²)a + 2γωb = f₀compare the coefficients of cos ωt−2γωa + (ω₀² − ω²)b = 0compare the coefficients of sin ωta = (f₀(ω₀² − ω²))/Dsolve the two equationsb = 2γωf₀/Dwith D = (ω₀² − ω²)² + 4γ²ω²With the amplitude and the phase of Topic 3.6, the particular solution is one cosine.
A = √a² + b²the amplitudeA = f₀/D √(ω₀² − ω²)² + 4γ²ω²substitute a and bA = f₀/√Dbecause the root is √DThe steady state. A particular solution of x″ + 2γx′ + ω₀²x = f₀ cos ωt is xp = A cos(ωt − δ), with the amplitude A = f₀/(√(ω₀² − ω²)² + 4γ²ω²) and the phase δ given by a = A cos δ and b = A sin δ.
The general solution is x = A cos(ωt − δ) plus the homogeneous solution of Topic 3.6. For a positive γ, the homogeneous solution contains the factor e−γt or two decreasing exponential functions, so it approaches 0. It is the transient, and it carries the initial conditions. After a long time, only xp remains. It is called the steady state, as in Topic 2.2.
The steady state has the frequency of the force, and not the natural frequency. Its amplitude does not depend on the initial conditions.
The constant b is positive, so δ is between 0 and π. The block reaches its largest position after the force reaches its largest value. The delay is small for a slow force, it is one quarter of a period for ω = ω₀, and it approaches one half of a period for a fast force.
6. The Resonance Curve
The graph of the amplitude A against the driving frequency ω is called the resonance curve. Three values describe it.
| Driving frequency | Amplitude |
|---|---|
| ω = 0 | f₀/ω₀² |
| ω = ω₀ | f₀/2γω₀ |
| ω much greater than ω₀ | Close to f₀/ω², which approaches 0 |
The amplitude is largest where D is smallest. The derivative of D with respect to ω² is 0 at
ω² = ω₀² − 2γ²For a small γ, the peak is close to ω = ω₀, and its height is close to f₀/2γω₀. A smaller γ gives a higher and narrower peak. For γ² greater than ω₀²/2, the curve has no peak, and the amplitude decreases from ω = 0 on.
An example
A block of mass 1 kg is attached to a spring with k = 25 N/m and a damper with b = 1 kg/s. The force has F₀ = 10 N. Then ω₀ = 5, γ = 0.5, and f₀ = 10.
A(0) = 10/25the amplitude for a very slow force, which is 0.4 mA(5) = 10/(2 × 0.5 × 5)the amplitude for ω = ω₀A(5) = 2in meters, which is 5 times the value for a slow forceD = (25 − 100)² + 4(0.25)(100)for ω = 10D = 5725because 5625 + 100 = 5725A(10) = 10/√5725the amplitude for ω = 10A(10) = 0.13in metersThe same force moves the block 15 times as far at ω = 5 as at ω = 10.
Try it: a forced oscillator that starts from rest
The oscillator has ω₀ = 2 and f₀ = 1, and it starts at rest at x = 0. The upper drawing shows the position x(t) in blue and the steady state in gray. The lower drawing shows the resonance curve for the chosen γ, with a green point at the chosen ω. The sliders set ω and γ.
7. Examples from Physics
Resonance appears wherever a system that can oscillate is pushed at a regular rate.
- A child on a swing is pushed once in each oscillation. Small pushes at the natural frequency build a large amplitude.
- A washing machine shakes strongly at one speed of the drum while it speeds up, and it becomes quiet again at higher speeds. At that speed the rotation rate matches a natural frequency of the machine on its supports.
- A radio receiver contains a circuit with a coil and a capacitor. The circuit responds strongly to the one station whose frequency matches 1/√LC, and weakly to the others. A small resistance gives a narrow peak, which separates stations that are close in frequency.
- Engineers design bridges, buildings, and machines so that their natural frequencies are far from the frequencies of the forces that act on them, or they add damping.
Common Mistakes
- Using the natural frequency in the steady state. The steady state oscillates with the driving frequency ω.
- Using the formula a = f₀/(ω₀² − ω²) for ω = ω₀. In this case the particular solution is f₀/2ω₀ t sin ω₀t.
- Expecting the steady state to depend on the initial conditions. The initial conditions change only the transient.
- Leaving out the sine in the trial function when the equation has damping.
- Calling a large amplitude at one frequency resonance without damping when the system has damping. With damping, the amplitude at ω = ω₀ is large and finite.
Summary
| Idea | Statement |
|---|---|
| Equation | x″ + 2γx′ + ω₀²x = f₀ cos ωt, with f₀ = F₀/m |
| No damping, ω not equal to ω₀ | xp = f₀/(ω₀² − ω²) cos ωt |
| From rest, no damping | x = f₀/(ω₀² − ω²)(cos ωt − cos ω₀t), which shows beats for ω close to ω₀ |
| Resonance, no damping | x = f₀/2ω₀ t sin ω₀t |
| Steady state with damping | xp = A cos(ωt − δ) |
| Amplitude | A = f₀/(√(ω₀² − ω²)² + 4γ²ω²) |
| Amplitude at ω = ω₀ | f₀/2γω₀ |
| Peak of the resonance curve | At ω² = ω₀² − 2γ² |
Practice
Work each problem on paper first. Then open the answer to check your work.
1. Find a particular solution of x″ + 9x = 10 cos 2t.
a = f₀/(ω₀² − ω²)the formula, with ω₀² = 9, ω = 2, and f₀ = 10a = 10/(9 − 4)substitutea = 2dividexp = 2 cos 2tthe particular solution
2. Solve x″ + 9x = 10 cos 2t for a block that starts at rest at x = 0.
x = 2 cos 2t + c₁ cos 3t + c₂ sin 3tthe general solution, with xp from problem 12 + c₁ = 0the condition x(0) = 03c₂ = 0the condition x′(0) = 0x = 2 cos 2t − 2 cos 3tthe solution
3. Find the solution of x″ + 9x = 6 cos 3t that starts at rest at x = 0. Describe the motion.
The driving frequency is equal to the natural frequency, so this is resonance.
x = f₀/2ω₀ t sin ω₀tthe formula of Part 4x = 6/6 t sin 3tsubstitute f₀ = 6 and ω₀ = 3x = t sin 3tthe solution
The block oscillates with the angular frequency 3, and the amplitude is equal to t. It grows without limit.
4. Find the amplitude of the steady state of x″ + 2x′ + 5x = 10 cos t.
γ = 1, ω₀² = 5, ω = 1, and f₀ = 10from the equationD = (5 − 1)² + 4(1)(1)D = (ω₀² − ω²)² + 4γ²ω²D = 20because 16 + 4 = 20A = 10/√20A = f₀/√DA = 2.24the amplitude
5. For the equation of problem 4, find the constants a and b of the steady state xp = a cos t + b sin t.
a = (f₀(ω₀² − ω²))/Dthe formulaa = 10(4)/20substitutea = 2divideb = 2γωf₀/Dthe formulab = 2(1)(1)(10)/20substituteb = 1dividexp = 2 cos t + sin tthe steady state
Check of the amplitude: √2² + 1² is √5, which is 2.24.
6. An oscillator has ω₀ = 10 radians per second and γ = 0.5 per second. By which factor is the amplitude at ω = ω₀ larger than the amplitude for a very slow force?
A(ω₀) = f₀/2γω₀the amplitude at ω = ω₀A(0) = f₀/ω₀²the amplitude for a very slow forceA(ω₀)/A(0) = ω₀/2γdivide the two amplitudesA(ω₀)/A(0) = 10/1substituteA(ω₀)/A(0) = 10the factor
Python Practice
Step 1. The amplitude of the steady state
The code below calculates the amplitude A = f₀/(√(ω₀² − ω²)² + 4γ²ω²) for the example of Part 6, with ω₀ = 5, γ = 0.5, and f₀ = 10, at the three driving frequencies 0, 5, and 10.
Python
The amplitudes are 0.4, 2, and 0.132, as in Part 6. Now use the smaller damping γ = 0.1. The amplitude at ω = 5 should be 10, and the other two amplitudes should change very little.
Python
Damping matters most near ω = ω₀. Far from the natural frequency, the amplitude is almost the same for both values of γ.
Step 2. The peak of the resonance curve
The code below calculates the amplitude at 100001 driving frequencies between 0 and 10 and finds the frequency with the largest amplitude. The instruction np.argmax gives the position of the largest value in a list.
Python
The peak is at ω = 4.950, where the amplitude is 2.010. The third number is the formula √ω₀² − 2γ² of Part 6, and it agrees. Now use γ = 2. The peak should be at ω = 4.123, with the amplitude 0.546.
Python
With more damping, the peak is lower, and it moves to a lower frequency.
Step 3. Check the steady state
Practice problem 5 found the steady state x = 2 cos t + sin t of the equation x″ + 2x′ + 5x = 10 cos t. The code below checks it, with the derivatives typed by hand.
Python
The largest difference is 0 up to rounding. Now check the particular solution x = 2 cos 2t of the equation x″ + 9x = 10 cos 2t of practice problem 1. Four lines need a change.
Python
Step 4. Resonance without damping
The code below follows the equation x″ + 9x = 6 cos 3t from rest by the method of Euler up to the time t = 10, and compares the result with the solution t sin 3t of practice problem 3. The step uses the new position for the velocity, which keeps the method accurate for an oscillation over a long time.
Python
Both values are close to −9.88. Now run the calculation up to the time t = 20.5. Both values should be close to −19.9, which shows the growth of the amplitude with the time.
Python
Step 5. Beats
Part 3 found the solution x = a(cos ωt − cos ω₀t) with a = f₀/(ω₀² − ω²). The code below calculates it for ω₀ = 2, ω = 1.8, and f₀ = 1 at many times up to t = 70, and prints the constant a and the largest distance from x = 0.
Python
The constant is 1.316, and the largest distance is 2.63, which is 2a. Now move the driving frequency closer to the natural frequency, ω = 1.9, and extend the time to 140. The constant should be 2.564, and the largest distance should be close to 5.13.
Python
The closer the two frequencies are, the larger and the slower the beats become. In the limit ω = ω₀, the first beat never ends, which is the resonance of Part 4.
Quiz
This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.
Choose how your answers are checked
1. A particular solution of x″ + 16x = 14 cos 3t has the form a cos 3t. Find a.
a = f₀/(ω₀² − ω²)the formula, with ω₀² = 16, ω = 3, and f₀ = 14a = 14/(16 − 9)substitutea = 2divide
2. Which equation shows resonance, with an amplitude that grows without limit?
The equation x″ + 4x = cos 2t has no damping, and the driving frequency 2 is equal to the natural frequency, because ω₀² = 4. Its solution contains the term (1/4) t sin 2t. The third equation has the same frequencies, but it has damping, so its amplitude stays finite.
3. With which angular frequency does the steady state of x″ + 2x′ + 25x = 3 cos 4t oscillate?
The steady state has the frequency of the force, which is 4. The number 5 is the natural angular frequency, and √24 is the damped angular frequency of the transient. Both belong to the homogeneous solution, which dies out.
4. Find the amplitude of the steady state of x″ + 2x′ + 10x = 12 cos 2t.
D = (ω₀² − ω²)² + 4γ²ω²the formula, with ω₀² = 10, ω = 2, and γ = 1D = (10 − 4)² + 4(1)(4)substituteD = 52because 36 + 16 = 52A = 12/√52A = f₀/√DA = 1.664the amplitude
5. The damping of a forced oscillator is made smaller. What happens to the resonance curve?
For a small γ, the height of the peak is close to f₀/(2γω₀). A smaller γ gives a higher peak, and the peak is also narrower. The peak stays close to ω₀.