Rainbow Trigonometry
Watch six sine waves sin(x + p + k/6) travel as the phase p grows, and see how a phase shift moves a curve along the x-axis without changing its shape.
Noise-canceling headphones make quiet out of sound. A microphone picks up the noise, and a speaker plays the same wave shifted by half a period, so that each crest meets a trough and the two cancel. Paul Lueg patented the idea in 1936. The shift is a phase shift: in \sin(x + \varphi) , the number \varphi , the phase, moves the peaks and troughs along the x -axis and does not change the amplitude or the period. Two waves add up to more, to less or to nothing according to their relative phase.
The plot draws six sine waves \sin(x + p + k/6) for k = 0 to 5 , in red, orange, yellow, green, blue and purple. Neighboring curves differ in phase by 1/6 radian, about 9.5° . The difference between two curves is a pure horizontal shift, and the identity \sin(a) - \sin(b) = 2\cos((a+b)/2)\sin((a-b)/2) tells where two neighbors cross: where \cos((a+b)/2) = 0 , beside each peak and each trough, at the height \pm\cos(1/12) \approx \pm 0.997 .
Drag p and notice that the whole band of colors moves to the left; at p = 2\pi it has moved one full wavelength and the picture is the one you started with. To see two waves cancel, edit the second row, \sin(x + p + 1/6) , and change 1/6 to \pi : that curve becomes the mirror image of the first one, crest against trough.
JavaScript is required to view the interactive plot.