How do you rationalize the denominator and simplify (cos^2 x) /( 1- sin x) ?

$\frac{{\cos}^{2} x}{1 - \sin x} \times \frac{1 + \sin x}{1 + \sin x} = \left(\frac{{\cos}^{2} x}{1 - {\sin}^{2} x} \times \left(1 + \sin x\right)\right)$
$= \frac{{\cancel{\cos}}^{2} x}{{\cancel{\cos}}^{2} x} \left(1 + \sin x\right) = 1 + \sin x$