Find the values of the parameters that make the piecewise defined function continuous and differentiable.