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