#(− sec ( x ) tan^2 ( x ) − ( 9 − sec ( x ) ) sec^2 ( x ))/tan^2 x#
#=(− sec ( x ) (sec^2 ( x ) -1)− ( 9 − sec ( x ) ) sec^2 ( x ))/tan^2 x#
#=(− sec^3 ( x )+ secx− 9sec^2x + sec^3 ( x ))/tan^2 x#
#=(secx− 9sec^2x )/tan^2 x#
#=secx/tan^2x− (9sec^2x)/tan^2 x#
#=cosx xxcsc^2x− 9csc^2x#