Two sine waves travelling in opposite directions create a standing wave
A travelling wave moves from one place to another, whereas a standing wave appears to stand still, vibrating in place. In this animation, two waves (with the same amplitude, frequency, and wavelength) are travelling in opposite directions. Using the principle of superposition, the resulting wave amplitude may be written as:
$$ y(x,t)= y_m \sin(kx - \omega t) + y_m \sin(kx + \omega t) = 2 y_m \cos(\omega t)\sin(kx) $$
This wave is no longer a travelling wave because the position and time dependence have been separated. The the wave amplitude as a function of position is \(2y_m\sin(kx)\). This amplitude does not travel, but stands still and oscillates up and down according to \(\cos(\omega t)\). Characteristic of standing waves are locations with maximum displacement (antinodes) and locations with zero displacement (nodes).
The movie at left shows how a standing wave may be created from two travelling waves. If two sinusoidal waves having the same frequency (and wavelength) and the same amplitude are travelling in opposite directions in the same medium then, using superposition, the net displacement of the medium is the sum of the two waves. As the movie shows, when the two waves are 180° out-of-phase with each other they cancel, and when they are exactly in-phase with each other they add together. As the two waves pass through each other, the net result alternates between zero and some maximum amplitude. However, this pattern simply oscillates; it does not travel to the right or the left, and thus it is called a "standing wave".
I have placed two dots on the string, one at an antinode and one at a node. Which is which?
Check out my related animation to see how standing waves may be created in a medium due to reflection of a wave from a boundary.