$latex \displaystyle \frac{{\cos x}}{{1-\sin x}}=\tan x + \sec x$

The rule of thumb is to always prove from the side that looks more complicated. I choose the Left-Hand Side (LHS). Look at the bottom of the page for further explanation.

$latex \displaystyle \frac{{\cos x}}{{1-\sin x}}\times \frac{{1+\sin x}}{{1+\sin x}}$

I multiplied both the numerator and denominator by 1-sin x so that I am able to change the denominator to a single expression $latex \displaystyle {{\cos }^{2}}x$. Use the special algebraic rule $latex \displaystyle (a+b)(a-b)={{a}^{2}}-{{b}^{2}}$

$latex \displaystyle \frac{{\cos x(1+\sin x)}}{{1-{{{\sin }}^{2}}x}}$

Use the trigonometric identity $latex \displaystyle {{\sin }^{2}}x+{{\cos }^{2}}x=1$

$latex \displaystyle \frac{{\cos x(1+\sin x)}}{{{{{\cos }}^{2}}x}}$

$latex \displaystyle \frac{{\cos x+\cos x\sin x}}{{{{{\cos }}^{2}}x}}$

$latex \displaystyle \frac{{\cos x}}{{{{{\cos }}^{2}}x}}+\frac{{\cos x\sin x}}{{{{{\cos }}^{2}}x}}$

Simplify the expression by eliminating $latex \displaystyle {{\cos }^{2}}x$ from the numerator and denominator.

$latex \displaystyle \frac{1}{{\cos x}}+\frac{{\sin x}}{{\cos x}}$

$latex \displaystyle \sec x+\tan x$

LHS = RHS

As a rule of thumb, we normally manipulate trigonometric identities from the more ‘complicated’ side. A more ‘complicated’ side has more numbers and variables and it looks more ‘complicated’, it does not mean it is more difficult to manipulate. In fact, there are more ways to manipulate the expression that has more numbers and variables.