Connection between discrete and continuous Fourier transform

Let $x_n = 2\pi n/N$ and $\delta x = x_{n+1} - x_n = 2\pi/N$. Consider some function $f: [0,2\pi) \to \C$ and the sequence $\set{X_n}_{n=0}^{N-1}$ given by $X_n = f(x_n)$.

Then $$ \begin{align*} \hat X_k = \sum_{n=0}^{N-1} f(x_n) e^{-ikx_n}\, \delta x \cdot \frac{N}{2\pi}. \end{align*} $$ Setting $f=0$ outside $[0,2\pi)$, we get $$ \begin{align*} \hat X_k \simeq \frac{N}{2\pi} \int f(x) e^{-ikx} \d x = \frac{N}{2\pi} \hat f(k). \end{align*} $$