Active Noise Cancellation (1D)

Active Noise Cancellation (ANC) in one dimension is modeled by the principle of superposition and destructive interference of sound waves. The core concept is that two sound waves of identical frequency can cancel each other out if they are perfectly out of phase—specifically, if their phase difference is π radians (180°). This simulator visualizes two such sinusoidal pressure waves, often representing an original 'noise' wave and an 'anti-noise' wave generated by an ANC system. You can adjust the amplitude and phase of the anti-noise wave relative to the noise wave. The total sound pressure at any point and time is the sum of the two individual pressures, given by the equation P_total(x,t) = A₁ sin(kx - ωt + φ₁) + A₂ sin(kx - ωt + φ₂). Perfect cancellation occurs when A₁ = A₂ and φ₂ = φ₁ + π, resulting in P_total = 0. The simulator simplifies real-world complexity by assuming one-dimensional propagation, perfect frequency matching, and a single point in space, ignoring reflections, dispersion, and the three-dimensional nature of real sound fields. By interacting with the controls, you will learn how the relative phase and amplitude critically determine the degree of cancellation, observe the resulting waveform, and understand the quantitative measure of effectiveness through the root-mean-square (RMS) amplitude of the summed signal.

Who it's for: High school and introductory undergraduate physics students studying wave interference, as well as engineering students learning the foundational principles of active noise control technology.

Key terms

  • Destructive Interference
  • Superposition Principle
  • Phase Difference
  • Amplitude
  • Sinusoidal Wave
  • Root-Mean-Square (RMS)
  • Active Noise Cancellation
  • Wavelength

How it works

Feed-forward or feedback ANC headphones generate a secondary wave to cancel pressure at the ear. For a single tone, cancellation is pure interference: adjust amplitude and phase so the sum stays near zero. Mis-tuned phase or level leaves a residual — the yellow trace and the RMS readouts quantify how much “silence” you get in this ideal 1D model.

Key equations

s(t) = A sin ωt + B sin(ωt + φ) = (A + B cos φ) sin ωt + (B sin φ) cos ωt

RMS(s) = √[(A + B cos φ)² + (B sin φ)²] / √2 — zero when A = B and φ = π (mod 2π).

Frequently asked questions

Why does perfect cancellation require the waves to have exactly the same amplitude?
Destructive interference occurs when wave crests align with troughs. If the amplitudes differ, the trough of the smaller wave cannot fully fill the crest of the larger wave. The result is a reduced, but non-zero, residual wave with an amplitude equal to the difference between the two original amplitudes.
Is this how noise-cancelling headphones work?
Yes, this is the core principle. Headphones use a microphone to pick up ambient noise, electronically invert its phase (add a π phase shift), and play it back through the speaker. The simulator's 1D model is a major simplification; real headphones must cancel noise across a range of frequencies and in a complex, three-dimensional ear cup environment.
What does the RMS amplitude tell me that just looking at the wave doesn't?
The root-mean-square (RMS) amplitude is a single number that quantifies the effective average magnitude of the oscillating wave. Visually, you can see if waves cancel, but the RMS value gives you a precise measure of the remaining sound energy or loudness, which is what our ears perceive. Lower RMS means more effective cancellation.
Why can't we cancel all noise with this technique?
Perfect cancellation in the real world is extremely difficult. It requires the anti-noise signal to perfectly match the noise in amplitude and phase at the listener's ear. This is challenging for rapidly changing or very high-frequency sounds, and for noise coming from many directions. The model assumes a single, pure tone, which is rarely the case for real ambient noise.