Diagram A: One end of the spring is pushed to start a compression in the spring. The direction of the wave of compression is shown by an arrow. Diagram B: One end of the spring is pulled so that the spring is becomes rarefied. This is followed by a compression in the spring.