For each real number k, consider the function
gk:R⟶R,gk(x)={kx+2,x2+(k−1),x≤1,x>1.
Determine all real values of k for which gk is injective on R, giving complete justification.
a. Determine all real values of k for which gk is injective on R, giving complete justification.