Determine the values of $k$ for which the function $f$, defined by
$$f(x)= \begin{cases} \dfrac{1}{x-1}, & x<1 \\ \\ \dfrac{1}{k(x-1)}, & x>1 \end{cases} $$
has a limit when $x \rightarrow 1$
I did:
- I know that in order for this limit to exist, $\lim_{x\rightarrow1^+}f(x)$ and $\lim_{x\rightarrow1^-}f(x)$ have to exist and be different from infinity (I think)
- Since $f(x)$ where $x < 1$ doesn't mention $k$, I assume that the $(x-1)$ in $\frac{1}{k(x-1)}$ is always a positive value
- Therefore, the sign of $k$ will determine the sign of $\frac{1}{k(x-1)}$
- I know that $k$ can't be equal to 0 because $\frac{1}{k(x-1)}$ would become impossible to solve
I tried plotting $\frac{1}{k(x-1)}$ with several values for $k$, and basically what I get is that the larger the absolute value, the smaller the function and changing the sign simply makes a vertical reflexion of the function.
My book says the solution is $k < 0$.
I don't understand why. Can someone explain this to me?