Constructing a Sequence of Continuous Functions in Hilbert Space

Click For Summary

Homework Help Overview

The discussion revolves around constructing a sequence of continuous functions in the context of Hilbert space, specifically focusing on a discontinuous function defined piecewise. The original poster seeks to create a sequence of functions that converge to this discontinuous function while maintaining continuity for each finite n.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore various forms of continuous functions that approximate the original discontinuous function. There are attempts to define sequences that meet the criteria of continuity and convergence, with discussions on the implications of the triangle inequality and the properties of square integrability.

Discussion Status

Participants are actively engaging with each other's ideas, questioning the validity of proposed functions, and clarifying definitions. Some guidance has been offered regarding the construction of the sequence, but there remains uncertainty about the convergence and the behavior of the functions as n approaches infinity.

Contextual Notes

There are ongoing discussions about the correct definition of the original function, particularly for negative values of x. Participants are also considering the implications of continuity and the conditions under which the functions are square integrable, with some expressing confusion about the limits and integrals involved.

keniwas
Messages
57
Reaction score
1

Homework Statement


Let f(x) be the discontinuous function
[tex]f(x)=e^{-x},\text{for }x>0[/tex]
[tex]f(x)=x,\text{for }x\leq 0[/tex]

Construct explicitly a sequence of functions [tex]f_n(x)[/tex], such that
[tex]||f_n(x)-f(x)||<\frac{1}{n}[/tex],
and [tex]f_n(x)[/tex] is a continuous function of x, for any finite n. Here [tex]||\;||[/tex] represents the metric in the Hilbert space of square-integrable functions on the line, [tex]-\infty<x<\infty[/tex]. By construction, under this metric [tex]\lim_{n\rightarrow\infty}f_n=f.[/tex]



The Attempt at a Solution


I have tried to find different sequences that might work for this (ex. Power Series expansion where n indicates the highest order term to use.) but I can't seem to find one that fits the requirement that it be less than 1/n. I have a feeling the triangle inequality is going to be used somewhere but I am not sure how yet...
 
Physics news on Phys.org
Your f(x) isn't square integrable but you can find a continuous fn whose difference from f is square integrable. Try something like this. Make your fn(x) equal f(x) except on [tex]\left[ \frac {-1} n, 0\right ][/tex], and a straight line joining your two pieces on this interval.
 
I like your idea, but I think it still produces a discontinuous function in the limit as [tex]n\rightarrow\infty[/tex]

