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) so that f(x) is its own inverse.
The function is k(x) = -x^2 + 6x + 2.