Differential Equations 3.6: Free and Damped Oscillations

Differential Equations

Units and Topics

Unit 3. Second Order Linear Equations

3.6 Free and Damped Oscillations

A mass on a spring is described by a second order linear equation with constant coefficients. Without friction the mass oscillates with a fixed amplitude, and with friction the motion dies out in one of three ways. This topic covers the natural frequency, the amplitude and the phase of an oscillation, the energy, and underdamped, critically damped, and overdamped motion.

You need Topics 3.2 and 3.3 for this topic. The topic uses the formula for the cosine of a difference and the second law of Newton.

1. The Equation of the Oscillator

A block of mass m is attached to a spring with the spring constant k. The position x is measured from the position at which the spring is relaxed. The spring exerts the force −kx. A damper, or the resistance of a fluid, exerts the force −bx′, which is proportional to the velocity and directed against it. The constant b is called the damping constant. The second law of Newton gives

m x″ + b x′ + k x = 0

No force from outside acts on the block, so the equation is homogeneous, and the motion is called free. Topic 3.7 adds a force from outside.

The same equation describes a circuit with a coil, a resistor, and a capacitor, with the charge q in the place of x. Topic 3.3 used this.

Mass on a springCircuit
Position xCharge q
Mass mInductance L
Damping constant bResistance R
Spring constant k1/C, with the capacitance C

2. Motion Without Damping

For b = 0, the equation is mx″ + kx = 0. Dividing by m gives

x″ + ω₀²x = 0 with ω₀ = √k/m

The characteristic equation r² + ω₀² = 0 has the roots ±iω₀, so the general solution is

x = c₁ cos ω₀t + c₂ sin ω₀t

The number ω₀ is called the natural angular frequency. It is measured in radians per second. The motion repeats when ω₀t increases by 2π.

QuantityFormulaUnit
Natural angular frequencyω₀ = √k/mradians per second
PeriodT = 2π/ω₀seconds
Frequencyf = 1/Thertz, which is oscillations per second

The period does not depend on the initial conditions. A block that is pulled farther moves faster and needs the same time for one oscillation.

3. Amplitude and Phase

The sum c₁ cos ω₀t + c₂ sin ω₀t is a single cosine that is shifted in time. The formula for the cosine of a difference shows this.

A cos(ω₀t − φ) = A cos φ cos ω₀t + A sin φ sin ω₀tthe cosine of a differencec₁ = A cos φcompare the coefficients of cos ω₀tc₂ = A sin φcompare the coefficients of sin ω₀tA = √c₁² + c₂²square both equations and add them, with cos² φ + sin² φ = 1tan φ = c₂/c₁divide the second equation by the first

Amplitude and phase. c₁ cos ω₀t + c₂ sin ω₀t = A cos(ω₀t − φ), with A = √c₁² + c₂², c₁ = A cos φ, and c₂ = A sin φ.

The number A is the amplitude. It is the largest distance from the equilibrium position. The angle φ is called the phase. The signs of c₁ and c₂ decide the quadrant of φ, so the equation for tan φ alone is not enough when c₁ is negative.

The block of Topic 3.1

Topic 3.1 found the position x = 0.3 cos 2t + 0.4 sin 2t, in meters.

A = √0.3² + 0.4²the amplitudeA = 0.5because 0.09 + 0.16 = 0.25tan φ = 0.4/0.3the phase, with c₁ and c₂ both positiveφ = 0.927in radians, in the first quadrantx = 0.5 cos(2t − 0.927)the position in meters

The largest distance from the relaxed position is 0.5 m, as Topic 3.1 said. The block reaches it for the first time when 2t − 0.927 = 0, which is at t = 0.46 seconds.

4. The Energy

The energy of the oscillator is the kinetic energy of the block plus the potential energy of the spring.

E = 1/2 m v² + 1/2 k x² with v = x′

The derivative of E with respect to the time follows from the chain rule and the differential equation.

