Derivation (N-slit interference)

Represent the $m$-th phasor as $A_0\exp im\delta$ where $\delta = kd\sin\theta$. Sum of the phasors is $$ \begin{align*} \sum_{m=0}^{n-1} A_0\exp(im\delta) = \frac{A_0(1-\exp(in\delta))}{1-\exp(i\delta)} \\ \end{align*} $$ So the amplitude is $$ \begin{align*} A &= \left|\frac{A_0(1-\exp(in\delta))}{1-\exp(i\delta)} \right| \\ &= \frac{|1-e^{in\delta}|}{|1-e^{i\delta}|} A_0 \\ &= \sqrt{\frac{(1-\cos(n\delta))^2 + \sin^2(n\delta)}{(1-\cos\delta)^2 + \sin^2\delta}} A_0 \\ &= \sqrt{\frac{2-2\cos(n\delta)}{2-2\cos\delta}}A_0 \\ &= \frac{\sin(n\delta/2)}{\sin(\delta/2)}A_0. \end{align*} $$