A Study of The Gibbs Phenomenon in Fourier and

by

Kourosh Raeen

B.A., Allameh Tabatabaie University, 1999 B.S., University of New Mexico, 2005

THESIS

Submitted in Partial Fulfillment of the Requirements for the Degree of

Master of Science

The University of New Mexico

Albuquerque, New Mexico

August, 2008 °c 2008, Kourosh Raeen

iii Dedication

to Suzanne

iv Acknowledgments

First, I would like to thank my advisor, Professor Cristina Pereyra, for taking me on as her student, and her guidance and encouragement on this thesis. I would like to thank Professors, Pedro Embid and John Hamm for being part of my thesis committee. A very big thanks to my wife, Suzanne for all her support and encouragement during the course of writing this thesis. I would like to thank my friends in Albuquerque, Alejandro and Iveth Acuna, Ronald Chen, Flor Espinoza, Oksana Guba, Jaime and Christina Hernandez, Daishu Komagata, Randy, Phyllis, and Kristin Lynn, and Henry Moncada. I could not ask for a more supportive group of friends. Finally, I would like to thank my Mom, and my cousin Parisa for their love and support.

v A Study of The Gibbs Phenomenon in and Wavelets

by

Kourosh Raeen

ABSTRACT OF THESIS

Submitted in Partial Fulfillment of the Requirements for the Degree of

Master of Science Mathematics

The University of New Mexico

Albuquerque, New Mexico

August, 2008 A Study of The Gibbs Phenomenon in Fourier Series and Wavelets

by

Kourosh Raeen

B.A., Allameh Tabatabaie University, 1999 B.S., University of New Mexico, 2005

M.S., Mathematics, University of New Mexico, 2008

Abstract

In this thesis, we examine the Gibbs phenomenon in Fourier and expansions of functions with jump discontinuities. In short, the Gibbs phenomenon refers to the persistent or undershoot of the values of a partial sum expansion of a function near a jump discontinuity as compared to the values of the original function. First we introduce those elements of Fourier analysis needed and give an introduction to this thesis. Then we give a historical account of this phenomenon. Next, we examine the Gibbs phenomenon in the context of Fourier series. We calculate the size of the overshoot/undershoot for a simple function with a jump discontinuity at the origin and then prove the occurrence of the phenomenon at a general point of discontinuity for a class of functions. After that we give a method of removing the Gibbs phenomenon in the context of good kernels. Finally, we show the existence of the Gibbs phenomenon for certain class of wavelets.

vii Contents

List of Figures x

1 Introduction 1

2 Preliminaries 4

2.1 Fourier Coefficients, Series, and Partial Sums ...... 4

2.2 Trigonometric Series and Polynomials ...... 6

2.3 Some Convergence Results ...... 6

2.4 and their Properties ...... 9

2.5 The Dirichlet Kernel and its Properties ...... 9

2.6 The Fej´erKernel and the Ces`aroSum ...... 10

2.7 The Abel Means and the Poisson Kernel ...... 12

2.8 Good Kernels ...... 13

2.9 Retrieving a Discontinuous Function Using Ces`aroMeans ...... 15

viii Contents

3 A Historical Account 18

3.1 Wilbraham, Michelson, and Gibbs ...... 18

3.2 A Careful Analysis of the Function ...... 22

4 The Gibbs Phenomenon in Fourier Series 28

4.1 A Simple Function with a Jump Discontinuity at 0 ...... 28

4.2 Generalization to other Functions with a Jump Discontinuity at 0 ...... 35

4.3 Jump Discontinuity at a General Point ...... 43

4.4 Removing the Gibbs Effect Using Positive Kernels ...... 44

5 The Gibbs Phenomenon in Wavelets 47

5.1 Wavelets and Multiresolution Analysis ...... 48

5.2 Construction of a Multiresolution Analysis ...... 50

5.3 Existence of the Gibbs Phenomenon for some Wavelets ...... 52

5.4 A Wavelet with no Gibbs Effect ...... 67

5.5 The Shannon Wavelet and its Gibbs Phenomenon ...... 68

5.6 Quasi-positive and Positive Delta Sequences ...... 74

5.7 Revisiting the Haar MRA ...... 77

6 Conclusion 79

References 81

ix List of Figures

2.5.1 Graphs of the Dirichlet kernels ...... 11

2.6.1 Graphs of the Fej´erkernels ...... 12

2.7.1 Graphs of the Poisson kernels ...... 13

2.9.1 Graphs of the step function and its 40th partial Fourier and Ces`aro sums ...... 16

3.1.1 The harmonic analyzer built by Michelson and Stratton ...... 19

3.1.2 Graphs of the sawtooth function and its partial Fourier sums . . . . 20

3.1.3 Graphs of the sawtooth function and its 80th partial Fourier sum . . 21

3.1.4 Graph of the square wave function ...... 22

4.1.1 Graph of the ramp function ...... 29

5.5.1 Graph of f(x) and its Shannon approximation for j=5 ...... 73

5.5.2 Graph of f(x) and its Shannon approximation for j=7 ...... 74

x Chapter 1

Introduction

This thesis is a study of the so called Gibbs phenomenon in Fourier and wavelet approximations to functions. When we approximate a function with a jump disconti- nuity using its Fourier series an anomaly appears near the discontinuity. The values of the partial sums near the discontinuity overshoot or undershoot the function value. As we incorporate more and more terms in the partial sums, away from the discon- tinuity, their graphs begin to resemble that of the original function more. However, the blips near the discontinuity persist, and although they decrease in width they appear to remain at the same height. This lack of improvement in the approxima- tions near the discontinuity manifested in the continual presence of the overshoot or undershoot is the Gibbs phenomenon.

To better understand this phenomenon, we introduce in the second chapter those mathematical tools necessary from Fourier analysis. We begin with the definitions of Fourier series, coefficients, and partial sums. Since the issue here is the lack of of partial Fourier sums at the points of discontinuity, we state a few well-known theorems concerning the convergence of Fourier series. Convolutions and their relation to summation methods involving some well-known kernels are

1 Chapter 1. Introduction introduced next. And finally we define the so called positive kernels and hint at their relevance to the Gibbs phenomenon.

In the first section of chapter three, we go back to the time when the existence of this phenomenon was first brought to the attention of the scientific community. We introduce the main players in the history of this phenomenon and discuss their contributions. Section two of chapter three is devoted to a careful analysis of the phenomenon for a simple function with a jump discontinuity at the origin. We start with a precise definition of the Gibbs phenomenon. Next, we prove that the size of the overshoot near the discontinuity is independent of the number of terms used in the Fourier partial sum and the size of the overshoot stays a fixed percentage of the size of the jump. Several graphs are included to illustrate the points.

In chapter four, we employ a different approach to show the existence of the Gibbs phenomenon for another simple function with a jump discontinuity at the origin. We, then use this result together with two lemmas and two theorems to show the existence of the phenomenon for a ”general” function with a jump discontinuity at the origin. In the next section, we discuss jump discontinuities at a general point and the case of a finite number of discontinuities. In the last section, we use a theorem to explain the behavior of summation methods involving positive kernels observed in chapter two.

In chapter five, we give a brief introduction to wavelets and multiresolution anal- ysis. Then, we define the Gibbs phenomenon for the wavelet approximations and prove a theorem which gives a condition for the existence of the phenomenon for a certain class of wavelets. This condition involves the integral of a kernel associated to the scaling function. Using this result, we show next that restrictions on the scaling function can be somewhat relaxed, hence proving the existence of the Gibbs phenomenon for a larger class of wavelets. In the next section, we show that the Shannon wavelets exhibit the Gibbs phenomenon. After that, we introduce the so

2 Chapter 1. Introduction called positive delta sequences and show that similar to positive kernels they result in the elimination of the Gibbs effect. We use this result to show the absence of the Gibbs phenomenon in the Haar wavelets. Finally, in chapter six we give a summary of our conclusions.

3 Chapter 2

Preliminaries

In this chapter we review some elements of Fourier analysis that are used in the subsequent chapters. The definitions and the theorems presented in this chapter can be found in [9], [15], [18], and [22]. The reader can also consult these references for the proofs of the theorems and a more in depth treatment of the ideas.

2.1 Fourier Coefficients, Series, and Partial Sums

Definition 2.1. Let T := {z = eiθ| − π ≤ θ < π}. Suppose f : T → C is integrable and 2π periodic. Then we define the nth Fourier coefficient of f by Z 1 π fˆ(n) = f(θ)e−inθdθ. 2π −π

Definition 2.2. Let f and fˆ(n) be as in definition 2.1. Then the Fourier series of f is defined by

X∞ X∞ ˆ inθ f(n)e = [an sin(nθ) + bn cos(nθ)], n=−∞ n=0

4 Chapter 2. Preliminaries

where an and bn are given by Z 1 π a = f(θ) cos(nθ)dθ, (2.1.1) n π Z−π 1 π bn = f(θ) sin(nθ)dθ. (2.1.2) π −π

In general, if f :[a, b) → C is L-periodic where L = b−a then we define the L-Fourier coefficients of f and its Fourier series by Z 1 b fˆL(n) = f(θ)e−2πinθ/Ldθ, L a X∞ f(θ) ∼ fˆL(n)e2πinθ/L. n=−∞ Definition 2.3. Let f be as in definition 2.1. Then the Nth partial Fourier sum of f is defined by XN ˆ inθ SN f(θ) = f(n)e . n=−N

The next two definitions tell us how to find the and the inverse Fourier transform on L1(R).

Definition 2.4. Let f ∈ L1(R) and ξ ∈ R. Then we define the Fourier transform of f by

Z ∞ fˆ(ξ) = f(x)e−ixξdx. −∞ Definition 2.5. Let g ∈ L1(R) and x ∈ R. Then the inverse Fourier transform of g is given by Z 1 ∞ gˇ(x) = g(ξ)eixξdξ. 2π −∞ Remark 2.6. If f ∈ L2(R) ∩ L1(R) then one can verify that its Fourier transform is in L2(R). Furthermore, one can extend by continuity fˆ to an isometry in L2(R). Then we can use the formulae in Definitions 2.4, and 2.5.

5 Chapter 2. Preliminaries

2.2 Trigonometric Series and Polynomials

Definition 2.7. By a trigonometric series of period L we mean a series of the form X∞ 2πinθ/L cne . n=−∞

So the Fourier series are part of the class of trigonometric series.

Definition 2.8. A trigonometric polynomial is a trigonometric series of period L with finitely many terms. In other words,

XN 2πinθ/L cne . n=−N

2.3 Some Convergence Results

There are some natural questions regarding the Fourier series of a function f as with any infinite series. For example, does the series converge, and if it does is the convergence pointwise or uniform? If the series converges at x = θ does it converge to f(θ) or some other value? Under what conditions does the Fourier series converge uniformly to f? The following theorems will provide answers to these questions.

Theorem 2.9. Let f ∈ C(T). Suppose that the series of Fourier coefficients of f P ∞ ˆ converges absolutely. In other words, n=−∞ |f(n)| < ∞. Then,

lim SN f → f uniformly on T N→∞

The following theorem shows how the smoothness of f is related to the rate of decay of fˆ(n). The right rate of decay can result in the of the series of Fourier coefficients and by the previous theorem the uniform convergence of the Fourier series.

6 Chapter 2. Preliminaries

Theorem 2.10. Let f ∈ C2(T). Then, ¡ 1 ¢ fˆ(n) = O as n → ∞, |n|2 c in other words, there exists a constant C > 0 such that fˆ(n) ≤ . |n|2

In fact, the smoother f is the faster the Fourier coefficients decay. More precisely, if f ∈ Ck(T) then ¡ 1 ¢ fˆ(n) = O as n → ∞, |n|k c in other words, there exists a constant C > 0 such that fˆ(n) ≤ . |n|k The following result is a consequence of theorems 2.9, and 2.10.

Corollary 2.11. Let f ∈ C2(T). Then,

lim SN f → f uniformly as N → ∞. N→∞

Actually, the smoothness condition can be relaxed to just one continuous deriva- tive as the next theorem states.

Theorem 2.12. Let f ∈ C1(T), and θ ∈ T. Then,

lim SN f(θ) = f(θ). N→∞

Moreover, the convergence is uniform on T.

The next lemma, known as the Riemann-Lebesgue Lemma, shows that for the Fourier coefficients of f to decay to zero we do not necessarily need any number of continuous derivatives.

Lemma 2.13. If f ∈ C(T), then

fˆ(n) → 0 as |n| → ∞.

7 Chapter 2. Preliminaries

In fact, using the density of continuous functions in the space of Lebesgue in- tegrable functions on the circle, L1(T), one can prove the following version of the Riemann-Lebesgue Lemma.

Lemma 2.14. If f ∈ L1(T), then

fˆ(n) → 0 as |n| → ∞.

The following result of Du Bois-Reymond shows that continuity of f does not guarantee pointwise convergence of the Fourier series everywhere.

Theorem 2.15. There exists a f : T → C such that

lim sup |SN f(0)| = ∞. N→∞

Actually, the problem of pointwise convergence is not limited only to continuous functions. In 1926, Kolmogorov showed the following

Theorem 2.16. There exist a Lebesgue-integrable function f : T → C such that

lim sup |SN f(θ)| = ∞ for all θ ∈ T. N→∞

It was believed that sooner or later a continuous function with a similar property would be constructed. However, in 1966 Carleson proved the following:

2 Theorem 2.17. If f : T → C, f ∈ L (T) then SN f(θ) converges to f(θ) except possibly on a set of measure zero.

As a corollary, we obtain the same result if f is continuous, or simply Riemann- integrable on T.

8 Chapter 2. Preliminaries

2.4 Convolutions and their Properties

Definition 2.18. Let f, g : T → C be 2π periodic and integrable functions. Then their f ∗ g on T is defined by Z 1 π f ∗ g(θ) = f(y)g(θ − y)dy. 2π −π

The following theorem shows some of the important properties of convolutions.

Theorem 2.19. Let f , g , h : T → C be 2π periodic and integrable functions. Then

(i) f ∗ g = g ∗ f (ii)(f ∗ g) ∗ h = f ∗ (g ∗ h) (ii) f ∗ (g + h) = (f ∗ g) + (f ∗ h) (iv)(cf) ∗ g = c(f ∗ g) = f ∗ (cg) for all c ∈ C (v) f[∗ g(n) = fˆ(n)ˆg(n) (vi) f ∗ g is a continuous function

In property (v), we can take the Fourier transform of f ∗g since by Young’s inequality we have

||f ∗ g||L1(T) ≤ ||f||L1(T)||g||L1(T), which implies that f ∗ g is integrable.

2.5 The Dirichlet Kernel and its Properties

The Dirichlet kernel is a trigonometric polynomial of degree N defined by

XN inθ DN (θ) = e , n=−N

9 Chapter 2. Preliminaries which can also be written as XN DN (θ) = 1 + 2 cos(nθ), (2.5.1) n=1 using the formula 2 cos(nθ) = eiθ + e−iθ.

The Dirichlet kernel can be expressed with a closed form formula as

sin((2N + 1)θ/2) D (θ) = . (2.5.2) N sin(θ/2)

Some properties of the Dirichlet kernel are summarized in the following theorem.

Theorem 2.20. Let f : T → C be integrable and let θ ∈ T. Then

(i) SN f(θ) = (f ∗ DN )(θ)

(ii) DN is an even function. Z 1 π (ii) DN (θ)dθ = 1. 2π −π

The graphs of the Dirichlet kernels for several values of N are depicted in figure 2.5.1 below.

2.6 The Fej´erKernel and the Ces`aroSum

