Answer
$$
g(x)=\cos x+2 \sec^{2} x
$$
The general anti-derivative of $
g(x)=\cos x+2 \sec^{2} x,
$ is
$$
G(x) =\sin x+ 2 \tan x +C \\
$$
where $C$ is an arbitrary constant.
Work Step by Step
$$
g(x)=\cos x+2 \sec^{2} x
$$
The general anti-derivative of $
g(x)=\cos x+2 \sec^{2} x,
$ is
$$
G(x) =\sin x+ 2 \tan x +C
$$
where $C$ is an arbitrary constant.