The answer (Indefinite)
[src]
/
| 2 / 2 \
| 2 x log\1 + tan (x)/ x
| x*cot (x)*1 dx = C - -- - ---------------- - ------ + log(tan(x))
| 2 2 tan(x)
/
$${{\left(\sin ^2\left(2\,x\right)+\cos ^2\left(2\,x\right)-2\,\cos
\left(2\,x\right)+1\right)\,\log \left(\sin ^2x+\cos ^2x+2\,\cos x+1
\right)+\left(\sin ^2\left(2\,x\right)+\cos ^2\left(2\,x\right)-2\,
\cos \left(2\,x\right)+1\right)\,\log \left(\sin ^2x+\cos ^2x-2\,
\cos x+1\right)-x^2\,\sin ^2\left(2\,x\right)-4\,x\,\sin \left(2\,x
\right)-x^2\,\cos ^2\left(2\,x\right)+2\,x^2\,\cos \left(2\,x\right)
-x^2}\over{2\,\sin ^2\left(2\,x\right)+2\,\cos ^2\left(2\,x\right)-4
\,\cos \left(2\,x\right)+2}}$$