I'm trying to calculate $\int \frac{1+\cos2x}{\sin^2 2x}$ for the third time and I'm still getting the same result. As usual I tried substitution:
$u = 2x$
$$\frac{1}{2} \int \frac{1+\cos u}{\sin^2 u} = \frac{1}{2} *\int \csc^2 u + \int \frac{\cot u}{\sin u}$$
$$\frac{1}{2} *[-\cot u + \int \cos u ]$$
$$\frac{-\cot 2x}{2} + \frac{\sin 2x}{2}$$
The solution in my textbook is completly different, however. What's wrong with my method?
Again here is the problem $\int \frac{\cot (u)}{ \sin (u) } du= \int \csc( u) \cot( u) du = -\csc (u)$.
So final solution according to your method is :
$$-\frac{1}{2}\left(\cot(2x) + \csc(2x)\right) + c$$