Optimal. Leaf size=66 \[ \frac {4 \sqrt {1-x^2}}{9}+\frac {2}{27} \left (1-x^2\right )^{3/2}-\frac {2}{3} x \cos ^{-1}(x)+\frac {2}{9} x^3 \cos ^{-1}(x)-\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {4768, 4740,
455, 45} \begin {gather*} \frac {2}{9} x^3 \text {ArcCos}(x)-\frac {1}{3} \left (1-x^2\right )^{3/2} \text {ArcCos}(x)^2-\frac {2}{3} x \text {ArcCos}(x)+\frac {2}{27} \left (1-x^2\right )^{3/2}+\frac {4 \sqrt {1-x^2}}{9} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 455
Rule 4740
Rule 4768
Rubi steps
\begin {align*} \int x \sqrt {1-x^2} \cos ^{-1}(x)^2 \, dx &=-\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)^2-\frac {2}{3} \int \left (1-x^2\right ) \cos ^{-1}(x) \, dx\\ &=-\frac {2}{3} x \cos ^{-1}(x)+\frac {2}{9} x^3 \cos ^{-1}(x)-\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)^2-\frac {2}{3} \int \frac {x \left (1-\frac {x^2}{3}\right )}{\sqrt {1-x^2}} \, dx\\ &=-\frac {2}{3} x \cos ^{-1}(x)+\frac {2}{9} x^3 \cos ^{-1}(x)-\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)^2-\frac {1}{3} \text {Subst}\left (\int \frac {1-\frac {x}{3}}{\sqrt {1-x}} \, dx,x,x^2\right )\\ &=-\frac {2}{3} x \cos ^{-1}(x)+\frac {2}{9} x^3 \cos ^{-1}(x)-\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)^2-\frac {1}{3} \text {Subst}\left (\int \left (\frac {2}{3 \sqrt {1-x}}+\frac {\sqrt {1-x}}{3}\right ) \, dx,x,x^2\right )\\ &=\frac {4 \sqrt {1-x^2}}{9}+\frac {2}{27} \left (1-x^2\right )^{3/2}-\frac {2}{3} x \cos ^{-1}(x)+\frac {2}{9} x^3 \cos ^{-1}(x)-\frac {1}{3} \left (1-x^2\right )^{3/2} \cos ^{-1}(x)^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 50, normalized size = 0.76 \begin {gather*} \frac {1}{27} \left (-2 \sqrt {1-x^2} \left (-7+x^2\right )+6 x \left (-3+x^2\right ) \cos ^{-1}(x)-9 \left (1-x^2\right )^{3/2} \cos ^{-1}(x)^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.19, size = 158, normalized size = 2.39
method | result | size |
default | \(-\frac {\left (6 i \arccos \left (x \right )+9 \arccos \left (x \right )^{2}-2\right ) \left (4 i x^{3}-4 x^{2} \sqrt {-x^{2}+1}-3 i x +\sqrt {-x^{2}+1}\right )}{216}+\frac {\left (\arccos \left (x \right )^{2}-2+2 i \arccos \left (x \right )\right ) \left (i x -\sqrt {-x^{2}+1}\right )}{8}-\frac {\left (\arccos \left (x \right )^{2}-2-2 i \arccos \left (x \right )\right ) \left (i x +\sqrt {-x^{2}+1}\right )}{8}+\frac {\left (-6 i \arccos \left (x \right )+9 \arccos \left (x \right )^{2}-2\right ) \left (4 i x^{3}+4 x^{2} \sqrt {-x^{2}+1}-3 i x -\sqrt {-x^{2}+1}\right )}{216}\) | \(158\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.35, size = 52, normalized size = 0.79 \begin {gather*} -\frac {1}{3} \, {\left (-x^{2} + 1\right )}^{\frac {3}{2}} \arccos \left (x\right )^{2} - \frac {2}{27} \, \sqrt {-x^{2} + 1} x^{2} + \frac {2}{9} \, {\left (x^{3} - 3 \, x\right )} \arccos \left (x\right ) + \frac {14}{27} \, \sqrt {-x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.49, size = 41, normalized size = 0.62 \begin {gather*} \frac {2}{9} \, {\left (x^{3} - 3 \, x\right )} \arccos \left (x\right ) + \frac {1}{27} \, {\left (9 \, {\left (x^{2} - 1\right )} \arccos \left (x\right )^{2} - 2 \, x^{2} + 14\right )} \sqrt {-x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.35, size = 78, normalized size = 1.18 \begin {gather*} \frac {2 x^{3} \operatorname {acos}{\left (x \right )}}{9} + \frac {x^{2} \sqrt {1 - x^{2}} \operatorname {acos}^{2}{\left (x \right )}}{3} - \frac {2 x^{2} \sqrt {1 - x^{2}}}{27} - \frac {2 x \operatorname {acos}{\left (x \right )}}{3} - \frac {\sqrt {1 - x^{2}} \operatorname {acos}^{2}{\left (x \right )}}{3} + \frac {14 \sqrt {1 - x^{2}}}{27} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.79, size = 53, normalized size = 0.80 \begin {gather*} \frac {2}{9} \, x^{3} \arccos \left (x\right ) - \frac {1}{3} \, {\left (-x^{2} + 1\right )}^{\frac {3}{2}} \arccos \left (x\right )^{2} - \frac {2}{27} \, \sqrt {-x^{2} + 1} x^{2} - \frac {2}{3} \, x \arccos \left (x\right ) + \frac {14}{27} \, \sqrt {-x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x\,{\mathrm {acos}\left (x\right )}^2\,\sqrt {1-x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________