MATHEMATICS OF COMPUTATION Volume 78, Number 267, July 2009, Pages 1629–1645 S 0025-5718(09)02204-2 Article electronically published on February 18, 2009
ON THE CONVERGENCE RATE OF A MODIFIED FOURIER SERIES
SHEEHAN OLVER
Abstract. The rate of convergence for an orthogonal series that is a minor modification of the Fourier series is proved. This series converges pointwise at a faster rate than the Fourier series for nonperiodic functions. We present the error as an asymptotic expansion, where the lowest term in this expansion is of asymptotic order two. Subtracting out the terms from this expansion allows us to increase the order of convergence, though the terms of this expansion depend on derivatives. Alternatively, we can employ extrapolation methods which achieve higher convergence rates using only the coefficients of the series. We also present a method for the efficient computation of the coefficients in the series.
1. Introduction The standard Fourier series serves as the bedrock of much of modern applied mathematics. Its utility is ubiquitous: from signal analysis to solving differen- tial equations. The discrete counterpart, in particular the Fast Fourier Transform (FFT), has revolutionized numerical analysis. The Fourier series over the interval [−1, 1], written here in terms of the real cosine and sine functions, is: ∞ c f(x) ∼ 0 + [c cos πkx + d sin πkx] , 2 k k k=1 for 1 ck = f,cos πkx = f(x)cosπkxdx −1 and 1 dk = f,sin πkx = f(x)sinπkx dx. −1 Part of the Fourier series’ importance rests on the fact that, when f is analytic and periodic, the series converges exponentially fast. Thus only a very small number of terms need to be computed in order to obtain an accurate approximation. But as soon as f loses its periodicity, the convergence rate of the n-term partial sum drops drastically to O n−1 . Though the order of convergence can be increased by subtracting out a polynomial, this suffers from the fact that the expansion no longer has an orthogonal basis.
Received by the editor April 22, 2008. 2000 Mathematics Subject Classification. Primary 42A20. Key words and phrases. Orthogonal series, function approximation, oscillatory quadrature.
c 2009 American Mathematical Society Reverts to public domain 28 years from publication 1629
License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use 1630 SHEEHAN OLVER
In [8], it was noted that with a slight alteration to the Fourier series we obtain a series that converges for nonperiodic differentiable functions, and whose coefficients decay like O k−2 . In Section 2, we give a brief overview of what is known about this modified Fourier series. It was demonstrated numerically that the n-term partial sums of the series appear to approximate the original function with an error of order O n−2 . In Section 3, we will prove this result, assuming that the function is sufficiently differentiable. The error of the partial sums is written as an asymptotic expansion, which means that subtracting out a simple correction term allows us to increase the order of convergence. Asymptotic expansions lend themselves to extrapolation methods for convergence acceleration. This is explored in Section 4, where a Richardson-like extrapolation method is developed, as well as an extrapolation method based on interpolation. Combining the two methods results in a convergence acceleration scheme that depends only on the coefficients of the series. The usefulness of this series relies on the computation of the coefficients, which are highly oscillatory integrals. Though traditionally considered difficult to com- pute, modern advances have shattered this view. In fact, methods exist which actually increase with accuracy as the frequency of the oscillations increases. This is similar in behaviour to an asymptotic expansion, though significantly more accu- rate. In Section 5, we give a brief overview of one of these methods and show how it can be utilized for the modified Fourier series constructed in Section 2.
2. Modified Fourier series This section is based on material found in [8]. Consider for a moment the stan- dard Fourier series. When f is sufficiently differentiable, we can determine the order of decay of the coefficients with a straightforward application of integration by parts: 1 1 ck = − f (x)sinπkxdx πk − 1 (−1)k 1 1 (2.1) − − − O −2 = 2 [f (1) f ( 1)] 2 f (x)cosπkx dx = k , (πk) (πk) − 1 − k+1 1 ( 1) 1 −1 dk = [f(1) − f(−1)] + f (x)cosπkxdx = O k . πk πk −1 −1 Interestingly, only the sine terms decay like O k ; the cosine terms decay at the faster rate of O k−2 . Indeed, if f is even, then all the sine terms are zero and the rate of convergence increases. In the construction of the modified Fourier series, we replace the sine terms with an alternate basis such that the orthogonality property is still maintained, whilst the order of decay of the coefficients is increased to O k−2 . Consider the expansion in the series
∞ c f(x) ∼ 0 + c cos πkx + s sin π k − 1 x , 2 k k 2 k=1
License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use ON THE CONVERGENCE RATE OF A MODIFIED FOURIER SERIES 1631
where 1 ck = f,cos πkx = f(x)cosπkxdx, − 1 1 − 1 − 1 sk = f,sin π k 2 x = f(x)sinπ k 2 x dx. −1
We will denote the n-term partial sum of this series by fn: c n f (x)= 0 + c cos πkx + s sin π k − 1 x . n 2 k k 2 k=1 Like the standard Fourier series, it can be shown that the basis functions of this se- ries are orthogonal. This follows since they are the eigenfunctions of the differential equation u + α2u =0, 0=u(1) = u(−1). Unlike the Fourier series, the new sine terms are not periodic with respect to the interval [−1, 1]; hence we can consider this series for approximating nonperiodic functions. If f ∈ C2s[−1, 1] and f (2s) has bounded variation, then Theorem 13.2 in [12] tells us that 1 f (2s)(x)eiπkx dx = O k−1 . −1 In this case the asymptotic expansion for the coefficients can be found by repeatedly integrating by parts in the same manner as in (2.1), giving us, for k =0: s (−1)k+j+1 c = f (2j−1)(1) − f (2j−1)(−1) + O k−2s−1 , k (πk)2j j=1 (2.2) s (−1)k+j s = f (2j−1)(1) + f (2j−1)(−1) + O k−2s−1 . k (π(k − 1/2))2j j=1
Thecosineterms ck are exactly the same as in the standard Fourier series, hence O −2 still decay like k . The new sine terms sk, unlike the standard Fourier series −2 sine terms dk, also decay like O k . Since the coefficients go to zero at a faster rate, it stands to reason that the series itself will converge to the actual function more rapidly than the standard Fourier series. This will be proved to be the case in Section 3. In order to prove the rate of convergence, we first need to know that the series does indeed converge pointwise. This is not trivial, but thankfully was proved in [8]: Theorem 2.1 ([8]). The modified Fourier series forms an orthonormal basis of L2[−1, 1]. Theorem 2.2 ([8]). Suppose that f is a Riemann integrable function in [−1, 1] and that −1 ck,sk = O n ,n→∞. If f is Lipshitz at x ∈ (−1, 1),then
fn(x) → f(x).
License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use 1632 SHEEHAN OLVER
0.008 0.032 0.006 0.0315 0.004 0.031 0.002 0.0305 n n 20 40 60 80 100 20 40 60 80 100 √ √ Figure 1. For f(x)=Ai(x), the error f(−1/ 2) − fn(−1/ 2) 2 scaled by n (left graph) and the error |f(1) − fn(1)| scaled by n (right graph).
The convergence at the endpoints in [8] was proved only for the case when f is analytic. Thus we present an alternate proof that enlarges the class of functions such that pointwise convergence is known: Theorem 2.3. Suppose that f ∈ C2[−1, 1] and f has bounded variation. Then
fn(±1) → f(±1). Proof. We know that the coefficients of the series decay like O k−2 ;thus ∞ (|ck| + |sk|) < ∞ k=1
and fn converges uniformly to a continuous function. Two continuous functions that differ at a single point must differ in a neighbourhood of that point. The theorem thus follows from Theorem 2.2, since f is Lipshitz everywhere.
We can demonstrate the accuracy of this expansion numerically. Consider the Airy function Ai (x) [1]. Since the turning point of the Airy function is within [−1, 1], it behaves very differently on the negative segment of the interval than it does on the positive segment. Despite this difficulty, we can still approximate the function efficiently. This can be seen in Figure 1, which√ demonstrates the error of the n-term partial sum fn at the points x = −1/ 2andx =1.We intentionally chose an irrational number to demonstrate generality, as the proof of the convergence rate relies on a special function that has a simpler form at rational −2 points. As can be seen, the error does appear to decay like O n at the chosen interior point, while it decays at the reduced rate of O n−1 at the right endpoint. As another example, consider the function f(x)=2/(7 + 20x +20x2). This function suffers from Runge’s phenomenon [14], where f has poles in the complex plane near the real axis, which makes the function notoriously difficult to approx- imate. Figure 2 shows that the modified Fourier series is still very accurate and compares its accuracy to that of the standard Fourier series. We see the error of the partial sums over the entire interval, for four choices of n. As can be seen, the modified Fourier series approximates inside the interior of the interval significantly better than it does at the endpoints. With as little as 60 terms we obtain an error of about 2×10−5 around zero, compared to an error of about 10−3 for the standard Fourier series. Furthermore, unlike the standard Fourier series, there is no Gibbs’ phenomenon at the boundary points.
License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use ON THE CONVERGENCE RATE OF A MODIFIED FOURIER SERIES 1633
5 10 20 60 0.035 0.015 0.008 0.0025 0.03 0.0125 0.025 0.006 0.002 0.01 0.02 0.0015 0.004 0.015 0.0075 0.005 0.001 0.01 0.002 0.005 0.0025 0.0005 −1 −0.5 0.5 1 −1 −0.5 0.5 1 −1 −0.5 0.5 1 −1 −0.5 0.5 1 5 10 20 60 0.14 0.12 0.12 0.12 0.12 0.1 0.1 0.1 0.1 0.08 0.08 0.08 0.08 0.06 0.06 0.06 0.06 0.04 0.04 0.04 0.04 0.02 0.02 0.02 0.02 −1 −0.5 0.5 1 −1 −0.5 0.5 1 −1 −0.5 0.5 1 −1 −0.5 0.5 1
Figure 2. For f(x)=2/(7 + 20x +20x2), the error |f(x) − fn(x)| (top graphs), versus the error of the n-term partial sums of the Fourier series (bottom graphs), for n = 5, 10, 20, 60.
3. Convergence rate Though Iserles and Nørsett [8] proved the convergence of the modified Fourier series and demonstrated numerically that it converges at a rate of O n−2 ,they failed to prove this convergence rate, even for the case where f is analytic. In this section, we present a proof for the case when f ∈ C2[−1, 1] and f has bounded variation. Furthermore, we prove this result in such a way that, assuming sufficient differentiability of f, we know explicitly the error term that decays like O n−2 , meaning we can actually increase the order of approximation by subtracting out this term. In fact, if f is smooth, we can expand the error f(x) − fn(x)interms of an asymptotic expansion for n →∞, meaning that by subtracting out a correc- tion term we can increase the order of approximation to be arbitrarily high. This expansion is even valid at the endpoints of the interval. The proof involves writing the error itself in terms of its modified Fourier se- ries, replacing the coefficients of this series by the first s-terms of their asymptotic expansions, and using a known special function, specifically the Lerch transcen- dent function Φ [15], to rewrite the resulting infinite sum. The Lerch transcendent function is defined as ∞ zk Φ(z,s,m)= . (k + m)s k=0 We begin by defining a couple of key properties of the asymptotics of Φ:
Lemma 3.1. Suppose that s ≥ 2 and define ts−1 σ (t)= . x,s 1+eiπx−t If −1 ∞ − 1 σ(k 1)(0) Φ −eiπx,s,m ∼ x,s ,m→∞. Γ(s) mk k=s License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use 1634 SHEEHAN OLVER If x = ±1,then ∞ (k−1) 1 σ± (t) Φ(1,s,m) ∼ lim 1,s ,m→∞. Γ(s) t→0 mk k=s−1 Proof. We first consider the case where −1 for n iπ(n+1)x iπx Φ˜ 1(x, j, n)=(−1) e Φ −e , 2j, n +1 + e−iπ(n+1)xΦ −e−iπx, 2j, n +1 License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use ON THE CONVERGENCE RATE OF A MODIFIED FOURIER SERIES 1635 and 1 iπ n x ˜ − n ( + 2 ) − iπx 1 Φ2(x, j, n)=( 1) e Φ e , 2j, n + 2 − 1 − − iπ(n+ 2 )x − iπx 1 e Φ e , 2j, n + 2 . Proof. Note that ∞ − − 1 f(x) fn(x)= ck cos πkx + sk sin π k 2 x . k=n+1 This follows from the pointwise convergence of the modified Fourier series. We define the following two constants for brevity: f (2j−1)(1) − f (2j−1)(−1) f (2j−1)(1) + f (2j−1)(−1) AC =(−1)j ,AS =(−1)j+1 . j 2π2j j 2iπ2j Substituting in the asymptotic expansion for the coefficients (2.2), the error of the partial sum is equal to ∞ s (−1)k f(x) − f (x)=− AC (eiπkx + e−iπkx) n j k2j j=1 k=n+1 ∞ k (−1) − 1 − − 1 + AS (eiπ(k 2 )x − e iπ(k 2 )x) j − 1 2j k=n+1 k 2 ∞ + O k−2s−1 k=n +1 ∞ s (−1)k = (−1)n AC eiπ(n+1)x eiπkx j (k + n +1)2j j=1 k=0 ∞ (−1)k + e−iπ(n+1)x e−iπkx (k + n +1)2j k=0 ∞ 1 (−1)k S iπ(n+ 2 )x iπkx + Aj e 2j e k + n + 1 k=0 2 ∞ k − 1 (−1) − − iπ(n+ 2 )x iπkx e 2j e k + n + 1 k=0 2 + O n−2s . By replacing the infinite sums with their Lerch transcendent function equivalent, we obtain s − C ˜ S ˜ O −2s f(x) fn(x)= Aj Φ1(x, j, n)+Aj Φ2(x, j, n) + n . j=1 Remark. If f ∈ C2s +1[−1, 1] in the preceding theorem, then the order of the error term increases to O n−2s−1 . This follows since we can integrate by parts once more in the asymptotic expansion of the coefficients, meaning the s-term expansion now has an order of error O n−2s−2 . We could have also written the cosine and sine License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use 1636 SHEEHAN OLVER 0.012 0.004 0.01 0.008 0.003 0.006 0.002 0.004 0.001 0.002 n n 20 40 60 80 100 10 20 30 40 50 60 70 0.0005 0.0004 0.00014 0.00012 0.0003 0.0001 0.0002 0.00008 0.00006 0.0001 0.00004 n n 20 40 60 80 100 20 40 60 80 100 √ Figure 3.√For f(x)=Ai(√x), the error approximating f(−1/√2) − − 4 − by fn( 1/√2) + E1,n( 1/√2) scaled by n (top left), f( 1/ 2) 6 by fn(−1/ 2) + E2,n(−1/ 2) scaled by n (top right), f(1) by 3 fn(1) + E1,n(1) scaled by n (bottom left) and f(1) by fn(1) + 5 E2,n(1) scaled by n (bottom right). functions as the real and imaginary parts of eix, which would have resulted in two fewer evaluations of the Lerch transcendent function. Substituting the Lerch transcendent functions in this theorem with the asymp- totic expansion found in Lemma 3.1 results in an asymptotic expansion for the error in terms of elementary functions. Unfortunately this expansion explodes near the endpoints, even though another expansion in terms of elementary functions is known at the endpoints. Thus, since the Lerch transcendent functions can be computed efficiently [2], it is preferred to leave the Lerch transcendent functions in their unexpanded form. As a result of this theorem, we obtain a sufficient condition for obtaining a rate of convergence of order two: Corollary 3.3. Suppose that f ∈ C2[−1, 1] and f has bounded variation. If −1