A Local Fourier Extension Method for Function Approximation

Zhenyu Zhao, Yanfei WangarXiv 2025 · DOI

Abstract: The approximation of non-periodic functions using Fourier series typically suffers from the Gibbs phenomenon. This paper presents a localized Fourier extension method that partitions the domain into subintervals, achieving spectral accuracy with $O(M)$ linear complexity. By utilizing a redundant Fourier basis and Truncated Singular Value Decomposition (TSVD), the method provides a robust framework for function approximation and singularity detection.

Introduction: Breaking the Gibbs Barrier

Approximating non-periodic functions with Fourier series is a classic "square peg, round hole" problem. Because Fourier series are inherently periodic, forcing them to fit a non-periodic function usually results in the Gibbs phenomenon—oscillations near the boundaries that persist regardless of the number of terms added.

A recent study by Zhenyu Zhao and Yanfei Wang, titled "A Local Fourier Extension Method for Function Approximation," offers a localized solution. By partitioning the domain into smaller segments and extending them into a "virtual" periodic space, the authors achieve spectral accuracy with remarkably low computational overhead.

Problem Statement

In numerical analysis, "spectral accuracy"—where the error drops exponentially as data points increase—is highly desirable. However, standard Fourier series fail for non-periodic functions. Fourier Extension (FE) is a common workaround: embedding the target function into a larger domain where it can be periodicized.

While FE is powerful, global implementations face two main challenges:

  1. Computational Cost: Solving the extension problem globally often leads to dense matrices and complexities like $O(M \log M)$.
  2. Local Sensitivity: A single "sharp" feature or singularity can degrade approximation quality across the entire domain.

Methodology

The authors introduce a partitioned extension methodology. Instead of treating the whole interval $[a, b]$ at once, they divide it into $K$ subintervals.

  1. Domain Segmentation: The function is split into local pieces, each mapped to a reference interval.
  2. Local Fourier Extension: For each segment, a redundant Fourier basis (a "frame") represents the function. The resulting underdetermined system is solved using Truncated Singular Value Decomposition (TSVD).
  3. Matrix Reuse: By using uniform discretization scales across subdomains, the core discrete matrix remains identical for every segment. The SVD is computed once and applied to every "slice" of the function.
  4. Singularity Detection: The norm of the expansion coefficients ($\|c_{N,k}\|_2$) spikes significantly when a subinterval contains a singularity. This acts as a "smoke detector" to identify problematic areas for further subdivision.

Key Insights and Ideas

  • Linear Complexity ($O(M)$): Unlike most fast Fourier methods that scale at $O(M \log M)$, this method's total work scales linearly with the number of points $M$ due to small, fixed-size local matrices.
  • The "Extension Ratio" ($T$): The authors establish the relationship between extension length and sampling ratio. Figure 1 illustrates how the error stabilizes at machine precision for optimal $T$ values before increasing due to ill-conditioning.
Error behavior as a function of the extension ratio $T$ across various parameters.
  • Singularity Detection: The discovery that the TSVD coefficient norm reliably indicates hidden singularities allows for semi-adaptive refinement without full adaptive mesh complexity.

Key Results

  • Machine Precision: Numerical tests consistently reached errors on the order of $10^{-14}$ to $10^{-15}$, effectively the limit of double-precision arithmetic.
Spectral convergence of the local Fourier extension method, reaching machine precision ($10^{-15}$) as $N$ increases.
  • Frequency Robustness: For high-frequency functions, accuracy is maintained as long as the number of partitions ($K$) is sufficient to resolve local oscillations.
  • Singularity Recovery: In tests with piecewise functions, the detection method successfully located breakpoints, allowing re-partitioning to restore machine-level precision.

Conclusion and Future Work

The localized Fourier extension method provides a highly efficient and accurate alternative to global methods. Future research directions include:

  • Adaptive Sampling: Automating the choice of the number of partitions.
  • Higher Dimensions: Extending the "divide and conquer" approach to 2D and 3D surfaces.
  • PDE Solvers: Utilizing this method as a foundation for solving partial differential equations (PDEs).

Reference: Zhao, Z. Y., & Wang, Y. F. (2025). A Local Fourier Extension Method for Function Approximation. arXiv:2504.04341v2 [math.NA].

Summary updated

BibTeX
@misc{zhao2025local,
  author = {Zhenyu Zhao and Yanfei Wang},
  title = {{A Local Fourier Extension Method for Function Approximation}},
  year = {2025},
  eprint = {2504.04341},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.04341},
}
Figure