Generalised Fourier Series

In summary: The claim in the first part of the problem is that the set ##\{e_n\}_{n=0}^\infty## is an orthogonal basis for the space ##L^2(\mathbb{R})## with the weight function ##w(x) = \frac{1}{\sqrt{\pi}} e^{-x^2}##. That means that the inner product between any two elements of this set is zero, and that each element has norm one.The second part of the problem is to explain why any function in the space ##L^2(\mathbb{R})## can be written as a linear combination of these elements. So, given a function ##f(x)##, we want to find
  • #1
Physgeek64
247
11

Homework Statement



By applying the Gram–Schmidt procedure to the list of monomials 1, x, x2, ..., show that the first three elements of an orthonormal basis for the space L2 (−∞, ∞) with weight function ##w(x) = \frac{1}{\sqrt{\pi}} e^{-x^2} ##

are ##e_0(x)=1## , ##e_1(x)= 2x## ,##e_2(x)= \frac{1}{\sqrt{2}} (2x^2−1)##

Explain why any well-behaved function f : R → C may be expressed as a series of the form

## f(x)= \frac{1}{\sqrt{2 \pi}} \sum {a_n e_n(x) e^{- \frac{1}{2} x^2}} ## where the sum runs from 0 to infinity

Homework Equations



3.The attempted solution[/B]
I have done the first part to do with the Gram–Schmidt procedure, using the usual formula, but cannot understand how to do the second part of the question

My initial thought was to try to isolate one of the co-efficients, ##a_m## and show that this is the same as the 'normal' formula for ##a_m## when using a weight function of one- but this didn't seem to work out.

What I'm confused about it where the ##\frac{1}{\sqrt{2 \pi}}## has come from, since the basis functions are already normalised, and why the square root of the weight function is included in the summation. I get the feeling this is what the question is wanting me to show is okay, so to speak, but I can't quite see it.

Any help would be greatly appreciated :)

(note: i did initially type out all my working, but my computer couldn't cope with it, and kept freezing- sorry)
 
Last edited:
Physics news on Phys.org
  • #2
Sorry, but I am confused about what your weight function is? Could you clarify that?
EDIT: I suppose it is ##w(x) = \tfrac{1}{\sqrt{\pi}} e^{-x^2}##, correct?
 
Last edited:
  • #3
Krylov said:
Sorry, but I am confused about what your weight function is? Could you clarify that?
EDIT: I suppose it is ##w(x) = \tfrac{1}{\sqrt{\pi}} e^{-x^2}##, correct?
How careless of me. Yes, sorry. I have fixed it in the original post as well- thank you :)
 
  • Like
Likes S.G. Janssens
  • #4
In any case, the hint I would give is this: Let ##H## be ##L^2(\mathbb{R})## with the usual inner product ##\langle, \rangle## and let ##H_w## be ##L^2(\mathbb{R})## with the weighted inner product ##\langle, \rangle_w##. Note that ##H \subset H_w##. You have obtained an orthormal basis of ##H_w##, namely ##\{e_n\}##.

How do you obtain from this an orthonormal basis for ##H##? Once this is done, think about what the Fourier series of ##f \in H## with respect to that latter basis is.
 
  • #5
Physgeek64 said:

Homework Statement



By applying the Gram–Schmidt procedure to the list of monomials 1, x, x2, ..., show that the first three elements of an orthonormal basis for the space L2 (−∞, ∞) with weight function ##w(x) = \frac{1}{\sqrt{\pi}} e^{-x^2} ##

are ##e_0(x)=1## , ##e_1(x)= 2x## ,##e_2(x)= \frac{1}{\sqrt{2}} (2x^2−1)##

Explain why any well-behaved function f : R → C may be expressed as a series of the form

## f(x)= \frac{1}{\sqrt{2 \pi}} \sum {a_n e_n(x) e^{- \frac{1}{2} x^2}} ## where the sum runs from 0 to infinity

I think that the last formula (in the problem statement) should be that
$$f(x) = \sum_{n=0}^{\infty} a_n e_n(x)$$
For example,
$$x^2 = \frac{1}{2} e_0(x) + \frac{1}{\sqrt{2}} e_2(x) $$,
so ##a_0 = 1/2, a_1 = 0## and ##a_2 = 1/\sqrt{2}## for ##f(x) = x^2##. If you included the factor ##\exp(-x^2/2)## in the expansion (as you did in your formula) then your ##a_n## could not be constant: they would need to contain the compensating factor ##\exp(+x^2/2)##.

Basically, the claim is (or should be) that ##f = \sum_n \langle \: e_n,f \, \rangle \: e_n##. The weight function ##w(x)## is used for defining the inner product ##\langle f,g \rangle##.
 
Last edited:
  • #6
