<s>[INST] Finding limit of a function ($0$ appears in denominator) This is the function:
$$f(x)= \frac{x^3 + 3x^2+2x}{x^2-2x-8} $$
So I tried to find this limit:
$$\lim_{x\to -2}\frac{x^3 + 3x^2+2x}{x^2-2x-8}=\left[\frac{-8-12-4}{4+4-8}=\frac{-24}{0}\right]= \lim_{x\to -2}\frac{x(x-1)(x-2)}{(x-4)(x+2)}$$
This isn't a case where numerator and denominator, after factorization, have some elements which can reduce a "problematic" element... I need to get rid of $(x+2)$ which makes the fraction explode but I don't know how.
 [/INST] You have factor wrong your function, just do it in the following way
$$\lim_{x\to -2}\frac{x^3 + 3x^2+2x}{x^2-2x-8} = \lim_{x \to -2} \frac{x(x+1)(x+2)}{(x-4)(x+2)} = \lim_{x \to -2} \frac{x(x+1)}{(x-4)} = \frac{-2(-2+1)}{-2-4} = -\frac{1}{3}$$
</s>