We can write
\begin{align*}
\frac{\sec x}{\sin x} - \frac{\sin x}{\cos x} &= \frac{1}{\cos x \sin x} - \frac{\sin x}{\cos x} \\
&= \frac{1 - \sin^2 x}{\cos x \sin x} \\
&= \frac{\cos^2 x}{\cos x \sin x} \\
&= \frac{\cos x}{\sin x} \\
&= \boxed{\cot x}.
\end{align*}
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Simplify
\[\frac{\sec x}{\sin x} - \frac{\sin x}{\cos x}.\]
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
\cot x
Simplify
\[\frac{\sec x}{\sin x} - \frac{\sin x}{\cos x}.\]
test