9tan (x) - 9 sec^2 (x)/ tan (x)

there's no equation

the expression is equivalent to

(9tan^2-9sec^2)/tan
and since sec^2-tan^2=1, that's just
-9/tan