mei mei answered Secx=1/cosx, (1/cosx-cosx)/sinx=(1-because^{2}x)/sinxcosx=sin^{2}x/sinxcosx=sinx/cosx=tanx.