Trig I need to simplify and write the trig expressions in terms of sin and cos

we have the expression
[tex]\frac{2+tan^2x}{sec^2x}-1[/tex]Remember that
[tex]tan^2x+1=sec^2x[/tex]substitute in the given expression
[tex]\begin{gathered} \frac{2+tan^{2}x}{sec^{2}x}-1 \\ \\ \frac{1+(1+tan^2x)}{sec^2x}-1 \\ \\ \frac{1+(sec^2x)}{sec^2x}-1 \\ \\ \frac{1+sec^2x-sec^2x}{sec^2x} \\ \\ \frac{1}{sec^2x} \\ \\ cos^2x \end{gathered}[/tex]therefore
[tex]g(x)=cos^2x[/tex]