Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic
The Damped Harmonic Oscillator
i. Overview
The damped harmonic oscillator is a classical mechanical system corresponding to a mass `m` under a restoring force `- k x` and a damping force `- γ ẋ`, where `k` is the spring constant, `γ` is the damping coefficient, `x` is the position, and `ẋ` is the velocity.
The equation of motion for the damped harmonic oscillator is: ``` m ẍ + γ ẋ + k x = 0 ```
Depending on the relationship between the damping coefficient and the natural frequency, the system exhibits three different behaviors: - **Underdamped** (γ² < 4mk) : Oscillatory motion with exponentially decaying amplitude - **Critically damped** (γ² = 4mk) : Fastest return to equilibrium without oscillation - **Overdamped** (γ² > 4mk) : Slow return to equilibrium without oscillation
ii. Key results
This module is currently a placeholder for future implementation. The following results are planned to be formalized:
- `DampedHarmonicOscillator`: Structure containing the input data (mass, spring constant, damping coefficient) - `EquationOfMotion`: The equation of motion for the damped harmonic oscillator - Solutions for underdamped, critically damped, and overdamped cases - Energy dissipation properties - Quality factor and relaxation time
iii. Table of contents
- A. The input data (to be implemented) - B. The damped angular frequency (to be implemented) - C. The energies and energy dissipation (to be implemented) - D. The equation of motion (to be implemented) - E. Solutions (to be implemented) - E.1. Underdamped case - E.2. Critically damped case - E.3. Overdamped case - F. Quality factor and decay time (to be implemented)
iv. References
References for the damped harmonic oscillator include: - Landau & Lifshitz, Mechanics, page 76, section 25. - Goldstein, Classical Mechanics, Chapter 2.
A. The input data (placeholder)
The input data for the damped harmonic oscillator will consist of: - Mass `m > 0` - Spring constant `k > 0` - Damping coefficient `γ ≥ 0`
B. The natural angular frequency (placeholder)
The natural angular frequency ω₀ = √(k/m) will be defined here.
C. Equation of motion (Tag: DHO03)
The damped harmonic oscillator with mass `m`, spring constant `k`, and damping coefficient `γ` satisfies
m ẍ + γ ẋ + k x = 0,
where `x : Time → ℝ` is the position as a function of time.
D. The energies and energy dissipation (Tag: DHO04)
For the damped harmonic oscillator, the mechanical energy is
E(t) = ½ S.m (ẋ(t))^2 + ½ S.k (x(t))^2,
where `x : Time → ℝ` is the position as a function of time.
If `x` satisfies the equation of motion
S.m * x¨ + S.γ * ẋ + S.k * x = 0,
then differentiating `E` with respect to time and substituting the equation of motion yields
dE/dt = - S.γ * (ẋ(t))^2 ≤ 0
Thus the energy is non-increasing in time, and it is strictly decreasing whenever `S.γ > 0` and `ẋ(t) ≠ 0`. In particular, for `S.γ > 0` the energy is not conserved, and the energy dissipation rate is proportional to the squared velocity.
E. Damping regimes (placeholder)
The three damping regimes will be defined based on the discriminant γ² - 4mk.
18 declarations
The spring constant
For a damped harmonic oscillator with spring constant , the spring constant is non-zero, i.e., .
Mass
For a damped harmonic oscillator with mass , the mass is non-zero, i.e., .
Natural angular frequency
For a damped harmonic oscillator with mass and spring constant , the natural (undamped) angular frequency is defined as the square root of the ratio of the spring constant to the mass:
For a damped harmonic oscillator, the natural angular frequency is strictly positive, i.e., .
For a damped harmonic oscillator with mass and spring constant , the square of the natural angular frequency is equal to the ratio of the spring constant to the mass:
Equation of motion
For a damped harmonic oscillator with mass , damping coefficient , and spring constant , a position function satisfies the equation of motion if for all times , the following differential equation holds: where and represent the first and second time derivatives of at time , respectively.
Kinetic energy
For a damped harmonic oscillator with mass , given a position function , its kinetic energy is the function mapping each time to where is the time derivative of the position at time .
Potential energy
For a damped harmonic oscillator with spring constant , given a position function , its potential energy is the function .
Mechanical energy
For a damped harmonic oscillator with mass and spring constant , given a position function , its mechanical energy is the function defined as the sum of its kinetic and potential energies: where is the time derivative of the position at time .
Kinetic energy
For a damped harmonic oscillator with mass , and for any position function , the kinetic energy is given by the function , where is the time derivative of at time .
Potential Energy
For a damped harmonic oscillator with spring constant , and for any position function , the potential energy is given by the function .
Energy dissipation rate
For a damped harmonic oscillator with damping coefficient , and for any position function , the energy dissipation rate is defined as the function , where is the time derivative of at time .
Energy Dissipation Rate for the Damped Harmonic Oscillator
For a damped harmonic oscillator with damping coefficient , let be a position function of class that satisfies the equation of motion . Then the time derivative of the mechanical energy at any time is given by where denotes the time derivative of at time .
for Non-zero Velocity and Positive Damping in a Damped Harmonic Oscillator
Consider a damped harmonic oscillator with mass , spring constant , and damping coefficient . Let be a position function of class that satisfies the equation of motion . If the velocity at time is non-zero, , then the time derivative of the mechanical energy is strictly negative:
Discriminant of a damped harmonic oscillator
The discriminant of a damped harmonic oscillator with mass , spring constant , and damping coefficient is defined as . This value determines the damping regime (underdamped, critically damped, or overdamped) of the system.
Underdamped condition for a harmonic oscillator
A damped harmonic oscillator with mass , spring constant , and damping coefficient is said to be **underdamped** if its discriminant is strictly less than zero.
Critically damped condition for a harmonic oscillator
A damped harmonic oscillator with mass , spring constant , and damping coefficient is said to be **critically damped** if its discriminant is equal to zero.
Overdamped condition for a harmonic oscillator
A damped harmonic oscillator with mass , spring constant , and damping coefficient is said to be **overdamped** if its discriminant is strictly greater than zero.