dE/dt = mvv′ + kxx′the chain ruledE/dt = v(mx″ + kx)because v′ = x″ and x′ = vdE/dt = v(−bv)the differential equation gives mx″ + kx = −bx′dE/dt = −bv²the rate of change of the energy

Without damping, b = 0 and the energy is constant. With damping, the energy decreases whenever the block moves, and it never increases. The damper turns the energy into thermal energy.

5. Motion with Damping

Dividing mx″ + bx′ + kx = 0 by m gives

x″ + 2γx′ + ω₀²x = 0 with γ = b/2m

The factor 2 in the definition of γ makes the roots simple.

r² + 2γr + ω₀² = 0the characteristic equationr = (−2γ ± √4γ² − 4ω₀²)/2the quadratic formular = −γ ± √γ² − ω₀²divide by 2

The sign of γ² − ω₀² decides the kind of the roots, and there are three kinds of motion.

CaseConditionSolutionMotion
Underdampedγ is less than ω₀x = e−γt(c₁ cos ωdt + c₂ sin ωdt)An oscillation that becomes smaller
Critically dampedγ is equal to ω₀x = (c₁ + c₂t)e−γtA return to 0 without an oscillation
Overdampedγ is greater than ω₀x = c₁er₁t + c₂er₂tA slow return to 0 without an oscillation

In the underdamped case, the roots are −γ ± iωd with

ωd = √ω₀² − γ²

The number ωd is the angular frequency of the damped oscillation. It is smaller than ω₀, so damping makes the oscillation slower. With the amplitude and the phase of Part 3, the underdamped solution is

x = Ae−γt cos(ωdt − φ)

The oscillation stays between the curves Ae−γt and −Ae−γt, which are called the envelope.

In terms of b, the critical value is

b = 2√mk

6. An Underdamped Example

A block of mass 1 kg is attached to a spring with k = 26 N/m and a damper with b = 2 kg/s. It is released from rest at x = 0.2 m.

x″ + 2x′ + 26x = 0the equation, so γ = 1 and ω₀² = 26ωd = √26 − 1the damped angular frequencyωd = 5radians per secondx = e−t(c₁ cos 5t + c₂ sin 5t)the general solutionc₁ = 0.2the condition x(0) = 0.2−c₁ + 5c₂ = 0the condition x′(0) = 0c₂ = 0.04from 5c₂ = 0.2x = e−t(0.2 cos 5t + 0.04 sin 5t)the position in meters

The time between two maximums is 2π/5, which is 1.26 seconds. Without the damper the period would be 2π/√26, which is 1.23 seconds. From one maximum to the next, the envelope decreases by the factor e−1.26, which is 0.28.

Try it: the three kinds of damped motion

The blue curve is the position of an oscillator with ω₀ = 2 that is released from rest at x = 1. The gray dashed curves are the envelope of an underdamped oscillation. The green dashed curve is the critically damped motion, for comparison. The slider sets γ.

7. Critical Damping

With the conditions x(0) = x₀ and x′(0) = 0, the critically damped solution is

x = (c₁ + c₂t)e−γtthe general solution, with γ = ω₀c₁ = x₀the condition x(0) = x₀c₂ − γc₁ = 0the condition x′(0) = 0x = x₀(1 + γt)e−γtthe solution, with c₂ = γx₀

This motion does not pass through x = 0. Among the motions that do not oscillate, the critically damped motion approaches 0 the fastest. In the overdamped case, one root is closer to 0 than −ω₀, and its term decreases slowly. The drawing shows this: for a large γ the blue curve stays above the green curve.

A door closer, the pointer of a measuring instrument, and the suspension of a car are built close to critical damping, so that they come to rest quickly without swinging.

8. An Example from Physics: The Suspension of a Car

One wheel of a car carries the mass 300 kg on a spring with k = 30,000 N/m. The shock absorber is the damper.

