Beat frequency: $f_{beat} = |f_1 - f_2|$
Standing wave: equal-frequency waves traveling in opposite directions produce $y = 2A\cos(kx)\sin(\omega t)$
Freely configure two sinusoidal waves to animate interference and superposition in real time. Visually experience constructive interference, destructive interference, beats, and standing waves.
Beat frequency: $f_{beat} = |f_1 - f_2|$
Standing wave: equal-frequency waves traveling in opposite directions produce $y = 2A\cos(kx)\sin(\omega t)$
The simulator models two traveling sinusoidal waves. Each wave is defined by its amplitude, frequency, phase, and the wave speed, which together determine its shape at any point in space (x) and time (t).
$$y_1 = A_1\sin(k_1 x - \omega_1 t + \phi_1), \quad y_2 = A_2\sin(k_2 x - \omega_2 t + \phi_2)$$Here, $A$ is the amplitude (wave height), $\phi$ is the phase shift (starting angle), and $\omega = 2\pi f$ is the angular frequency. The wavenumber $k = \frac{2\pi f}{v}$ links frequency and wave speed $v$, determining how squeezed or stretched the wave is in space.
The core principle visualized is linear superposition. The total wave at any point is the algebraic sum of the two individual waves.
$$y_{total}(x, t) = y_1(x, t) + y_2(x, t)$$This simple addition leads to all complex phenomena: constructive interference (peaks align, $y_{total}$ is larger), destructive interference (a peak meets a trough, $y_{total}$ is smaller), beats (from slightly different frequencies), and standing waves (from waves traveling in opposite directions).
Active Noise Cancellation (ANC) Headphones: This technology relies on destructive interference. A microphone picks up ambient noise (e.g., engine hum), and the headphone generates a sound wave of the same amplitude but opposite phase (180° shift). The two waves superpose and cancel each other out at your ear, creating silence. Engineers use simulations like this to design the phase and amplitude matching.
Ultrasonic Testing & Phased Array Sensors: In non-destructive testing, arrays of ultrasonic transducers send waves into materials. By carefully controlling the phase ($\phi$) and timing of each transducer's pulse, engineers can "steer" and focus the resulting superimposed wavefront to detect cracks or flaws inside structures like pipelines or aircraft wings.
Structural Vibration & Resonance Avoidance: In CAE for buildings or car frames, engineers must analyze how vibrational waves from different sources (engines, wind) will interfere. Destructive interference is good, but constructive interference at a structure's natural frequency causes dangerous resonance. Superposition simulations help predict and redesign to avoid these conditions.
Acoustic Room Design (FEM Applications): When designing concert halls or recording studios, engineers use Finite Element Method (FEM) software. These tools solve the superposition of countless sound waves reflecting off walls to model "dead spots" (destructive interference) and "hot spots" (constructive interference), ensuring even sound distribution.
First, note that "interference" and "superposition" are not exactly the same. Superposition is simply the principle of adding waves together, while interference refers to the phenomenon where a stationary "pattern of reinforcement and cancellation (interference fringes)" is observed as a result. For example, if you superimpose two waves with significantly different frequencies, you won't see a stable interference fringe pattern over time.
Next, here are some tips for parameter settings when observing beats with the simulator. If the beat frequency $f_{\text{beat}}= |f_1 - f_2|$ is too high, the amplitude fluctuation will be too fast to follow visually. Conversely, if it's too low, the change is slow and observation takes time. For instance, setting f₁=100Hz and f₂=103Hz yields an easily observable 3Hz beat, which sounds like a "wobble... wobble..." effect. A difference of 10Hz or more tends to sound more like dissonance rather than a distinct beat.
Also, don't get confused by the "phase" setting. The phase angle φ is the offset of the wave's starting point. If you shift the phase of only one wave by 180° (π radians) in the simulator, they indeed cancel each other out at a point, but this does not happen simultaneously everywhere. In a wave spreading through space, even if a peak and a trough overlap at one point, a peak and a peak might overlap at another. Remember that complete cancellation only occurs in the special case where the wave shapes (amplitude, waveform, frequency) are perfectly identical and the phases are offset by exactly 180°.