01 / 22

Differential Equations in
Oscillations & Circuits

Master the second-order ODEs that govern springs, pendulums, and RLC circuits: from simple harmonic motion to damped and driven systems.

College Physics

What Is an Oscillation?

An oscillation is any repetitive motion about an equilibrium position. The displacement \( x(t) \) changes sign periodically. Think of a mass on a spring, a swinging pendulum, or charge sloshing back and forth in a circuit.

t x A T (period)

Why Differential Equations?

Newton's second law and Kirchhoff's voltage law both relate a quantity to its own derivatives. The restoring force in a spring is proportional to displacement; voltage across an inductor is proportional to the rate of change of current. These relationships naturally produce ordinary differential equations (ODEs).

Mechanics
\( F = ma = m\ddot{x} \)
Force depends on position \( x \)
Circuits
\( V_L = L\,\frac{dI}{dt} \)
Voltage depends on current change
Result
Both yield 2nd-order linear ODEs with sinusoidal solutions

The Mechanical Analogy

A mass \( m \) on a spring with constant \( k \) and damping coefficient \( b \) obeys:

m b (damper) F(t) k (spring) x

Simple Harmonic Motion: The Core ODE

When there is no damping (\( b = 0 \)) and no driving force (\( F = 0 \)), the equation simplifies to:

The general solution is:

The RLC Circuit Analogy

A series RLC circuit driven by a voltage source \( \mathcal{E}(t) \) satisfies:

L R C ~ E(t) I

Mechanical vs Electrical: Key Distinction

The two systems are governed by identical mathematics. Every mechanical quantity has an electrical counterpart:

Role Mechanics Circuits
Dynamic variable\( x \) (displacement)\( q \) (charge)
Inertia\( m \) (mass)\( L \) (inductance)
Dissipation\( b \) (damping)\( R \) (resistance)
Restoring element\( k \) (spring constant)\( 1/C \) (inverse capacitance)
External drive\( F(t) \)\( \mathcal{E}(t) \)

Three Damping Regimes

The character of the solution depends on the discriminant \( \gamma^2 - \omega_0^2 \), where \( \gamma = b/(2m) \):

Underdamped
\( \gamma < \omega_0 \)
Oscillates with decaying amplitude
Critically Damped
\( \gamma = \omega_0 \)
Returns to equilibrium fastest, no oscillation
Overdamped
\( \gamma > \omega_0 \)
Returns slowly, no oscillation
t x x = 0 Underdamped Critically damped Overdamped

Formal Damped Solutions

For the damped oscillator \( \ddot{x} + 2\gamma\dot{x} + \omega_0^2 x = 0 \), try \( x = e^{rt} \). The characteristic equation is:

1
Underdamped (\( \gamma < \omega_0 \)): roots are complex. \( x(t) = A e^{-\gamma t}\cos(\omega_d t + \phi) \) where \( \omega_d = \sqrt{\omega_0^2 - \gamma^2} \).
2
Critically damped (\( \gamma = \omega_0 \)): repeated root. \( x(t) = (A + Bt)\,e^{-\gamma t} \).
3
Overdamped (\( \gamma > \omega_0 \)): two distinct real roots. \( x(t) = A e^{r_1 t} + B e^{r_2 t} \) with both \( r_1, r_2 < 0 \).

Driven Oscillations & Resonance

When an external force \( F_0\cos(\omega t) \) drives the system, the steady-state solution has amplitude:

ω A ω₀ Low damping High damping

The LC Circuit: Pure Oscillation

With no resistance (\( R = 0 \)), the series LC circuit is the electrical analog of undamped SHM:

Capacitor Energy
\( U_C = \frac{q^2}{2C} \)
Maximum when \( q = Q_0 \), current is zero
Inductor Energy
\( U_L = \frac{1}{2}LI^2 \)
Maximum when \( I = I_0 \), charge is zero

How to Solve: Step by Step

1
Write the ODE. Use Newton's 2nd law or Kirchhoff's loop rule to derive \( a\ddot{x} + b\dot{x} + cx = f(t) \).
2
Identify parameters. Extract \( \omega_0 \) and \( \gamma \) from coefficients. Compare \( \gamma \) with \( \omega_0 \).
3
Form the characteristic equation. Substitute \( x = e^{rt} \) to get \( r^2 + 2\gamma r + \omega_0^2 = 0 \). Solve for \( r \).
4
Write the general solution. Use the appropriate form (underdamped, critically damped, or overdamped).
5
Apply initial conditions. Use \( x(0) \) and \( \dot{x}(0) \) to find constants \( A \), \( B \), or \( \phi \).

