Let \(f(x) = \begin{cases} k(x) &\text{if }x>2, \\ 2+(x-2)^2&\text{if }x\leq2. \end{cases}\) Find the function \(k(x)\) such that \(f\) is its own inverse.
k(x) = 2 - sqrt(x + 2).