Professional Documents
Culture Documents
Simulating Fraunhofer Diffraction of Waves Using Microsoft Excel Spreadsheet PDF
Simulating Fraunhofer Diffraction of Waves Using Microsoft Excel Spreadsheet PDF
Simulating Fraunhofer
diffraction of waves using
microsoft excel spreadsheet
I Singh1 , K Khun Khun1 and B Kaur2
1
PG Department of Physics, Khalsa College, Amritsar 143005, India
2
School of Mathematics, Thapar Institute of Engineering and Technology, Patiala 147004,
India
Abstract
Excel spreadsheets are used as an excellent tool in physics laboratory
experiments related to wave optics. This paper presents a simple way to
simulate diffraction of waves through a slit using Excel spreadsheets without
any tedious programming. These simulations are used to visualize the effect
of variation of different parameters such as number of slits, wavelength of
incoming light, slit width and slit separation on Fraunhofer diffraction pattern.
Figure 1. Screenshot of the Excel spreadsheet programmed for single slit diffraction.
Table 1. The various columns of the spreadsheet, terms used in diffraction equation (1), their description and
corresponding Excel commands used to obtain the data are represented in.
Excel command/values assigned
Column/cell Term Description to diffraction parameters
A θ Angle in degree −J$4 to + K$4 increment in θ
with step of M$4
B θ Angle in radian RADIANS(A2)
C δ = (πa sin θ)/λ Half of the phase difference (PI() * N$2 * SIN(B2))/M$2
between the first and last wave
from the two ends of a single slit
D sin δ 2 Diffraction term IFERROR(((SIN(C2))/C2)^2,1)a
δ
E ∆ = (πb sin θ)/λ Half of the phase difference (PI() * O$2 * SIN(B2))/M$2
between resultant waves from
successive slits
F sin (N∆) Numerator of interference term SIN(L$2 * E2)
G N sin (∆) Denominator of interference L$2 * SIN(E2)
term
2
H sin(N∆) Interference term IFERROR((F2/G2)^2,1)a
sin ∆
2
I sin δ 2 sin(N∆) N slit diffraction pattern J$2 * D2 * H2 * (K$2^2)
I0 δ sin ∆
J2 I0 Intensity 10
J4 θi Starting angle Say (−90°)
K2 N Number of slits 1, 2, 3...100
K4 Θf Final angle Say (90°)
L2 λ Wavelength 5.00 × 10−5 (cm)
L4 Number of step Steps between θi to θf 1000
M2 A Slit width 0.002 (cm)
M4 Step height Increment in θ at each step (K$4 − J$4)/L$4
N2 b Inter slit spacing 0.008 (cm)
a
sin δ
IFERROR function returns a custom result when a formula for δ when δ = 0 generates an error. In such case it returns
the value equal to 1 for the formula.
I0
gram goes a long way in removing the traditional
4
teaching and learning difficulties. The paper com-
prises a summary of the theory of diffraction and
the details of Excel commands used to simulate
phenomenon of diffraction. The discussion there- 0
after includes the explanation of diffraction based
–6 –4 –2 0 2 4 6
on the graphical results.
θ (degree)
Figure 3. Screenshot of Excel spreadsheet programmed for double slit diffraction.
0.4 0.4
0.0
0.0
–10 –5 0 5 10
–15 –10 –5 0 5 10 15
∆
δ
Figure 5. Plot of interference term of equation (1) for
N = 2.
Figure 4. Plot of diffraction term of equation (1) for
N = 2.
(3)
N∆ = nπ 0
Figure 7. Screenshot of the Excel spreadsheet programmed for N = 3 slits diffraction.
λ 2λ (N − 1)λ
(4)
(a + b) sin θ = ± , ± , ... ± . I0 N λ (cm) a (cm) b (cm)
N N N
80 10 3 5.00 × 10–5 0.002 0.008
(ii) The condition for first secondary minimum
after the pth principal maxima is [12]
I0
40
(a + b) sin(θp + dθ) = pλ + λ/N,
(5)
Figure 9. Screenshot of the Excel spreadsheet programmed for N = 100 slits diffraction.
The screenshot of the Excel spreadsheet for the diffraction envelope while the number of visible
N = 2 is shown in figure 3. The individual effect maxima and minima remains the same.
of δ and Δ on I(θ) is shown in figures 4 and 5,
respectively. The complete diffraction pattern can
be obtained by combining the results of diffrac- 3.3. Effect of slit width
tion factor and the interference factor. The curve Figure 12 shows the effect of variation in slit
obtained represents the diffraction pattern of the width on the diffraction pattern obtained for
double slit is shown in figure 6. N = 5. It is observed that a decrease in slit width
Figure 7 shows the simulated data in the broadens the diffraction envelope.
spreadsheet for N = 3. The corresponding dif-
fraction pattern for the same is shown in fig-
ure 8. The pattern shows the presence of N − 1 3.4. Effect of variation in diffraction angle
secondary minima and N − 2 secondary maxima
between two adjacent principle maxima. Figure 13 shows the effect of variation in dif-
Figure 9 shows the screenshot of the Excel fraction angle on diffraction pattern obtained for
spreadsheet for N = 100. The variation in diffrac- N = 10. The figure shows the diffraction pattern
tion pattern with the increase in number of slits for slit width (0.000 002 cm) and slit spacing
is shown in figure 10. The pattern reveals that the (0.000008 cm). It is observed that a decrease in
principal maxima becomes sharper and narrower slit width broadens the diffraction envelope com-
with a change in number of slits from 5 to 100. pared to one obtained in figure 10 for broader slit
It is worth noting that the secondary maxima are width/spacing. So, in order to view the complete
no longer visible due to the significant reduction fringe pattern we have to increase the range of
in intensity. diffraction angle. Figure 13(a) shows the typical
diffraction pattern for N = 10 in diffraction angle
range −5°–5°. With further increase in diffraction
3.2. Effect of wavelength angle range to −50°–50° and −90°–90°, one can
Figure 11 shows the effect of the decrease of locate maximum number of fringes as observed
wavelength on the double slit diffraction pattern. in figures 13(b) and (c), respectively. Keeping
The decrease in wavelength narrows down the all the other parameters fixed if we increase only
–4 –2 0 2 4
243 N=5
I0 λ (cm) a (cm) b (cm)
10 5.00 × 10–5 0.002 0.008
162
81
990 N = 10
660
330
Ι (intensity)
24 300 N = 50
16 200
8100
99 000 N = 100
66 000
33 000
–4 –2 0 2 4
θ (degree)
Figure 10. Effect of number of slits (N) slits on the diffraction pattern.
40 I0 N a (cm) b (cm)
10 2 0.002 0.008
20 λ = 8 × 10–5 cm
40 λ = 4 × 10–5 cm
20
I0
40 λ = 2 × 10–5 cm
20
–4 –2 0 2 4
θ (degree)
Figure 11. Effect of the wavelength on the double slit diffraction pattern.
–6 –4 –2 0 2 4 6
81
243
a = 0.0008 cm
162
81
Ι (intensity)
243 a = 0.0005 cm
162
81
243 a = 0.0002 cm
162
81
–6 –4 –2 0 2 4 6
θ (degree)
(a)
990
990 (b)
660 θi θf N
–50 50 10
330
Ι (intensity)
990
(c)
660
θi θf N
330 –90 90 10
9.90 × 106
(d)
6.60 × 106
θi θf N
0.00
the number of slits N = 1000 we get very sharp programming language. The analysis made in this
fringes in the field of view. This all suggests that study helps analyze the effects of various param
for very small slit width/spacing we have a large eters such as number of slits, slit width, wavelength
angle diffraction pattern. and diffraction angle on the diffraction pattern.
Acknowledgment
4. Conclusions
The authors would like to acknowledge the assis-
Learning diffraction of waves using MS Office tance of Principal Khalsa College Amritsar, India
Excel spreadsheets is one of most effective ways for their encouragement and continuous support.
to analyze the concept of diffraction. The N slit
diffraction can be easily simulated and presented
in the Excel spreadsheet. The spreadsheet can be ORCID iDs
programmed without knowledge of any particular I Singh https://orcid.org/0000-0002-3267-8102