In physics and engineering, the envelope of an oscillatingsignal is a smooth curve outlining its extremes. The envelope thus generalizes the concept of a constant amplitude into an instantaneous amplitude. The figure illustrates a modulated sine wave varying between an upper envelope and a lower envelope. The envelope function may be a function of time, space, angle, or indeed of any variable.
Envelope for a modulated sine wave.
Example: beating waves
A modulated wave resulting from adding two sine waves of identical amplitude and nearly identical wavelength and frequency.
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:
Here the modulation wavelengthλmod is given by:
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.
The argument of the sinusoids above apart from a factor 2π are:
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:
which shows to keep a constant amplitude the distance Δx is related to the time interval Δt by the so-called phase velocityvp
On the other hand, the same considerations show the envelope propagates at the so-called group velocityvg:
A more common expression for the group velocity is obtained by introducing the wavevectork:
We notice that for small changes Δλ, the magnitude of the corresponding small change in wavevector, say Δk, is:
so the group velocity can be rewritten as:
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:
Dispersion relation ω=ω(k) for some waves corresponding to lattice vibrations in GaAs.
In a medium such as classical vacuum the dispersion relation for electromagnetic waves is:
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.
Example: envelope function approximation
Electron probabilities in lowest two quantum states of a 160Ǻ GaAs quantum well in a GaAs-GaAlAs heterostructure as calculated from envelope functions.
where n is the index for the band (for example, conduction or valence band) r is a spatial location, and k is a wavevector. The exponential is a sinusoidally varying function corresponding to a slowly varying envelope modulating the rapidly varying part of the wavefunction un,k describing the behavior of the wavefunction close to the cores of the atoms of the lattice. The envelope is restricted to k-values within a range limited by the Brillouin zone of the crystal, and that limits how rapidly it can vary with location r.
In determining the behavior of the carriers using quantum mechanics, the envelope approximation usually is used in which the Schrödinger equation is simplified to refer only to the behavior of the envelope, and boundary conditions are applied to the envelope function directly, rather than to the complete wavefunction. For example, the wavefunction of a carrier trapped near an impurity is governed by an envelope function F that governs a superposition of Bloch functions:
where the Fourier components of the envelope F(k) are found from the approximate Schrödinger equation. In some applications, the periodic part uk is replaced by its value near the band edge, say k=k0, and then:
Diffraction patterns from multiple slits have envelopes determined by the single slit diffraction pattern. For a single slit the pattern is given by:
where α is the diffraction angle, d is the slit width, and λ is the wavelength. For multiple slits, the pattern is 
where q is the number of slits, and g is the grating constant. The first factor, the single-slit result I1, modulates the more rapidly varying second factor that depends upon the number of slits and their spacing.
C. Richard Johnson, Jr; William A. Sethares; Andrew G. Klein (2011). "Figure C.1: The envelope of a function outlines its extremes in a smooth manner". Software Receiver Design: Build Your Own Digital Communication System in Five Easy Steps. Cambridge University Press. p. 417. ISBN 978-0521189446.
Blair Kinsman (2002). Wind Waves: Their Generation and Propagation on the Ocean Surface (Reprint of Prentice-Hall 1965 ed.). Courier Dover Publications. p. 186. ISBN 0486495116.
Peter Y. Yu; Manuel Cardona (2010). "Fig. 3.2: Phonon dispersion curves in GaAs along high-symmetry axes". Fundamentals of Semiconductors: Physics and Materials Properties (4th ed.). Springer. p. 111. ISBN 978-3642007095.
V. Cerveny; Vlastislav Červený (2005). "§2.2.9 Relation between the phase and group velocity vectors". Seismic Ray Theory. Cambridge University Press. p. 35. ISBN 0521018226.
G Bastard; JA Brum; R Ferreira (1991). "Figure 10 in Electronic States in Semiconductor Heterostructures". In Henry Ehrenreich; David Turnbull (eds.). Solid state physics: Semiconductor Heterostructures and Nanostructures. p. 259. ISBN 0126077444.
Christian Schüller (2006). "§2.4.1 Envelope function approximation (EFA)". Inelastic Light Scattering of Semiconductor Nanostructures: Fundamentals And Recent Advances. Springer. p. 22. ISBN 3540365257.
For example, see Marco Fanciulli (2009). "§1.1 Envelope function approximation". Electron Spin Resonance and Related Phenomena in Low-Dimensional Structures. Springer. pp. 224 ff. ISBN 978-3540793649.
Kordt Griepenkerl (2002). "Intensity distribution for diffraction by a slit and Intensity pattern for diffraction by a grating". In John W Harris; Walter Benenson; Horst Stöcker; Holger Lutz (eds.). Handbook of physics. Springer. pp. 306 ff. ISBN 0387952691.
This article incorporates material from the Citizendium article "Envelope function", which is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License but not under the GFDL.