Optimal. Leaf size=116 \[ 2 \cot ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac {2}{1+i a x}\right )-i \cot ^{-1}(a x) \text {PolyLog}\left (2,1-\frac {2 i}{i+a x}\right )+i \cot ^{-1}(a x) \text {PolyLog}\left (2,1-\frac {2 a x}{i+a x}\right )-\frac {1}{2} \text {PolyLog}\left (3,1-\frac {2 i}{i+a x}\right )+\frac {1}{2} \text {PolyLog}\left (3,1-\frac {2 a x}{i+a x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {4943, 5109,
5005, 5113, 6745} \begin {gather*} -\frac {1}{2} \text {Li}_3\left (1-\frac {2 i}{a x+i}\right )+\frac {1}{2} \text {Li}_3\left (1-\frac {2 a x}{a x+i}\right )-i \text {Li}_2\left (1-\frac {2 i}{a x+i}\right ) \cot ^{-1}(a x)+i \text {Li}_2\left (1-\frac {2 a x}{a x+i}\right ) \cot ^{-1}(a x)+2 \cot ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac {2}{1+i a x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4943
Rule 5005
Rule 5109
Rule 5113
Rule 6745
Rubi steps
\begin {align*} \int \frac {\cot ^{-1}(a x)^2}{x} \, dx &=2 \cot ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac {2}{1+i a x}\right )+(4 a) \int \frac {\cot ^{-1}(a x) \coth ^{-1}\left (1-\frac {2}{1+i a x}\right )}{1+a^2 x^2} \, dx\\ &=2 \cot ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac {2}{1+i a x}\right )-(2 a) \int \frac {\cot ^{-1}(a x) \log \left (\frac {2 i}{i+a x}\right )}{1+a^2 x^2} \, dx+(2 a) \int \frac {\cot ^{-1}(a x) \log \left (\frac {2 a x}{i+a x}\right )}{1+a^2 x^2} \, dx\\ &=2 \cot ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac {2}{1+i a x}\right )-i \cot ^{-1}(a x) \text {Li}_2\left (1-\frac {2 i}{i+a x}\right )+i \cot ^{-1}(a x) \text {Li}_2\left (1-\frac {2 a x}{i+a x}\right )-(i a) \int \frac {\text {Li}_2\left (1-\frac {2 i}{i+a x}\right )}{1+a^2 x^2} \, dx+(i a) \int \frac {\text {Li}_2\left (1-\frac {2 a x}{i+a x}\right )}{1+a^2 x^2} \, dx\\ &=2 \cot ^{-1}(a x)^2 \coth ^{-1}\left (1-\frac {2}{1+i a x}\right )-i \cot ^{-1}(a x) \text {Li}_2\left (1-\frac {2 i}{i+a x}\right )+i \cot ^{-1}(a x) \text {Li}_2\left (1-\frac {2 a x}{i+a x}\right )-\frac {1}{2} \text {Li}_3\left (1-\frac {2 i}{i+a x}\right )+\frac {1}{2} \text {Li}_3\left (1-\frac {2 a x}{i+a x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 132, normalized size = 1.14 \begin {gather*} -\frac {2}{3} i \cot ^{-1}(a x)^3-\cot ^{-1}(a x)^2 \log \left (1-e^{-2 i \cot ^{-1}(a x)}\right )+\cot ^{-1}(a x)^2 \log \left (1+e^{2 i \cot ^{-1}(a x)}\right )-i \cot ^{-1}(a x) \text {PolyLog}\left (2,e^{-2 i \cot ^{-1}(a x)}\right )-i \cot ^{-1}(a x) \text {PolyLog}\left (2,-e^{2 i \cot ^{-1}(a x)}\right )-\frac {1}{2} \text {PolyLog}\left (3,e^{-2 i \cot ^{-1}(a x)}\right )+\frac {1}{2} \text {PolyLog}\left (3,-e^{2 i \cot ^{-1}(a x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 2.07, size = 959, normalized size = 8.27 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {acot}^{2}{\left (a x \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {acot}\left (a\,x\right )}^2}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________