$\Delta=x \frac{d}{D}$
$\therefore$ phase difference $=\phi=\frac{2 \pi}{\lambda} \Delta$
Let $a =$ amplitude at the screen due to each slit.
$\therefore I _{0}= k (2 a )^{2}=4 ka ^{2}$,
where $k$ is a constant.
For phase difference $\phi$,
amplitude $= A =2 a \cos(\phi / 2)$.
Intensity, I $= k A ^{2}= k \left(4 a ^{2}\right) \cos (\phi / 2)= I _{0} \cos ^{2}\left(\frac{\pi}{\lambda} \Delta\right)$
$I _{0} \cos ^{2}\left(\frac{\pi}{\lambda} \cdot \frac{ xd }{ D }\right)= I _{0} \cos ^{2}\left(\frac{\pi x }{\beta}\right)$