Is there a number $a$ such that
$$\lim_{x\to-2}\frac{3x^2+ax+a+3}{x^2+x-2}$$
exists? If so, find the value of $a$
I desperately need help in trying to work this out. I already tried out factorising the numerator to get an expression of $(x+2)$ to cancel the denominator's $x+2$ but so far no luck.
Let $p(x)=3x^2+ax+a+3$ and $q(x)=x^2+x-2=(x-1)(x+2).$ Then we have:
$$p(-2)=15-a.$$
Case 1: $a \ne 15.$ Then $ \lim_{x \to -2}p(x) \ne 0,$ and $ \lim_{x \to -2} q(x)=0.$
Hence the limit in question does not exist.
Case 2: $a=15$. Then $ \frac{p(x)}{q(x)}= \frac{3(x+1)}{(x-1)} \to -1$ as $x \to -2.$