/ 2 \
|1 + cot (x) x*cot(x) / 2 \ |
2*|----------- + --------- + \1 + cot (x)/*acot(x)*cot(x)|
| 2 2 |
| 1 + x / 2\ |
\ \1 + x / /
$$2 \left(\frac{x \cot{\left(x \right)}}{\left(x^{2} + 1\right)^{2}} + \left(\cot^{2}{\left(x \right)} + 1\right) \cot{\left(x \right)} \operatorname{acot}{\left(x \right)} + \frac{\cot^{2}{\left(x \right)} + 1}{x^{2} + 1}\right)$$
// 2 \ \
|| 4*x | |
||-1 + ------|*cot(x) |
|| 2| / 2 \ / 2 \ |
|\ 1 + x / / 2 \ / 2 \ 3*x*\1 + cot (x)/ 3*\1 + cot (x)/*cot(x)|
-2*|-------------------- + \1 + cot (x)/*\1 + 3*cot (x)/*acot(x) + ----------------- + ----------------------|
| 2 2 2 |
| / 2\ / 2\ 1 + x |
\ \1 + x / \1 + x / /
$$- 2 \left(\frac{3 x \left(\cot^{2}{\left(x \right)} + 1\right)}{\left(x^{2} + 1\right)^{2}} + \left(\cot^{2}{\left(x \right)} + 1\right) \left(3 \cot^{2}{\left(x \right)} + 1\right) \operatorname{acot}{\left(x \right)} + \frac{3 \left(\cot^{2}{\left(x \right)} + 1\right) \cot{\left(x \right)}}{x^{2} + 1} + \frac{\left(\frac{4 x^{2}}{x^{2} + 1} - 1\right) \cot{\left(x \right)}}{\left(x^{2} + 1\right)^{2}}\right)$$