ω₀ = √30000/300the natural angular frequencyω₀ = 10radians per secondb = 2√300 × 30000the critical damping constant, b = 2√mkb = 6000in kg/s

A worn shock absorber has b = 1200 kg/s.

γ = 1200/(2 × 300)γ = b/(2m)γ = 2per second, which is less than ω₀, so the motion is underdampedωd = √100 − 4the damped angular frequencyωd = 9.8radians per secondT = 2π/9.8the time between two maximumsT = 0.64seconds

After a bump, the car oscillates with the envelope e−2t. The time at which the envelope has decreased to 5 percent follows from e−2t = 0.05.

−2t = ln 0.05take the natural logarithmt = 1.5seconds, with ln 0.05 = −3.0

The car swings for about 1.5 seconds, which is more than two oscillations. With a new shock absorber close to b = 6000 kg/s, the car returns to its level without swinging.

Common Mistakes

  • Using ω₀ as the frequency in hertz. The frequency is ω₀/2π.
  • Calculating the phase from tan φ alone when c₁ is negative. The signs of c₁ = A cos φ and c₂ = A sin φ decide the quadrant.
  • Using ω₀ inside the cosine of an underdamped solution. The damped angular frequency is ωd = √ω₀² − γ².
  • Reading γ as the coefficient of x′. In the form x″ + 2γx′ + ω₀²x = 0, the coefficient is 2γ.
  • Expecting more damping to bring the system to rest faster in each case. Beyond critical damping, more damping makes the return slower.

Summary

IdeaStatement
Equationmx″ + bx′ + kx = 0, or x″ + 2γx′ + ω₀²x = 0
Constantsω₀ = √k/m and γ = b/2m
Without dampingx = A cos(ω₀t − φ), with the period 2π/ω₀
Amplitude and phaseA = √c₁² + c₂², c₁ = A cos φ, c₂ = A sin φ
EnergydE/dt = −bv²
Underdamped, γ less than ω₀x = Ae−γt cos(ωdt − φ), with ωd = √ω₀² − γ²
Critically damped, γ equal to ω₀x = (c₁ + c₂t)e−γt, with b = 2√mk
Overdamped, γ greater than ω₀x = c₁er₁t + c₂er₂t, with two negative roots

Practice

Work each problem on paper first. Then open the answer to check your work.

1. A block of mass 0.5 kg is attached to a spring with k = 8 N/m, without damping. Find the natural angular frequency, the period, and the frequency.

ω₀ = √8/0.5ω₀ = √k/mω₀ = 4radians per secondT = 2π/4the periodT = 1.57secondsf = 1/1.57the frequencyf = 0.64hertz

2. Write x = 3 cos 2t − 4 sin 2t in the form A cos(2t − φ).

A = √3² + (−4)²the amplitudeA = 5because 9 + 16 = 25cos φ = 3/5 and sin φ = −4/5from c₁ = A cos φ and c₂ = A sin φφ = −0.927in radians, in the fourth quadrantx = 5 cos(2t + 0.927)the result

3. Classify the motion for each equation: x″ + 2x′ + 5x = 0, x″ + 6x′ + 9x = 0, and x″ + 5x′ + 4x = 0.

x″ + 2x′ + 5x = 0 has γ = 1 and ω₀² = 5. Because γ² is less than ω₀², the motion is underdamped, with ωd = √5 − 1, which is 2.

x″ + 6x′ + 9x = 0 has γ = 3 and ω₀² = 9. Because γ² is equal to ω₀², the motion is critically damped.

x″ + 5x′ + 4x = 0 has γ = 2.5 and ω₀² = 4. Because γ² is greater than ω₀², the motion is overdamped, with the roots −1 and −4.

4. A block of mass 2 kg is attached to a spring with k = 50 N/m. Find the damping constant b for critical damping.

b = 2√mkthe critical valueb = 2√2 × 50substituteb = 20in kg/s, because √100 = 10

