3. (10%) Find the constants $a$ and $b$ such that the function

$$f(x) = \begin{cases} x^2 - 2x, & x \le 1 \\ ax + b, & x > 1 \end{cases} \text{ is differentiable at } x=1.$$