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".
A function doesn't go to infinity every time it's denominator goes to zero. If the numerator also goes to zero, then "anything" can happen. In this case, the graph of your function looks exactly like the graph of $x - \sqrt{5}$ except that there's a tiny hole in the line at $x=-\sqrt{5}$ where the function is undefined. Maple won't see the hole. Bottom line is that you have everything right, but you expected something different.