Harmonic Motion Back
Vibration Engineering

Harmonic Motion Simulator (SHM, Damped, Driven)

Compare simple harmonic, damped, and driven oscillation side by side. Visualize resonance frequency, Q-factor, and amplitude response.

Parameters
Natural frequency ω₀ (rad/s) 5.0
Damping coefficient γ (1/s) 0.5
Driving frequency ω_drive (rad/s) 5.0
Initial amplitude A 1.0
Driving force F₀ 1.0
Summary
1.26
Natural period T₀ (s)
5.0
Q-factor
10.0
Resonance amplitude
0.10
Damping ratio ζ
Presets

Key Equations

SHM: $x(t)=A\cos(\omega_0 t)$

Damped: $x(t)=Ae^{-\gamma t}\cos(\omega_d t)$

Damped nat. freq: $\omega_d=\sqrt{\omega_0^2-\gamma^2}$

Driven amplitude: $$X=\frac{F_0}{\sqrt{(\omega_0^2-\omega^2)^2+(2\gamma\omega)^2}}$$

Q-factor: $Q=\dfrac{\omega_0}{2\gamma}$

SHM
Damped
Driven
Time Response x(t)
Resonance Curve (Amplitude vs Driving Frequency)

What is Harmonic Motion?

🧑‍🎓
What exactly is the difference between "simple," "damped," and "driven" harmonic motion? They all look like wiggles on a graph.
🎓
Basically, it's about what's *causing* and *affecting* the wiggle. Simple harmonic motion (SHM) is the perfect, never-ending wiggle, like an ideal frictionless swing. Damped motion has friction slowing it down—try setting the damping coefficient γ to zero in the simulator to see pure SHM, then increase it to watch the oscillations fade. Driven motion adds an external push that keeps the system going, which you can activate with the "Driving force F₀" slider.
🧑‍🎓
Wait, really? So in the "Driven" case, if I match the driving frequency to the natural frequency, the amplitude gets huge. Is that always true?
🎓
Yes, that's the core idea of resonance! The amplitude peaks when the driving frequency ($\omega_{drive}$) equals the natural frequency ($\omega_0$). But how sharp and tall that peak is depends completely on damping. For instance, try this in the simulator: set a low damping (small γ) and sweep the driving frequency slider near ω₀. You'll see a tall, narrow peak. Now, increase damping a lot—the peak becomes lower and wider. That's a key practical difference.
🧑‍🎓
The tool mentions a "Q-factor." Is that just another way to talk about damping?
🎓
Exactly. The Q-factor (Quality factor) quantifies it: $Q = \omega_0 / (2\gamma)$. A high Q means low damping and a system that "rings" for a long time, like a tuning fork. A low Q means high damping and quick energy loss, like a car's shock absorber. In the simulator, if you set a high ω₀ and a very low γ, you'll get a high Q and a very sharp resonance peak. It's a single number that tells you how "selective" or "lossy" the oscillator is.

Physical Model & Key Equations

The fundamental equation governing all these motions is Newton's second law for a mass on a spring, including damping and driving forces. This is the Driven, Damped Harmonic Oscillator equation:

$$m\frac{d^2x}{dt^2}+ c\frac{dx}{dt}+ kx = F_0 \cos(\omega_{drive}t)$$

Here, $m$ is mass, $c$ is the damping constant (related to γ by $\gamma = c/(2m)$), $k$ is the spring constant (related to ω₀ by $\omega_0 = \sqrt{k/m}$), and $F_0$ is the amplitude of the driving force.

For the steady-state solution (after initial transients die out), the amplitude of oscillation $X$ is given by the formula central to this simulator:

$$X(\omega) = \frac{F_0}{\sqrt{(\omega_0^2 - \omega^2)^2 + (2\gamma\omega)^2}}$$

This is the Amplitude Response Function. $X$ is the maximum displacement, $\omega_0$ is the natural frequency, $\omega$ is the driving frequency, and $\gamma$ is the damping coefficient. The denominator gets smallest when $\omega \approx \omega_0$, causing the resonant amplitude peak. The width of this peak is directly proportional to $\gamma$ and inversely proportional to the Q-factor.

Real-World Applications

Tuning Circuits in Radios: An LC circuit is an electrical harmonic oscillator. By adjusting the circuit's natural frequency (tuning) to match the frequency of a specific radio station (the driving signal), the circuit resonates, picking up that signal strongly while rejecting others. The Q-factor of the circuit determines how selective the radio is between closely spaced stations.

Seismic Engineering & Building Design: Buildings have natural sway frequencies. Engineers must design structures so their natural frequencies do not match the dominant frequencies of earthquakes or strong winds to avoid destructive resonance. Damping systems (like tuned mass dampers in skyscrapers) are added to increase effective γ and lower the Q, dissipating vibrational energy.

