$$ f(x) = \begin{cases} x^2 &\text{for } x > 1 \\ x-1 &\text{for } 0 < x \le 1 \\ 0 &\text{for } x \le 0 \end{cases} $$ Then what is the value of $\lim_{x\to 0^-}f(x^2) +\lim_{x\to 1^+} \frac{f(x-1)}{x+2} $ ?
The answer key is $-4/3$ but when I try to solve this, I got $0$.
Am I right? Can anyone tell me please.
Note that
$$\lim_{x\to 0^-}f(x^2)=\lim_{y\to 0^+}f(y)=-1$$
$$\lim_{x\to 1^+} \frac{f(x-1)}{x+2}=\lim_{y\to 0^+} \frac{f(y)}{3+y}=-\frac13$$
then
$$\lim_{x\to 0^-}f(x^2)+\lim_{x\to 1^+} \frac{f(x-1)}{x+2}=-1-\frac13=-\frac43$$