Skip to main content
Log in

Two algorithms for periodic extension on uniform grids

  • Original Paper
  • Published:
Numerical Algorithms Aims and scope Submit manuscript

Abstract

Given function values on a uniform grid in a domain Ω in \(\mathbb {R}^{d}\), one is often interested in extending the values to a larger grid on a box B containing Ω. In particular, we are interested in “periodic extensions.” For such extensions the discrete Fourier transform (DFT) of the resulting grid values on B is expected to provide good efficient approximation to the underlying function on Ω. This paper presents two different extension algorithms. The first method is a natural approach to this problem, aiming at achieving the fastest decay of the DFT coefficients of the extended data.The second is a fast algorithm which is appropriate for the univariate case and for limited cases of multivariate scenarios. It is shown that if a “good” periodic extension exists, the proposed method will find an extension with similar properties.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

References

  1. Anand, A., Tiwari, A.K.: A Fourier extension based numerical integration scheme for fast and high-order approximation of convolutions with weakly singular kernels, arXiv:1810.03835

  2. Adcock, B., Huybrechs, D., Martin Vaquero, J.: On the numerical stability of fourier extensions. Found. Comput. Math. 14(4), 635–687 (2014)

    Article  MathSciNet  Google Scholar 

  3. Boyd, J.P.: A comparison of numerical algorithms for Fourier extension of the first, second, and third kinds. J. Comput. Phys. 178.1, 118–160 (2002)

    Article  MathSciNet  Google Scholar 

  4. Bruno, O.P., Lyon, M.: High-order unconditionally stable FC-AD solvers for general smooth domains I. Basic elements. J. Comput. Phys. 229, 2009–2033 (2010)

    Article  MathSciNet  Google Scholar 

  5. Bruno, O.P., Han, Y., Pohlman, M.M. : Accurate, high-order representation of complex three-dimensional surfaces via Fourier continuation analysis. J. Comput. Phys. 227.2, 1094–1125 (2007)

    Article  MathSciNet  Google Scholar 

  6. Huybrechs, D.: On the Fourier extension of nonperiodic functions. SIAM J. Numer. Anal. 47.6, 4326–4355 (2010)

    Article  MathSciNet  Google Scholar 

  7. Gottlieb, D., Shu, C.W.: On the Gibbs phenomenon and its resolution. SIAM Rev. 39, 644–668 (1977)

    Article  MathSciNet  Google Scholar 

  8. Gruberger, N.: Spectral methods for the computation of discontinuous solutions. J. Sci. Comput. 4, 71–117 (1989)

    Article  MathSciNet  Google Scholar 

  9. Lyon, M., Bruno, O.P.: High-order unconditionally stable FC-AD solvers for general smooth domains II. Elliptic, parabolic and hyperbolic PDEs; theoretical considerations. J. Comput. Phys. 229, 3358–3381 (2010)

    Article  MathSciNet  Google Scholar 

  10. Moler, C.B.: Iterative refinement in floating point. J. ACM 14(2), 316–321 (1967)

    Article  Google Scholar 

  11. Tadmor, E.: Filters, mollifiers and the computation of the Gibbs phenomenon. Acta Numer. 16, 305–378 (2007)

    Article  MathSciNet  Google Scholar 

  12. Whitney, H.: Analytic extensions of differentiable functions defined in closed sets. Trans. Amer. Math. Soc. 36, 63–89 (1934)

    Article  MathSciNet  Google Scholar 

  13. Wilkinson, J.H.: Rounding Errors in Algebraic Processes. Prentice-Hall (1963)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nira Gruberger.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix

Appendix

1.1 A.1 Decay rate of discrete Fourier coefficients for periodic C M functions

In the theory of classical Fourier series, it is known that the Fourier coefficients {ck} of a CM periodic function decay as follows:

$$c_{k}=O(k^{-M})\ \ \ \ \text{as}\ k \to \infty. $$

Using the equality

$$\big(\frac{-T}{2\pi \text{ik}}e^{-2\pi i\frac{k}{T}x}\big)'=e^{-2\pi i\frac{k}{T}x}\ ,$$

the above result is derived by applying M-times integration by part to the integral

$$c_{k}=\frac{1}{T}{\int}_{-\frac{T}{2}}^{\frac{T}{2}}f(x)e^{-2\pi i\frac{k}{T}x}\text{dx}\ .$$

Considering discrete fourier transform, we use the less known “summation by parts” formula:

$$ \sum\limits_{n=m_{1}}^{m_{2}}f_{n}{\Delta} g_{n}=(f_{m_{2}}g_{m_{2}+1}-f_{m_{1}}g_{m_{1}})-\sum\limits_{n=m_{1}}^{m_{2}-1}g_{n+1}{\Delta} f_{n}. $$
(A.1)

In our case m1 = 0 and m2 = N − 1, and assuming periodicity, fN = f0 and gN = g0, we have as follows:

$$ \sum\limits_{n=0}^{N-1}f_{n}{\Delta} g_{n}=-\sum\limits_{n=0}^{N-1}g_{n+1}{\Delta} f_{n}. $$
(A.2)

Using the above equality for the univariate discrete Fourier transform, we get, with fn = f(2nπ/N), nN,

$$ \begin{array}{@{}rcl@{}} c_{k} &=& \sum\limits_{n=0}^{N-1}f_{n}e^{-\frac{2\pi i}{N}kn} \end{array} $$
(A.3)
$$ \begin{array}{@{}rcl@{}} & =& \frac{1}{e^{-\frac{2\pi ik}{N}}-1} \sum\limits_{n=0}^{N-1}f_{n}{\Delta} e^{-\frac{2\pi i}{N}kn} \end{array} $$
(A.4)
$$ \begin{array}{@{}rcl@{}} & =& -\frac{1}{e^{-\frac{2\pi ik}{N}}-1} \sum\limits_{n=0}^{N-1}{\Delta} f_{n} e^{-\frac{2\pi i}{N}k(n+1)}. \end{array} $$
(A.5)

Assuming fC1, we have |Δfn| ≤ C1N− 1, and thus, we get the following:

$$ |c_{k}|\le C_{1} |e^{-\frac{2\pi ik}{N}}-1|^{-1}. $$
(A.6)

Assuming fCM, we have |ΔMfn| ≤ CMNM, and by applying the summation by parts M times, we obtain the following:

$$ \begin{array}{@{}rcl@{}} |c_{k}| &=& |e^{-\frac{2\pi ik}{N}}-1|^{-M}\sum\limits_{n=0}^{N-1}{\Delta}^{M}f_{n}\ e^{-\frac{2\pi i}{N}kn} \end{array} $$
(A.7)
$$ \begin{array}{@{}rcl@{}} & \le & C_{M} N^{-M+1}|e^{-\frac{2\pi ik}{N}}-1|^{-M}. \end{array} $$
(A.8)

In the d-dimensional case, by performing summation by parts through each of the d-directions, we obtain the following:

$$ |c_{\mathbf{k}}|\le C N^{-(M-1)d}\prod\limits_{j=1}^{d}|e^{-\frac{2\pi ik_{j}}{N}}-1|^{-M}. $$
(A.9)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Gruberger, N., Levin, D. Two algorithms for periodic extension on uniform grids. Numer Algor 86, 475–494 (2021). https://doi.org/10.1007/s11075-020-00897-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11075-020-00897-7

Keywords

Navigation