[Math] How to show that $ \frac{\cos x}{1 – \sin x} – \tan x = \sec x$

trigonometry

Question is: verify the identity:

$$
\frac{\cos x}{1 – \sin x} – \tan x = \sec x.
$$

How do I show that the left side equals the right?
I changed $\tan x$ into $\sin x/\cos x$ but didn't get anywhere.
Please help.

Best Answer

$$\frac{\cos x}{1-\sin x}-\tan x=\frac{\cos x}{1-\sin x}-\frac{\sin x}{\cos x}=$$

$$=\frac{\cos^2x-\sin x+\sin^2x}{\cos x(1-\sin x)}=\frac{1-\sin x}{\cos x (1-\sin x)}=\ldots$$