The vibrating string on a guitar is terminated at the bridge (m) and the nut (m). Roughly speaking, the terminations are rigid, meaning they force the local string displacement to be zero. They can be considered to be nodes.
Mathematically, we have the boundary conditions , and so due to (1)
and
This means that a rigidly-terminated vibrating string causes displacement waves to change sign when reflected at terminations. This kind of reflection is known as an inverting reflection. Figure 2 shows how the rigidly-terminated vibrating string behaves when it is initialized at according to the same triangular pluck as Figure 1, where m. The top and middle frames again show the right-going and left-going traveling waves, respectively. Notice that for each of these two upper frames, the wave traveling off of the side is inverted and arrives on the same side of for the wave traveling in the opposite direction according to (2) and (3). The traveling wave behavior is quite simple.
The lowest frame shows the vibrating string's net displacement. This is the quantity that you can actually see when you watch a string vibrate, although it happens so fast in real life that it looks like a blur. Here we slow down the behavior so that you can see and understand how it happens.
The triangular pluck, or initial condition, is idealized for simplicity. In real life, it would be hard to start a string vibrating with this condition. For example, you would need a pick for each of the three kinks. Most guitarists use at most one pick per string-certainly not three picks for one string!