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.
 
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top