Longitudinal wave and seismic P-waves (created by earthquakes and explosions). In longitudinal waves, the displacement of the medium is parallel to the propagation of the wave, and waves can be either straight or round. A wave along the length of a stretched Slinky toy, where the distance between coils increases and decreases, is a good visualization. In the case of longitudinal harmonic sound waves, the frequency and wavelength can be described by the formula where: The quantity "x"/"c" is the time that the wave takes to travel the distance "x". The ordinary frequency ("f") of the wave is given by The wavelength
Wave shoaling the product of the wave energy density with the group velocity, between two wave rays is a conserved quantity (i.e. a constant when following the energy of a wave packet from one location to another). Under stationary conditions the total energy transport must be constant along the wave ray – as first shown by William Burnside in 1915. For waves affected by refraction and shoaling (i.e. within the geometric optics approximation), the rate of change of the wave energy transport is: where formula_13 is the co-ordinate along the wave ray and formula_14 is the energy flux per unit crest length.