Given the function
$f(x)=\frac{x^2-5}{x+\sqrt{5}}$
If I draw this function in maple, I will get a line. How can that be true? I should expect a line except in area of $x = -\sqrt{5}$, where $f(x) \rightarrow \infty$ or $f(x) \rightarrow -\infty $. Of course Maple has factorized the numerator and reduced.
$\frac{x^2-5}{x+\sqrt{5}} = x-\sqrt{5},\ x\neq -\sqrt{5}$
My question is now, how can we ever reduce such a fraction with only condition $x\neq -\sqrt{5}$, when it is "$-\sqrt{5}$ and around it".