Differential Equation For Simple Harmonic Motion

6 min read

Differential Equation for Simple Harmonic Motion

Simple harmonic motion (SHM) is the backbone of many physical systems—from a mass on a spring to a pendulum swinging back and forth. On the flip side, at its core, SHM is governed by a second‑order linear differential equation that encapsulates the relationship between displacement, restoring force, and time. Understanding this equation not only reveals why objects oscillate but also equips students and hobbyists with the tools to analyze and predict real‑world behavior.

Introduction

When a system experiences a restoring force proportional to its displacement, it tends to oscillate about an equilibrium position. This scenario is described mathematically by a differential equation of the form

[ \frac{d^2x}{dt^2} + \omega^2 x = 0, ]

where (x(t)) is the displacement, (t) is time, and (\omega) is the angular frequency. This simple yet powerful relationship appears in countless contexts: a mass on a spring, a simple pendulum for small angles, electrical LC circuits, and even quantum oscillators. The equation’s form is universal because it reflects the same underlying physics: a linear restoring force balanced by inertia.

Deriving the SHM Equation

1. Newton’s Second Law

Consider a mass (m) attached to a spring with spring constant (k). Hooke’s law states that the spring exerts a force (F = -kx), where the negative sign indicates that the force opposes the displacement. Newton’s second law, (F = m a), gives

[ m,\frac{d^2x}{dt^2} = -k x. ]

Rearranging yields

[ \frac{d^2x}{dt^2} + \frac{k}{m} x = 0. ]

2. Angular Frequency

Define the angular frequency (\omega) as

[ \omega \equiv \sqrt{\frac{k}{m}}. ]

Substituting this into the equation produces the canonical SHM differential equation

[ \boxed{\frac{d^2x}{dt^2} + \omega^2 x = 0}. ]

The same derivation applies to a simple pendulum of length (L) and mass (m) for small angular displacements (\theta). The restoring torque is (-mgL \sin\theta \approx -mgL \theta), leading to

[ mL^2,\frac{d^2\theta}{dt^2} + mgL,\theta = 0 ;;\Longrightarrow;; \frac{d^2\theta}{dt^2} + \frac{g}{L}\theta = 0, ]

with (\omega = \sqrt{g/L}) No workaround needed..

Solving the Differential Equation

The general solution to (\frac{d^2x}{dt^2} + \omega^2 x = 0) is a linear combination of sine and cosine functions:

[ x(t) = A \cos(\omega t) + B \sin(\omega t). ]

Alternatively, it can be written as a single sinusoid with a phase shift:

[ x(t) = C \cos(\omega t + \phi), ]

where (C = \sqrt{A^2 + B^2}) is the amplitude and (\phi = \tan^{-1}!\left(-\frac{B}{A}\right)) is the phase angle. The constants (A) and (B) (or (C) and (\phi)) are determined by initial conditions:

  • Initial displacement (x(0) = x_0)
  • Initial velocity (\dot{x}(0) = v_0)

Plugging these into the general solution yields:

[ x_0 = A, \quad v_0 = -A\omega \sin(0) + B\omega \cos(0) = B\omega ;;\Longrightarrow;; B = \frac{v_0}{\omega}. ]

Thus,

[ x(t) = x_0 \cos(\omega t) + \frac{v_0}{\omega} \sin(\omega t). ]

Example: Mass on a Spring

Suppose a 0.5 kg mass is attached to a spring with (k = 20,\text{N/m}). The angular frequency is

[ \omega = \sqrt{\frac{k}{m}} = \sqrt{\frac{20}{0.Even so, 5}} = \sqrt{40} \approx 6. 32,\text{rad/s}.

If the mass is pulled 0.1 m from equilibrium and released from rest ((x_0 = 0.1) m, (v_0 = 0)), the displacement over time is

[ x(t) = 0.1 \cos(6.32 t),\text{m}. ]

The motion repeats every period (T = \frac{2\pi}{\omega} \approx 0.99,\text{s}) The details matter here..

Physical Interpretation

  • Restoring Force vs. Inertia: The term (\omega^2 x) represents the restoring force’s tendency to bring the system back to equilibrium, while (\frac{d^2x}{dt^2}) reflects inertia resisting changes in motion. The balance between these two yields oscillatory behavior.
  • Energy Exchange: In SHM, kinetic and potential energies oscillate out of phase. At maximum displacement, kinetic energy is zero, and potential energy is at a maximum; at equilibrium, the opposite occurs.
  • Phase Space: Plotting (x) versus (\dot{x}) yields a closed ellipse, illustrating the conserved total energy.

Extensions and Variations

1. Damped Harmonic Motion

Real systems experience friction or resistance, introducing a damping term proportional to velocity:

[ \frac{d^2x}{dt^2} + 2\beta \frac{dx}{dt} + \omega^2 x = 0, ]

where (\beta) is the damping coefficient. Depending on (\beta), the system can be underdamped, critically damped, or overdamped But it adds up..

2. Driven Harmonic Motion

Adding an external periodic force (F_{\text{ext}}(t) = F_0 \cos(\Omega t)) leads to

[ \frac{d^2x}{dt^2} + \omega^2 x = \frac{F_0}{m}\cos(\Omega t). ]

The steady‑state solution oscillates at the driving frequency (\Omega), exhibiting resonance when (\Omega \approx \omega).

3. Nonlinear Oscillators

When the restoring force is not strictly proportional to displacement (e.g., a pendulum at large angles), the equation becomes nonlinear:

[ \frac{d^2\theta}{dt^2} + \frac{g}{L}\sin\theta = 0. ]

Such equations require more advanced techniques (elliptic integrals) and yield amplitude‑dependent frequencies.

Common Misconceptions

Misconception Reality
**All oscillations are SHM.Still, ** Only systems with a linear restoring force exhibit perfect SHM.
Frequency is always the same. In damped or driven systems, the observed frequency can shift.
Amplitude does not affect period. For small oscillations, period is independent of amplitude, but for large amplitudes (nonlinear systems) it changes.

Frequently Asked Questions

Q1: How does the angular frequency relate to the familiar frequency (f)?

[ f = \frac{\omega}{2\pi}. ]

To give you an idea, a spring with (\omega = 6.32,\text{rad/s}) has a frequency (f \approx 1.01,\text{Hz}) It's one of those things that adds up. Practical, not theoretical..

Q2: Can I use the SHM equation for a pendulum of any length?

Only for small angular displacements where (\sin\theta \approx \theta). For larger angles, the approximation fails, and the motion is no longer strictly harmonic Small thing, real impact..

Q3: What happens if I increase the mass while keeping the spring constant fixed?

The angular frequency decreases: (\omega = \sqrt{k/m}). A heavier mass oscillates more slowly That's the part that actually makes a difference..

Q4: Is energy conserved in SHM?

Yes, in the ideal (undamped, undriven) case. Total mechanical energy (E = \frac{1}{2}m\dot{x}^2 + \frac{1}{2}kx^2) remains constant over time.

Conclusion

The differential equation (\frac{d^2x}{dt^2} + \omega^2 x = 0) is the mathematical heart of simple harmonic motion. That said, its derivation from Newton’s laws, its elegant sinusoidal solutions, and its universal applicability across mechanical, electrical, and even quantum systems make it a cornerstone of physics education. By mastering this equation, one gains not only predictive power but also a deeper appreciation for the rhythmic dance that underlies so many natural and engineered phenomena.

Just Went Online

Just Made It Online

You Might Like

Hand-Picked Neighbors

Thank you for reading about Differential Equation For Simple Harmonic Motion. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home