Ray Vickson said:
I think that the last formula (in the problem statement) should be that
$$f(x) = \sum_{n=0}^{\infty} a_n e_n(x)$$

It's not- that's what is confusing me? :)
 
  • #7
Physgeek64 said:
It's not- that's what is confusing me? :)

OK: I am saying that is SHOULD BE. So, you were being asked to show something that is wrong. Don't just take my work for it; look it up in your textbook, or do an on-line search under "orthonormal expansions" or something along those lines. That might give you the ammunition you need if you have to prove that the problem statement is incorrect.
 
  • #8
Krylov said:
In any case, the hint I would give is this: Let ##H## be ##L^2(\mathbb{R})## with the usual inner product ##\langle, \rangle## and let ##H_w## be ##L^2(\mathbb{R})## with the weighted inner product ##\langle, \rangle_w##. Note that ##H \subset H_w##. You have obtained an orthormal basis of ##H_w##, namely ##\{e_n\}##.

How do you obtain from this an orthonormal basis for ##H##? Once this is done, think about what the Fourier series of ##f \in H## with respect to that latter basis is.

So would you say that the basis would ##e_n(x) \sqrt{w(x)}## be the new basis for ##L^2(\mathbb{R})## ?
 
  • #9
Physgeek64 said:
So would you say that the basis would ##e_n(x) \sqrt{w(x)}## be the new basis for ##L^2(\mathbb{R})## ?

No. The basis is ##\{ e_n(x) \}##. The claim is that for a wide range of functions ##f(x)## you can have ##f(x) = \sum_n c_n e_n(x)##. The issue is how to compute the coefficients ##c_n##, and you do that using the inner product ##c_n = \langle f , e_n \rangle##.
 
  • #10
