Double slit experiment

If we zoom out from the two slits we can observe the interference pattern in the far field. There are certain directions where constructive interference is observed and other directions where destructive interference is observed.

The interference can be calculated at a distance $L$ from the slits and a height $y$ from the center of the slits. The distance that the waves travel from the upper slit to this point is $r_1$ and the distance traveled from the lower slit is $r_2$. The difference between these two distances is the small red section $r_2-r_1=d\sin\theta$, where $d$ is the distance between the slits and $\theta \approx \frac{y}{L}$.

There will be constructive interference if $r_2-r_1$ is an integer number of wavelengths and there will be destructive interference if $r_2-r_1$ is an integer number of wavelengths plus one half wavelength.

In the Far field: $L >> d,\,\lambda$

Constructive interference $r_2-r_2=d\sin\theta \approx d\frac{y}{L}=n\lambda$  $n\in$ integers

Destructive interference $r_2-r_2=d\sin\theta \approx d\frac{y}{L}=\left(n+\frac{1}{2}\right)\lambda$  $n\in$ integers

Simulation details