I try to calculate the limit of a function:
$$ f : \mathbb{R} \to \mathbb{R}, f(x) = \begin{cases}x^2-3 , x \geq 0 \\ 3x, x < 0\end{cases}$$
Evaluate $ \lim_{x\to2} \frac{f(x)-f(2)}{x-2}.$
A)$0\ \ \ \ $ B)$4\ \ \ \ $ C)$2\ \ \ \ $ D)$3\ \ \ \ $ E) No limit
My Deduction
$f(2) = 1$
When $x = 2,$ expression's divisor becomes zero, so I approach $2$ from negative and positive side.
Approaching from negative: ($\epsilon$ is very small positive value)
$x = 2 - \epsilon$
$$ \frac{4-2\epsilon+\epsilon^2 -1}{-\epsilon} $$ $$ \frac{3-2\epsilon+\epsilon^2}{-\epsilon} $$ negative infinity
Approaching from positive:
$x = 2 + \epsilon$
$$ \frac{4+2\epsilon+\epsilon^2 -1}{\epsilon} $$
$$ \frac{3+2\epsilon+\epsilon^2}{\epsilon} $$ positive infinity
Since approaching from negative and positive has different values, it has no limit, so answer should be E.
Key says B.
Where am I wrong?