$$\int_0^{\frac{\pi}{4}}\frac{\sec x}{1+2\sin^2x}dx=?$$
Attempt:
$$=\int_0^{\frac{\pi}{4}}\frac{\sec x}{1+(1-\cos 2x)}dx$$ $$=\int_0^{\frac{\pi}{4}}\frac{\sec x}{2-\cos 2x}dx$$ $$=\sqrt{2}\int_0^{\frac{\pi}{4}}\frac{1}{\sqrt{1+\cos 2x}(2-\cos 2x)}dx$$ $$=\frac{\sqrt{2}}{3}\int_0^{\frac{\pi}{4}}\frac{1+\cos 2x+2-\cos 2x }{\sqrt{1+\cos 2x}(2-\cos 2x)}dx$$ $$=\frac{\sqrt{2}}{3}\int_0^{\frac{\pi}{4}}\frac{\sqrt{1+\cos 2x}}{(2-\cos 2x)}dx+\frac{\sqrt{2}}{3}\int_0^{\frac{\pi}{4}}\frac{1}{\sqrt{1+\cos 2x}}dx$$ The second integrand is easy to calculate. How can I solve the first integrand?
(I would also like to know if there are easier methods)