JG89
- 724
- 1
Homework Statement
Let f and g be continuous functions defined on all of R. Prove that if f(a) \neq g(x) for some a \epsilon R, then there is a number \delta > 0 such that f(x) \neq g(x) whenever |x-a| < \delta.
Homework Equations
I would like to please check if my proof is correct :)
The Attempt at a Solution
Suppose that f(x) = g(x) whenever |x-a| < \delta. Then by the continuity of f and g we have |f(x) - f(a)| < \epsilon whenever |x-a| < \delta and |g(x) - g(a)| < \epsilon whenever |x-a| < \delta. Since g(x) = f(x) whenever |x-a| < \delta, we can write |g(x) - f(a)| < \epsilon. Obviously the left hand side must tend to 0 as x tends to a, and so for values of g(x) > f(a), we have \lim_{x \rightarrow a} g(x) - \lim_{x \rightarrow a} f(a) = 0, implying that \lim_{x \rightarrow a} g(x) = f(a).
Now for values of g(x) < f(x) we have \lim_{x \rightarrow a} f(a) - \lim_{x \rightarrow a} g(x) = 0, implying again that \lim_{x \rightarrow a} g(x) = f(a). Since g is continuous, we must have \lim_{x \rightarrow a} g(x) = g(a), but limits are unique, so this means that f(a) = g(a), which is a contradiction. QED