A common situation resulting in an envelope function in both space
x and time
t is the superposition of two waves of almost the same wavelength and frequency: : \begin{align} F(x, \ t) & = \sin \left[ 2 \pi \left( \frac {x}{\lambda - \Delta \lambda } - ( f + \Delta f )t \right) \right] + \sin \left[ 2 \pi \left( \frac {x}{\lambda + \Delta \lambda } - ( f - \Delta f )t \right) \right] \\[6pt] & \approx 2\cos \left[ 2 \pi \left( \frac {x} {\lambda_{\rm mod}} - \Delta f \ t \right) \right] \ \sin \left[ 2 \pi \left( \frac {x}{\lambda} - f \ t \right) \right] \end{align} which uses the trigonometric formula for the
addition of two sine waves, and the approximation Δ
λ ≪
λ: :\frac{1}{\lambda \pm \Delta \lambda}=\frac {1}{\lambda}\ \frac{1}{1\pm\Delta \lambda / \lambda }\approx \frac{1}{\lambda}\mp \frac {\Delta \lambda}{\lambda^2} . Here the
modulation wavelength λmod is given by: : \lambda_{\rm mod} = \frac {\lambda^2}{\Delta \lambda}\ . So {{equation box 1|equation= F_{\rm mod}(x,t) = 2\cos \left[ 2 \pi \left( \frac {x} {\lambda_{\rm mod}} - f_{\rm mod} \ t \right) \right], }} where {{equation box 1|equation= \lambda_{\rm mod} = \frac {\lambda^2}{\Delta \lambda}, f_{\rm mod} = \Delta f }} The modulation wavelength is double that of the envelope itself because each half-wavelength of the modulating cosine wave governs both positive and negative values of the modulated sine wave. Likewise the
beat frequency is that of the envelope, twice that of the modulating wave, or 2Δ
f. If this wave is a sound wave, the ear hears the frequency associated with
f and the amplitude of this sound varies with the beat frequency.
Phase and group velocity , and the green circles propagate with the
group velocity. The argument of the sinusoids above apart from a factor 2 are: :\xi_C =\left( \frac {x}{\lambda} - f \ t \right)\ , :\xi_E=\left( \frac {x} {\lambda_{\rm mod}} - \Delta f \ t \right) \ , with subscripts
C and
E referring to the
carrier and the
envelope. The same amplitude
F of the wave results from the same values of ξC and ξE, each of which may itself return to the same value over different but properly related choices of
x and
t. This invariance means that one can trace these waveforms in space to find the speed of a position of fixed amplitude as it propagates in time; for the argument of the
carrier wave to stay the same, the condition is: :\left( \frac {x}{\lambda} - f \ t \right) = \left( \frac {x+\Delta x}{\lambda} - f (t + \Delta t) \right)\ , which shows to keep a constant amplitude the distance Δ
x is related to the time interval Δ
t by the so-called
phase velocity vp :v_{\rm p} = \frac{\Delta x}{\Delta t} = \lambda f \ . On the other hand, the same considerations show the envelope propagates at the so-called
group velocity vg: :v_{\rm g} = \frac{\Delta x}{\Delta t} = \lambda_{\rm mod}\Delta f =\lambda^2 \frac{\Delta f}{\Delta \lambda} \ . A more common expression for the group velocity is obtained by introducing the
wavevector k: :k=\frac{2\pi}{\lambda} \ . We notice that for small changes Δ
λ, the magnitude of the corresponding small change in wavevector, say Δ
k, is: : \Delta k = \left|\frac{dk}{d\lambda}\right|\Delta \lambda = 2\pi \frac{\Delta \lambda}{\lambda^2} \ , so the group velocity can be rewritten as: : v_{\rm g}= \frac {2\pi\Delta f}{\Delta k} =\frac {\Delta \omega}{\Delta k}\ , where
ω is the frequency in radians/s:
ω = 2
f. In all media, frequency and wavevector are related by a
dispersion relation,
ω =
ω(
k), and the group velocity can be written: :v_{\rm g} =\frac{d\omega (k)}{dk} \ . In a medium such as
classical vacuum the dispersion relation for electromagnetic waves is: :\omega = c_0 k where
c0 is the
speed of light in classical vacuum. For this case, the phase and group velocities both are
c0. In so-called
dispersive media the
dispersion relation can be a complicated function of wavevector, and the phase and group velocities are not the same. For example, for several types of waves exhibited by atomic vibrations (
phonons) in
GaAs, the dispersion relations are shown in the figure for
various directions of wavevector
k. In the general case, the phase and group velocities may have different directions. ==In function approximation==