I've been studying for an upcoming math test and have come across two problems that I can't figure out how to solve, help is appreciated.

prove:

$\displaystyle \frac{1 + \ tan(x)}{\sin x + \cos x}=\frac{1}{\cos(x)}$

and question 2:

$\displaystyle \frac{\ tan^2(x)}{1 - \cos x}=\frac{1}{\cos(x)} + \frac{1}{\cos^2(x)}$