Damped Sine Wave (Harmonic Oscillator)
Exponentially decaying sinusoidal oscillation model for transient mechanical vibration and RLC circuit responses.
Mathematical Formulation
y = y0 + A * exp(-gamma * t) * sin(omega * t + phi)Parameters & Physical Meanings
Detailed parameter breakdown, standard units, valid mathematical constraints, and initial guess heuristic algorithms.
| Symbol | Name | Unit | Constraints | Physical Interpretation | Initial Guess Heuristic |
|---|---|---|---|---|---|
| $y_0$ | Equilibrium Offset | Displacement / Voltage | unconstrained | Steady-state resting position or DC offset | mean(y) |
| $A$ | Initial Oscillation Amplitude | Displacement / Voltage | A > 0 | Peak displacement amplitude at t = 0 | max(y) - mean(y) |
| $\gamma$ | Damping Factor (Decay Rate) | 1 / time (s⁻¹) | gamma >= 0 | Exponential decay rate of oscillation envelope (gamma = zeta * omega0) | Envelope logarithmic decrement estimation |
| $\omega$ | Damped Angular Frequency | rad / s | omega > 0 | Natural oscillation frequency under damping (omega = 2 * pi * f_d) | FFT dominant peak frequency: 2 * pi * f_peak |
| $\phi$ | Phase Angle | Radians | -pi <= phi <= pi | Initial oscillation phase angle at t = 0 | 0.0 |
When to Choose This Model
- Analyzing transient vibration decay from accelerometer impulse response testing
- Extracting damping ratios (Q-factors) in acoustic resonators and MEMS cantilevers
- Fitting ring-down decay transients in laser cavity ring-down spectroscopy (CRDS)
Typical Scientific Applications
- Mechanical vibration testing
- Cavity Ring-Down Spectroscopy (CRDS)
- RLC circuit transient analysis
- Seismic wave damping estimation
Expected Fit Profile & Curve Morphology
Shape: oscillatoryExample Dataset & Expected Fit Output
Synthetic 30-point cantilever impulse vibration decay with damping factor gamma = 0.45 s⁻¹ and frequency f = 2.0 Hz
Expected Converged Parameters
- y00.010
- A9.850
- gamma0.450
- omega12.570
- phi0.020
Sample Experimental Vectors (21 points)
| # | x (Independent) | y (Observed) |
|---|---|---|
| 1 | 0.000 | 0.020 |
| 2 | 0.050 | 4.820 |
| 3 | 0.100 | 8.410 |
| 4 | 0.150 | 7.950 |
| 5 | 0.200 | 3.820 |
| 6 | 0.250 | -2.140 |
| 7 | 0.300 | -6.840 |
| 8 | 0.350 | -7.820 |
| + 13 more points available in AltaiPlot preset | ||
Python / SciPy Reference Implementation
Reference library: scipy.optimize (Levenberg-Marquardt).Exact parameterization parity verified.
import numpy as np
from scipy.optimize import curve_fit
def damped_sine_model(t, y0, A, gamma, omega, phi):
return y0 + A * np.exp(-gamma * t) * np.sin(omega * t + phi)
p0 = [np.mean(y_data), np.max(y_data)-np.mean(y_data), 0.5, 2.0*np.pi*2.0, 0.0]
popt, pcov = curve_fit(damped_sine_model, t_data, y_data, p0=p0)Comparative & Alternative Models
Key decision trade-offs between this model and related functional alternatives:
Frequently Asked Questions (Damped Sine Wave (Harmonic Oscillator))
How can I obtain a reliable initial guess for the angular frequency omega?
Perform an FFT on the dataset to extract the dominant peak frequency f_0, then initialize omega = 2 * pi * f_0. AltaiPlot performs this automatic spectral peak initialization internally.
Scientific References & Citations
- Rao, S. S. (2018). Mechanical Vibrations (6th ed.). Pearson.[Source / DOI]