where is the following expression in undefined??

(x+1)(x-2)/x^2-25

The way you typed it, it would be undefined for x = 0

if you meant:
(x+1)(x-2)/(x^2-25)
then it would be undefined for x = ± 5