Derivatives: Exponential Functions

If f(x)f(x) is differentiable everywhere, find AA and BB.

f(x)={xe(x2+1)ifx1Ax+Bifx<1f(x)=\left\{ \begin{array}{ll} \displaystyle xe^{(x^2+1)}\quad\quad\,\text{if}\,x\geq 1 \\ Ax+B\quad\,\,\,\,\,\,\,\text{if}\,\, x<1\\ \end{array} \right.

More Derivatives of Exponential Functions Questions: