Optimal. Leaf size=195 \[ -\frac {i a \sqrt {x^2+1} \text {Li}_2\left (-\frac {i \sqrt {i x+1}}{\sqrt {1-i x}}\right )}{2 \sqrt {a x^2+a}}+\frac {i a \sqrt {x^2+1} \text {Li}_2\left (\frac {i \sqrt {i x+1}}{\sqrt {1-i x}}\right )}{2 \sqrt {a x^2+a}}+\frac {1}{2} \sqrt {a x^2+a}+\frac {1}{2} x \sqrt {a x^2+a} \cot ^{-1}(x)-\frac {i a \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.07, antiderivative size = 195, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {4879, 4891, 4887} \[ -\frac {i a \sqrt {x^2+1} \text {PolyLog}\left (2,-\frac {i \sqrt {1+i x}}{\sqrt {1-i x}}\right )}{2 \sqrt {a x^2+a}}+\frac {i a \sqrt {x^2+1} \text {PolyLog}\left (2,\frac {i \sqrt {1+i x}}{\sqrt {1-i x}}\right )}{2 \sqrt {a x^2+a}}+\frac {1}{2} \sqrt {a x^2+a}+\frac {1}{2} x \sqrt {a x^2+a} \cot ^{-1}(x)-\frac {i a \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 4879
Rule 4887
Rule 4891
Rubi steps
\begin {align*} \int \sqrt {a+a x^2} \cot ^{-1}(x) \, dx &=\frac {1}{2} \sqrt {a+a x^2}+\frac {1}{2} x \sqrt {a+a x^2} \cot ^{-1}(x)+\frac {1}{2} a \int \frac {\cot ^{-1}(x)}{\sqrt {a+a x^2}} \, dx\\ &=\frac {1}{2} \sqrt {a+a x^2}+\frac {1}{2} x \sqrt {a+a x^2} \cot ^{-1}(x)+\frac {\left (a \sqrt {1+x^2}\right ) \int \frac {\cot ^{-1}(x)}{\sqrt {1+x^2}} \, dx}{2 \sqrt {a+a x^2}}\\ &=\frac {1}{2} \sqrt {a+a x^2}+\frac {1}{2} x \sqrt {a+a x^2} \cot ^{-1}(x)-\frac {i a \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 a \sqrt {1+x^2} \text {Li}_2\left (-\frac {i \sqrt {1+i x}}{\sqrt {1-i x}}\right )}{2 \sqrt {a+a x^2}}+\frac {i a \sqrt {1+x^2} \text {Li}_2\left (\frac {i \sqrt {1+i x}}{\sqrt {1-i x}}\right )}{2 \sqrt {a+a x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.25, size = 136, normalized size = 0.70 \[ -\frac {\left (a \left (x^2+1\right )\right )^{3/2} \left (4 i \text {Li}_2\left (-e^{i \cot ^{-1}(x)}\right )-4 i \text {Li}_2\left (e^{i \cot ^{-1}(x)}\right )-2 \cot \left (\frac {1}{2} \cot ^{-1}(x)\right )+4 \cot ^{-1}(x) \log \left (1-e^{i \cot ^{-1}(x)}\right )-4 \cot ^{-1}(x) \log \left (1+e^{i \cot ^{-1}(x)}\right )-2 \tan \left (\frac {1}{2} \cot ^{-1}(x)\right )-\cot ^{-1}(x) \csc ^2\left (\frac {1}{2} \cot ^{-1}(x)\right )+\cot ^{-1}(x) \sec ^2\left (\frac {1}{2} \cot ^{-1}(x)\right )\right )}{8 a \left (\frac {1}{x^2}+1\right )^{3/2} x^3} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.64, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {a x^{2} + a} \operatorname {arccot}\relax (x), 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 \sqrt {a x^{2} + a} \operatorname {arccot}\relax (x)\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.07, size = 117, normalized size = 0.60 \[ \frac {\sqrt {a \left (x +i\right ) \left (x -i\right )}\, \left (x \,\mathrm {arccot}\relax (x )+1\right )}{2}-\frac {i \sqrt {a \left (x +i\right ) \left (x -i\right )}\, \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 )}{2 \sqrt {x^{2}+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a x^{2} + a} \operatorname {arccot}\relax (x)\,{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 \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 \sqrt {a \left (x^{2} + 1\right )} \operatorname {acot}{\relax (x )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________