Given the two functions $f(x)=x^2+3x+5$ and $g(x)=\sqrt{2-|x-4|}$ work out $g^{-1}$ for some subdomain.
I have managed to prove that $g^{-1}$ exists in the following way:
$g(x)=\sqrt{6-x}$ with $x\in[4,6]$ we have that g is 1-1 in $[4,6]$ and hence $g^{-1}$ exists.
This is where I got stuck and couldn't continue. Could you please explain how to work out $g^{-1}$ and explain every step of your thought process as well as intuitively, how you though of each step?
As you have highlighted, an inverse exists, and I shall find it for the subdomain $[4,6]$.
In this subdomain, $|x-4| = x-4$, since $x > 4$. The equation then becomes $$y = \sqrt{2-x+4} = \sqrt{6-x}$$ square both sides to obtain $$y^2 = 6-x \implies x = 6-y^2$$ Therefore, the inverse function for the subdomain $[4,6]$ is $f^{-1}: [0,\sqrt{2}] \rightarrow [4,6], f^{-1}(x) = 6-x^2$. Here's a graph showing the given function and it's inverse (both of them are mirror images of each other about $y=x$.