Question 763436
1)  factor the denominator and we have
    g(x)= (x+1)/ x^2+2x-24 = (x+1) / (x+6)*(x-4)
    so the rational expression is undefined for x = -6 or 4

2)   x(x+1)^2 (x-5)/ x(x+2)(x-5)^3
     cancel (x-5) from numerator and denominator and we get
     x*(x+1)^2 / x*(x+2)*(x-5)^2
     cancel x from numerator and denominator and we get
     (x+1)^2 / (x+2)*(x-5)^2
     so the rational expression is undefined for x = -2 or 5