Displacement Velocity and Acceleration in Simple Harmonic Motion

Simple Harmonic Motion Simulator

Simple Harmonic Motion

An interactive visualization of an object oscillating on an X-axis.

Time (t): 0.00 s
Oscillations (N): 0.00

Oscillation on X-Axis

-xₙ
0
+xₙ
0

Displacement, Velocity & Acceleration vs. Time Graph

Displacement (x)
0.00
Velocity (v)
0.00
Acceleration (a)
0.00

Controls

Amplitude (A)
Start Pos (x₀)
Period (T) s
Graph Duration (s)

Interactive Simple Harmonic Motion (SHM) Simulator

Explore the fundamentals of Simple Harmonic Motion (SHM) with this interactive tool! This simulation visualizes a mass oscillating on a horizontal spring and simultaneously plots its key physical properties in real-time.

How to Use the Simulation:

  • Run & Pause: Use the Start/Stop button to run or pause the animation.
  • Analyze: The Step → button advances the simulation by a small time (0.1s) for careful analysis of the vectors and graph positions.
  • Experiment: Before starting, adjust the parameters in the "Controls" section:
    • Amplitude (A): Sets the maximum displacement from the center (equilibrium) position.
    • Start Pos (x₀): Sets the initial position of the mass at time t = 0. This value must be between -A and +A.
    • Period (T): Sets the total time (in seconds) it takes for one complete oscillation.
    • Graph Duration: Sets the total time (in seconds) shown on the x-axis of the graph below.
  • Restart: Press Reset Simulation to apply your new parameters and return the time to zero.

What Students Can Understand:

This simulation is designed to build an intuitive understanding of the core concepts of SHM by connecting the physical motion of the block to its abstract graphs:

  1. Phase Relationships: Observe the graphs for Displacement (Cyan), Velocity (Red), and Acceleration (Green) all at once. Notice that:
    • When displacement is maximum (at +A or -A), velocity is zero, and acceleration is maximum but in the opposite direction.
    • When displacement is zero (at the center), velocity is at its maximum, and acceleration is zero.
  1. Vector Visualization: The arrows above the block show the instantaneous velocity and acceleration.
    • The red (velocity) vector shrinks as the block approaches an end and grows as it moves toward the center.
    • The green (acceleration) vector always points towards the center equilibrium position and is longest when the block is farthest away (at +A or -A).

Play Around and Discover:

  • What happens to the maximum velocity (the peak of the red graph) if you keep the amplitude the same but decrease the period?
  • Set the Start Pos (x₀) to 0. How do the graphs change compared to starting at x₀ = A? This demonstrates a 90-degree phase shift.
  • Pause the simulation exactly where the green acceleration graph crosses the zero line. Where is the block, and what is its velocity vector doing?

Complete and Continue