Let's first write it out: ${1 \over \cos x} \times {1 \over \sin x } -{\sin x \over \cos x} = {1 - \sin^2 \over \cos x \times \sin x} = {\cos ^2x \over \cos x \times \sin x} ={ \cos x \over \sin x} = \cot x$