Using your example I would define a function
[tex]f_n(x) = \left\{ <br /> \begin{array}{lr}<br /> e^{-x} & \text{for } x>0\\<br /> nx+1 & \text{for } -\frac{1}{n}<x\leq0\\<br /> 0 & \text{for } x\leq-\frac{1}{n} <br /> \end{array} \right.[/tex]

Which would be continuous, but in the limit as [tex]n\rightarrow\infty[/tex] it approaches the discontinuity observed in the original equation at x=0 since the linear part has an infinite slope and hence there is a jump from 0 to 1.

If I missed something you were intending please correct me.
 
Or perhaps is that the point? That this continuous function converges to a discontinuous one? The problem does say it has to be continuous for any finite n, which it is... Ok so if this is correct, how am I to prove it is always less than 1/n?
 
Last edited:
keniwas said:
Or perhaps is that the point? That this continuous function converges to a discontinuous one? The problem does say it has to be continuous for any finite n, which it is... Ok so if this is correct, how am I to prove it is always less than 1/n?

Are you sure your [tex]f_n[/tex] get close to f in any sense of the word for x < 0? Look a little more closely at my hint.

It would be good to be more precise in your writing. When you say "it has to be continuous", what is the it?

Then you say prove it is less than 1/n. To what does that it refer? Is it the same "it"? A different "it"? It would be best not to use the pronoun "it" at all. Use the symbol(s) in question; it will help you to keep your thinking straight.

Anyway, answer the question of what is supposed to be less than 1/n. Then just calculate it once you have all the formulas.
 
Last edited:
Well, fn gets 'close' to f in the sense that their difference is small... except for right in the center region? Hmm I am not sure if you are trying to hint at the fact i have chosen an incorrect form for fn or just trying to make me understand why it is correct...

Lets assume its the latter for a moment, then here is a new attempt at the solution.

We have the function:
[tex]f(x) = \left\{ <br /> \begin{array}{lc}<br /> e^{-x} &x>0\\<br /> 0 &x\leq 0<br /> \end{array}<br /> \right.[/tex]
Now define the function:
[tex]f_n(x) = \left\{ <br /> \begin{array}{lc}<br /> e^{-x} &x>0\\<br /> nx+1 & -\frac{1}{n}<x\leq0\\<br /> 0 &x\leq-\frac{1}{n}<br /> \end{array}<br /> \right.[/tex]
This function is continuous for any finite n, and additionally [tex]\lim_{n\rightarrow\infty}f_n(x)=f(x)[/tex]
We can then take the pointwise difference between these two functions to get the new function [tex]g(x)=f_n(x)-f(x)[/tex] which we find to be
[tex] g(x)=\left\{ <br /> \begin{array}{lc}<br /> 0 &x>0\\<br /> nx+1 & -\frac{1}{n}<x\leq0\\<br /> 0 &x\leq-\frac{1}{n}<br /> \end{array}<br /> \right.[/tex]
This function is square integrable, so we can find the value of [tex]||g(x)||[/tex] by performing the following integral,
[tex]||g(x)||=\int_{-\infty}^{\infty} g(x)^2dx=\int_{-\infty}^{-\frac{1}{n}}0dx+\int_{-\frac{1}{n}}^{0}(nx+1)^2dx+\int_{0}^{\infty}0dx[/tex]
Two of the three integrals vanish everywhere, and we are left with the center integral,
[tex] \begin{array}{lcl}<br /> \int_{-\frac{1}{n}}^{0}(nx+1)^2dx&=&\int_{-\frac{1}{n}}^{0}(n^2x^2+2nx+1)dx\nonumber\\<br /> &=&\frac{n^2}{3}x^3+nx^2+x|_{-1/n}^{0}\nonumber\\<br /> &=&-(\frac{n^2}{3}(-\frac{1}{n})^3+n(-\frac{1}{n})^2+(-\frac{1}{n}))\nonumber\\<br /> &=&-(\frac{-1}{3n}+\frac{1}{n}-\frac{1}{n})\nonumber\\<br /> &=&\frac{1}{3n}<br /> \end{array}[/tex]


Then [tex]||g(x)||=||f_n(x)-f(x)||<1/n[/tex] for all [tex]x[/tex] and [tex]n[/tex]. Hence we have found a sequence of functions that produces the desired results and converges to the original function in the limit as [tex]n\rightarrow\infty[/tex]

Though my problem with this is that the difference between f and fn grows with increasing n, yet the interval where this difference is occurring gets smaller and smaller... so overall the difference is still small. Something feels funny about my logic here which usually means its wrong.
 
Last edited:
The difference between f and fn actually decreases at every single point in this example. The center region is a line going from the value (-1/n) on the x-axis to the value 1 on the y-axis. So if you pick any negative x value, eventually it's to the left of -(1/n) and f(x) and fn(x) match up perfectly.

Your post looks pretty good. Two points:
1) in your original post, you had f(x)=x for negative x, and now it's zero. It doesn't really make a difference in the analysis, but make sure you use the right one when turning in your homework!

2) You state
[tex] \lim_{n \rightarrow \infty} f_n(x)=f(x)[/tex]

in your post far before you've proven it. You realize that this:

[tex]\lim_{n \rightarrow \infty} ||f_n(x) - f(x)|| = 0[/tex]

is the definition of [tex] \lim_{n\rightarrow\infty}f_n(x)=f(x)[/tex]
right? So even though at first glance it seems kind of obvious that the limit holds, you do need to do the calculations to make that conclusion
 
Office_Shredder said:
The difference between f and fn actually decreases at every single point in this example. The center region is a line going from the value (-1/n) on the x-axis to the value 1 on the y-axis. So if you pick any negative x value, eventually it's to the left of -(1/n) and f(x) and fn(x) match up perfectly.

Essentially the x-intercept gets closer and closer to zero as n grows so the functions eventually match up?

Your post looks pretty good. Two points:
1) in your original post, you had f(x)=x for negative x, and now it's zero. It doesn't really make a difference in the analysis, but make sure you use the right one when turning in your homework!

Oops! the correct definition is f(x)=0 for x<0 thanks for pointing that out.

2) You state
[tex] \lim_{n \rightarrow \infty} f_n(x)=f(x)[/tex]

in your post far before you've proven it. You realize that this:

[tex]\lim_{n \rightarrow \infty} ||f_n(x) - f(x)|| = 0[/tex]

is the definition of


[tex] \lim_{n\rightarrow\infty}f_n(x)=f(x)[/tex]
right? So even though at first glance it seems kind of obvious that the limit holds, you do need to do the calculations to make that conclusion

Hmm, I see what you mean, I will add that in. Thank you for the help!
 
Last edited:
keniwas said:
Essentially the x-intercept gets closer and closer to zero as n grows so the functions eventually match up?



Oops! the correct definition is f(x)=0 for x<0 thanks for pointing that out.

Are you saying your original post had f(x) wrong for x < 0? Because what you have done won't work with your original statement.
 
  • #10
Yes the original post was incorrect the right form of f(x) is

[tex]f(x) = \left\{ \begin{array}{lr} e^{-x} & x>0\\<br /> 0 & x\leq 0 \end{array} \right.[/tex]

EDIT: In proving the last statement, it seems that the integrals would diverge as n goes to infinity? Well actually I am not sure how to treat an integral like
[tex]\int_{0}^{0} (\infty) dx[/tex]
which is what the integral seems to do as n grows to infinity.
 
Last edited:
  • #11
Mathematica gives me an output of 0 for the following function

Limit[Integrate[n*x, {x, -1/n, 0}], n -> \[Infinity]].

Which seems ok, but it seems weird that it would work that way. Are we performing the integration first then the limit? (This is clearly what mathematica does since the order of functional operations always starts from the center of the statement outwards) but is this mathematically correct?
 
  • #12
That is in fact correct (although your function should be nx+1, but you get the same value). I'll draw a couple pictures for you:
http://img21.imageshack.us/img21/3690/nx1u.jpg
 
Last edited by a moderator:
  • #13
Nice Picture =). I understand now, thank you for the help.

Yes I realized after I posted my last post that I hadn't included the + 1, but like you said the result is the same.

Thanks again!
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
34
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 34 ·
2
Replies
34
Views
4K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 43 ·
2
Replies
43
Views
5K