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.
The function k(x) is k(x) = 2 - (x + 2)^2.