I'd like an example of a function $f:(a,b)\to\mathbb R$ and a point $c\in(a,b)$ such that:
- $f$ is invertible.
- $f$ is continuous at $c$.
- $f^{-1}$ is discontinuous at $f(c)$.
Motivation: There is a calculus book that states the following.
Let $f$ be an invertible function defined on an interval $I$. If $f$ is differentiable at $c\in I$ and $f'(c)\neq 0$, then $f^{-1}$ is differentiable at $f(c)$.
In the proof, the continuity of $f^{-1}$ at $f(c)$ is essential. Usually, the said essential fact is an hypothesis (if the domain is not an interval) or it is implied by the hypothesis that $f$ is continuous in a neighborhood of $c$ (if the domain is an interval). But in the said book, both hipothesis are missing and the fact is justified as follows:
As $f$ is differentiable at $c$, $f$ is continuous at $c$. Therefore, $f^{-1}$ is continuous at $f(c)$.
I suspect continuity at $c$ does not imply continuity of the inverse at $f(c)$ due to the following facts:
- It seems it is not a common result in analysis books.
- In the usual proofs that the inverse of a continuos map (on an interval or on a compact set) is continous, in order to prove that the inverse is continuous at a given point, we need the continuity of $f$ in the whole domain.
- In more recent editions of the said book, the statement was modified (now, it is supposed that $f$ is differentiable in a neighborhood of $c$, which implies what is needed).
However, I do not have a counterexample.