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