# Thread: example of a continuous funtion where the sup is not achieved

1. ## example of a continuous funtion where the sup is not achieved

Also, if we let a and b be real number with a<b then what is an example of a bounded f on [a,b] for which sup_[a,b] f is not achieved?

What would be an example of a bounded, continuous f on [a, $\infty$) for which sup_[a, $\infty$) f is not achieved?

and what would be an example of a bounded, continuous f on [a,b) for which sup_[a,b) f is not achieved?

For the first one would it be : f(x)= { x, a<=x<=b
0, x=b}
second, f(x)= -1/x+1

third, f(x)=x ?

2. For the first one you need a strong inequality sign with b (f(x) = x for a<=x<b); for the second, what happens if a = -1? Only a slight change is required..
Third is correct.

3. Originally Posted by Defunkt
For the first one you need a strong inequality sign with b (f(x) = x for a<=x<b); for the second, what happens if a = -1? Only a slight change is required..
Third is correct.
hm, would i use absolute value signs?

4. Originally Posted by alice8675309
hm, would i use absolute value signs?
That works. You can also use $\frac{-1}{x-a-1}$.