Shifted grids
The derivations so far have assumed that zero lies at the central index of both the direct- and reciprocal-space grids. We can generalise the result to shifted grids using the shift and modulation properties of the continuous Fourier transform (CFT). Given \(F(k) = \mathcal{F}_x[f(x)](k)\) these are
We will also use the following change-of-coordinate identity
Let us start by considering a shifted input coordinate \(x' = x + x_0\). We then have
Next let us consider an additional shift of the output coordinate \(k' = k + k_0\),
To represent both the DFT-approach and the fractional-DFT approach (and perhaps other approaches), let us introduce the function
to represent some abstract discrete approximation to the continuous Fourier transform. This function assumes that the samples \(\v{f} = f(\v{x})\) were taken on an input grid \(\v{x}[n] = (n - c)\delta_x\) where \(c = \lfloor N / 2 \rfloor\) (such that it is centered around the origin). It returns an approximation to \(\mathcal{F}_x[f(x)](k)\) at the sample points \(\v{k}[n] = (n - c)\delta_k\) (which are also centered around the origin). As such, the approximation to the CFT for shifted grids can be written as
where element-wise multiplication is implied. In terms of the original coordinate system this can be written as
Final result