<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] I assume you meant $$f(x)=\frac{x^3+3x^2+2x}{x^2-2x-8}$$
Then $\lim_{x\to2-}f(x)$ is a indeterminate form or type $\frac{0}{0}$, therefore we apply l'Hopital rule and receive
$$\lim_{x\to2-}f(x)=\lim_{x\to2-}\frac{3x^2+6x+2}{2x-2}=\frac{3\cdot4-2\cdot6+2}{-2\cdot2-2}=\frac{2}{-6}=-\frac{1}{3}$$
</s>