Let f(x)={k(x)if x>2,2+(x−2)2if x≤2. Find the function k(x) such that f is its own inverse.
k(x) = 2 - sqrt(x + 2).