# Antiderivative of trig function

## Homework Statement

$$\int\frac{{\rm{d}}x}{1+2\sin^2 (x)}$$

## The Attempt at a Solution

it's some sort of a derivative of arctan, however, when I try to substitute $y = \sqrt{2}\sin(x),\ {\rm{d}}y = \sqrt{2}\cos(x){\rm{d}}x$ I get nowhere with it, atleast I think, since there is a further complication, namely the dy. Suggestions, please.

## Answers and Replies

Related Calculus and Beyond Homework Help News on Phys.org
ShayanJ
Gold Member
Multiply by $\frac{sec^2x}{sec^2x}$ and then substitute $y=\sqrt 2 \tan x$!

Right, of course I won't think of that :D
$$\int\frac{\sec^2(x){\rm{d}}x}{\frac{1}{\cos^2(x)}+2\frac{\sin^2(x)}{\cos^2(x)}} = \int\frac{\sec^2(x){\rm{d}}x}{3\tan^2(x)+1}$$ and that's all she wrote.