<s>[INST] Prove trigonometry identity for $\sec x -\sin x$ I'm trying to prove this equality but I' stuck at the second step.
Please give me some hints or other ways to proceed.
\begin{gather}\frac{\tan^2x + \cos^2x}{\sin x+ \sec x} \equiv \sec x - \sin x \\
\sin x = 0 \\
\cos x = y \\
\frac{\frac{x^2}{y^2}+ \frac{y^4}{y^2}}{\frac{xy}{y} + \frac{1}{y}} \equiv \frac{1}{y} - x = \frac{1-xy}{y} \tag{1} \\
\frac{ \frac{x^2+y^4}{y^2} }{ \frac{xy+1}{y} }\equiv \tag{2} \\
\frac{x^2+y^4}{y(xy+1)} \equiv\tag{3}
\end{gather}
 [/INST] Start by multiplying both sides by $\sin x + \sec x$ to get:
$$\tan^2 x + \cos^2 x = (\sec x - \sin x)(\sec x + \sin x)$$
And work the rest out from there :)
</s>