PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Waves & Sound

Other simulators in this category — or see all 35.

View category →
FeaturedSchool

Wave Interference

Two sources creating constructive and destructive patterns. 2D ripple tank.

Launch Simulator
School

Standing Waves

Find harmonics on a string. Nodes and antinodes highlighted.

Launch Simulator
NewSchool

Doppler Effect

Moving source with pitch change via Web Audio. Wavefront compression visible.

Launch Simulator
NewUniversity / research

Light Doppler & Redshift

EM vacuum Doppler: f/f₀ and z vs v/c; linear Δλ/λ ≈ v/c vs exact √(1+β)/√(1−β). Ties to spectral lines.

Launch Simulator
NewSchool

Room Reverberation (2D rays)

Specular rays in a shoebox plan; impulse response; RT60 vs Sabine. Absorption per bounce.

Launch Simulator
NewSchool

Active Noise Cancellation (1D)

Two tones same f: amplitudes and phase; RMS sum vs ideal π phase. Destructive interference demo.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Waves & Sound/Transverse vs Longitudinal

Transverse vs Longitudinal

A side-by-side comparison of transverse and longitudinal waves provides a foundational understanding of wave mechanics. This simulation visually models the motion of individual particles in a medium as a wave disturbance passes through them. For a transverse wave, such as one on a string, particles oscillate perpendicular to the direction of wave propagation. The displacement of a particle can be described by the wave function y(x,t) = A sin(kx - ωt), where A is amplitude, k is the wave number, and ω is the angular frequency. In contrast, for a longitudinal wave like a sound wave in air, particles oscillate parallel to the propagation direction, creating regions of compression (high pressure) and rarefaction (low pressure). This is often modeled by a density variation ρ(x,t). The simulation simplifies reality by representing particles as discrete, non-interacting points connected by springs or guides to visualize restoring forces, ignoring effects like damping, dispersion, and three-dimensional propagation. By interacting with controls for amplitude, frequency, and wavelength, students directly observe how these parameters affect particle motion and wave speed, reinforcing the universal wave equation v = fλ. The core learning outcome is the ability to distinguish wave types by particle motion and to understand that both transfer energy, not matter, through a medium.

Who it's for: High school and introductory college physics students learning the fundamental properties of mechanical waves, as well as educators seeking a dynamic visualization for classroom instruction.

Key terms

  • Transverse Wave
  • Longitudinal Wave
  • Amplitude
  • Wavelength
  • Frequency
  • Compression
  • Rarefaction
  • Particle Motion

Traveling wave (same k, ω in both panels)

1.5 Hz
0.35 (L)
0.35

Top: y = A sin(kx − ωt) perpendicular to the x-axis. Bottom: same phase on each particle, displacement along x (compression / rarefaction).

Shortcuts

  • •Space or Enter — pause / resume
  • •R — reset phase

Measured values

k = 2π/λ17.9521/L
ω = 2πf9.425rad/s
Phase speed v = fλ0.5250L/s

How it works

Side-by-side visualization of the same sinusoidal traveling wave: transverse motion keeps particles near fixed x while they oscillate up and down; longitudinal motion slides particles along the propagation direction, stretching and squeezing the spacing (spring segments).

Key equations

Transverse: y(x,t) = A sin(kx − ωt),   k = 2π/λ
Longitudinal: u(x,t) = A sin(kx − ωt),   x′ = x + u

Frequently asked questions

Can light waves be modeled as transverse or longitudinal in this simulator?
This simulator specifically models mechanical waves, which require a medium. Light is an electromagnetic wave and is transverse, but it does not require a medium to propagate. The particle motion shown here represents physical particles in a material, not the oscillating electric and magnetic fields of light.
Why do the particles return to their starting positions? Doesn't the wave carry them forward?
The particles oscillate around a fixed equilibrium point. A wave transfers energy through the medium, not the particles themselves. Think of a stadium wave: people stand up and sit down (oscillate) but do not move around the stadium. The 'wave' of motion travels, but the individuals do not.
What is a real-world example of a wave that is both transverse and longitudinal?
Surface water waves are a common hybrid. The water particles move in an elliptical path, with a component perpendicular (transverse) and a component parallel (longitudinal) to the wave's travel direction. This simulation separates the two pure types for clarity, but combined motions exist in nature.
Does changing the frequency or wavelength affect the wave speed in this model?
In this simplified model for a given medium (e.g., the same spring tension or air pressure), the wave speed is constant and determined by the medium's properties. Changing frequency (f) will automatically change wavelength (λ) to satisfy v = fλ. In some real materials, speed can depend on frequency, an effect called dispersion, which is not shown here.