2

Here's how I started: $$\int\frac{\sin{(2x)}}{1+\cos^2 x} dx = -2\int\frac{-\sin x\cos x}{1+\cos^2 x} dx = -2\int \frac{u}{1+u^2}du $$

I know the answer ends up being this from here:

$$ -\ln\left(1+\cos^2 x\right) $$

But I don't understand where this u in the numerator goes, it seems like the answer should look like this:

$$-2\cdot\frac{1}{2}\cdot u^2\cdot\ln\left(1+u^2\right) = -\cos^2 x \cdot \ln\left(1+\cos^2 x\right) $$

Thanks!

Asaf Karagila
  • 393,674
  • re-check my answer. There was an ugly bug in it...and you were right : there are logarithms in this question! – DonAntonio Jan 19 '14 at 20:51

2 Answers2

6

No substitution at all needed. Just a little trigonometry and some basic integration rules:

$$(\cos^2x)'=-2\sin x\cos x\;\;,\;\;\sin 2x=2\sin x\cos x$$

so

$$\int\frac{\sin 2x}{1+\cos^2x}dx=-\int\frac{-2\sin x\cos x}{1+\cos^2x}dx$$

and now you may want to use the general rule

$$\int\frac{f'(x)}{f(x)}dx=\log f(x)+C$$

DonAntonio
  • 211,718
  • 17
  • 136
  • 287
0

Make the substitution $u=1+\cos^2x$. Then $du= -2\sin x\cos x=-\sin 2x$, so the integral becomes

$$- \int \frac{du}{u} = -\ln(1+\cos^2x) + C. $$

Avi Steiner
  • 4,209