Here is something that is confusing me.
The function $\begin{equation} f(x)=\begin{cases} x, & \text{if $x \in[-1,0]$}\\ x+1, & \text{if $x \in (0,1]$} \end{cases} \end{equation}$
Is clearly discontinuous at $x=0$ yet its inverse
$\begin{equation} f^{-1}(x)=\begin{cases} x, & \text{if $x \in[-1,0]$}\\ x-1, & \text{if $x \in (1,2]$} \end{cases} \end{equation}$
is continuous on the separate counterparts. Now, clearly $f(x)$ doesn't output any values in the range $0 < p \leq 1$ so I don't know if the fact $f^{-1}(x)$ isn't defined in the interval $(0,1]$ is enough to say it's discontinuous or not, because clearly these values aren't of interest for $f(x)$ either. Any clarification would be greatly appreciated!
Thanks