Is g(x) Always Continuous if Sandwiched Between Two Continuous Functions?

  • Thread starter Thread starter Cacophony
  • Start date Start date
  • Tags Tags
    Function
AI Thread Summary
The discussion addresses whether a function g(x) must be continuous if it is sandwiched between two continuous functions f(x) and h(x). It concludes that g(x) does not have to be continuous, providing examples to illustrate this point. One example is g(x) = sin(1/x), which is discontinuous at x = 0, while f(x) = sin(x) - 3 and h(x) = sin(x) + 3 remain continuous. Another simpler example involves g(x) being 1 for rational x and 2 for irrational x, which is also discontinuous everywhere. Therefore, the continuity of g(x) is not guaranteed under the given conditions.
Cacophony
Messages
41
Reaction score
0

Homework Statement



If f(x) < g(x) < h(x) for all x E R, and if f and h are continuous functions, must g also be continuous? If so, why? If not, can you come up with a counter example?

What do you think?
 
Physics news on Phys.org
Hi...
For the given conditions ,the function g need not be continuous.
Example : f(x) = sin(x) - 3 , h(x) = sin(x) + 3 , g(x) = sin(1/x)
for this example , f(x) < g(x) < h(x) . f and h are continuous . But g is not continuous at x tends to 0. Instead of g(x) = sin(1/x) , u can also take a signum function which is not continuous at x = 0.
 
Blazeatron's example is sufficient but simpler-
f(x)= 0 for all x, h(x)= 3 for all x, g(x)= 1 if x is rational, 2 if x is irrational. g is discontinuous for all x.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top