Abstract
We present a technique to solve numerically the Fresnel diffraction integral by representing a given complex function as a finite superposition of complex Gaussians. Once an accurate representation of these functions is attained, it is possible to find analytically its diffraction pattern. There are two useful consequences of this representation: first, the analytical results may be used for further theoretical studies and second, it may be used as a versatile and accurate numerical diffraction technique. The use of the technique is illustrated by calculating the intensity distribution in a vicinity of the focal region of an aberrated converging spherical wave emerging from a circular aperture.
©2010 Optical Society of America
1. Introduction
As is well known, the Fresnel diffraction integral is the key tool to calculate the amplitude distribution of propagated fields. However, due to the presence of a quadratic phase in the integrand, the integral is in general not analytically integrable and it is not possible to attain a closed calculation. Thus, several numerical methods have been developed as is the case of the Fast Fourier Transform (FFT), Lommel integrals, sampling expansions and techniques involving methods of stationary phase [1–7].
Sampling expansions consists basically in three steps: First, the diffraction integral is written in cylindrical coordinates giving rise to a Bessel function of the first kind and zero order in the integrand. Then, the product of the quadratic phase by the Bessel function is represented by a sampling series whose coefficients must be determined. Finally, the resulting integrals are evaluated. Unfortunately, sampling expansions as well as Lommel integrals are only applicable to situations with axial symmetry.
The numerical techniques mentioned above are limited when the quadratic term in the integrand oscillates rapidly imposing severe sampling (Nyquist) conditions; for example, for calculating the amplitude distribution of a converging lens, with a focal length of 5cm and an aperture of 2.5cm at a plane located 1cm away from the focal plane, would require sampling the quadratic term with approximately 17000 by 17000 pixels, resulting in a large computing time. If additionally, a system require multiple calculations the computing time may become prohibitive.
The above number of sampling pixels can be estimated as follows: Let the illuminating wavelength be 0.6μm. The real part of the quadratic phase corresponds to a cosine function; then, taking a line scan over one diameter results in 868 cycles with different widths, being the length of the narrower period 14.4 μm. If we assign ten pixels homogeneously distributed to this zone, then it will require 17000 pixels to homogeneously sample the whole diameter. Additionally, an equal number of pixels will be also necessary for the imaginary part. For interferometric and holographic applications where the complex phase has to be calculated with precision, it will be necessary to increase the number of pixels even more.
To overcome the above limitations we present a technique that is based in representing one or several terms in the integrand inside the Fresnel diffraction integral as a superposition of Gaussian functions. This allows us to calculate the integral in an analytical (closed) form. As in general the terms in the integral (not the quadratic phase) require a low sampling rate, the numerical calculations are performed faster. As indicated, this is especially important when considering multiple optical diffractive systems.
Although the possibility of representing a function by a superposition of Gaussians has previously been mentioned [8–10], it has not yet been used in the form presented in this report. The only restriction that will be imposed is that the functions to be represented by the superposition of Gaussians have to be band-limited.
2. Analytical description
In this section we describe the process of assigning a superposition of Gaussians to an arbitrary band-limited function. In order to illustrate how to assign the Gaussian functions to a particular case and also to find the limitations of the technique, it is convenient first to consider intuitively the consequences of applying the method to a non-band limited function. For this, let us consider a rectangle function defined as usual, unitary in the interval and zero otherwise.
For our intuitive approach an odd number of Gaussians will be assigned. Each Gaussian assigned will have the same width and will be placed following a Rayleigh-like criterion. Let us begin with three Gaussians, one Gaussian centered at the origin, one centered at and the other at. The amplitude of each Gaussian is chosen equal to the value of the function to be represented at this point, in this case, to unity. Our superposition of Gaussians then reads Eq. (1),
As a Rayleigh-like criterion is proposed the width achieves. Proceeding in this manner, we assign five Gaussians thus Eq. (2),and now, .For N Gaussians one gets the general equation [Eq. (3)],
N being an odd integer.Now, let be the Fourier transform of as Eq. (4),
then,The summation in Eq. (5) is well known and can be written in closed form, see for example [11]. Thus, Eq. (5) can be written as,
ForN large, and ubounded, Eq. (6) can be written in a good approximation as,Aside of the term π, Eq. (7) is the exact Fourier transform of our rectangle function with arbitrary width A.From the above description the following can be concluded:First, the superposition of equally spaced Gaussians following a Rayleigh-like criterion represents, with a reasonable accuracy, a band-limited function. Second, the amplitude of each Gaussian is taken equal to the value of the function under representation at its corresponding point (or pixel) multiplied by. Obviously when the function under representation is complex, actually two superposition of Gaussians are used, one for the real part and another for the imaginary part.
To generalize the above results let us consider an arbitrary band-limited function f exhibiting a maximum frequency, sampled with a function g as,
where Δ is the sampling interval.Fourier transforming Eq. (8) one gets,
where and are the Fourier transforms of and respectively.By using Poisson’s formula, Eq. (9) can be rewritten as,
In our case the sampling function is a Gaussian Eq. (11),
then its Fourier transform is given by Eq. (12),Thus, Eq. (10) can be written as
The Gaussian function in Eq. (13) has a cut-off frequency equal to. Then in order to limit aliasing, due to the properties of the Gaussian function, one can impose,
being K a real number.To fit with the conditions given by Eq. (14) one suitable value is , implying . This choice stands for the Rayleigh-like criterion and additionally fixes, as in the case of the rectangle function above. Obviously other suitable conditions or values of K can be chosen giving other characteristics to the superposition of Gaussians but the Rayleigh-like criterion is the most straightforward way to implement.
In the next section we present some applications of the superposition of Gaussians.
3. Amplitude distribution in a vicinity of a focal region
To illustrate the use of the superposition of Gaussians we have chosen some examples on the calculations of the amplitude distribution near the vicinity of the focal region of a focused wave emerging from a circular aperture. We have chosen this problem due to the complexity of the calculations. As indicated above, in this problem Lommel integrals and sampling expansions are commonly used.
Let us consider the physical situation depicted in Fig. 1 , where a spherical wave with amplitude distribution is incident on a circular aperture of radius a, centered at the origin of a plane .
In writing the incident amplitude distribution as an arbitrary smooth function will allow us to consider different situations as is the case of apodization, tilted and/or defocused beams as well as different types of aberrations. Thus, at the incident plane with coordinates the amplitude distribution can be written as Eq. (15),
where, , λ is the wavelength of the illuminating beam and represents the usual circular aperture function of radius a centered at the origin.As indicated above, we will use the Fresnel diffraction integral to calculate the amplitude distribution at the plane situated at a distance z of the incident plane. In order to compare our results with [1,2] we will limit ourselves to the case .Thus, the amplitude distribution in the coordinate plane can be written as Eq. (16),
Due to the presence of the circular aperture, we will use cylindrical variables Eq. (17),
where φ and θ are defined as usual (Fig. 1). Thus, Eq. (16) can be rewritten as,In Eq. (18) we have introduced and the dimensionless variable .
We will approximate in all the denominators of Eq. (18), this approximation will result in the well known Debye integral. This approximation is not a limitation of our technique and is introduced only for comparative purposes.
By introducing the following dimensionless variables Eq. (19),
Equation (18) can now be approximated as,
Equation (20) represents the well known amplitude distribution previously reported in the literature [1,2] and, the methods above described (Lommel integrals and sampling expansions) are commonly used for its evaluation
Now the superposition of Gaussians will be applied to represent one of the integrands in Eq. (20). In this case, let
where is the total number of Gaussian functions needed to represent the terms at the left of Eq. (21). The number of Gaussians has to be chosen by trial and error until a desired accuracy is obtained.In general, the terms in the Fresnel integral aside of the quadratic phase are slow varying functions. In our example, this can be confirmed by plotting the term at the left of the equal sign of Eq. (21) as a function of s. Figure 8 bellow shows a plot of one of these functions. We have found that 50 terms are sufficient to make the maximum error less than 2/1000. For an even better accuracy we are using 60 Gaussians in our calculations. Clearly, a much greater number of pixels would be required for sampling the quadratic phase in Eq. (20).
Now the numerical part of our technique is performed. It is necessary to calculate numerically the integral involved in Eq. (21). This task is performed with precision by using the numerical integration technique of three point Simpson’s rule of parabolic segments [12].
Once the numerical integration is performed, we proceed by substituting the Gaussian superposition representation given by Eq. (21) into Eq. (20) to obtain,
As we are interested only in normalized intensity distributions, without loss of generality, the terms at the left of the summation symbol, for brevity, will not be considered; if desired these terms can be maintained to obtain the overall amplitude distribution. Thus, aside of the mentioned terms, Eq. (22) can be written as,
To perform the integral in Eq. (23), we introduce the change of variable Eq. (24),
Equation (23) can now be written as Eq. (25),
Next, by introducing a new change of variable Eq. (26),
Equation (25) becomes,
Finally, using well known properties of the error function, , Eq. (27) is written as,
Equation (28) represents the final step of the method. It will be noticed that the result is an analytical (closed) form. For our particular problem, Eq. (28) represents the main equation to calculate the amplitude distribution at any arbitrary meridional plane.
It will be noticed in Eq. (28) the existence of two error functions with complex arguments. As most programs do not accept complex arguments for calculating the error function, for completeness of our presentation, we will use the following Eqs. (29), (30a) and (30b) given in [13],
where,The above set of equations to calculate the error function of a complex number is very convenient for the present application as it avoids using factorials which are difficult to calculate and diverges for large numbers. Additionally, the summation over n in the above equations can be truncated to moderate values due to the properties of the error function. To compare the results obtained with the above equations, and only for comparative purposes, we verified the accuracy of the results with those obtained with Wolfram’s Mathematica®.
In the following section, we present numerical calculations of some interesting cases. For brevity we will limit ourselves to only some descriptive examples.
3.1 Numerical examples
For our examples in Eq. (21) will be written as Eq. (31),
where a and b stand for a tilted beam in the x and y axes respectively and and for coma in x and y respectively. Note however that our method may be applied to a far more general aberrated and/or apodizated wave-front. Our results shown below are normalized in intensity.We start with the simpler case of a spherical aberration-free wave. The corresponding parameters are . The intensity distribution obtained with the superposition of Gaussians is shown in Fig. 2(A) . The accuracy of the proposed technique may be verified by comparing Fig. 2(A) with the corresponding figures reported in [1,2,6] obtained by other techniques. We have calculated the same distribution using Lommel integrals as done in [1,2]. In Fig. 2(B) we present contours resulting from calculating the absolute value of the difference between both techniques. From Fig. 2(B), it can be appreciated the accuracy of the Gaussian sampling technique.
As Fig. 2(A) is plotted in adimensional units, its application to a particular case requires Eq. (19). As an example of the use of Fig. 2(A), we notice that the airy disk exhibits its first minimum at (). Thus, for a lens with an aperture of 2.5 cm, a focal length of 5 cm and an illuminating wavelength of 0.6μm, using Eq. (19), one obtains an Airy disk diameter of approximately 2.88 μm.
Figure 3 shows isophotes due to a tilted beam in the x axis, with corresponding values, . The meridional plane is placed at .
The next simulation, Fig. 4 , corresponds to the above tilted wave, but now the meridional plane is placed at .
The following case, Fig. 5 , consists of a wave with coma in the x axis. The corresponding values are,
Finally, the two following simulations, Figs. 6 and 7 , correspond to the above case but now for meridional planes rotated at and respectively. These values were chosen arbitrarily only for illustrative purposes as basically any value can be chosen.
As for our knowledge, the plots given in Figs. 4–7 have not yet been reported; this confirms the merit of our technique.
The simulations were performed in a dual-core PC at 3.00 GHz. Each simulation consisted of a matrix of 60x60 pixels, and took approximately 4 minutes.
Figure 8 shows one of the slow-varying functions given by Eq. (21), for the aberration-free case and its corresponding superposition of Gaussians for one arbitrary line scan. Figure 9 shows the absolute value of the difference of both plots.
It will be noticed from Fig. 9 that the maximum error is less than 2/1000. For the simulations presented above, this error can be considered negligible and it can be lowered by increasing the number of Gaussians.
Finally, in order to illustrate the accuracy and versatility of the technique, we present an example on the calculation of the intensity distribution due to a one-dimensional sinusoidal transmittance grating with a period of 1.0 μm and width 20 μm. The grating is illuminated by a plane wave with wavelength equal to 0.5 μm. The plane of detection is placed at a distance of 80 μm. In Fig. 10 , the transmittance of the grating is plotted in a solid line. The red circles correspond to the plot of the transmittance represented by a superposition of 1000 Gaussians. For the simulation we used 1000 sampling pixels. Figure 11 depicts the normalized intensity distribution at the plane of detection. The processing time was 20 seconds.
To show an additional feature of our method, we performed again the calculation of the intensity distribution for the grating in the conditions described above, but this time with a field of view around the first diffraction order. The same number of pixels and Gaussians were used. Figure 12 shows the resulted intensity normalized with respect to Fig. 11.
It can be appreciated in Fig. 12 the structure of the diffraction pattern with high precision. This can be useful for applications where fine details of the diffraction pattern play an important role.
Before finishing this report it is worth mentioning that, as computer systems are becoming larger and faster, FFT techniques benefit by using larger sets of sampling pixels and speeding up the processing time [7]. However, by using FFT one is essentially calculating a convolution between pixels which may result in inaccuracies in the calculation of the complex phase. This has to be considered, especially in interferometry and holography, where the complex phase has to be calculated with high accuracy. The herein superposition of Gaussians avoids, in principle, this inherent convolution, as the integral that results can be calculated as a closed-form expression.
4. Conclusions
We have presented a technique for calculating the amplitude distribution of a propagated wave by means of the Fresnel diffraction integral by representing a given complex function as a finite superposition of complex Gaussians. We have shown that, once the superposition of Gaussians is obtained, it is possible to calculate analytically the amplitude distribution of the propagated field. We have illustrated the use and accuracy of the technique by calculating the intensity contours in the vicinity of the focal region of a focused, aberrated wave-front emerging from a circular aperture. Additionally, the technique has probed to be versatile and accurate and applicable to diffraction calculations when band-limited functions are present in the related integrals.
References and links
1. M. Born, and E. Wolf, Principles of Optics 7th ed. (Pergamon, 1980), Chap. 8.
2. E. H. Linfoot, Recent Advances in Optics (Clarendon Press, 1955), Chap. 3.
3. J. E. A. Landgrave and L. R. Berriel-Valdos, “Sampling expansions for three-dimensional light amplitude distribution in the vicinity of an axial image point,” J. Opt. Soc. Am. A 14(11), 2962–2976 (1997). [CrossRef]
4. J. J. Stamnes and H. Heier, “Scalar and electromagnetic diffraction point-spread functions,” Appl. Opt. 37(17), 3612–3622 (1998). [CrossRef]
5. Y. Li, “Expansions for irradiance distribution near the focus in systems of different Fresnel numbers,” J. Opt. Soc. Am. A 23(3), 730–740 (2006). [CrossRef]
6. J. J. Stamnes, “Waves in focal regions,” The Adam Hilger series on Optics and Optoelectronics, (1986).
7. M. Sypek, “Ligth propagation in the Fresnel region. new numerical approach,” Opt. Commun. 116(1-3), 43–48 (1995). [CrossRef]
8. A. W. Greynolds, “Propagation of generally astigmatic Gaussian beams along skew ray paths,” Proc. SPIE 560, 33–50 (1985).
9. M. M. Popov, “A new method of computation of wave fields using Gaussian beams,” Wave Motion 4(1), 85–97 (1982). [CrossRef]
10. M. Cywiak, M. Servín, and F. Mendoza-Santoyo, “Wave-front propagation by Gaussian superposition,” Opt. Commun. 195(5-6), 351–359 (2001). [CrossRef]
11. H. P. Hsu, Fourier Analysis (Simon & Schuster, 1970), Chap. 9.
12. R. W. Southworth, and S. L. Deleeuw, Digital and Computation and Numerical Methods (McGraw-Hill, 1965) Chap. 9.
13. M. Abramovitz, and I. Stegun, Handbook of Mathematical Functions in Applied Mathematics series-55, 299 (1972).