If the function f defined by f(x) = x^2 + 3x +a, x≤1 bx+2, x>1
Is derivable, then find the values of a and b.