The function defined by
has an inverse, and the inverse is defined for all real numbers. Find all possible values of k.
The possible values of k are 3 and 8.