For transverse waves the motion is up and down while the wave moves forward. Example include water waves, electromagnetic waves, S-waves. In longitudinal (compressional) waves the motion is back and forth in the same direction the wave travels. Sound waves and P-waves are examples. The same equations and behavior applies to all types of waves.