Example 1: Undamped Spring

A \( 0.5 \ \text{kg} \) mass on a spring with \( k = \) \( 200 \ \text{N/m} \) is displaced \( 0.1 \ \text{m} \) and released from rest. Find \( x(t) \).

1
Natural frequency: \( \omega_0 = \sqrt{k/m} = \sqrt{200/0.5} = \) \( 20 \ \text{rad/s} \).
2
General solution: \( x(t) = A\cos(20t + \phi) \).
3
Initial conditions: \( x(0) = 0.1 \ \text{m} \) and \( \dot{x}(0) = 0 \). So \( A\cos\phi = 0.1 \) and \( -20A\sin\phi = 0 \). Thus \( \phi = 0 \), \( A = 0.1 \).

Example 2: Underdamped Oscillator

Same spring, but now with damping \( b = \) \( 4 \ \text{Ns/m} \). Classify and solve, using the same initial conditions (displaced \(0.1 \ \text{m}\), released from rest).

1
Damping parameter: \( \gamma = b/(2m) = 4/(2 \times 0.5) = \) \( 4 \ \text{s}^{-1} \).
2
Compare: \( \gamma = 4 < \omega_0 = 20 \). This is underdamped.
3
Damped frequency: \( \omega_d = \sqrt{20^2 - 4^2} = \sqrt{384} \approx \) \( 19.6 \ \text{rad/s} \).

Example 3: RLC Circuit

An LC circuit has \( L = \) \( 10 \ \text{mH} \) and \( C = \) \( 100 \ \mu\text{F} \), with initial charge \( Q_0 = \) \( 5 \ \mu\text{C} \). Find the oscillation frequency and \( q(t) \).

1
Angular frequency: \( \omega_0 = 1/\sqrt{LC} = 1/\sqrt{(0.01)(10^{-4})} = 1/\sqrt{10^{-6}} = \) \( 1000 \ \text{rad/s} \).
2
Frequency: \( f = \omega_0/(2\pi) \approx \) \( 159 \ \text{Hz} \).
3
Solution: With \( q(0) = Q_0 \) and \( I(0) = \dot{q}(0) = 0 \): phase \( \phi = 0 \).

Common Mistakes

✕ Confusing \( \omega_0 \) and \( \omega_d \)
The damped frequency \( \omega_d = \sqrt{\omega_0^2 - \gamma^2} \) is always less than the natural frequency \( \omega_0 \). Never use \( \omega_0 \) in a damped solution.
✕ Dropping the Factor of 2
The damping term is \( 2\gamma \), not \( \gamma \). From \( b\dot{x} \), we get \( \gamma = b/(2m) \), not \( b/m \). Misidentifying this changes the regime.
✕ Wrong \( \omega_0 \) for Circuits
For an LC circuit, \( \omega_0 = 1/\sqrt{LC} \), not \( \sqrt{L/C} \) or \( \sqrt{LC} \). Check units to verify: result must be in rad/s.

Summary: Solution Forms

Regime Condition Solution Form
Undamped (SHM) \( \gamma = 0 \) \( A\cos(\omega_0 t + \phi) \)
Underdamped \( \gamma < \omega_0 \) \( Ae^{-\gamma t}\cos(\omega_d t + \phi) \)
Critically Damped \( \gamma = \omega_0 \) \( (A + Bt)e^{-\gamma t} \)
Overdamped \( \gamma > \omega_0 \) \( Ae^{r_1 t} + Be^{r_2 t} \)
Driven (steady-state) External \( F_0\cos\omega t \) \( A(\omega)\cos(\omega t - \delta) \)

Question 1 of 5

A mass-spring system has \( m = 2 \ \text{kg} \) and \( k = 50 \ \text{N/m} \). What is the angular frequency \( \omega_0 \)?

Question 2 of 5

A damped oscillator has \( \omega_0 = 10 \ \text{rad/s} \) and \( \gamma = 10 \ \text{s}^{-1} \). The system is:

Question 3 of 5

In a series RLC circuit, which component plays the role of the spring constant \( k \) in the mechanical analogy?

Question 4 of 5

An LC circuit has \( L = 4 \ \text{mH} \) and \( C = 1 \ \mu\text{F} \). What is the natural frequency of oscillation?

Question 5 of 5

At resonance in a driven, damped oscillator, the driving frequency \( \omega \) is closest to: