#5costheta - 8/cos(theta)#
#costheta/costheta xx (5costheta)/1 - 8/costheta#
#(5cos^2theta)/costheta- 8/costheta#
#(5cos^2theta-8)/costheta#
#cos^2theta = 1-sin^2theta#
#(5(1-sin^2theta)-8)/costheta#
#(5-5sin^2theta - 8)/costheta#
#(-3-5sin^2theta)/costheta#