I have $\underset{x \to -2} \lim \frac{x^2-1}{2x+4}$ which doesn't exist because it diverges. I spent awhile trying to remove the division by zero before plugging it into an online math calculator, and I want to know how I could have known that it diverges. I'm not skilled enough to just look at it and figure out there's no way for me to reform it so it doesn't have zero division when $x=-2$. Is there a way for me to find out whether it diverges other than just working on it for awhile and then guessing that the limit diverges if I can't get rid of the zero division?
My Steps:
$$\underset{x \to -2} \lim \frac{x^2-1}{2x+4}$$
$$=\underset{x \to -2} \lim \frac{(x^2-1)(2x-4)}{2x+4(2x-4)}$$
$$=\underset{x \to -2} \lim \frac{(x^2-1)(2x-4)}{4x^2-16}$$
$$=\underset{x \to -2} \lim \frac{(x^2-1)(2x-4)}{4(x^2-4)}$$
$$=\underset{x \to -2} \lim \frac{(x-1)(x+1)2(x-2)}{4(x-2)(x+2)}$$
$$=\underset{x \to -2} \lim \frac{2(x-1)(x+1)}{4(x+2)}$$
$$=\underset{x \to -2} \lim \frac{(x-1)(x+1)}{2(x+2)}$$
$$=\underset{x \to -2} \lim \frac{x^2-1}{2x+4}$$
There's not much use in these algebraic manipulations of the fraction.
Since the numerator does not tend to $0$ for $x \to -2$, but the denominator does, the absolute value of the function (the fraction) will tend to infinity.
This is sufficient to conclude that there will not be a finite limit but you could still say the limit is either $+\infty$ or $-\infty$. However, we reserve this for the case where the left- and right-handed limits agree, so when they are both either $+\infty$ or $-\infty$ respectively.
Now in your case: $$\lim_{x \to 2^-}\frac{x^2}{2x+4} = \ldots$$ but $$\lim_{x \to 2^+}\frac{x^2}{2x+4} = \ldots$$ so...