derivative of (x^2-9)/(x^2+1)