Evaluating integrals such as $\int \frac{1+\cos^{2}x}{1+\cos2x}$
$$1+\cos{2x}=2 \cos^2{x}$$
$$1/\cos^2{x}=\frac{d}{dx} \tan{x}$$
That should get you across the finish line.
$$1+\cos{2x}=2 \cos^2{x}$$
$$1/\cos^2{x}=\frac{d}{dx} \tan{x}$$
That should get you across the finish line.