Limit Definition of a Derivative

If f(x) is differentiable everywhere, find A and B.

f(x)={x2+1x0Ax+Bx<0f(x)=\begin{cases}x^2+1 & x \geq 0\\ Ax+B&x<0\end{cases}

More The Limit Definition of a Derivative Questions: