second derivative (6x^2+x+12)/(3x^2-5x-2)