Answer
See below.
Work Step by Step
$f(\theta)=\frac{sin\theta}{cos\theta}+\frac{1}{cos\theta}=\frac{1+sin\theta}{cos\theta}\times\frac{1-sin\theta}{1-sin\theta}=\frac{1-sin^2\theta}{cos\theta(1-sin\theta)}=\frac{cos\theta}{1-sin\theta}=g(\theta)$