The Fej´erkernel is defined in terms of the Dirichlet kernels as

D (θ) + D (θ) + ... + D (θ) F f(θ) = 0 1 N−1 . (2.6.1) N N

The Fej´erkernel is a positive kernel as seen in figure 2.6.1 below. We can rewrite the Fej´erkernel as the trigonometric polynomial

XN N − |n| F f(θ) = ( )einθ. N N n=−N

10 Chapter 2. Preliminaries

18 D (θ) 1 D (θ) 16 3 D (θ) 8 14

12

) 10 θ ( N

8

6

Dirichlet kernels D 4

2

0

−2

−4 −8 −6 −4 −2 0 2 4 6 8 θ

Figure 2.5.1: Graphs of the Dirichlet kernels

There is also the following closed form formula for the Fej´erkernel 1 sin2(Nθ/2) F f(θ) = . N N sin2(θ/2) The Ces`arosums, or Ces`aromeans, are defined by S f(θ) + S f(θ) + ... + S f(θ) σ f(θ) = 0 1 N−1 . N N The Ces`aromeans can also be written as trigonometric polynomials by

XN N − |k| σ f(θ) = ( )a einθ, N N k k=−N where ak is the kth Fourier coefficient of f. Now, Using SN f(θ) = (f ∗ DN )(θ) we obtain

σN f(θ) = (f ∗ FN )(θ).

11 Chapter 2. Preliminaries

6 F (θ) 1 F (θ) 3 F (θ) 5 5

4 ) θ (

N 3

2 Fejer kernels F

1

0

−1 −8 −6 −4 −2 0 2 4 6 8 θ

Figure 2.6.1: Graphs of the Fej´erkernels

2.7 The Abel Means and the Poisson Kernel

The Poisson kernel Pr(θ) is defined by X∞ 1 − r2 P (θ) = r|n|einθ = , r ∈ [0, 1) r 1 − 2r cos θ + r2 n=−∞

P∞ inθ The rth Abel mean of the function f(θ) with Fourier series n=−∞ ane is defined by X∞ |n| inθ Arf(θ) = r ane . n=−∞ Using convolution, the rth Abel mean can be written as

Arf(θ) = (f ∗ Pr)(θ).

12 Chapter 2. Preliminaries

Figure 2.7.1 shows the graphs of the Poisson kernels for several values of r.

20 P (θ) 1/2 P (θ) 18 2/3 P (θ) 9/10 16

14

) 12 θ ( r

10

8

Poisson kernels P 6

4

2

0

−2 −8 −6 −4 −2 0 2 4 6 8 θ

Figure 2.7.1: Graphs of the Poisson kernels

2.8 Good Kernels

∞ Definition 2.21. Let {Kn(θ)}n=1 be a sequence of functions such that Kn : T → R. Then we call this sequence, a sequence, or family, of good kernels if the following properties are satisfied: (i) For all n ∈ N, Z 1 π Kn(θ)dθ = 1. (2.8.1) 2π −π

13 Chapter 2. Preliminaries

(ii) There exists M > 0 such that for all n ∈ N,

Z π |Kn(θ)|dθ ≤ M. (2.8.2) −π (iii) For every δ > 0, Z

|Kn(θ)|dθ → 0 as n → ∞. (2.8.3) δ≤|θ|≤π

The Dirichlet kernel Dn fails to satisfy the second property. In fact,

Z π |Dn(θ)|dθ ≥ c log N, c > 0. −π

Thus, Dn is not a good kernel. On the other hand, the Fej´erkernel Fn and the

Poisson kernel Pr are good kernels.

A family of good kernels is also called an approximation to the identity due to the following theorem.

∞ Theorem 2.22. If {Kn}n=1 is a family of good kernels, Kn : T → R, and f : T → C is integrable then

lim (f ∗ Kn)(θ) = f(θ) n→∞ whenever f is continuous at θ. Moreover, if f is continuous everywhere then f ∗Kn → f uniformly.

As a consequence of Theorem 2.22 we have the following theorem of Fej´erabout the Ces`arosummability of a function f.

Theorem 2.23. Let f : T → C be an integrable function. Then,

lim σN f(θ) = f(θ) N→∞ at all points of continuity of f. Furthermore, the convergence is uniform if f is continuous on T.

14 Chapter 2. Preliminaries

A similar result holds if we replace the Ces`aromeans with the Abel means.

∞ Definition 2.24. We call a family of good kernels {Kn}n=1 positive kernels if we replace the conditions (ii), and (iii) in Definition 2.21 by the following: (ii0) For all n ∈ N,

Kn(θ) ≥ 0. (2.8.4)

(iii0) For every δ > 0,

max |Kn(θ)| → 0. (2.8.5) δ≤|θ|≤π

As implied in the definition, positive kernels are good kernels since conditions (i) and (ii0) imply condition (ii) and condition (iii0) implies condition (iii). The Fej´er kernel Fn and the Poisson kernel Pr are examples of positive kernels.

2.9 Retrieving a Discontinuous Function Using Ces`aroMeans

In this section we examine a function f with a jump discontinuity at 0, comparing the behavior of its partial Fourier sums with that of its partial Ces`arosums near the origin.

Define the step function f by   −1, −π < θ < 0; f(θ) = (2.9.1)  1, 0 ≤ θ < π.

Figure 2.9.1 shows the behavior of SN f(x) and σN f(x) on the interval [−1, 1].

Notice the oscillations of SN f(x) near the discontinuity at x = 0. These oscillations,

15 Chapter 2. Preliminaries

2 f(x) S f(x) 40 σ f(x) 1.5 40

1

0.5 f(x) 40 σ 0 f(x) and 40 S −0.5

−1

−1.5

−2 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 x

Figure 2.9.1: Graphs of the step function and its 40th partial Fourier and Ces`aro sums which persist no matter how large N is, are the manifestation of the Gibbs phe- nomenon. We will see an analysis of this phenomenon in Chapter 2. Also, notice the absence of these oscillations near 0 on the graph of σN f(x). In fact, near the origin we see that

min f(x) ≤ σN f(x) ≤ max f(x).

As we will see in Chapter 4, this is no mere coincidence.

Remark 2.25. We can see from figure 2.5.1 that f(0+) + f(0−) lim SN f(x) = = 0, (2.9.2) N→∞ 2 f(0+) + f(0−) lim σN f(x) = = 0. (2.9.3) N→∞ 2

16 Chapter 2. Preliminaries

The limit in (2.9.2) is a consequence of the following theorem of Dirichlet.

Theorem 2.26. Let f : T → C be continuous except at finitely many points with a continuous bounded derivative. Then

f(θ+) + f(θ−) lim SN f(θ) = for all θ ∈ T, N→∞ 2 where,

f(θ+) = lim f(θ + h) and f(θ−) = lim f(θ − h). h→0 h→0 h>0 h>0

If f is continuous at θ then SN f(θ) → f(θ) as N → ∞.

The following theorem of Jordan shows that the same results follow if f is of bounded variation.

Theorem 2.27. Suppose f is a function on T with bounded variation. Then

f(θ+) + f(θ−) lim SN f(θ) = for all θ ∈ T, N→∞ 2

+ − where f(θ ) and f(θ ) are as in Theorem 2.26. At all points of continuity SN f(θ) → f(θ), and on closed intervals of continuity the convergence is uniform.

Results similar to Theorem 2.26 hold for the Abel and Ces`aromeans of f, thus explaining (2.9.3).

17 Chapter 3

A Historical Account

In this chapter we give a brief historical background to the Gibbs phenomenon introducing the main contributors. We also do a careful analysis of the calculation of the overshoot/undershoot of the Fourier partial sums near a discontinuity for a particular function.

3.1 Wilbraham, Michelson, and Gibbs

In 1898 American scientists Albert Michelson and Samuel Stratton built a me- chanical machine, called a harmonic analyzer that was capable of computing partial Fourier sums up to 80 terms. See figure 3.1.1.

In the same year they published a description of their machine together with some graphs produced by the harmonic analyzer [13]. One of their graphs was that of the partial Fourier sum of the function, known as the sawtooth function, given by

1 f(x) = x, −π < x < π, f(x + 2π) = f(x). 2

18 Chapter 3. A Historical Account

Figure 3.1.1: The harmonic analyzer built by Michelson and Stratton

Figures 3.1.2 and 3.1.3 show the graphs of this function and its partial Fourier sums.

Noticing the oscillations near the jump discontinuities, Michelson tried to fine tune his machine as he associated the appearance of these blips to mechanical de- fect. However, his efforts were fruitless and the oscillations persisted. Eventually, hand calculations confirmed the existence of them. Michelson’s conclusion, which he asserted in a 1898 letter to Nature [12], was that the series 1 1 sin x + sin 2x + ... + sin nx + ... (3.1.1) 2 n

1 did not converge to y = 2 x on the interval −π < x < π, contrary to what he believed the textbooks were claiming. A. E. H. Love, a British mathematician, responded to Michelson’s letter by pointing out Michelson’s lack of knowledge on the concept of uniform convergence [10]. However, he did not address Michelson’s problem of

19 Chapter 3. A Historical Account

4 S f 5 2 f 0

−2

−4 −4 −2 0 2 4 6 8 10 x 4 S f 15 2 f 0 f( x) for the sawtooth function N −2

−4 −4 −2 0 2 4 6 8 10 x 4 S f 30 2 Partial Fourier sums S f 0

−2

−4 −4 −2 0 2 4 6 8 10 x

Figure 3.1.2: Graphs of the sawtooth function and its partial Fourier sums

retrieving a discontinuous function from its Fourier coefficients. He just suggested a book for reading to Michelson, and any other physicist troubled by nonuniform convergence [6]. Eventually, in two letters to Nature [4], [5] J. W. Gibbs explained that the limit of graphs is not necessarily the same as the graph of the limit. In 1 other words, the series (3.1.1) converges pointwise to the function f(x) = 2 x, but this does not imply that the graphs of the partial sums SN f(x) need to start looking like the graph of f as N → ∞ [9]. Furthermore, Gibbs gave the correct size of the overshoot and the undershoot of SN f(x) near the point of discontinuity. However, Gibbs did not provide any proofs or calculations and it was not until 1906 when Maxime Bˆocher gave a rigorous analysis of this phenomenon [1]. He also named this phenomenon after Gibbs as he believed Gibbs to be the first person noticing it. However, 50 years before Gibbs’ letter appeared in Nature Henry Wilbraham,

20 Chapter 3. A Historical Account

3 S f 80 f

2

1

0

−1

−2

−3 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 3.8 4 x

Figure 3.1.3: Graphs of the sawtooth function and its 80th partial Fourier sum an English mathematician, had observed this phenomenon, but his paper [21] went unnoticed by Gibbs and Bˆocher. He did not get recognition for his work until 1925 [2]. Wilbraham’s paper is in response to F. Newman’s claim [14] that the values of the partial Fourier sums of the function   π if |x| < π , f(x) = 4 2  π π − 4 if 2 < |x| < π,

1 depicted in figure 3.1.4, are “contained between the limits ± 4 π”.

21 Chapter 3. A Historical Account

(1/2)pi

(1/4)pi

y 0

(−1/4)pi

(−1/2)pi

(−3/2)pi −pi (−1/2)pi 0 (1/2)pi pi (3/2)pi x

Figure 3.1.4: Graph of the square wave function

3.2 A Careful Analysis of the Square Wave Func- tion

Here we do an analysis similar to that of Wilbraham’s for a variation of the square wave function[7]. Let us first define the Gibbs phenomenon in a more precise way.

Definition 3.1. Suppose a function f(x) has a jump discontinuity at x = a, i.e, + − + − f(a ) = limx→a+ f(x) < ∞, f(a ) = limx→a− f(x) < ∞, and f(a ) 6= f(a ). We say that the Fourier partial sum approximation of f exhibits the Gibbs phenomenon at the right hand side of x = a if there is sequence xn > a converging to a such + + − + that limn→∞ Snf(xn) > f(a ) if f(a ) > f(a ), or limn→∞ Snf(xn) < f(a ) if f(a+) < f(a−). Similarly, we say that the Fourier partial sum approximation of f

22 Chapter 3. A Historical Account exhibits the Gibbs phenomenon at the left hand side of x = a if there is sequence − + − xn < a converging to a such that limn→∞ Snf(xn) < f(a ) if f(a ) > f(a ), or − + − limn→∞ Snf(xn) > f(a ) if f(a ) < f(a ).

As we see from this definition, it is not the mere existence of the overshoot/undershoot of the partial Fourier sums that constitutes the Gibbs phenomenon, but rather the persistence of this overshoot/undershoot, i.e the lack of improvement in the approx- imations Snf(xn).

Recall that the step function f is defined by

  −1, −π < x < 0; f(x) = (3.2.1)  1, 0 ≤ x < π.

Then the nth Fourier coefficient of f can be calculated as follows: Z 1 π fˆ(n) = f(x)e−inxdx 2π Z−π Z 1 0 1 π = f(x)e−inxdx + f(x)e−inxdx 2π 2π −Zπ Z 0 1 0 1 π = − e−inxdx + e−inxdx 2π 2π −π ¯ 0¯ 1 e−inx ¯0 1 e−inx ¯π = − ¯ + ¯ 2π −in ¯ 2π −in ¯ µ −π ¶ 0µ ¶ 1 1 enπi 1 e−nπi 1 = − − + − 2π −in −in 2π −in −in µ ¶ µ ¶ 1 1 − (−1)n 1 1 − (−1)n = + 2π in 2π in 1 ¡ ¢ = 1 − (−1)n nπi  2  if n odd, = nπi  0 otherwise.

23 Chapter 3. A Historical Account

So, the Fourier series of f is:

X 2 X einx fˆ(n)einx = π in n odd n odd 2 X cos(nx) + i sin(nx) = π in n odd 2 X sin(nx) − i cos(nx) = π n n odd 2 X∞ sin(nx) − i cos(nx) sin(−nx) − i cos(−nx) = + π n −n n=1 n odd 4 X∞ sin(nx) = π n n=1 n odd 4 X∞ sin((2n − 1)x) = . π 2n − 1 n=1

So the (2N − 1)th partial Fourier sum of f is given by

4 XN sin((2n − 1)x) S f(x) = . (3.2.2) 2N−1 π 2n − 1 n=1

We can rewrite expression (3.2.2), using the fact that

Z x sin((2n − 1)x) cos((2n − 1)t)dt = 0 2n − 1 as follows

Z 4 XN x S f(x) = cos((2n − 1)t)dt 2N−1 π n=1 0 Z µ ¶ 4 x XN = cos((2n − 1)t) dt. (3.2.3) π 0 n=1

24 Chapter 3. A Historical Account

1 Now, using the trigonometric identity sin u cos v = 2 [sin(u + v) + sin(u − v)] we have: XN XN 2 sin t cos((2n − 1)t) = 2 sin t cos((2n − 1)t) n=1 n=1 XN = (sin(t + (2n − 1)t) + sin(t − (2n − 1)t)) n=1 XN = (sin(2nt) + sin((2 − 2n)t)) n=1 XN = (sin(2nt) − sin((2n − 2)t)) n=1 = (sin(2t) − sin(0)) + (sin(4t) − sin(2t)) + ...

+ (sin(2Nt) − sin((2N − 2)t))

= sin(2Nt).

Therefore,

XN sin(2Nt) cos((2n − 1)t) = . 2 sin t n=1 Plugging this into (3.2.3) we obtain: Z 4 x sin(2Nt) S f(x) = dt 2N−1 π 2 sin t Z0 2 x sin(2Nt) = dt. (3.2.4) π 0 sin t Now, we find the first extremum of this function to the right of x = 0. d 2 sin((2Nx) S f(x) = = 0. dx 2N−1 π sin x Therefore, kπ sin(2Nx) = 0 ⇒ x = , k ∈ Z. 2N π For k = 1, x = , and 2N d2 ³ π ´ 2N 2 S2N−1f = − π < 0. dx 2N sin( 2N )

25 Chapter 3. A Historical Account

π So, S f(x) has its first maximum to the right of x = 0 at x = and 2N−1 2N ³ ´ Z π π 2 2N sin(2Nt) S2N−1f = dt. 2N π 0 sin t π For N large, 0 < t < is small, hence sin t ∼ t, therefore we obtain: 2N ³ ´ Z π π 2 2N sin(2Nt) S f ∼ dt 2N−1 2N π t Z0 2 π sin(u) 2 = du = Si(π), π 0 u π π where Si(π) = (1.17898). This value can be found using the Taylor expansion of 2 sin x as follows:

We can write sin x as x3 x5 x7 sin x = x − + − + ... 3! 5! 7! Then sin x x2 x4 x6 = 1 − + − + ... x 3! 5! 7! Therefore Z Z µ ¶ 2 π sin x 2 π x2 x4 x6 dx = 1 − + − + ... π x π 3! 5! 7! 0 µ0 ¶ 2 π3 π5 π7 = π − + − + ... π 18 600 35280 π2 π4 π6 = 2 − + − + ... 9 300 17640 = 2 − 1.11 + 0.33 − 0.04 + ...

≈ 1.18 (3.2.5)

Thus ³ π ´ 2 π S f ∼ (1.17898) = 1.17898. 2N−1 2N π 2

26 Chapter 3. A Historical Account

The magnitude of the jump at x = 0 is |f(0+) − f(0−)| = 2. The overshoot at π x = , for N large, is 0.17898 which is approximately 9% of the magnitude of the 2N jump.

Because of Wilbraham’s contributions, which predate those of Gibbs’, some au- thors prefer to use the term Gibbs-Wilbraham phenomenon [2].

In the next chapter, we will see that the Gibbs phenomenon occurs not just for the step function but for a class of functions with jump discontinuities at general points.

27 Chapter 4

The Gibbs Phenomenon in Fourier Series

In this chapter we show the existence of the Gibbs phenomenon at x = 0 for another simple function [20]. Then we generalize this result for a certain class of functions with jump discontinuities at the origin [19], [20]. We then illustrate the case of a jump discontinuity at a general point. In the last section, we discuss some summation methods used in removing the Gibbs effect [20], [22].

4.1 A Simple Function with a Jump Discontinuity at 0

Consider the ramp function

π x f(x) = sgn(x) − , −π < x < π, (4.1.1) 2 2

28 Chapter 4. The Gibbs Phenomenon in Fourier Series where

  −1 if x < 0; sgn(x) =  1 if 0 ≤ x.

As seen in the figure 4.1.1, f has a jump discontinuity at x = 0. We will examine

pi/2

0 f(x)

−pi/2

−pi −pi/2 0 pi/2 pi x

Figure 4.1.1: Graph of the ramp function

+ SN f(x) when x → 0 . First, we calculate the nth Fourier coefficient of f for n 6= 0 as follows

Z 1 π fˆ(n) = f(x)e−inxdx. 2π −π

29 Chapter 4. The Gibbs Phenomenon in Fourier Series

We break this integral into two parts to obtain

Z Z 1 0 1 π fˆ(n) = f(x)e−inxdx + f(x)e−inxdx 2π 2π Z−π 0 Z 1 0 π x 1 π π x = (− − )e−inxdx + ( − )e−inxdx 2π 2 2 2π 2 2 Z−π Z 0 Z Z 1 0 1 0 x 1 π 1 π x = − e−inxdx − e−inxdx + e−inxdx − e−inxdx 4 −π 2π −π 2 4 0 2π 0 2

= I1 + I2 + I3 + I4.

From the first and the third integrals, using a change of variables on the first integral, we obtain

Z Z 1 π 1 π I + I = − einxdx + e−inxdx 1 3 4 4 Z0 0 i π einx − e−inx = − dx 2 2i Z0 i π = − sin(nx)dx 2 0 ¯ ¯π i cos(nx)¯ = ¯ 2n 0 i cos(nπ) i = − . 2n 2n

From the second and the fourth integrals, using a change of variables on the second integral, we obtain

Z Z 1 π x 1 π x I + I = einxdx − e−inxdx 2 4 2π 2 2π 2 Z0 µ ¶0 i π einx − e−inx = x dx 2π 2i Z0 i π = x sin(nx)dx. 2π 0

30 Chapter 4. The Gibbs Phenomenon in Fourier Series

Integration by parts will yield

µ ¯ Z ¶ i cos(nx)¯π π cos(nx) I + I = − x ¯ + dx 2 4 2π n ¯ n µ 0 0 ¯ ¶ i cos(nπ) sin(nx)¯π = − π + ¯ 2π n n2 ¯ µ ¶ 0 i cos(nπ) = − π + 0 2π n i cos(nπ) = . 2n

Thus,

ˆ f(n) = I1 + I2 + I3 + I4 i cos(nπ) i i cos(nπ) = − − 2n 2n 2n i = − , for n 6= 0. (4.1.2) 2n

When n = 0 we have

Z 1 π fˆ(0) = f(x)dx = 0. 2π −π

So the Fourier series of f is given by:

X∞ X∞ i fˆ(n)einx = − (cos(nx) + i sin(nx)) 2n n=−∞ n=−∞ n6=0 X∞ sin(nx) − i cos(nx) = 2n n=−∞ n6=0

31 Chapter 4. The Gibbs Phenomenon in Fourier Series

Now, we look at the sums over positive and negative integers n separately as follows

X∞ X sin(nx) X sin(nx) X i cos(nx) X i cos(nx) fˆ(n)einx = + − − 2n 2n 2n 2n n=−∞ n>0 n<0 n>0 n<0 X sin(nx) X sin(−mx) X i cos(nx) X i cos(−mx) = + − − 2n −2m 2n −2m n>0 −m n>0 −m m>0 m>0 X sin(nx) X sin(nx) X i cos(nx) X i cos(nx) = + − + 2n 2n 2n 2n n>0 n>0 n>0 n>0 X∞ sin(nx) = n n=1 X∞ Z x = cos(nt)dt n=1 0 Z µ ¶ x 1 Xn x = lim + cos(kt) dt − n→∞ 0 2 2 µ Z k=1 ¶ 1 x x = lim Dn(t)dt) − , n→∞ 2 0 2

where Dn is the Dirichlet kernel given by (2.5.1). Using the closed form formula for

Dn given in (2.5.2), and the identity sin(u + v) = sin u cos v + cos u sin v, we can rewrite the integral in (2.8.3) as follows:

Z x Z x µ t ¶ 1 sin(nt) cos( 2 ) cos(nt) Dn(t)dt = t + dt 2 0 0 2 sin( 2 ) 2 Z x Z x µ t ¶ Z x sin(nt) cos( 2 ) 1 cos(nt) = dt + sin(nt) t − dt + dt. 0 t 0 2 sin( 2 ) t 0 2

Thus, we can write Snf(x) as

Z x Z x µ t ¶ Z x sin(nt) cos( 2 ) 1 cos(nt) x Snf(x) = dt + sin(nt) t − dt + dt − 0 t 0 2 sin( 2 ) t 0 2 2 x = I + I + I − . 1 2 3 2

32 Chapter 4. The Gibbs Phenomenon in Fourier Series

π We Define the sequence {x }∞ by x = and examine S f(x ) as n → ∞. With n n=1 n n n n this choice I2(xn) becomes µ ¶ Z xn t cos( 2 ) 1 I2(xn) = sin(nt) t − dt 0 2 sin( 2 ) t Z π ·µ t ¶ ¸ cos( 2 ) 1 = t − χ[0,xn](t) sin(nt)dt 0 2 sin( 2 ) t Z π = gn(t) sin(nt)dt, 0 where the sequence of functions {gn} is given by,

µ t ¶ cos( 2 ) 1 gn(t) = t − χ[0,xn]. 2 sin( 2 ) t

Now, gn(t) is continuous on the interval [−π, π] except the singularities at zero, and at xn. However, near zero limt→0 gn(t) = 0 by twice applying L’Hospital’s Rule.

Thus, we define the continuous extension at 0 of gn by   gn(t) if −π ≤ t ≤ π, t 6= 0; Gn(t) =  0 if t = 0.

Notice that Gn(t) is still discontinuous at xn. But when n = 1 G1 is continuous on [−π, π], hence it attains its maximum. Therefore, we have

max Gn(t) ≤ max G1(t) =: M. t∈[0,π/2] t∈[0,π]

So we obtain

Z π |I2(xn)| ≤ |Gn(t)|| sin(nt)|dt −π Z xn ≤ max G1(t) dt t∈[0,π] 0

= Mxn

33 Chapter 4. The Gibbs Phenomenon in Fourier Series

Thus I2(xn) converges to zero as n → ∞ since xn → 0. Similarly, Z xn cos(nt) I (x ) = dt 3 n 2 Z0 π 1 = χ[0,xn](t) cos(nt)dt −π 2 Z π = hn(t) cos(nt)dt, −π

1 where hn(t) = 2 χ[0,xn](t). Now, as n → ∞ I3(xn) → 0 since cos(nt) is bounded and the support of hn(t) shrinks to zero. Therefore, near the origin we have µ ¶ Z xn sin(nt) xn lim Snf(xn) = lim dt − + O(1) n→∞ n→∞ t 2 µ Z0 ¶ xn sin(nt) = lim dt + O(1). n→∞ 0 t

By the change of variable u = nt, we obtain

Z Z nπ/n sin(u) π sin(u) lim Snf(xn) = lim du/n = du = Si(π), (4.1.3) n→∞ n→∞ 0 u/n 0 u where, as calculated in (3.2.5), Z π sin u π Si(π) = = (1.17898). 0 u 2

However, for fixed x > 0, we have Z Z nx sin u ∞ sin u π du n−−−−→→ ∞ du = . 0 u 0 u 2

As seen in (4.1.3), the value of Snf(xn) is independent of n near 0 and it will always be greater than that of f(x) no matter how many terms we use in the Fourier partial π sum. Taking x = − and a similar argument will show the undershoot of the values n n of the Fourier partial sums on the left hand side of x = 0.

34 Chapter 4. The Gibbs Phenomenon in Fourier Series

4.2 Generalization to other Functions with a Jump Discontinuity at 0

In this section, we use the result of the previous section to show the existence of the Gibbs phenomenon for a general function with a discontinuity at the origin. We will use the following definitions and theorems [19], [20].

Definition 4.1. Let f(x) be a 2π whose restriction to (−π, π) is in 1 L (−π, π). Then f satisfies a Lipschitz condition of order α > 0 at x◦ if there exists α a constant C such that |f(x) − f(x◦)| ≤ C|x − x◦| in a neighborhood of x◦. If the condition holds ∀ x◦ with the same constant C then f is said to satisfy a uniform Lipschitz condition.

In case α > 1 the condition will imply that f 0(x) = 0 which means that f is constant. Therefore, we assume that α ≤ 1.

+ − Definition 4.2. We define f(x◦ ) and f(x◦ ) as follows

f(x+) = lim f(x), ◦ + x→x◦ f(x−) = lim f(x). ◦ − x→x◦

+ − Definition 4.3. If f(x◦ ) (respectively f(x◦ )) exists, and the condition in defini- tion 4.1 holds for x > x◦, (respectively x < x◦), then f is said to satisfy a right (respectively left) hand Lipschitz condition.

First, we need the following version of the Riemann-Lebesgue lemma. For a proof, see [20], page 74.

1 Lemma 4.4. If f ∈ L (−π, π) then |an| + |bn| → 0 as n → ∞, where an and bn are the Fourier coefficients of f as defined in (2.1.1) and (2.1.2).

35 Chapter 4. The Gibbs Phenomenon in Fourier Series

We also need the following uniform version of the Riemann-Lebesgue lemma.

Lemma 4.5. Suppose f ∈ L1[−π, π] is a periodic function and h ∈ C1[α, β] such that [α, β] ∈ [−π, π]. Then

Z β f(x − u)h(u) sin(λu)du → 0 as λ → ∞ α uniformly in x.

Proof. By the density of C1[−π, π] in L1[−π, π] we can find g ∈ C1[−π, π] that is close to f in the L1-norm. In other words,

Z π ||f − g||L1 = |f(x) − g(x)|dx < ε. −π Now, we define I to be the following integral

Z β I = g(x − u)h(u) sin(λu)du. α Using integration by parts we obtain ¯ Z ¯β β cos(λu)¯ d cos(λu) I = −g(x − u)h(u) ¯ + (g(x − u)h(u)) du. λ α α du λ d now, I → 0 uniformly as λ → ∞ since g(x − u)h(u) and (g(x − u)h(u)) are du uniformly bounded. Then, ¯ Z ¯ ¯ β ¯ ¯ ¯ ¯ f(x − u)h(u) sin(λu)du¯ ¯ Zα ¯ ¯ β ¯ ¯ ¯ ≤¯ (f(x − u) − g(x − u))h(u) sin(λu)du¯ + |I| α Z β ≤ max |h(u)| |(f(x − u) − g(x − u))|du + |I| α≤u≤β α ≤ max |h(u)|ε + |I|. α≤u≤β

Since ε is arbitrary and I goes to 0 as λ → ∞ the desired result follows.

36 Chapter 4. The Gibbs Phenomenon in Fourier Series

Now, using the following theorem we show the existence of the Gibbs phenomenon for a ”general” function with a jump discontinuity at 0.

Theorem 4.6. Let f be a function satisfying a left and right hand Lipschitz condition at x◦. Then

f(x+) + f(x−) S f(x ) → ◦ ◦ n ◦ 2 as n → ∞. Moreover, if f satisfies a uniform two sided Lipschitz condition in a neighborhood of x◦, then Snf → f uniformly in a neighborhood of x◦ as n → ∞.

Proof. First we assume that x◦ 6= ±π. From parts (i) and (ii) of Theorem 2.20 we know that, Z 1 π Snf(x) = f(x − u)Dn(u)du, 2π −π and Z 1 π Dn(u) = 1 2π −π

Using these facts we have Z π £ ¤ Snf(x) − f(x) = f(x − u) − f(x) Dn(u)du. (4.2.1) −π

Let

f(x+) + f(x−) f¯(x ) = ◦ ◦ . (4.2.2) ◦ 2

Then by (4.2.1) we have Z π ¡ ¢ ¯ ¯ Snf(x◦) − f(x◦) = f(x◦ − u) − f(x◦) Dn(u)du. −π

37 Chapter 4. The Gibbs Phenomenon in Fourier Series

Now, using (4.2.2) we obtain

Z π µ + − ¶ ¯ f(x◦ ) f(x◦ ) Snf(x◦) − f(x◦) = f(x◦ − u) − − Dn(u)du −π 2 2 Z π Z π − f(x◦ ) = f(x◦ − u)Dn(u)du − Dn(u)du 0 0 2 Z π + Z 0 f(x◦ ) − Dn(u)du + f(x◦ − u)Dn(u)du 0 2 −π Z 0 + Z 0 − f(x◦ ) f(x◦ ) − Dn(u)du − Dn(u)du −π 2 −π 2 Z π Z π − ¡ − ¢ f(x◦ ) = f(x◦ − u) − f(x◦ ) Dn(u)du + Dn(u)du 0 0 2 Z π + Z 0 f(x◦ ) ¡ + ¢ − Dn(u)du + f(x◦ − u) − f(x◦ ) Dn(u) 0 2 −π Z 0 + Z 0 − f(x◦ ) f(x◦ ) + Dn(u)du − Dn(u)du −π 2 −π 2

= I1 + I2 + I3 + I4 + I5 + I6.

Now, using the change of variables y = −u and the fact that the Dirichlet kernel

Dn(u) is an even function we rewrite the fifth and the sixth integrals as follows

Z 0 + Z 0 − f(x◦ ) f(x◦ ) I5 + I6 = Dn(−y)(−dy) − Dn(−y)(−dy) π 2 π 2 Z 0 + Z 0 − f(x◦ ) f(x◦ ) = − Dn(y)(dy) + Dn(y)(dy) π 2 π 2 Z π + Z π − f(x◦ ) f(x◦ ) = Dn(y)(dy) − Dn(y)(dy) 0 2 0 2

= −(I2 + I3).

Therefore, I2 + I3 + I5 + I6 = 0. Thus,

¯ Snf(x◦) − f(x◦) = I1 + I4 Z 0 ¡ + ¢ = f(x◦ − u) − f(x◦ ) Dn(u)du −π Z π ¡ − ¢ + f(x◦ − u) − f(x◦ ) Dn(u)du. 0

38 Chapter 4. The Gibbs Phenomenon in Fourier Series

Multiplying and dividing by u, we obtain

Z −δ µ + ¶ f(x◦ − u) − f(x◦ ) = uDn(u)du −π u Z 0 µ + ¶ f(x◦ − u) − f(x◦ ) + uDn(u)du −δ u Z δ µ − ¶ f(x◦ − u) − f(x◦ ) + uDn(u)du 0 u Z π µ − ¶ f(x◦ − u) − f(x◦ ) + uDn(u)du δ u

= J1 + J2 + J3 + J4.

We can write J1 as Z −δ ¡ ¢ 1 + sin(n + 2 )u J1 = f(x◦ − u) − f(x◦ ) u du −π sin( 2 ) Z −δ ¡ + ¢ 1 ¡ u u ¢ = f(x◦ − u) − f(x◦ ) u sin(nu) cos( ) + cos(nu) sin( ) du −π sin( 2 ) 2 2 Z −δ µ u ¶ + cos( 2 ) = f(x◦ − u) − f(x◦ ) u sin(nu)du −π sin( 2 ) Z −δ ¡ + ¢ + f(x◦ − u) − f(x◦ ) cos(nu)du −π Z π µ u ¶ + cos( 2 ) = f(x◦ − u) − f(x◦ ) u χ[−π,−δ](u) sin(nu)du −π sin( 2 ) Z −δ ¡ + ¢ + f(x◦ − u) − f(x◦ )χ[−π,−δ](u) cos(nu)du −π Z π Z π = g(x◦, u) sin(nu)du + h(x◦, u) cos(nu)du −π −π = A + B, where, µ ¶ cos( u ) g(x , u) := f(x − u) − f(x+) 2 χ (u) ◦ ◦ ◦ sin( u ) [−π,−δ] µ ¶ 2 + h(x◦, u) := f(x◦ − u) − f(x◦ ) χ[−π,−δ](u).

39 Chapter 4. The Gibbs Phenomenon in Fourier Series

1 u Since f ∈ L (−π, π) and sin( 2 ) is bounded away from zero in [−π, −δ] both g and h are in L1(−π, π). Also, notice that the integrals A and B are the Fourier coefficients for g and h. Therefore, by Lemma 4.4, A → 0 and B → 0 as n → ∞. Thus, J1 → 0 as n → ∞. A similar argument shows that J4 → 0 as n → ∞. As for the other two integrals, we argue as follows ¯ Z µ ¶ ¯ ¯ 0 + ¡ ¢ ¯ ¯ f(x◦ − u) − f(x◦ ) u 1 ¯ |J2| = ¯ u sin (n + )u du¯ −δ u sin( ) 2 Z ¯µ ¶ 2 ¯ 0 ¯ + ¡ ¢¯ ¯ f(x◦ − u) − f(x◦ ) u 1 ¯ ≤ ¯ u sin (n + )u ¯du. −δ u sin( 2 ) 2 By the Lipschitz condition on f(x) we have

α |f(x) − f(x◦)| ≤ C1|x − x◦| , if |x − x◦| < δ.

Therefore,

α α |f(x◦ − u) − f(x◦)| ≤ C1|x◦ − u − x◦| = C1|u| . ¯ ¡ ¢¯ ¯ 1 ¯ Also, sin (n + 2 )u ≤ 1, and u lim 2 = 1, u→0 u sin( 2 ) So if |u| < δ then ¯ ¯ ¯ ¯ ¯ u ¯ ¯ u ¯ ≤ C3 sin( 2 ) Therefore,

Z 0 Z 0 α−1 α−1 |J2| ≤ C3 C1|u| du ≤ C |u| du. −δ −δ Similarly, ¯ Z µ ¶ ¯ ¯ δ − ¡ ¢ ¯ ¯ f(x◦ − u) − f(x◦ ) u 1 ¯ |J3| = ¯ u sin (n + )u du¯ 0 u sin( 2 ) 2 Z δ Z 0 α−1 α−1 ≤ C3 C2|u| du ≤ C |u| du, 0 −δ

40 Chapter 4. The Gibbs Phenomenon in Fourier Series

where C = max{C3C1,C3C2}. Thus,

Z 0 Z δ α−1 α−1 |J2| + |J3| ≤ C |u| du + C |u| du −δ 0 Z Z C 0 C δ ≤ |u|α−1du + |u|α−1du 2 −δ 2 0 Z C δ = |u|α−1du 2 −δ Z C δ = 2 |u|α−1du 2 0 Z δ = C |u|α−1du 0 ¯ α ¯δ |u| ¯ = C ¯ α 0 C = δα. α

C α ε ε Now, given ε > 0, we choose δ and N such that α δ < 2 and |J1| + |J4| < 2 for all ¯ n ≥ N. Then, these choices imply that |Snf(x◦) − f(x◦)| < ε.

For the case x◦ = ±π, a translation by π and a similar argument shows that Sn(x − π) → f¯(x − π) at x = 0. + − The case of the two sided Lipschitz condition is proved by replacing f(x◦ ) and f(x◦ ) by f(x◦) in the integrals J1 and J4.

Lemma 4.5 and the following theorem will give us uniform convergence.

Theorem 4.7. Suppose that f satisfies a uniform Lipschitz condition of order

0 < α ≤ 1 in (a, b). Then Snf → f uniformly in any interior subinterval [c, d] ⊂ (a, b).

Proof. Let δ < min(c − a, b − d). By the proof of Theorem 4.6 we have

C |J | + |J | ≤ δα. 2 3 α

41 Chapter 4. The Gibbs Phenomenon in Fourier Series

Now, we write J1 as Z −δ 1 1 J1 = f(x◦ − u) sin((n + )u)du −π sin(u/2) 2 Z −δ + 1 1 − f(x◦ ) sin((n + )u)du. −π sin(u/2) 2 1 Since ∈ C1[−π, −δ] we can apply Lemma 4.5 with α = −π, β = −δ, and sin(u/2) 1 λ = n + 2 to the first integral to obtain Z 1 −δ 1 f(x◦ − u) sin(λu)du → 0 uniformly as λ → ∞. π −π sin(u/2)

The second integral also converges to 0 uniformly. Thus, J1 → 0 uniformly as n → ∞. A similar argument works for J4 and the required result follows.

Now, using the above convergence results, to show that a ”general” function g exhibits the Gibbs phenomenon at 0 it is enough to show the existence of the phenomenon for the function defined in (4.1.1), which we have already done. To elaborate, suppose g(x) is piecewise smooth with a jump at 0 such that

g(0+) = lim g(x) 6= ±∞ and g(0−) = lim g(x) 6= ±∞. x→0+ x→0−

Then to remove the discontinuity at 0 we define a new function h(x) as follows µ ¶ g(0+) − g(0−) h(x) = g(x) − f(x), π where f is the ramp function defined by (4.1.1). Now, as x → 0+ we obtain µ ¶ g(0+) − g(0−) lim h(x) = lim g(x) − lim f(x) x→0+ x→0+ π x→0+ µ ¶ g(0+) − g(0−) π = g(x+) − ◦ π 2 g(0+) + g(0−) = , 2

42 Chapter 4. The Gibbs Phenomenon in Fourier Series and as x → 0− we obtain µ ¶ g(0+) − g(0−) lim h(x) = lim g(x) − lim f(x) x→0− x→0− π x→0− µ ¶ g(0+) − g(0−) ¡ π ¢ = g(0−) − − π 2 g(0+) + g(0−) = . 2 Now, define h(0) as g(0+) + g(0−) h(0) := . 2 Then h(x) is continuous at 0 and it satisfies the hypothesis of Theorem 4.6. Therefore,

Snh converges at 0. In fact, it converges uniformly in a neighborhood of 0 thus, if either of the functions f or g shows the Gibbs phenomenon at 0 then so does the other. Since we already showed that f exhibits the Gibbs phenomenon near 0, so does g.

4.3 Jump Discontinuity at a General Point

Suppose that the function g has a jump discontinuity at x = x◦ and is piecewise smooth everywhere else. Define h(x) by

 µ + − ¶  g(x◦ ) − g(x◦ )  g(x) − f(x − x◦) if x 6= x◦, h(x) = π  g(x+) + g(x−)  ◦ ◦ if x = x . 2 ◦ Then,

+ − g(x◦ ) + g(x◦ ) lim h(x) = lim h(x) = h(x◦) = . + − x→x◦ x→x◦ 2

Thus, h is continuous at x = x◦ and therefore by Theorem 4.6, Snh converges uniformly in a neighborhood of x◦. Hence the function g(x) displays the Gibbs phenomenon at x = x◦ since f(x − x◦) does so.

43 Chapter 4. The Gibbs Phenomenon in Fourier Series

If g(x) has a finite number of jump discontinuities at x1, x2, . . . , xj and is piecewise smooth elsewhere we define h(x) by  1 P ¡ ¢  g(x) − g(x+) − g(x−) f(x − x ) if x 6= x , π j j j j j h(x) = + −  g(xj ) + g(xj )  if x = x . 2 j Then by the same argument as above g(x) exhibits the Gibbs phenomenon near x1, x2, . . . , xj.

4.4 Removing the Gibbs Effect Using Positive Ker- nels

Recall a family of positive kernels introduced in Definition 2.24. The following theorem shows that convolution with positive kernels eliminates the Gibbs effect [19], [22].

∞ Theorem 4.8. Let {Kn}n=1 be a a family of positive kernels and m ≤ f(x) ≤ M b − a for x ∈ (a, b). Then for any ε > 0 and 0 < δ < there is an N such that 2 σnf(x) = (Kn ∗ f)(x) satisfies m − ε ≤ σnf(x) ≤ M + ε for x ∈ (a + δ, b − δ) and n > N.

Proof. Using the definition of convolutions we have

σnf(x) = (Kn ∗ f)(x) Z 1 π = f(x − θ)Kn(θ)dθ 2π −π Z Z 1 δ 1 = f(x − θ)Kn(θ)dθ + f(x − θ)Kn(θ)dθ 2π −δ 2π δ≤|θ|≤π

= G1 + G2.

44 Chapter 4. The Gibbs Phenomenon in Fourier Series

Now, we show that G2 converges to 0. ¯ Z ¯ ¯ 1 ¯ |G | = ¯ f(x − θ)K (θ)dθ¯ 2 ¯2π n ¯ Z δ≤|θ|≤π 1 ≤ |f(x − θ)K (θ)|dθ 2π n δ≤|θ|≤π Z 1 ≤ max |Kn(θ)| |f(x − θ)|dθ. 2π δ≤|θ|≤π δ≤|θ|≤π 0 Since Kn is a positive kernel by property (iii ) of positive kernels, expression (2.8.5), we have

max |Kn(θ)| → 0 as n → ∞. δ≤|θ|≤π

Therefore, for fixed δ > 0 given ε > 0 there exists N1 > 0 such that |G1| < ε for n > N1. Now, x ∈ (a + δ, b − δ) implies that x − θ ∈ (a, b) for |θ| < δ. Therefore, f(x − θ) ≤ M for |θ| < δ. Thus, G2 becomes Z 1 δ G2 = f(x − θ)Kn(θ)dθ 2π −δ Z 1 δ ≤ M K (θ)dθ 2π n Z−δ 1 π ≤ M Kn(θ)dθ 2π −π ≤ M by (2.8.1), property (i) of good kernels.

So |G1 + G2| ≤ |G1| + |G2| ≤ M + ε. Hence, σnf(x) ≤ M + ε. On the other hand, Z Z 1 δ 1 G1 + G2 = f(x − θ)Kn(θ)dθ + f(x − θ)Kn(θ)dθ 2π −δ 2π δ≤|θ|≤π Z 1 δ ≥ m Kn(θ)dθ − max |Kn(θ)| · ||f(x − θ)||1 2π −δ δ≤|θ|≤π

≥ m − ε for n ≥ N2.

Let n = max{N1,N2}. Then for n ≥ N we have

m − ε ≤ σnf(x) ≤ M + ε

45 Chapter 4. The Gibbs Phenomenon in Fourier Series

Now, it is clear why the Gibbs phenomenon is absent in Figure 2.9.1 where the Ces`aromeans are used to approximate the function defined by (2.9.1).

46 Chapter 5

The Gibbs Phenomenon in Wavelets

In this chapter we give a brief introduction to wavelets and multiresolution anal- ysis [3]. We give a condition under which the wavelet expansion of a function shows the Gibbs phenomenon near a jump discontinuity [8], [17]. This condition involves what is called a reproducing kernel. Next, we show that the Haar wavelets do not exhibit the Gibbs phenomenon whereas the Shannon wavelets do [7]. We revisit the concept of a family of good kernels reincarnated as what are called positive delta sequences and prove that wavelet approximations of functions using kernels that are positive delta sequences eliminates the Gibbs phenomenon [19]. We also revisit that the case of the Haar wavelets and show that the corresponding reproducing kernel is a positive delta sequence hence the absence of the the Gibbs phenomenon in the expansion of a function with a jump discontinuity [20].

47 Chapter 5. The Gibbs Phenomenon in Wavelets

5.1 Wavelets and Multiresolution Analysis

2 j/2 j Definition 5.1. Let ψ ∈ L (R). Define the functions ψj,k by ψj,k(x) = 2 ψ(2 x−k). Then by a wavelet system we mean a complete orthonormal set in L2(R) of the form 2 {ψj,k}j,k∈Z. In other words, {ψj,k}j,k∈Z is a an orthonormal basis for L (R). The functions ψj,k are called wavelets and the function ψ is called the mother wavelet.

2 Remark 5.2. If {ψj,k}j,k∈Z is a wavelet system then every function f in L (R) can be written as X X f = hf, ψj,kiψj,k. j∈Z k∈Z

Definition 5.3. A multiresolution analysis, or MRA for short, is a sequence {Vj}j∈Z of closed subspaces of L2(R) such that

(i) Vj ⊂ Vj+1 for all j ∈ Z, \ (ii) Vj = {0}, j∈Z [ 2 (iii) Vj is dense in L (R), j∈Z

j (iv) For each j ∈ Z, f(x) ∈ V0 if and only if f(2 x) ∈ Vj,

(v) For each k ∈ Z, f(x) ∈ V0 if and only if f(x − k) ∈ V0,

(vi) There exists a function ϕ ∈ V0, called a scaling function, or father

wavelet, such that {ϕ(x − k)}k∈Z is an orthonormal basis for V0.

Remark 5.4. For each j ∈ Z, {ϕj,k}k∈Z is an orthonormal basis for Vj, where ϕj,k is defined by

j/2 j ϕj,k(x) = 2 ϕ(2 x − k).

However, the functions ϕj,k are not necessarily orthogonal at different levels j.

48 Chapter 5. The Gibbs Phenomenon in Wavelets

As a consequence of Remark 5.4, for f ∈ L2(R) the orthogonal projection of f onto Vj is X Pjf = hf, ϕj,kiϕj,k. (5.1.1) k∈Z

Moreover, the function Pjf is the best approximation to f in the subspace Vj. The approximations Pjf improve as j increases. In fact,

||Pjf − f||L2(R) → 0 as j → ∞.

We call the subspaces {Vj}j∈Z approximation subspaces.

Remark 5.5. Since ϕ ∈ V0 ⊆ V1, by Remark 5.4 we have X X √ ϕ(x) = ukϕ1,k(x) = uk 2ϕ(2x − k), (5.1.2) k∈Z k∈Z

2 where the sequence {uk}k∈Z is in l (Z). This sequence is called the scaling sequence and equation (5.1.2) is called the scaling equation. A property of the scaling sequence 2 is that its even integer translates, {τ2ku}k∈Z, form an orthonormal set in l (Z).

The following theorem of St´ephaneMallat shows how to obtain a wavelet system once we have a MRA. You can find a proof of this theorem in [3] page 391.

Theorem 5.6. Let {Vj}j∈Z be a MRA with scaling function ϕ and scaling sequence 1 1 k−1 {uk}k∈Z ∈ l (Z). Define v ∈ l (Z) by vk = (−1) u1−k for all k ∈ Z. Also, define ψ by the following equation X X √ ψ(x) = vkϕ1,k(x) = vk 2ϕ(2x − k). k∈Z k∈Z

2 Then {ψj,k}j,k∈Z is a wavelet system in L (R).

Remark 5.7. If we define the space W0 by ½ X ¾ 2 W0 = zkψ0,k : {zk}k∈Z ∈ l (Z) k∈Z

49 Chapter 5. The Gibbs Phenomenon in Wavelets

then V1 = V0 ⊕ W0. In other words, W0 is the orthogonal complement of V0 in V1.

This means that V0 ⊆ V1, W0 ⊆ V1, V0 ⊥ W0, and for all f ∈ V1 there exist unique g ∈ V0, h ∈ W0 such that f = g + h. Similarly, we define Wj by

½ X ¾ 2 Wj = zkψj,k : {zk}k∈Z ∈ l (Z) . k∈Z

Then Vj+1 = Vj ⊕ Wj for all j ∈ Z.

It turns out that the subspaces {Wj}j∈Z have the same dilation property as the j the subspaces {Vj}j∈Z. In other words, f(x) ∈ W0 if and only if f(2 x) ∈ Wj for all j ∈ Z. Moreover, {ψ(x − k)}k∈Z is an orthomormal basis for W0, and in general, the functions {ψj,k}k∈Z form an orthonormal basis for Wj. This implies that the 2 orthogonal projection Qj of f ∈ L (R) onto the space Wj can be obtained by

X Qjf = hf, ψj,kiψj,k. k∈Z

5.2 Construction of a Multiresolution Analysis

Theorem 5.6 of Mallat tells us how to construct the father wavelet ψ using a MRA and to obtain from it a wavelet system. However, it does not give a recipe to construct a MRA in the first place. The following two theorems show this construction. The proofs can be found in [3] pages 420, and 421.

Theorem 5.8. Let m◦ : R → C be a 2π-periodic function satisfying the following

50 Chapter 5. The Gibbs Phenomenon in Wavelets conditions:

2 2 (i) |m◦(ξ)| + |m◦(ξ + π)| = 1 for all ξ ∈ R,

(ii) m◦(0) = 1,

(iii) m◦ satisfies a Lipschitz condition of order δ > 0 at 0, i.e, there exist

δ δ > 0 and C > 0 such that |m◦(ξ) − m◦(0)| ≤ C|ξ| for all ξ ∈ R,

(iv) inf |m◦(ξ)| > 0. |ξ|≤π/2

Let {uk}k∈Z be such that X 1 −ikξ m◦(ξ) = √ uke , 2 k∈Z or alternatively, define uk by √ Z π √ 2 ikξ uk = m◦(ξ)e dξ = 2m ˇ◦(−k), 2π −π

1 Q∞ j and suppose that {uk}k∈Z ∈ l (Z). Then the infinite product j=1 m◦(ξ/2 ) converges uniformly on bounded sets to a function ϕˆ ∈ L2(R). Let ϕ = (ϕ ˆ)ˇ. Then ϕ satisfies the scaling equation X X √ ϕ(x) = ukϕ1,k(x) = uk 2ϕ(2x − k), k∈Z k∈Z

2 and {ϕ0,k}k∈Z is an orthonormal set in L (R). For j ∈ Z define the spaces Vj by ½ X ¾ 2 Vj = zkϕj,k : {zk}k∈Z ∈ l (Z) . k∈Z

Then {Vj}j∈Z is a MRA with scaling function ϕ and scaling sequence {uj}j∈Z.

Remark 5.9. Conditions (i), (ii), and (iii) ensure the convergence of the infinite product, and that ϕ satisfies the scaling equation. Condition (iv) is needed to show the orthonormality of {ϕ0,k}k∈Z.

The next theorem details the construction in terms of the scaling sequence {uj}j∈Z.

51 Chapter 5. The Gibbs Phenomenon in Wavelets

Theorem 5.10. Let {uj}j∈Z be a sequence satisfying the following condtions X ε (i) |k| |uk| < ∞ for some ε > 0, k∈Z X √ (ii) uk = 2, k∈Z 2 (iii) {τ2ku}k∈Z is an orthonormal set in l (Z), X 1 −ikξ (iv) inf |m◦(ξ)| > 0, for m◦(ξ) = √ uke . |ξ|≤π/2 2 k∈Z Q∞ j Then the infinite product j=1 m◦(ξ/2 ) converges uniformly on bounded subsets of 2 ˇ R to a function ϕˆ ∈ L (R). Let ϕ = (ϕ ˆ). For every j ∈ Z define Vj by ½ X ¾ 2 Vj = zkϕj,k : {zk}k∈Z ∈ l (Z) . k∈Z

Then {Vj}j∈Z is a MRA with scaling function ϕ and scaling sequence {uj}j∈Z.

So once we have a sequence {uj}j∈Z satisfying the conditions of Theorem 5.10 then by Theorem 5.6 of Mallat we are guaranteed to have a wavelet system.

5.3 Existence of the Gibbs Phenomenon for some Wavelets

In this section, we introduce the Schwartz space S(R) and give conditions under which wavelet expansions of functions with a jump discontinuity show the Gibbs phenomenon near the jump if the scaling function ϕ satisfies a certain decay condition [8], [17].

Definition 5.11. The Schwartz space S(R), or the space of rapidly decreasing C∞ functions, is defined by ½ ¾ ∞ l −k S(R) = f ∈ C : |f (x)| ≤ Cl,k(1 + |x|) for all integers k, l ≥ 0 .

52 Chapter 5. The Gibbs Phenomenon in Wavelets

r Definition 5.12. We define the space of rapidly decreasing C functions Sr(R) by

½ ¾ r l −k Sr(R) = f ∈ C : |f (x)| ≤ Cl,k(1 + |x|) for integers 0 ≤ l ≤ r, k ≥ 0 .

We define the Gibbs phenomenon for the wavelet approximation to the function f : R → R, f ∈ L2(R) which is bounded and has a jump discontinuity at the origin similar to Definition 3.1 as follows:

Definition 5.13. Suppose a function f(x) has a jump discontinuity at x = 0, i.e, + − + − f(0 ) = limx→0+ f(x) < ∞, f(0 ) = limx→0− f(x) < ∞, and f(0 ) 6= f(0 ). We say that the wavelet expansion of f exhibits the Gibbs phenomenon at the right hand side + of x = 0 if there is sequence xj > 0 converging to 0 such that limj→∞ Pjf(xj) > f(0 ) + − + + − if f(0 ) > f(0 ), or limj→∞ Pjf(xj) < f(0 ) if f(0 ) < f(0 ). Similarly, we say that the wavelet expansion of f exhibits the Gibbs phenomenon at the left hand side − of x = 0 if there is sequence xj < 0 converging to 0 such that limj→∞ Pjf(xj) < f(0 ) + − − + − if f(0 ) > f(0 ), or limj→∞ Pjf(xj) > f(0 ) if f(0 ) < f(0 ).

2 Let ϕ ∈ Sr(R) and define the function f ∈ L (R) as

  −1 − x, −1 ≤ x < 0;  f(x) = 1 − x, 0 < x ≤ 1; (5.3.1)    0, otherwise.

53 Chapter 5. The Gibbs Phenomenon in Wavelets

Recall the orthogonal projection of f onto Vj given by (5.1.1). X Pjf(x) = hf, ϕj,kiϕj,k(x) k∈Z µ ¶ X Z ∞ = f(y)ϕj,k(y)dy ϕj,k(x) −∞ k∈Z µ ¶ X Z ∞ = f(y)ϕj,k(y)dy ϕj,k(x) −∞ k∈Z µ ¶ Z ∞ X = f(y) ϕj,k(y)ϕj,k(x) dy −∞ k∈Z Z ∞ = f(y)Kj(x, y)dy, (5.3.2) −∞ P where Kj(x, y) = k∈Z ϕj,k(x)ϕj,k(y). We call Kj(x, y) the reproducing kernel of Vj.

We can express Kj in terms of K0, the reproducing kernel of V0 as follows X Kj(x, y) = ϕj,k(x)ϕj,k(y) k∈Z X = 2j/2ϕ(2jx − k)2j/2ϕ(2jy − k) k∈Z X = 2j ϕ(2jx − k)ϕ(2jy − k) k∈Z X j j j = 2 ϕ0,k(2 x)ϕ0,k(2 y) k∈Z j j j = 2 K0(2 x, 2 y), (5.3.3) P where K0(x, y) = k∈Z ϕ(x − k)ϕ(y − k).

We need the following result given in [17].

Lemma 5.14. Let K0 be defined as above and ϕ ∈ Sr(R). Then

C (i) |K (x, y)| ≤ β , β ∈ N, 0 (1 + |x − y|)β Z ∞ (ii) K0(x, y)dy = 1, for all x ∈ R. −∞

54 Chapter 5. The Gibbs Phenomenon in Wavelets

Proof. (i) Since K0(x, y) = K0(y, x) = K0(x + 1, y + 1) we can assume without loss of generality that |x + y| ≤ 1 and x ≥ y. Now, if k ≥ 0 then ¯ ¯ ¯x + y x − y ¯ |x − k| = ¯ + − k¯ ¯ 2 2 ¯ ¯µ ¶ µ ¶¯ ¯ x − y x + y ¯ = ¯ − k − − ¯ ¯ 2 2 ¯ ¯ ¯ ¯ ¯ ¯x − y ¯ ¯x + y ¯ ≥ ¯ − k¯ − ¯ ¯ ¯ 2 ¯ ¯ 2 ¯ ¯ ¯ ¯x − y ¯ 1 ≥ ¯ − k¯ − , (5.3.4) ¯ 2 ¯ 2 and ¯ ¯ ¯x + y x − y ¯ |y − k| = ¯ − − k¯ ¯ 2 2 ¯ ¯ µ ¶ µ ¶¯ ¯ x − y x + y ¯ = ¯ − + k − − ¯ ¯ 2 2 ¯ ¯ ¯ ¯ ¯ ¯x − y ¯ ¯x + y ¯ ≥ ¯ + k¯ − ¯ ¯ ¯ 2 ¯ ¯ 2 ¯ x − y 1 ≥ + k − 2 2 x − y 1 ≥ − . (5.3.5) 2 2 Now, by (5.3.4) and (5.3.5) we obtain µ¯ ¯ ¶µ ¶ ¯x − y ¯ 1 x − y 1 (1 + |x − k|)(1 + |y − k|) ≥ ¯ − k¯ + + ¯ 2 ¯ 2 2 2 1¡ ¢ = |x − y − 2k| + 1 (x − y + 1). (5.3.6) 4 Similarly, if k < 0 we obtain 1¡ ¢ (1 + |x − k|)(1 + |y − k|) ≥ |x − y + 2k| + 1 (x − y + 1). (5.3.7) 4

The assumption ϕ ∈ Sr(R) implies that there exist a constant K and β > 1 such that K |ϕ(x)| ≤ ¡ ¢ . 1 + |x| β

55 Chapter 5. The Gibbs Phenomenon in Wavelets

This in turn implies that K |ϕ(x − k)| ≤ ¡ ¢ , 1 + |x − k| β K |ϕ(y − k)| ≤ ¡ ¢ . 1 + |y − k| β Thus X |K0(x, y)| ≤ |ϕ(x − k)||ϕ(y − k)| k∈Z X K K ≤ ¡ ¢ ¡ ¢ 1 + |x − k| β 1 + |y − k| β k∈Zµ X 1 1 = K2 ¡ ¢ ¡ ¢ 1 + |x − k| β 1 + |y − k| β k>0 ¶ X 1 1 + ¡ ¢β ¡ ¢β . k<0 1 + |x − k| 1 + |y − k| Now, by inequalities (5.3.6), and (5.3.7) we obtain µ X β 2 4 |K0(x, y)| ≤ K ¡ ¢ 1 + |x − y − 2k| β(x − y + 1)β k>0 ¶ X 4β + ¡ ¢ β β k<0 1 + |x − y + 2k| (x − y + 1) 4βK2 X 1 = 2 ¡ ¢ , t ∈ R. (x − y + 1)β β k>0 1 + |t − 2k|

¡ ¢β 1 1 Now, 1 + |t − 2k| ≥ |t − 2k|β. So ¡ ¢ ≤ . For fixed t ∈ R, we 1 + |t − 2k| β |t − 2k|β 1 1 can find N ∈ N such that |t − 2k| ≥ k for k ≥ N. Therefore, ≤ . Now, |t − 2k|β kβ by the comparison test we have X 1 X 1 X 1 ¡ ¢ ≤ ≤ < ∞ since β > 1. β |t − 2k|β kβ k>0 1 + |t − 2k| k>0 k>0 Thus,

Cβ K0(x, y) ≤ ¡ ¢ . 1 + |x − y| β

56 Chapter 5. The Gibbs Phenomenon in Wavelets

m (ii) Let d = , m ∈ Z, n ∈ N, be a dyadic number, and j ∈ Z such that j ≥ n. We 2n −j/2 −j know that V−j = span{ϕ−j,k}k∈Z. This implies that ϕ−j,0(x) = 2 ϕ(2 x) ∈ V−j. −j Therefore, h(x) := ϕ(2 x) ∈ V−j. Thus, h(x) ∈ V0 since V−j ⊆ V0. Therefore, −j −j −j j−n ϕ(2 x + d) ∈ V0 since ϕ(2 x + d) = ϕ(2 (x + 2 m)). Now, by the definition of the projection onto V0 we have

Z ∞ 2 P0g(x) = K0(x, y)g(y)dy for all g ∈ L (R). −∞

−j So, in particular, for g(x) = ϕ(2 x + d) ∈ V0, we have g(x) = P0g(x), so

Z ∞ −j −j ϕ(2 x + d) = g(x) = K0(x, y)ϕ(2 y + d)dy. −∞

By part (ii), K0(x, y) is integrable, and ϕ(x) is bounded. Thus by the Lebesgue Dominated Convergence Theorem as j → ∞ we have

Z ∞ Z ∞ ϕ(d) = K0(x, y)ϕ(d)dy = ϕ(d) K0(x, y). −∞ −∞ Now we show that there exists a dyadic number d such that ϕ(d) 6= 0. Assume that ϕ(d) = 0 for all dyadic numbers d. Let a be a real number such that ϕ(a) 6= 0. Because of the density of the dyadic numbers in the reals we can find a sequence of ∞ dyadic numbers {dn}n=1 such that dn → a as n → ∞. Now, by the continuity of ϕ it follows that ϕ(dn) converges to ϕ(a) which is a contradiction. Therefore we have

Z ∞ K0(x, y)dy = 1. −∞

Now, we can prove Kelly’s main theorem given in [8].

Theorem 5.15. Let f be defined as in (5.3.1), and a be a real number. Then

Z ∞ −j lim Pjf(2 a) = 2 K0(a, u)du − 1. j→∞ 0

57 Chapter 5. The Gibbs Phenomenon in Wavelets

Proof. Using (5.3.2), we can write Pjf(x) as

Z ∞ Pjf(x) = f(y)Kj(x, y)dy −∞ Z 0 Z 1 = (−1 − y)Kj(x, y)dy + (1 − y)Kj(x, y)dy. −1 0

Now, with the change of variables t = −y on the first integral, we obtain

Z 0 Z 1 Pjf(x) = − (−1 + t)Kj(x, −t)dt + (1 − t)Kj(x, t)dt 1 0 Z 1 Z 1 = (−1 + t)Kj(x, −t)dt + (1 − t)Kj(x, t)dt 0 0 Z 1 Z 1 = − (1 − t)Kj(x, −t)dt + (1 − t)Kj(x, t)dt 0 0 Z 1 = (1 − t)[Kj(x, t) − Kj(x, −t)]dt 0 Z 1 j j j j j = 2 (1 − t)[K0(2 x, 2 t) − K0(2 x, −2 t)]dt, by (5.3.3). 0

Now, let u = 2jt. Then du = 2jdt and the integral becomes

Z 2j −j j j Pjf(x) = (1 − 2 u)[K0(2 x, u) − K0(2 x, −u)]du 0 Z ∞ −j j j = χ[0,2j ](u)(1 − 2 u)[K0(2 x, u) − K0(2 x, −u)]du. 0

Letting x = 2−ja, where a ∈ R, we obtain

Z ∞ −j −j Pjf(2 a) = χ[0,2j ](u)(1 − 2 u)[K0(a, u) − K0(a, −u)]du. 0

−j Now, let hj(u) = χ[0,2j ](u)(1 − 2 u)[K0(a, u) − K0(a, −u)], and g(u) = |K0(a, u)| +

|K0(a, −u)|. The functions hj(u) are bounded by g(u), i.e. |hj(u)| ≤ g(u), and 1 g ∈ L (R) since ϕ ∈ Sr(R). Thus, by the Lebesgue Dominated Convergence Theorem

58 Chapter 5. The Gibbs Phenomenon in Wavelets we have

Z ∞ −j lim Pjf(2 a) = lim hj(u)du j→∞ j→∞ 0 Z ∞ = lim hj(u)du 0 j→∞ Z ∞ −j = lim χ[0,2j ](u)(1 − 2 u)[K0(a, u) − K0(a, −u)]du 0 j→∞ Z ∞

= χ[0,∞](u)[K0(a, u) − K0(a, −u)]du 0 Z ∞ Z ∞ = K0(a, u)du − K0(a, −u)du 0 0

The change variable t = −u in the second integral will yield

Z ∞ Z −∞ −j lim Pjf(2 a) = K0(a, u)du + K0(a, t)dt j→∞ 0 0 Z ∞ Z 0 = K0(a, u)du − K0(a, t)dt 0 −∞ Z ∞ Z 0 = K0(a, u)du − K0(a, u)du (5.3.8) 0 −∞ Z ∞ Z ∞ Z ∞ = K0(a, u)du + K0(a, u)du − K0(a, u)du 0 0 −∞ Z ∞ Z ∞ = 2 K0(a, u)du − K0(a, u)du 0 −∞ Z ∞ = 2 K0(a, u)du − 1, by Lemma 5.14. (5.3.9) 0

Now, the following corollary gives a criterion for the existence of the Gibbs phe- nomenon.

Corollary 5.16. Let f be defined as in (5.3.1), and let ϕ ∈ Sr(R). Then the wavelet expansion of f exhibits the Gibbs phenomenon near x = 0 if there exists a real number

59 Chapter 5. The Gibbs Phenomenon in Wavelets a > 0 such that

Z ∞ K0(a, u)du > 1, 0 and/or if there exists a real number a < 0 such that

Z ∞ K0(a, u)du < 0. 0

−j Proof. Let xj = 2 a, a ∈ R. Then

lim f(xj) = 1 if a > 0 j→∞

lim f(xj) = −1 if a < 0. j→∞

Thus by Theorem 5.15,

Z ∞ lim Pjf(xj) > lim f(xj) if K0(a, u)du > 1 for some a > 0, or j→∞ j→∞ 0 Z ∞ lim Pjf(xj) < lim f(xj) if K0(a, u)du < 0 for some a < 0. j→∞ j→∞ 0

The next theorem of Shim and Volkmer relaxes the condition that the scaling function ϕ be in Sr(R). To prove it we need the following remarks and lemmas.

Remark 5.17. Let the function h(x) be defined by

  1, if x ≥ 0; h(x) =  −1, if x < 0.

Then by (5.3.8) we have

Z ∞ −j lim Pjf(2 x) = K0(x, y)h(y)dy. j→∞ −∞

60 Chapter 5. The Gibbs Phenomenon in Wavelets

This limit is sometimes called the Gibbs function. Let us also define the function r(x) as

Z ∞ r(x) = h(x) − K0(x, y)h(y)dy. (5.3.10) −∞ Using (5.3.9) we can write the Gibbs function as

Z ∞ Z ∞ K0(x, y)h(y)dy = 2 K0(x, y)dy − 1. −∞ 0 Thus we can rewrite r(x) as

µ Z ∞ ¶ r(x) = h(x) − 2 K0(a, u)du − 1 (5.3.11)  0  R ∞ 2 − 2 0 K0(x, y)dy x ≥ 0; = R  ∞ −1 − 2 0 K0(x, y)dy + 1 x < 0.  µ ¶ R R  ∞ 0 2 − 2 K0(x, y)dy − K0(x, y)dy x ≥ 0; = −∞ −∞  R ∞ −2 K0(x, y)dy x < 0.  0  R 0 2 K0(x, y)dy x ≥ 0; = −∞R (5.3.12)  ∞ −2 0 K0(x, y)dy x < 0.

R ∞ Notice that if ϕ(x) is continuous then r(x) − h(x) = −2 0 K0(a, u)du + 1 is also continuous. In the next lemma we will make use of the representation of r(x) given in (5.3.12).

Lemma 5.18. Suppose that ϕ(x) is a continuous scaling function satisfying C |ϕ(x)| ≤ for x ∈ R, C > 0, and β > 1. (5.3.13) (1 + |x|)β Then there exists M > 0 such that M |r(x)| ≤ for all x ∈ R, (1 + |x|)β−1

3 2 where r(x) is the function defined in (5.3.12). Moreover, if β > 2 then r ∈ L (R) and it is orthogonal to V0.

61 Chapter 5. The Gibbs Phenomenon in Wavelets

Proof. By Lemma 5.14 we know that C |K (x, y)| ≤ β . 0 (1 + |x − y|)β Therefore we can bound r(x) as follows: Case 1: x ≥ 0 ¯ Z ¯ ¯ 0 ¯ ¯ ¯ |r(x)| = ¯2 K0(x, y)dy¯ −∞ Z 0 ≤ 2 |K0(x, y)|dy −∞Z 0 1 ≤ 2Cβ β dy −∞ (1 + |x − y|) Using the substitution u = x − y we obtain Z Z 0 1 x 1 dy = − du (1 + |x − y|)β (1 + |u|)β −∞ Z ∞ ∞ 1 = du (1 + |u|)β Zx ∞ 1 = β du since u ≥ 0. x (1 + u) Now, let w = 1 + u to obtain Z Z ∞ 1 ∞ 1 du = dw (1 + u)β (w)β x 1+x ¯ w−β+1 ¯c = lim ¯ c→∞ −β + 1¯ µ 1+x ¶ 1 1 1 = lim − 1 − β c→∞ cβ−1 (1 + x)β−1 1 1 = since x ≥ 0 and β > 1. β − 1 (1 + |x|)β−1 Thus 1 1 |r(x)| ≤ 2C β β − 1 (1 + |x|)β−1 M ≤ for x ≥ 0. (1 + |x|)β−1

62 Chapter 5. The Gibbs Phenomenon in Wavelets

Case 2: x < 0 ¯ Z ¯ ¯ ∞ ¯ ¯ ¯ |r(x)| = ¯ − 2 K0(x, y)dy¯ 0 Z ∞ ≤ 2 |K0(x, y)|dy 0 Z ∞ 1 ≤ 2Cβ β dy 0 (1 + |x − y|)

Let u = x − y. Then we obtain Z Z ∞ 1 −∞ 1 dy = − du (1 + |x − y|)β (1 + |u|)β 0 Z x x 1 = du (1 + |u|)β Z−∞ x 1 = β du since u < 0. −∞ (1 − u)

Now, let w = 1 − u to obtain Z Z x 1 1−x 1 du = − dw (1 − u)β (w)β −∞ Z ∞ ∞ 1 = dw (w)β 1−x ¯ w−β+1 ¯c = lim ¯ c→∞ −β + 1¯ µ 1−x ¶ 1 1 1 = lim − 1 − β c→∞ cβ−1 (1 − x)β−1 1 1 = since x < 0 and β > 1. β − 1 (1 + |x|)β−1

Thus

1 1 |r(x)| ≤ 2C β β − 1 (1 + |x|)β−1 M ≤ for x < 0. (1 + |x|)β−1

Therefore, we have the required bound for all x.

63 Chapter 5. The Gibbs Phenomenon in Wavelets

To show that r ∈ L2(R) we use the bound we just found as follows Z Z µ ¶ ∞ ∞ M 2 |r(x)|2dx ≤ dx (1 + |x|)β−1 −∞ Z−∞ ∞ M 2 = 2(β−1) dx −∞ (1 + |x|) < ∞ since 2(β − 1) > 1 as β > 3/2.

2 Hence r(x) ∈ L (R). Now, suppose that f ∈ V0 is integrable. Multiplying both sides of (5.3.10) by f(x) and integrating with respect to x will yield

Z ∞ Z ∞ Z ∞ µ Z ∞ ¶ r(x)f(x)dx = f(x)h(x)dx − K0(x, y)f(x)h(y)dy dx. −∞ −∞ −∞ −∞

Since f ∈ V0 we have

Z ∞ f(y) = Pjf(y) = K0(x, y)f(x)dx. (5.3.14) −∞ Using Fubini’s theorem and (5.3.14) we obtain

Z ∞ Z ∞ Z ∞ µ Z ∞ ¶ r(x)f(x)dx = f(x)h(x)dx − K0(x, y)f(x)dx h(y)dy −∞ −∞ −∞ −∞ Z ∞ Z ∞ = f(x)h(x)dx − f(y)h(y)dy −∞ −∞ = 0.

Hence r(x) is orthogonal to V0.

Lemma 5.19. Suppose that ϕ(x) is a continuous and bounded scaling function such that it is differentiable at a dyadic number d with ϕ0(d) 6= 0. Let g ∈ L2(R) be R 1 ∞ orthogonal to V0, and xg(x) be in L (R). Then −∞ xg(x)dx = 0.

Proof. First we prove that g ∈ L1(R). Z Z Z |g(x)|dx = |g(x)|dx + |g(x)|dx R |x|<1 |x|>1

= I1 + I2.

64 Chapter 5. The Gibbs Phenomenon in Wavelets

Now, we show that both I1 and I2 are bounded. Z

I1 = |g(x)|χ|x|<1(x)dx R

≤ ||g(x)||2||χ|x|<1(x)||2 by H¨older’sinequality < ∞.

As for I2, we rewrite the integral Z −1 I2 = |x ||xg(x)|dx |x|>1 Z 1 ≤ max |xg(x)|dx |x|>1 |x| Z |x|>1 ≤ 1 · |xg(x)|dx |x|>1 < ∞ by the assumption that xg(x) ∈ L1(R).

R m So we conclude that |g(x)|dx < ∞. Now, let c = , m ∈ Z, n ∈ N, be a dyadic R 2n −j number. Then ϕ(2 x + c) ∈ V0 for all j ≥ n as proved in Lemma 5.14. Therefore, by the assumption that g⊥V0 we have

Z ∞ ϕ(2−jx + c)g(x)dx = 0 for all j ≥ n. (5.3.15) −∞

Now, as j → ∞ by the Lebesgue Dominated Convergence Theorem we obtain

Z ∞ ϕ(c) g(x)dx = 0. −∞

Since ϕ(c) is continuous there exists a dyadic number c such that ϕ(c) 6= 0. Hence

Z ∞ g(x)dx = 0. −∞

This implies that

Z ∞ ϕ(d) g(x)dx = 0. −∞

65 Chapter 5. The Gibbs Phenomenon in Wavelets

Now, using (5.3.15) with c = d we obtain Z ∞ Z ∞ ϕ(2−jx + d)g(x)dx − ϕ(d)g(x)dx = 0 −∞ Z −∞ ∞ ϕ(2−jx + d) − ϕ(d) xg(x)dx = 0 x Z−∞ ∞ ϕ(2−jx + d) − ϕ(d) −j xg(x)dx = 0. −∞ 2 x Letting j → ∞ and applying the Lebesgue Dominated Convergence Theorem one more time we obtain Z ∞ ϕ0(d)xg(x)dx = 0. −∞ Since by assumption ϕ0(d) 6= 0 we conclude that Z ∞ xg(x)dx = 0. −∞

Remark 5.20. First, notice that if ϕ(x) satisfies the condition (5.3.13) then ϕ ∈

Sr(R) and we can use Corollary 5.16. Now, if there is a > 0 such that r(x) < R ∞ 0 then (5.3.11) implies that 2 0 K0(a, u)du − 1 > 1 which in turn implies that R ∞ 0 K0(a, u)du > 1. Now, by Corollary 5.16 there is a Gibbs phenomenon at the right of x = 0. Similarly, if there is a < 0 such that r(x) > 0 then (5.3.11) implies R ∞ R ∞ that 2 0 K0(a, u)du − 1 < −1. This implies that 0 K0(a, u)du < 0, and again by Corollary 5.16 we conclude that there is a Gibbs phenomenon at the left of x = 0.

Now, we are ready to prove Shim and Volkmer’s theorem [17].

Theorem 5.21. Suppose ϕ is a continuous scaling function such that ϕ0(d) 6= 0 for some dyadic rational number d and that C |ϕ(x)| ≤ for x ∈ R, C > 0, and β > 3. (1 + |x|)β Then the corresponding wavelet expansion shows Gibbs phenomenon on the right or the left at 0.

66 Chapter 5. The Gibbs Phenomenon in Wavelets

Proof. Our assumptions satisfy those of Lemma 5.18. Therefore, there exists an M > 0 such that

M |r(x)| ≤ for all x ∈ R. (1 + |x)β−1

Recall that r(x) is the function defined in (5.3.12). Also, since β > 3 the second 2 part of Lemma 5.18 implies that r(x) ∈ L (R) and it is orthogonal to V0. Now, xr(x) ∈ L1(R) because Z Z xM |xr(x)|dx ≤ β−1 dx R R (1 + |x|) < ∞ since β > 3.

Thus, the assumptions of Lemma 5.19 are satisfied with g(x) = r(x). Therefore, we have

Z ∞ xr(x)dx = 0. (5.3.16) −∞

Now, suppose that r(x) ≥ 0 for all x > 0 and r(x) ≤ 0 for all x < 0. Then (5.3.16) implies that r(x) = 0 almost everywhere. But this is a contradiction since by Remark 5.17, r(x) − h(x) is continuous whereas h(x) has a jump discontinuity at x = 0. Therefore, there exists an x > 0 such that r(x) < 0, or there exists an x < 0 such that r(x) > 0. Now, Remark 5.20 implies the existence of the Gibbs phenomenon at the right or left hand side of the origin.

5.4 A Wavelet with no Gibbs Effect

In [7], [8], and [16], Corollary 5.16 is used to show that the Haar system does not exhibit the Gibbs phenomenon. They proceed as follows:

67 Chapter 5. The Gibbs Phenomenon in Wavelets

The scaling function for the Haar MRA is given by ϕ(x) = χ[0,1)(x). Then Z ∞ Z ∞ X K0(a, u)du = ϕ(a − k)ϕ(u − k)du 0 0 k∈Z Z ∞ X = χ[0,1)(a − k)χ[0,1)(u − k)du 0 k∈Z X Z ∞ = χ[0,1)(a − k) χ[0,1)(u − k)du. k∈Z 0 By the change of variables t = u − k we obtain Z ∞ X Z ∞ K0(a, u)du = χ[0,1)(a − k) χ[0,1)(t)dt 0 k∈Z −k Z ∞

= χ[0,1)(t)dt −[a]  1, a ≥ 0; =  0, a < 0, which implies the absence of the Gibbs phenomenon. However, in proving Corollary

5.16 it was assumed that the scaling function ϕ(x) belongs to the class Sr(R) and in case of the Haar system ϕ(x) = χ[0,1)(x) is clearly not in Sr(R). In Section 5.6, we see how one can get around this problem.

5.5 The Shannon Wavelet and its Gibbs Phenomenon

In this section, we define the Shannon system and show the existence of the Gibbs phenomenon for an approximation using the Shannon wavelet to a function with a jump discontinuity at x = 0, see [7]. We will use the following theorem known as the Shannon Sampling Theorem. For a proof of this theorem see [11] page 44.

Theorem 5.22. Suppose that the support of fˆ is in [−π/T, π/T ]. Then X∞ f(t) = f(kT )hT (t − kT ), k=−∞

68 Chapter 5. The Gibbs Phenomenon in Wavelets where

sin(πt/T ) h (t) = . T πt/T

Definition 5.23. We define the scaling function for the Shannon wavelets on the Fourier side by   1, −π ≤ ξ < π; ϕˆ(ξ) =  0, otherwise.

Then, taking the inverse Fourier transform we obtain Z 1 ∞ ϕ(x) = ϕˆ(ξ)eiξxdξ 2π Z−∞ 1 ∞ = χ (ξ)eiξxdξ 2π [−π,π) Z−∞ 1 π = eiξxdξ 2π −π¯ iξx ¯π 1 e ¯ = ¯ 2π ix −π 1 eiπx − e−iπx = πx 2i sin(πx) = . (5.5.1) πx

Let the function f be defined as follows:   −1, −1 ≤ x < 0;  f(x) = 1, 0 < x ≤ 1; (5.5.2)    0, otherwise.

Recall that by (5.3.2) Pjf, the orthogonal projection of f onto Vj, can be written as

Z ∞ Pjf(x) = f(y)Kj(x, y)dy, −∞

69 Chapter 5. The Gibbs Phenomenon in Wavelets

P where Kj(x, y) = k∈Z ϕj,k(x)ϕj,k(y). If we have a closed form formula for K0(x, y) = P k∈Z ϕ(x − k)ϕ(y − k) then using (5.3.3) we can find an expression for Kj. If we take T = 1 in Theorem 5.22 we obtain X sin(π(t − k)) f(t) = f(k) . (5.5.3) π(t − k) k∈Z sin(πx) By (5.5.1) the scaling function for the Shannon wavelet is given by ϕ(x) = πx and the support ofϕ ˆ is in [−π, π] as defined in (5.5.1). So we can apply (5.5.3) to g(x) = ϕ(x − y) to obtain X sin(π(x − k)) ϕ(x − y) = ϕ(k − y) π(x − k) k∈Z X sin(π(k − y)) sin(π(x − k)) = π(k − y) π(x − k) k∈Z X sin(π(x − k)) sin(π(y − k)) = π(x − k) π(y − k) k∈Z X = ϕ(x − k)ϕ(y − k) k∈Z

= K0(x, y).

Then by (5.3.3) we obtain

j j j Kj(x, y) = 2 K0(2 x, 2 y) sin π(2jx − 2jy) = 2j π(2jx − 2jy) sin(2jπ(x − y)) = . π(x − y)

Therefore we can write Pjf(x) as Z ∞ sin(2jπ(x − y)) P f(x) = f(y)dy j π(x − y) Z−∞ 1 sin(2jπ(x − y)) = f(y)dy π(x − y) −Z1 Z 0 sin(2jπ(x − y)) 1 sin(2jπ(x − y)) = − dy + dy. −1 π(x − y) 0 π(x − y)

70 Chapter 5. The Gibbs Phenomenon in Wavelets

We want to examine the behavior of these projections as j → ∞ near the origin. So we let x = 2−ja where a is a positive real number. Then we have Z Z 0 sin(2jπ(2−ja − y)) 1 sin(2jπ(2−ja − y)) P f(2−ja) = − dy + dy j π(2−ja − y) π(2−ja − y) Z−1 Z 0 0 sin(π(a − 2jy)) 1 sin(π(a − 2jy)) = − −j dy + −j dy. −1 π(2 a − y) 0 π(2 a − y)

Now, let u = a − 2jy. Then y = 2−j(a − u), du = −2jdy, and dy = −2−jdu. With this change of variables we obtain

Z a −j sin(πu) −j Pjf(2 a) = − −j −j (−2 du) a+2j π(2 a − 2 (a − u)) Z a−2j sin(πu) −j + −j −j (−2 du) a π(2 a − 2 (a − u)) Z a Z a−2j sin(πu) −j sin(πu) −j = −j 2 du − −j 2 du a+2j 2 πu a 2 πu Z j Z a+2 sin(πu) a sin(πu) = − du + du a πu a−2j πu Z Z j a sin(πu) a+2 sin(πu) = du − du. a−2j πu a πu

R a sin(πu) Adding and subtracting −a+2j πu du we obtain

Z a Z a+2j −j sin(πu) sin(πu) Pjf(2 a) = du − du j πu πu aZ−2 a Z a sin(πu) a sin(πu) − du + du. −a+2j πu −a+2j πu

Combining the second and the third integral we have

Z a Z a Z a+2j −j sin(πu) sin(πu) sin(πu) Pjf(2 a) = du + du − du a−2j πu −a+2j πu −a+2j πu = A + B + C.

71 Chapter 5. The Gibbs Phenomenon in Wavelets

Now, if a − 2j < −a we can break A into two integrals as follows

Z a Z −a Z a −j sin(πu) sin(πu) sin(πu) Pjf(2 a) = du + du + du −a πu a−2j πu −a+2j πu Z j a+2 sin(πu) − du −a+2j πu

= I1 + I2 + I3 + I4.

sin(πu) R Since is and even function we can write I as − −a sin(πu) du. Therefore, πu 3 a−2j πu I2 + I3 = 0 and we obtain

Z a Z a+2j −j sin(πu) sin(πu) Pjf(2 a) = du − du. −a πu −a+2j πu Similarly, if −a < a − 2j we can break B into two integrals as

Z a Z −a Z a −j sin(πu) sin(πu) sin(πu) Pjf(2 a) = du + du + du a−2j πu −a+2j πu −a πu Z j a+2 sin(πu) − du −a+2j πu

= I1 + I2 + I3 + I4.

With a similar argument as before I1 + I2 = 0 and we obtain again

Z a Z a+2j −j sin(πu) sin(πu) Pjf(2 a) = du − du. −a πu −a+2j πu

R a+2j sin(πu) Now, −a+2j πu du → 0 as j → ∞. Thus we have Z a −j sin(πu) lim Pjf(2 a) = du j→∞ πu −Za a sin(πu) = 2 du since the integrand is an even function. 0 πu The change of variables θ = πu will yield

Z πa −j 2 sin(θ) lim Pjf(2 a) = dθ j→∞ π 0 θ 2 = Si(πa). π

72 Chapter 5. The Gibbs Phenomenon in Wavelets

If we take a = 1 then

Z π −j 2 sin(θ) lim Pjf(2 ) = dθ j→∞ π 0 θ 2 = Si(π) π 2 π = (1.17898) π 2 = 1.17898 > lim f(x) x→0+

Figures 5.5.1, and 5.5.2 show the overshoot and the undershoot near 0.

1.5 P f(x) 5 f(x)

1

0.5

0

−0.5

−1

−1.5 −0.2 −0.15 −0.1 −0.05 0 0.05 0.1 0.15 0.2 x

Figure 5.5.1: Graph of f(x) and its Shannon approximation for j=5

73 Chapter 5. The Gibbs Phenomenon in Wavelets

1.5 P f(x) 7 f(x)

1

0.5

0

−0.5

−1

−1.5 −0.2 −0.15 −0.1 −0.05 0 0.05 0.1 0.15 0.2 x

Figure 5.5.2: Graph of f(x) and its Shannon approximation for j=7

5.6 Quasi-positive and Positive Delta Sequences

In this section we introduce Quasi-positive and positive delta sequences and show that similar to the good kernels of Chapter 3 approximations using positive delta sequences do not show the Gibbs phenomenon [20], [19].

1 Definition 5.24. We call the sequence {δm(x, y)} of functions in L (R) with param- eter x ∈ R a quasi-positive delta sequence if the following conditions are satisfied: (i) There exists a C > 0 such that

Z ∞ |δm(x, y)|dy ≤ C, for all x ∈ R, m ∈ N. (5.6.1) −∞

74 Chapter 5. The Gibbs Phenomenon in Wavelets

(ii) There exists a c > 0 such that Z x+c δm(x, y)dy → 1 as m → ∞ (5.6.2) x−c uniformly on compact sets of R. (iii) For each γ > 0, Z

|δm(x, y)|dy → 0 as m → ∞. (5.6.3) |x−y|≥γ

Definition 5.25. Let {δm(x, y)} be as in Definition 5.24. If we replace condition (i) with (i0) For all x, y ∈ R

δm(x, y) ≥ 0, (5.6.4) then {δm(x, y)} is called a positive delta sequence.

Remark 5.26. Every positive delta sequence is also a quasi-positive delta sequence since conditions (i0) and (iii) imply condition (i).

Theorem 5.27. Suppose {δm(x, y)} is a positive delta sequence. Let f be a piecewise continuous function with compact support on the real line. Let I = [a, b] be a finite interval with 0 < µ < b − a/2, and let ε > 0. Then Z

m − ε ≤ fm(x) = δm(x, y)f(y)dy ≤ M + ε for x ∈ [a + µ, b − µ], where m = infx∈I f, M = supx∈I f.

Proof. First, notice that properties (i) and (ii) in Definition 5.24 imply that Z

δm(x, y)dy → 1 uniformly for x ∈ I. (5.6.5) R Now, suppose that suppf(x) ⊆ I. Then we have Z Z

inf f(t) δm(x, y)dy ≤ δm(x, y)f(y)dy, t∈I Z R R Z

δm(x, y)f(y)dy ≤ sup f(t) δm(x, y)dy. R t∈I R

75 Chapter 5. The Gibbs Phenomenon in Wavelets

Therefore, using (5.6.5) we obtain

Z

inf f(t) δm(x, y)dy → m, t∈I Z R

sup f(t) δm(x, y)dy → M, t∈I R

and the required result follows. Now, suppose that suppf(x) * I. Let fI (x) = f(x)χI (x). Thus

Z Z Z

δm(x, y)f(y)dy = δm(x, y)(f(y) − fI (y))dy + δm(x, y)fI (y)dy R R R = A + B.

Now, we can write A as

Z Z

A = δm(x, y)f(y)dy − δm(x, y)fI (y)dy ZR ZR

= δm(x, y)f(y)dy − δm(x, y)f(y)χI (y)dy R R Z Z b = δm(x, y)f(y)dy − δm(x, y)f(y)dy R a Z a Z ∞ = δm(x, y)f(y)dy + δm(x, y)f(y)dy. (5.6.6) −∞ b

Now, for x ∈ [a + µ, b − µ] we have b − x ≥ µ and x − a ≥ µ. Thus, by property (ii) of positive delta sequences (5.6.6) converges to zero uniformly in I. Now, we choose N ∈ N so that (5.6.6) is less then ε/2 and that

¯Z ¯ ¯ ¯ ¯ ¯ ε ¯ δm(x, y)dy − 1¯ < . I 2M

76 Chapter 5. The Gibbs Phenomenon in Wavelets

Then we obtain Z

A + B ≤ ε/2 + δm(x, y)fI (y)dy ZR

= ε/2 + δm(x, y)f(y)χI (y)dy R Z b = ε/2 + δm(x, y)f(y)dy a Z b ≤ ε/2 + sup f(t) δm(x, y)dy t∈[a,b] a ε ≤ ε/2 + M( + 1) 2M = M + ε.

The other inequality can be proved in a similar way.

5.7 Revisiting the Haar MRA

To prove the absence of the Gibbs phenomenon in the Haar wavelet we can show that Kj(x, y), the reproducing kernel associated to the Haar scaling function, is a positive delta sequence [16], and then apply Theorem 5.27. The Haar scaling function is given by ϕ(x) = χ[0,1)(x). Then K0(x, y), the reproducing kernel of V0 is X K0(x, y) = ϕ(x − k)ϕ(y − k) k∈Z = ϕ(x − [y])

= K0(y, x) = ϕ(y − [x]), where [x] is the largest integer less than or equal to x. Then by (5.3.3) we have

j j j Kj(x, y) = 2 K0(2 x, 2 y) = 2jϕ(2jy − [2jx]).

77 Chapter 5. The Gibbs Phenomenon in Wavelets

It is clear that Kj(x, y) ≥ 0. Now, we need to show (5.6.2) and (5.6.3). For property (ii), observe that

Z ∞ Z ∞ j j j Kj(x, y)dy = 2 ϕ(2 y − [2 x])dy. −∞ −∞

By the change of variables u = 2jy − [2jx] we obtain

Z ∞ Z ∞ Kj(x, y)dy = ϕ(u)du −∞ −∞ Z 1 = ϕ(u)du 0 = 1.

As for property (iii), for γ > 0 we have Z Z j j |Kj(x, y)| = ϕ(2 y − [2 x])dy. |x−y|≥γ |x−y|≥γ

Now, by the change of variable u = 2jy we obtain Z Z ϕ(2jy − [2jx])dy = ϕ(u − [2jx])du j |x−y|≥γ Z|u/2 −x|≥γ = ϕ(u − [2jx])du. |u−2j x|≥2j γ

This last integral converges to zero as j → ∞ since for 2j sufficiently large we can make 2jγ > 1 which results in ϕ(u − [2jx]) = 0.

Therefore, Kj(x, y) is a positive delta sequence. Hence, by Theorem 5.27 the Haar system does not exhibit the Gibbs phenomenon.

78 Chapter 6

Conclusion

In this thesis, we showed the existence of the Gibbs phenomenon for two simple functions both having a jump discontinuity at zero. We also calculated the size of the overshoot near the jump for both functions using two different approaches. Using a convergence result and one of these functions, we showed that any piecewise smooth function with a jump discontinuity at zero exhibits the Gibbs phenomenon. After that, we did the generalization to a jump discontinuity at a general point x = x◦, and to a finite number of jump discontinuities. In other words, we showed that any piecewise smooth function with a finite number of jump discontinuities exhibits the Gibbs phenomenon at each of those discontinuities. Next, we showed that if in approximating a discontinuous function f, where the discontinuity is a jump one, we use a summation method which is the convolution of f with a positive kernel then we will not see the Gibbs phenomenon. Then, we gave a criterion for the existence of the Gibbs phenomenon in wavelet approximations to a function with a jump discontinuity at 0. This criterion can be used for those scaling functions that are Cr and rapidly decreasing and involves the reproducing kernel Kj(x, y). After that, we showed the existence of the Gibbs phenomenon near zero for a certain class of wavelets. More precisely, we showed that if the scaling function ϕ(x) corresponding to our wavelet

79 Chapter 6. Conclusion system is continuous, has a non-vanishing derivative at a dyadic number, and

C |ϕ(x)| ≤ for x ∈ R, C > 0, and β > 3, (1 + |x|)β then the corresponding wavelet approximation to f shows the Gibbs phenomenon on the right and/or left of 0. Next, we examined the Shannon wavelets and showed, by direct calculation, that they exhibit the Gibbs phenomenon, as seen on the graphs provided. Finally, we proved a theorem which shows that those wavelet approxima- tions involving positive delta sequences do not show the Gibbs phenomenon, and used this result to show the absence of the phenomenon in Haar wavelets.

80 References

[1] M. Bˆocher, Introduction to the theory of Fourier’s series, Ann. of Math. 7 (1906), 81–152.

[2] H. Carslaw, A historical note on Gibbs’ phenomenon fourier’s series and inte- grals, Bull. Amer. Math. Soc. 31 (1925), 420–424.

[3] M. W. Frazier, An introduction to wavelets through linear algebra, Springer- Verlag, New York, NY, 1999.

[4] J. W. Gibbs, Fourier’s series, letter in Nature 59 (1898), 200.

[5] , Fourier’s series, letter in Nature 59 (1899), 606.

[6] D. Gottlieb and C.-W. Shu, On the Gibbs phenomenon and its resolution, SIAM Review 39 (1997), 644–668.

[7] A. J. Jerri, The Gibbs phenomenon in Fourier analysis, splines and wavelet approximations, Kluwer Academic Publishers, Netherlands, 1998.

[8] S. Kelly, Gibbs phenomenon for wavelets, Appl. and Comp. Harmonic Analysis 3 (1996), 72–81.

[9] T. W. K¨orner, Fourier analysis, Cambridge Univ. Press, Cambridge, 1988.

[10] A. Love, Fourier’s series, letter in Nature 58 (1898), 569–570.

[11] S. Mallat, A wavelet tour of signal processing, 2nd ed., Academic Press, San Diego, CA, 1999.

[12] A. A. Michelson, Fourier’s series, letter in Nature 58 (1898), 544–545.

[13] A. A. Michelson and S. W. Stratton, A new harmonic analyser, Philosophical Magazine 45 (1898), 85–91.

81 References

[14] F. W. Newman, On the values of a periodic function at certain limits, Cambridge & Dublin Math. J. 3 (1848), 108.

[15] C. Pereyra and L. Ward, Harmonic analysis: from Fourier to Harr, preprint.

[16] H.-T. Shim, On Gibbs’ phenomenon in wavelet subspaces and summability, Ph.D. thesis, The University of Wisconsin-Milwaukee, Milwaukee, 1994.

[17] H.-T. Shim and H. Volkmer, On the Gibbs phenomenon for wavelet expansions, J. of Approx. Theory 84 (1996), 74–95.

[18] E. Stein and R. Shakarchi, Fourier analysis: an introduction, Princeton Lectures in Analysis I, Princeton Univ. Press, Princeton, NJ, 2003.

[19] G. G. Walter, A general approach to Gibbs phenomenon, Complex Variables 47 (2002), 731–743.

[20] G. G. Walter and X. Shen, Wavelets and other orthogonal systems, 2nd ed., CRC, Boca Raton, 2000.

[21] H. Wilbraham, On a certain periodic function, Cambridge & Dublin Math. J. 3 (1848), 198–201.

[22] A. Zygmund, Trigonometric series, 2nd ed., Cambridge Univ. Press, Cambridge, 1959.

82