Optimal. Leaf size=155 \[ -\frac {i \sqrt {x^2+1} \text {Li}_2\left (-\frac {i \sqrt {i x+1}}{\sqrt {1-i x}}\right )}{\sqrt {a x^2+a}}+\frac {i \sqrt {x^2+1} \text {Li}_2\left (\frac {i \sqrt {i x+1}}{\sqrt {1-i x}}\right )}{\sqrt {a x^2+a}}-\frac {2 i \sqrt {x^2+1} \tan ^{-1}\left (\frac {\sqrt {1+i x}}{\sqrt {1-i x}}\right ) \cot ^{-1}(x)}{\sqrt {a x^2+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4891, 4887} \[ -\frac {i \sqrt {x^2+1} \text {PolyLog}\left (2,-\frac {i \sqrt {1+i x}}{\sqrt {1-i x}}\right )}{\sqrt {a x^2+a}}+\frac {i \sqrt {x^2+1} \text {PolyLog}\left (2,\frac {i \sqrt {1+i x}}{\sqrt {1-i x}}\right )}{\sqrt {a x^2+a}}-\frac {2 i \sqrt {x^2+1} \tan ^{-1}\left (\frac {\sqrt {1+i x}}{\sqrt {1-i x}}\right ) \cot ^{-1}(x)}{\sqrt {a x^2+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4887
Rule 4891
Rubi steps
\begin {align*} \int \frac {\cot ^{-1}(x)}{\sqrt {a+a x^2}} \, dx &=\frac {\sqrt {1+x^2} \int \frac {\cot ^{-1}(x)}{\sqrt {1+x^2}} \, dx}{\sqrt {a+a x^2}}\\ &=-\frac {2 i \sqrt {1+x^2} \cot ^{-1}(x) \tan ^{-1}\left (\frac {\sqrt {1+i x}}{\sqrt {1-i x}}\right )}{\sqrt {a+a x^2}}-\frac {i \sqrt {1+x^2} \text {Li}_2\left (-\frac {i \sqrt {1+i x}}{\sqrt {1-i x}}\right )}{\sqrt {a+a x^2}}+\frac {i \sqrt {1+x^2} \text {Li}_2\left (\frac {i \sqrt {1+i x}}{\sqrt {1-i x}}\right )}{\sqrt {a+a x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 89, normalized size = 0.57 \[ -\frac {\sqrt {a \left (x^2+1\right )} \left (i \text {Li}_2\left (-e^{i \cot ^{-1}(x)}\right )-i \text {Li}_2\left (e^{i \cot ^{-1}(x)}\right )+\cot ^{-1}(x) \left (\log \left (1-e^{i \cot ^{-1}(x)}\right )-\log \left (1+e^{i \cot ^{-1}(x)}\right )\right )\right )}{a \sqrt {\frac {1}{x^2}+1} x} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.58, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\operatorname {arccot}\relax (x)}{\sqrt {a x^{2} + a}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {arccot}\relax (x)}{\sqrt {a x^{2} + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.92, size = 99, normalized size = 0.64 \[ \frac {i \left (i \mathrm {arccot}\relax (x ) \ln \left (1-\frac {x +i}{\sqrt {x^{2}+1}}\right )-i \mathrm {arccot}\relax (x ) \ln \left (1+\frac {x +i}{\sqrt {x^{2}+1}}\right )+\polylog \left (2, \frac {x +i}{\sqrt {x^{2}+1}}\right )-\polylog \left (2, -\frac {x +i}{\sqrt {x^{2}+1}}\right )\right ) \sqrt {a \left (x +i\right ) \left (x -i\right )}}{\sqrt {x^{2}+1}\, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {arccot}\relax (x)}{\sqrt {a x^{2} + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\mathrm {acot}\relax (x)}{\sqrt {a\,x^2+a}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {acot}{\relax (x )}}{\sqrt {a \left (x^{2} + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________