5. Solve x″ + 4x′ + 13x = 0 with x(0) = 1 and x′(0) = 1.

γ = 2 and ω₀² = 13from the equationωd = √13 − 4the damped angular frequencyωd = 3so the roots are −2 ± 3ix = e−2t(c₁ cos 3t + c₂ sin 3t)the general solutionc₁ = 1the condition x(0) = 1−2c₁ + 3c₂ = 1the condition x′(0) = 1c₂ = 1from 3c₂ = 3x = e−2t(cos 3t + sin 3t)the solution

6. An oscillator has the envelope e−0.5t. After which time has the envelope decreased to one half, and to one tenth?

e−0.5t = 1/2the condition for one halft = 2 ln 2take the natural logarithm and divide by −0.5t = 1.39secondse−0.5t = 1/10the condition for one tentht = 2 ln 10the same stepst = 4.61seconds

Python Practice

Step 1. The natural frequency and the period

The code below calculates the natural angular frequency, the period, and the frequency of a block of mass 0.5 kg on a spring with k = 2 N/m. The square root is typed as np.sqrt.

Python

The values are 2 radians per second, 3.14 seconds, and 0.318 hertz. Now use the wheel of the car of Part 8, with the mass 300 kg and k = 30000 N/m. The values should be 10, 0.628, and 1.59.

Python

Step 2. Amplitude and phase

The instruction np.arctan2 finds the angle φ from c₂ and c₁. It receives c₂ first and c₁ second, and it gives the angle in the correct quadrant. The code below calculates the amplitude and the phase for x = 0.3 cos 2t + 0.4 sin 2t, and then compares the two forms of the solution at many times.

Python

The amplitude is 0.5, the phase is 0.927, and the two forms agree. Now use x = 3 cos 2t − 4 sin 2t of practice problem 2. The amplitude should be 5, and the phase should be −0.927.

Python

Step 3. The damped frequency and the critical damping constant

The code below calculates γ, the damped angular frequency, and the critical damping constant for the block of Part 6.

Python

The values are 1, 5, and 10.2. The damping constant 2 is far below the critical value, so the motion is underdamped. Now use the car of Part 8 with the worn shock absorber: m = 300, b = 1200, and k = 30000. The values should be 2, 9.80, and 6000.

Python

Step 4. The energy decreases

The code below calculates the energy of the block of Part 6 at four times. The position is x = e−t(0.2 cos 5t + 0.04 sin 5t), and its derivative is v = −1.04e−t sin 5t.

Python

The energy starts at 0.52 joules and decreases: the values are 0.52, 0.068, 0.0115, and 0.0011. Each second it decreases by a factor close to e−2, because the envelope of x and of v decreases by the factor e−1 and the energy contains their squares. Now calculate the energy at the times 0, 0.5, 1, and 1.5. The last value should be about 0.031.

Python

Step 5. Critical damping returns the fastest

The code below follows an oscillator with ω₀ = 2 that is released from rest at x = 1, by the method of Euler, up to the time t = 3. The damping is critical, γ = 2. The equation is x″ = −2γx′ − 4x.

Python

The position at t = 3 is 0.0174, which agrees with (1 + 2t)e−2t. Now use the larger damping γ = 5. The position at t = 3 should be about 0.299, which is much farther from 0.

Python

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 block of mass 2 kg is attached to a spring with k = 18 N/m, without damping. Find the natural angular frequency in radians per second.

2. Find the amplitude of x = 5 cos 3t + 12 sin 3t.

3. Which kind of motion does the equation x″ + 4x′ + 3x = 0 describe?

4. An oscillator satisfies x″ + 6x′ + 25x = 0. Find the damped angular frequency ωd.

5. The damping constant of a critically damped oscillator is made larger. What happens to the return to the equilibrium position?

Next: Topic 3.7, Forced Oscillations and Resonance