Define the Dirichlet Kernel by
$$D_{N}(\mathbf{x})=\sum_{k=-N}^{N}...\sum_{k=-N}^{N}\phi_{k}(\mathbf{x})= \prod_{i=1}^{d}\frac{\sin((N+\frac{1}{2})x_{i})}{\sin(\frac{x_{i}}{2})}$$
I am asked to derive this product form.
I begin by taking the sum of a finite geometric series
$$S_{N}=\frac{a-r^{N}}{1-r}$$
whence, in terms of the function above,
$$S_{N}(\mathbf{x})=\frac{a-\phi_{k}^{N}(\mathbf{x})}{1-\phi_{k}(\mathbf{x})}$$
Note that $\phi_{\mathbf{k}}(\mathbf{x}) = \exp(i \mathbf{kx})$; in particular, $a=\phi_{\mathbf{k}}(0) = \exp(0) = 1$. Hence
$$S_{N}(\mathbf{x})=\frac{1-(\exp(iN\mathbf{kx})}{1-(\exp(i\mathbf{kx})}$$
I am not sure how to proceed here. I have tried different things but I sort of just cycle around. I feel like I am supposed to use a trigonometric identity after expanding $\exp(\cdot)$ into Euler's formula but I have tried different identities and I feel like I am going around in circles.
Edit: Sorry for the weird ****. My computer doesn't seem to format latex characters on StackExchange properly and where it stays bolded when I ask the question, after posting it, it reverts to ****. Can someone please edit the question to make it display $x$ and $k$ bolded properly.