# Determine the limit of a piecewise defined function

In the piecewise function below, $$k$$ is a constant. $$f(x)=\begin{cases}\dfrac{x^2-k^2}{x-k},&x\neq k,\\ 4-k,&x=k.\end{cases}$$ What is the value of the limit $$\lim_{x\to k^-}f(x)$$?

1. $$-2k$$.
2. $$2k$$.
3. $$0$$.
4. Limit does not exist.

I have a question from a released exam that I don't understand. I know the answer which is $$2k$$ but then I don't understand how to get the answer. It would be great if someone could explain it.

• Please type up the question instead of asking people to click through. – Ross Millikan Jun 3 at 0:50
• Welcome to Mathematics Stack Exchange! Link only questions invite down votes and close votes. A quick tour will enhance your experience. Here are helpful tips to write a good question and write a good answer. For equations, use MathJax. – dantopa Jun 3 at 0:51
• Welcome to MSE. Please don't post images when you can easily type the material, as here. – saulspatz Jun 3 at 0:53
• What is it that you don't understand about the question? – saulspatz Jun 3 at 0:54
• I don't understand how the answer is 2k – Aryan Naik Jun 3 at 1:00

Hint: Cancelling out the numerator and denominator in the first equation, you get $$x+k$$ when x does not equal to k.