Solución

xcotx[csc2xlnx+cotxx]{x^{\cot x}}\left[ { - {{\csc }^2}x \cdot \ln x + {{\cot x} \over x}} \right]