Optimal. Leaf size=95 \[ \frac {4 x}{3}-\frac {x^3}{9}+\sqrt {1-x^2} \cos ^{-1}(x)+\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)+2 i \cos ^{-1}(x) \tan ^{-1}\left (e^{i \cos ^{-1}(x)}\right )-i \text {Li}_2\left (-i e^{i \cos ^{-1}(x)}\right )+i \text {Li}_2\left (i e^{i \cos ^{-1}(x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 7, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.412, Rules used = {4788, 4784,
4804, 4266, 2317, 2438, 8} \begin {gather*} -i \text {PolyLog}\left (2,-i e^{i \text {ArcCos}(x)}\right )+i \text {PolyLog}\left (2,i e^{i \text {ArcCos}(x)}\right )+2 i \text {ArcCos}(x) \text {ArcTan}\left (e^{i \text {ArcCos}(x)}\right )+\frac {1}{3} \left (1-x^2\right )^{3/2} \text {ArcCos}(x)+\sqrt {1-x^2} \text {ArcCos}(x)-\frac {x^3}{9}+\frac {4 x}{3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2317
Rule 2438
Rule 4266
Rule 4784
Rule 4788
Rule 4804
Rubi steps
\begin {align*} \int \frac {\left (1-x^2\right )^{3/2} \cos ^{-1}(x)}{x} \, dx &=\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)+\frac {1}{3} \int \left (1-x^2\right ) \, dx+\int \frac {\sqrt {1-x^2} \cos ^{-1}(x)}{x} \, dx\\ &=\frac {x}{3}-\frac {x^3}{9}+\sqrt {1-x^2} \cos ^{-1}(x)+\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)+\int 1 \, dx+\int \frac {\cos ^{-1}(x)}{x \sqrt {1-x^2}} \, dx\\ &=\frac {4 x}{3}-\frac {x^3}{9}+\sqrt {1-x^2} \cos ^{-1}(x)+\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)-\text {Subst}\left (\int x \sec (x) \, dx,x,\cos ^{-1}(x)\right )\\ &=\frac {4 x}{3}-\frac {x^3}{9}+\sqrt {1-x^2} \cos ^{-1}(x)+\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)+2 i \cos ^{-1}(x) \tan ^{-1}\left (e^{i \cos ^{-1}(x)}\right )+\text {Subst}\left (\int \log \left (1-i e^{i x}\right ) \, dx,x,\cos ^{-1}(x)\right )-\text {Subst}\left (\int \log \left (1+i e^{i x}\right ) \, dx,x,\cos ^{-1}(x)\right )\\ &=\frac {4 x}{3}-\frac {x^3}{9}+\sqrt {1-x^2} \cos ^{-1}(x)+\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)+2 i \cos ^{-1}(x) \tan ^{-1}\left (e^{i \cos ^{-1}(x)}\right )-i \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i \cos ^{-1}(x)}\right )+i \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i \cos ^{-1}(x)}\right )\\ &=\frac {4 x}{3}-\frac {x^3}{9}+\sqrt {1-x^2} \cos ^{-1}(x)+\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)+2 i \cos ^{-1}(x) \tan ^{-1}\left (e^{i \cos ^{-1}(x)}\right )-i \text {Li}_2\left (-i e^{i \cos ^{-1}(x)}\right )+i \text {Li}_2\left (i e^{i \cos ^{-1}(x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 119, normalized size = 1.25 \begin {gather*} x+\sqrt {1-x^2} \cos ^{-1}(x)+\frac {1}{36} \left (9 x+12 \left (1-x^2\right )^{3/2} \cos ^{-1}(x)-\cos \left (3 \cos ^{-1}(x)\right )\right )-\cos ^{-1}(x) \log \left (1-i e^{i \cos ^{-1}(x)}\right )+\cos ^{-1}(x) \log \left (1+i e^{i \cos ^{-1}(x)}\right )-i \text {Li}_2\left (-i e^{i \cos ^{-1}(x)}\right )+i \text {Li}_2\left (i e^{i \cos ^{-1}(x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 229 vs. \(2 (98 ) = 196\).
time = 0.29, size = 230, normalized size = 2.42
method | result | size |
default | \(\frac {\left (i+3 \arccos \left (x \right )\right ) \left (4 i x^{3}-4 x^{2} \sqrt {-x^{2}+1}-3 i x +\sqrt {-x^{2}+1}\right )}{72}-\frac {5 \left (\arccos \left (x \right )+i\right ) \left (i x -\sqrt {-x^{2}+1}\right )}{8}+\frac {5 \left (\arccos \left (x \right )-i\right ) \left (i x +\sqrt {-x^{2}+1}\right )}{8}-\frac {\left (-i+3 \arccos \left (x \right )\right ) \left (4 i x^{3}+4 x^{2} \sqrt {-x^{2}+1}-3 i x -\sqrt {-x^{2}+1}\right )}{72}-i \left (i \arccos \left (x \right ) \ln \left (1+i \left (x +i \sqrt {-x^{2}+1}\right )\right )-i \arccos \left (x \right ) \ln \left (1-i \left (x +i \sqrt {-x^{2}+1}\right )\right )+\dilog \left (1+i \left (x +i \sqrt {-x^{2}+1}\right )\right )-\dilog \left (1-i \left (x +i \sqrt {-x^{2}+1}\right )\right )\right )\) | \(230\) |
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(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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 {acos}\left (x\right )\,{\left (1-x^2\right )}^{3/2}}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________