I am having trouble with understanding limits. For example:
$\displaystyle \lim_{x\rightarrow 3}\;\frac{(x-3)(x^2-x-2)}{(x-3)} = 4$
(sorry for this notation but I'm new here) I understand that we can cancel (x-3) in numerator and denominator, because x will be close to 3 but never actually 3. But I don't understand why can you plug 3 after getting new function, in other words why will
$\displaystyle \lim_{x\rightarrow 3}\;(x^2-x-2) = 4$
have the same value as $3\cdot 3 - 3 - 2$ when we assumed that $x$ will never be $3$ but only close to $3$. So, should we instead plug $2.999$ and get limit $2.999\cdot2.999 - 2.999 - 2$?