TITLE: Inverse of $4-\ln(x+2)$
QUESTION [6 upvotes]: How to find an inverse of function $4-\ln(x+2)$? I know that inverse of $\ln(x)$ equals $e^{x}$, then inverse of $-\ln(x)$ equals $e^{-x}$ but what to do with the other numbers (4 and 2)?

REPLY [2 votes]: Let $f: x \mapsto 4 - \log (x+2) :\ ]-2, \infty[ \to \mathbb{R}\setminus \{ 4 \}$. We claim that $f$ is bijective.
To prove surjectiveness, let $y \in \mathbb{R}\setminus \{4 \}$. Since $4 - y = \log (x+2)$ for some $x > -2$ iff $x = e^{4-y} - 2$, by definition $f$ is surjective.
Let $x_{1},x_{2} > -2$ such that $x_{1} \neq x_{2}$. We claim that $f$ is injective. But if $f(x_{1}) = f(x_{2})$ then $\log(x_{1} + 2) = \log(x_{2}+2)$, so $x_{1} = x_{2}$, a contradiction. It follows that $f$ is injective. Therefore, by definition $f$ is bijective.
We claim that $f^{-1}: y \mapsto e^{4-y} - 2 :\ \mathbb{R}\setminus \{4 \} \to ]-2,\infty[$. But we have the identities $f\circ f^{-1}(y) = y$ and $f^{-1}\circ f(x) = x$ by construction, so we are done.