Come on, the question from the OP is correct and it is not difficult to prove, see post #4.
Physgeek64 said:
So would you say that the basis would ##e_n(x) \sqrt{w(x)}## be the new basis for ##L^2(\mathbb{R})## ?
Yes, perhaps up to some fixed numerical constant. There are two spaces in play here: One with an ordinary inner product (##H##), the other with a weighted inner product (##H_w##). It is important to keep these spaces apart.
 
  • #11
Krylov said:
Come on, the question from the OP is correct and it is not difficult to prove, see post #4.

Yes, perhaps up to some fixed numerical constant.

What about that divided by its modulus such that it's an orthonormal basis?
 
  • #12
Physgeek64 said:
What about that divided by its modulus such that it's an orthonormal basis?
Yes, in the notation of post #4 you have:
$$
\langle e_m \sqrt{w}, e_n \sqrt{w} \rangle = \int{e_m(x)\sqrt{w} e^{\ast}_n(x) \sqrt{w}\,dx} = \int{e_m(x)e^{\ast}_n(x)w(x)\,dx} = \langle e_m, e_n \rangle_w = \delta_{mn}
$$
so in fact you can choose that normalization constant equal to one. :wink:
So, you have found an orthonormal basis for ##H##. Now expand any "well-behaved" (i.e. living in ##H##) function ##f## in terms of that basis.
 
  • #13
Krylov said:
Yes, in the notation of post #4 you have:
$$
\langle e_m \sqrt{w}, e_n \sqrt{w} \rangle = \int{e_m(x)\sqrt{w} e^{\ast}_n(x) \sqrt{w}\,dx} = \int{e_m(x)e^{\ast}_n(x)w(x)\,dx} = \langle e_m, e_n \rangle_w = \delta_{mn}
$$
so in fact you can choose that normalization constant equal to one. :wink:
So, you have found an orthonormal basis for ##H##. Now expand any "well-behaved" (i.e. living in ##H##) function ##f## in terms of that basis.
Is this a rigorous enough proof? (I'm not doubting, just checking)
 
  • #14
Physgeek64 said:
Is this a rigorous enough proof? (I'm not doubting, just checking)
You could remark that ##\{\sqrt{w}e_n\}## is also spanning, because...? (This is almost trivial, so I would not substract points if you would omit it, but by making this remark you do show that you know the definition of "orthonormal basis" completely.)
 
  • #15
Krylov said:
Yes, in the notation of post #4 you have:
$$
\langle e_m \sqrt{w}, e_n \sqrt{w} \rangle = \int{e_m(x)\sqrt{w} e^{\ast}_n(x) \sqrt{w}\,dx} = \int{e_m(x)e^{\ast}_n(x)w(x)\,dx} = \langle e_m, e_n \rangle_w = \delta_{mn}
$$
so in fact you can choose that normalization constant equal to one. :wink:
So, you have found an orthonormal basis for ##H##. Now expand any "well-behaved" (i.e. living in ##H##) function ##f## in terms of that basis.

The weight function appears in the expression ##\langle f, g \rangle = \int_R w(x) f(x) g(x) \, dx## The basis functions are the ##e_n(x)##, not ##\sqrt{w(x)} e_n(x)##. That is clear from the first part of what the question asks, where it says "show that the first three elements of an orthonormal basis for the space
##L2 (−\infty,\infty)## with weight function ##w(x)=1/\sqrt{\pi}\, e^{-x^2/2}## are ##e_0(x) = 1##, ##e_1(x) = 2x## and ##e_2(x) = 1/\sqrt{2} \; (x^2 - 1)##." It is stating very clearly that the basis functions are ##e_0, e_1, e_2, \ldots##, not ##\sqrt{w} e_0, \sqrt{w} e_1, \sqrt{w} e_2, \ldots ##.

The (typogaphical?) error that the person setting the problem has made came after that, or maybe the OP copied it incorrectly. Choosing the inner product as ##\langle f,g \rangle = \int w f g \, dx## means that if we use ##a_n = \langle f, e_n \rangle## for ##n = 0,1,2,\ldots## we will be minimizing
$$\text{squared error} = E \equiv \int_R w(x) \left[ f(x) - \sum_{n=0}^{\infty} c_n e_n(x) \right]^2 \ dx$$
Completeness would imply that ##S = 0##, but that is a whole other issue that the OP was not being asked to address.
 
  • #16
  • I am not contesting that the basis functions for the space given in the OP's problem are the ##e_n##.
  • I am merely stating that there is ANOTHER space (namely: ##L_2(\mathbb{R})## with the usual inner product) for which ##\{\sqrt{w} e_n\}## is an orthonormal basis).
  • Then, using this second statement, I (provide hints to) solve the exercise.
Please read my posts before claiming that there is something wrong with them or with the OP's statement of the problem. There it nothing wrong with either.
 
  • #17
Krylov said:
  • I am not contesting that the basis functions for the space given in the OP's problem are the ##e_n##.
  • I am merely stating that there is ANOTHER space (namely: ##L_2(\mathbb{R})## with the usual inner product) for which ##\{\sqrt{w} e_n\}## is an orthonormal basis).
  • Then, using this second statement, I (provide hints to) solve the exercise.
Please read my posts before claiming that there is something wrong with them or with the OP's statement of the problem. There it nothing wrong with either.

I agree completely that in the ordinary Hilbert space ##L_2(R)## with ##\langle f,g \rangle = \int_R f g \, dx## that the functions ##w\, e_n## do, indeed, form an orthonormal basis. However, I maintain that this is not related to the OP's problem, where it is stated that "his" ##L_2## uses the weight function ##w(x)##. (Although it does not specificaly say so in the problem I presume that in the course notes that is explained as defining an inner product. In all sources I have ever seen, that is how it is applied.) So, we are really talking about two different ##L_2##s here.

No matter what ##L_2## we are using, there clearly IS something wrong with the second part of the OP's statement; it just simply contradicts the first part. That is the reason I gave the very simple example that ##x^2 = (1/2) e_0(x) + (1/\sqrt{2}) e_2(x)##. This last equation is absolutely correct, and follows from elementary algebra. If we regard ##x^2## as a "well-behaved" function, then it is clear that the expansion of that ##f## at least does not have the form given in the last part of the problem statement; it has the form you would get by leaving out the ##w(x)## factor in the terms of the expansion.

I did not invent any of this; it is widely documented in standard sources, such as
http://mathworld.wolfram.com/GeneralizedFourierSeries.html
which gives exactly the same expansion formula that I did.
 
  • #18
Ray Vickson said:
Although it does not specificaly say so in the problem I presume that in the course notes that is explained as defining an inner product. In all sources I have ever seen, that is how it is applied.)
Yes, one of these sources includes my post #4 where I defined the inner product ##\langle, \rangle_w## in ##H_w##.
Ray Vickson said:
So, we are really talking about two different ##L_2##s here.
This is what I have been saying all along. I called one ##H_w## and the other ##H##, again see post #4.
Ray Vickson said:
If we regard ##x^2## as a "well-behaved" function, then it is clear that the expansion of that ##f## at least does not have the form given in the last part of the problem statement;
The function ##x \mapsto x^2## is not in ##H##, so in that sense it is not well-behaved. (It simply blows up.)
The expansion identity in the OP is correct for ##f \in H##.
 
  • #19
Krylov said:
Yes, one of these sources includes my post #4 where I defined the inner product ##\langle, \rangle_w## in ##H_w##.

This is what I have been saying all along. I called one ##H_w## and the other ##H##, again see post #4.

The function ##x \mapsto x^2## is not in ##H##, so in that sense it is not well-behaved. (It simply blows up.)
The expansion identity in the OP is correct for ##f \in H##.

Of course the function ##x^2## is not in the "ordinary" ##L_2## space ##H## (with ##||f||^2 = \int_R |f|^2 \, dx##), but it IS in the "new" ##L_2## that uses ##w## in the definition of inner product. In fact, the very "basis" functions ##e_0, e_2, e_2, \ldots## given in the first part of the problem are not even in the ##H##, so for the ordinary Hilbert space ##H## the OP would be asked to use basis functions that are not actually members of the vector space itself! I think it makes more sense (and is, I maintain, in the spirit of the problem) to use the "modified" ##L_2## with weight ##w## is the inner product, and to expand in terms of simple functions that are actually members of the space itself. The remaining issue is whether the second part of the problem has an error, typographical or otherwise. In ##H## it does not, while in ##L_2## it does.

I have said all I intend to say on this subject.
 
  • #20
Krylov said:
You could remark that ##\{\sqrt{w}e_n\}## is also spanning, because...? (This is almost trivial, so I would not substract points if you would omit it, but by making this remark you do show that you know the definition of "orthonormal basis" completely.)
Assuming that @Physgeek64 is still interested in a solution to the exercise as he originally posted it, let me resume what we have now (using the notation of post #4):
  • In the weighted space ##H_w## we have the orthonormal basis ##\{e_n\}##.
  • In the "ordinary" space ##H## we have the orthonormal system ##\{\sqrt{w}e_m\}##.
  • It is almost trivial to check that this latter system is in fact a orthonormal basis for ##H##. Namely, it remains to check that it is spanning, For this, just verify that if ##f \in H## is such that ##\langle f, \sqrt{w}e_n\rangle = 0## for all ##n##, then it follows that ##f = 0## identically. (To do this, write the inner product ##\langle f, \sqrt{w}e_n\rangle## in ##H## as an inner product in ##H_w## instead and use that ##\{e_n\}## is an orthonormal basis for ##H_w##.)
  • Now you may conclude that every ##f \in H## (which, one could argue, makes it "well-behaved", for example for certain QM problems) can be written as the series that appears in your exercise. (Maybe up to a mutiplicative numerical constant that you can incorporate into the coefficients ##a_n##.)
Please write this into a tidy proof. Done.
 
  • #21
You are all welcome.
 
  • #22
Ray Vickson said:
If we regard x2x2x^2 as a "well-behaved" function, then it is clear that the expansion of that fff at least does not have the form given in the last part of the problem statement; it has the form you would get by leaving out the w(x)w(x)w(x) factor in the terms of the expansion.
But this is the problem of the problem. It does not state what a "well-behaved" function is. It could very well be taken to mean a function in ##H## instead of ##H_w##. If this is the case, Krylov is right on track.

Ray Vickson said:
given in the first part of the problem are not even in the HHH, so for the ordinary Hilbert space HHH the OP would be asked to use basis functions that are not actually members of the vector space itself!
This is not true, the OP would be asked to use the basis ##\sqrt w e_n##, which are the functions of which the stated sum is a linear combination. Assuming that f is in H, there is nothing wrong with the problem.

Ray Vickson said:
If we regard x2x2x^2 as a "well-behaved" function,
Again, this is in question. Nothing in the problem states that this is true.
 
  • Like
Likes S.G. Janssens

Related to Generalised Fourier Series

1. What is a Generalised Fourier Series?

A Generalised Fourier Series is a mathematical representation of a periodic function as a combination of sine and cosine functions with varying amplitudes and frequencies.

2. How is a Generalised Fourier Series different from a regular Fourier Series?

A regular Fourier Series is used to represent functions with a fixed period, while a Generalised Fourier Series can represent functions with varying periods.

3. What is the purpose of using a Generalised Fourier Series?

The purpose of using a Generalised Fourier Series is to approximate a function that is not necessarily periodic, such as a piecewise or discontinuous function, by breaking it down into simpler, periodic components.

4. Can a Generalised Fourier Series accurately represent any function?

No, a Generalised Fourier Series can only accurately represent functions that satisfy certain conditions, such as being piecewise continuous and having a finite number of discontinuities within a given interval.

5. How is a Generalised Fourier Series calculated?

A Generalised Fourier Series is calculated by finding the coefficients of the sine and cosine terms through integration, and then using those coefficients to construct the series.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
366
  • Calculus and Beyond Homework Help
Replies
1
Views
292
  • Calculus and Beyond Homework Help
Replies
5
Views
455
  • Calculus and Beyond Homework Help
Replies
3
Views
416
  • Calculus and Beyond Homework Help
Replies
16
Views
620
  • Calculus and Beyond Homework Help
Replies
3
Views
467
  • Calculus and Beyond Homework Help
Replies
2
Views
412
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
389
  • Calculus and Beyond Homework Help
Replies
6
Views
506
Back
Top