Linear oscillator

This simulation solves the harmonic oscillator with or without linear damping and external sinusoidal force:
x'' + 2 γ x' + ω2 x = f cos (Ω t + δ)
where each ' denotes a time derivative.



Activities

  1. Set γ = 0 and f = 0 and solve the system for different initial conditions to see linear periodic oscillations.
  2. Select Energy to see the potential energy V(x) = 1/2 x2 in red and the mechanical energy E = 1/2 x'2 + V(x) in blue.
  3. Set γ = 0.05 and f = 0. What happens now with the mechanical energy for different initial conditions?
  4. Set γ = 0.1 and f = 0.1. What would happen with the equilibrium point?
  5. After a while (say t = 100), click Erase to clear all graphs. How is the remaining (nearly asymptotic) motion?
  6. What changes if you choose other initial conditions?
  7. Select for Ω a value near resonance, say 1 or 0.995. What would happen?
  8. What happens with smaller values of γ?



This is an English translation of the Basque original for a course on mechanics, oscillations and waves.
It requires Java 1.5 or newer and was created by Juan M. Aguirregabiria with Easy Java Simulations (Ejs) by Francisco Esquembre. I thank Wolfgang Christian and Francisco Esquembre for their help.