Given $f(x) = x -1 $ for $ x \leq 1$ and $\sin(\pi x)$ for $x > 1$, is it derivable in 1? I did the left and right limits of f in 1, and computed $f(1)$ and they are equal, therefore the function is continuous in 1 and derivable. I then tried to compute $\lim_{x->1^+} \frac{f(x) - 0}{x -1} = \lim_{x->1} \frac{\sin \pi}{x-1}$ but then I got stuck. How do I get rid of the $x-1$ from the denominator so that I can compute the limit?
I know that the answer is $-1$ and can be computed using l'Hopital's rule, but I was wondering how to do it without?