Atomic Force Microscopy (AFM): A sharp tip on a cantilever beam is oscillated near its resonance. When the tip interacts with a sample surface, the effective damping (γ) and resonant frequency (ω₀) shift. Monitoring these changes allows the microscope to map surface topography with atomic-scale resolution, a direct application of driven harmonic oscillator physics.

Automotive Suspension Design: A car's suspension is a damped oscillator (spring and shock absorber). The damping coefficient γ is carefully chosen for a low Q-factor. This ensures the car doesn't resonate uncomfortably on bumpy roads—the suspension absorbs and quickly dissipates the energy from bumps, providing a smooth ride.

Common Misunderstandings and Points to Note

First, a common mistake is reversing the relationship between the "damping coefficient γ" and the "Q factor". γ is the "coefficient that reduces vibration," so the larger it is, the faster the vibration settles. On the other hand, the Q factor is essentially its inverse; the smaller γ is (less damping), the larger the Q factor becomes. For example, decreasing γ from 0.1 to 0.01 makes the Q factor about 5 times larger, and the resonance peak becomes sharper and higher. In practical work, when you hear "a system with a high Q factor," you can interpret it as "a system with low damping that reacts sensitively to a specific frequency."

Next, a point where people often mistakenly think the "natural angular frequency ω₀" does not change even if parameters are altered. In this simulator, ω₀ is a value determined by "mass m" and "spring constant k." Therefore, changing the forced vibration frequency ω_d does not change ω₀ itself. However, in the real world, large amplitudes can cause material deformation changing k (nonlinearity), or changes in mass distribution altering the effective m. In other words, the resonance point itself can move. Keep in mind that the simulator uses a linear model.

Finally, avoid trying to observe the "steady state" of forced vibration immediately. Right after the external force is applied, it's in a "transient state" with unstable vibration. Especially in systems with low damping (high Q factor), it can take a very long time to settle into a steady state. For instance, starting a simulation with γ=0.05 and ω_d=ω₀, it might take dozens of cycles for the amplitude to reach its maximum value. When comparing with experimental data, always look at the waveform from the "steady state" after sufficient time has passed.

Related Engineering Fields

The "linear vibration theory" behind this simulator is the very foundation of acoustical engineering. A speaker's cone or a headphone's diaphragm is precisely a vibration system composed of mass (m), spring (restoring force k), and damper (damping c). Adjusting the Q factor is key to sound quality design; woofers, for example, moderately lower the Q factor to increase damping and prevent boomy sound.

It is also deeply connected to control engineering. In servo motor positioning control, the response to following a command value precisely shows the form of damped oscillation. If the damping coefficient γ is too small (= Q factor too high), it overshoots the target position, oscillating back and forth. Conversely, if it's too large, it takes too long to reach the target. Tuning PID control parameters to obtain an optimal response is essentially the work of shaping this vibration system's damping characteristics into an ideal form.

Furthermore, in earthquake engineering, buildings are considered a type of vibration system (specifically, a damped vibration system). Seismic motion input from the ground corresponds to the "external force." Resonance occurs when the building's natural period (=2π/ω₀) matches the predominant period of the seismic motion, causing significant damage. Modern seismic isolation structures are designed to absorb seismic energy by intentionally lengthening this natural period or significantly increasing the damping coefficient (by installing dampers).

For Further Learning

The next step is to learn about "2-degree-of-freedom vibration". This simulator deals with a "1-degree-of-freedom system" with one mass. Many real-world structures are multi-degree-of-freedom systems with multiple masses and springs connected. Learning about 2-degree-of-freedom systems introduces new important concepts: "coupled oscillation" and "modes." For example, in a car's suspension (with two masses: the body and the tire), two different natural frequencies arise, and you can observe the phenomenon of vibrational energy transferring from one to the other.

Mathematically, a solid understanding of solving differential equations is the foundation for everything. Grasp the meaning of the general solution as the sum of the "transient solution" and the "steady-state solution," and particularly the part of the transient solution that vanishes over time. Also, the solution method using complex numbers (using $e^{i\omega t}$) that appears in deriving the resonance curve formula $X(\omega_d)$ is a powerful tool that connects to AC circuit theory and wave engineering, so it's highly recommended to master it.

Finally, challenge yourself with the world of "nonlinear vibration" beyond this linear model. Real springs often deviate from Hooke's law when stretched significantly, and damping is often not simply proportional to velocity. In the nonlinear world, rich and complex phenomena await, such as the "jump phenomenon" where amplitude suddenly increases, "hysteresis" where behavior differs when increasing versus decreasing the external force frequency, and even unpredictable "chaotic oscillation." Once you've solidified the basics with this simulator, I encourage you to explore the vast world of vibration science that lies beyond.