derivative of (x^2+secx)/(1+tanx)