The diffraction patterns depend upon the nature of the obstacles the wave encounters, both their physical dimensions as well as how the change the phase and/or direction of the wave. The simplest types of obstacles are slits or
apertures which block of part of the wave {{gallery |align=center| noborder=yes| File:Diffraction sharp edge.gif|Diffraction on a sharp metallic edge | File:Diffraction softest edge.gif|Diffraction on a soft aperture, with a gradient of conductivity over the image width |
Gratings A diffraction grating is an optical component with a regular pattern. The form of the light diffracted by a grating depends on the structure of the elements and the number of elements present, but all gratings have intensity maxima at angles
θm which are given by the grating equation d \left( \sin{\theta_m} \pm \sin{\theta_i} \right) = m \lambda, where \theta_{i} is the angle at which the light is incident, d is the separation of grating elements, and m is an integer which can be positive or negative. The light diffracted by a grating is found by summing the light diffracted from each of the elements, and is essentially a
convolution of diffraction and interference patterns. The figure shows the light diffracted by 2-element and 5-element gratings where the grating spacings are the same; it can be seen that the maxima are in the same position, but the detailed structures of the intensities are different.
General case for far field A more mathematical approach involves treating the problem as a summation over spherical waves derived from the relevant wave equation; see for instance
Born and Wolf for details. The wave that emerges from a point source has an amplitude \psi at location \mathbf r that is given by the solution of the
frequency domain wave equation for a point source (the
Helmholtz equation), \nabla^2 \psi + k^2 \psi = \delta(\mathbf r), where \delta(\mathbf r) is the 3-dimensional delta function. By direct substitution, the solution to this equation can be shown to be the scalar
Green's function, which in the
spherical coordinate system (and using the physics time convention e^{-i \omega t}) is \psi(r) = \frac{e^{ikr}}{4 \pi r}.which is a spherical wave emanating from the origin, the mathematical form of Huygen"s wavelets in the Huygens-Fresnel appriach. This solution assumes that the delta function source is located at the origin. If the source is located at an arbitrary source point, denoted by the vector \mathbf r' and the field point is located at the point \mathbf r, then we may represent the scalar
Green's function (for arbitrary source location) as \psi(\mathbf r | \mathbf r') = \frac{e^{ik | \mathbf r - \mathbf r' | }}{4 \pi | \mathbf r - \mathbf r' |}. In the far field, where r is large the Green's function simplifies to \psi(\mathbf{r} | \mathbf{r}') = \frac{e^{ik r}}{4 \pi r} e^{-ik ( \mathbf{r}' \cdot \mathbf{\hat{r}})}The expression for the far (Fraunhofer region) wave then becomes \Psi(r)\propto \frac{e^{ik r}}{4 \pi r} \iint\limits_\mathrm{aperture} \!\! E_\mathrm{inc}(x',y') e^{-ik ( \mathbf{r}' \cdot \mathbf{\hat{r}} ) } \, dx' \,dy'. with an electric field E_\mathrm{inc}(x, y) incident on the aperture for the case of an electromagnetic wave. In the far-field / Fraunhofer region, this becomes the spatial
Fourier transform of the aperture. Huygens' principle when applied to an aperture simply says that the
far-field diffraction pattern is the spatial Fourier transform of the aperture shape, and this is a direct by-product of using the parallel-rays approximation, which is identical to doing a plane wave decomposition of the aperture plane fields (see
Fourier optics). In the far field, where is essentially constant, then the equation: \Psi = \int_{\mathrm{aperture}} \frac{i}{r\lambda} \Psi^\prime e^{-ikr}\,d\mathrm{aperture}is equivalent to doing a
Fourier transform on the gaps in the barrier. Similar forms can be derived for matter and other types of waves. ==Matter wave diffraction==