Let there be a function $f: \mathbb R \to \mathbb R$ given by $$f(x)=\begin{cases}5x + 2&x\geq 1\\x-1&x<1 \end{cases}$$ Give an example of a Left inverse of $f$, and prove that it is correct.
I can do this with normal function. But how does this work when we try a piece defined function?