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.
43 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.
Spring Constant
For a damped harmonic oscillator with mass , spring constant , and natural angular frequency , the spring constant is equal to the mass times the square of the angular frequency, i.e., .
In a Critically Damped Oscillator,
For a damped harmonic oscillator with mass , spring constant , and decay rate , if the system is critically damped (i.e., ), then the spring constant satisfies the relation .
Natural Frequency is Less than Decay Rate () for Overdamped Harmonic Oscillators
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , if the system is overdamped (i.e., ), then its natural angular frequency is strictly less than its decay rate . That is, .
The Angular Frequency of an Underdamped Oscillator is
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , if the system is underdamped (i.e., its discriminant ), then its damped angular frequency is given by
Angular Frequency of Critically Damped Oscillator is Zero
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , if the system is critically damped (i.e., ), then its angular frequency is zero.
Angular Frequency of an Overdamped Oscillator is
For a damped harmonic oscillator that is overdamped, its angular frequency is given by where is the discriminant and is the mass of the oscillator.
for underdamped oscillators
For an underdamped harmonic oscillator, the square of the damped angular frequency is equal to the square of the natural angular frequency minus the square of the decay rate : where and is the decay rate associated with the damping coefficient.
for an Underdamped Oscillator
For a damped harmonic oscillator in the underdamped regime (where the mass , spring constant , and damping coefficient satisfy the condition ), the damped angular frequency is strictly positive, i.e., .
The damped angular frequency in the underdamped regime
Consider a damped harmonic oscillator with mass , spring constant , and damping coefficient . If the oscillator is in the underdamped regime (i.e., its parameters satisfy ), then its damped angular frequency is non-zero, .
for an Overdamped Harmonic Oscillator
For a damped harmonic oscillator in the overdamped regime (where ), the square of the angular frequency is equal to the square of the decay rate minus the square of the natural angular frequency . That is: where is the angular frequency of the oscillator, is its decay rate, and is its natural angular frequency.
The angular frequency of an overdamped harmonic oscillator is positive ()
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , if the oscillator is overdamped (i.e., ), then its associated angular frequency is strictly positive ().
The angular frequency of an overdamped oscillator is non-zero ()
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , if the system is overdamped (meaning ), then its associated angular frequency is non-zero ().
`HarmonicOscillator` associated with an undamped system
Given a damped harmonic oscillator characterized by mass , spring constant , and damping coefficient , this function constructs the corresponding `HarmonicOscillator` (an undamped system) provided a proof that the system is undamped (i.e., ). The resulting harmonic oscillator retains the same mass and spring constant as the original system.
Equivalence of Damped and Undamped Equations of Motion when
Consider a damped harmonic oscillator with mass , spring constant , and damping coefficient . If is undamped (i.e., ), then for any smooth trajectory , satisfies the damped equation of motion if and only if it satisfies the equation of motion for the corresponding undamped harmonic oscillator.
Caldirola–Kanai Lagrangian of the damped harmonic oscillator
The Caldirola–Kanai Lagrangian for a damped harmonic oscillator with mass , spring constant , and damping coefficient is a real-valued function of time , position , and velocity . It is defined as the Lagrangian of the corresponding undamped harmonic oscillator multiplied by a time-dependent exponential factor: where denotes the standard inner product on the 1-dimensional Euclidean space.
Explicit formula for the Caldirola–Kanai Lagrangian
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , the Lagrangian at time , position , and velocity is given by: where denotes the standard inner product on the 1-dimensional Euclidean space.
for the Damped Harmonic Oscillator
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , the Caldirola–Kanai Lagrangian evaluated at time , position , and velocity is equal to the product of an exponential factor and the difference between the kinetic energy and potential energy : where and .
The Caldirola–Kanai Lagrangian of an undamped oscillator equals the harmonic oscillator Lagrangian
Let be a damped harmonic oscillator with mass , spring constant , and damping coefficient . If is undamped (i.e., ), then its Caldirola–Kanai Lagrangian is equal to the Lagrangian of the corresponding simple harmonic oscillator: where is time, is position, is velocity, and denotes the standard inner product on 1-dimensional Euclidean space.
The Lagrangian of the Damped Harmonic Oscillator is
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , the Lagrangian function (defined as the Caldirola–Kanai Lagrangian ) is (continuously differentiable to order ) for any with respect to time , position , and velocity .
Gradient of the Damped Harmonic Oscillator Lagrangian with respect to position
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , the gradient of the Caldirola–Kanai Lagrangian with respect to the position at time and velocity is given by
for the damped harmonic oscillator
For a damped harmonic oscillator with mass and damping coefficient , the gradient of the Caldirola–Kanai Lagrangian with respect to the velocity at time and position is: where and are vectors in a 1-dimensional Euclidean space .
Variational gradient of the action for the damped harmonic oscillator
Given a trajectory mapping from time to a 1-dimensional Euclidean space , this function computes the variational gradient of the action functional for the damped harmonic oscillator. The action is defined using the Caldirola–Kanai Lagrangian: where is the mass, is the spring constant, and is the damping coefficient. The result is a function of time corresponding to the functional derivative (the Euler–Lagrange expression).
equals the Euler-Lagrange Operator for the Damped Harmonic Oscillator
For a damped harmonic oscillator with mass , spring constant , and damping coefficient , let be an infinitely differentiable () trajectory. The variational gradient of the action, denoted as , is equal to the Euler-Lagrange operator applied to the Caldirola–Kanai Lagrangian . That is,
The variational gradient of the Caldirola–Kanai action equals
For a damped harmonic oscillator with mass and damping coefficient , let be a smooth () trajectory in 1-dimensional Euclidean space. The variational gradient of the action functional based on the Caldirola–Kanai Lagrangian is given at each time by: where is the total physical force (the sum of the restoring and damping forces) and is the acceleration of the oscillator at time .
Equation of Motion iff
For a damped harmonic oscillator with mass , damping coefficient , and spring constant , let be an infinitely differentiable trajectory. Then satisfies the equation of motion for all if and only if the variational gradient of the action (defined using the Caldirola–Kanai Lagrangian) is equal to zero.
