Let$f(x) =$ \begin{cases} k(x) &\text{if }x>3, \\ x^2-6x+12&\text{if }x\leq3. \end{cases} Find the function $k(x)$ such that $f$ is its own inverse.
I thought that that inverse would just be the inverse of $x^2-6x+12$ would be $3+\sqrt{x-3}$, however, after graphical analysis, I found the answer to be the conjugate: $3-\sqrt{x-3}$. Is this the right answer, and if so, why is it negative instead of positive?
$$f^{-1}-3=\pm\sqrt{x-3}$$ You have to choose '$-$' because $x^2-6x+12=(x-3)^2+3\ge3$ and hence $f^{-1}$ must be $\le 3$.