Optimal. Leaf size=45 \[ -\frac {9}{8} x \sqrt {9-x^2}+\frac {1}{4} x^3 \sqrt {9-x^2}+\frac {81}{8} \sin ^{-1}\left (\frac {x}{3}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {285, 327, 222}
\begin {gather*} -\frac {9}{8} \sqrt {9-x^2} x+\frac {1}{4} \sqrt {9-x^2} x^3+\frac {81}{8} \sin ^{-1}\left (\frac {x}{3}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 285
Rule 327
Rubi steps
\begin {align*} \int x^2 \sqrt {9-x^2} \, dx &=\frac {1}{4} x^3 \sqrt {9-x^2}+\frac {9}{4} \int \frac {x^2}{\sqrt {9-x^2}} \, dx\\ &=-\frac {9}{8} x \sqrt {9-x^2}+\frac {1}{4} x^3 \sqrt {9-x^2}+\frac {81}{8} \int \frac {1}{\sqrt {9-x^2}} \, dx\\ &=-\frac {9}{8} x \sqrt {9-x^2}+\frac {1}{4} x^3 \sqrt {9-x^2}+\frac {81}{8} \sin ^{-1}\left (\frac {x}{3}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 46, normalized size = 1.02 \begin {gather*} \frac {1}{8} x \sqrt {9-x^2} \left (-9+2 x^2\right )-\frac {81}{4} \tan ^{-1}\left (\frac {\sqrt {9-x^2}}{3+x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 3.70, size = 92, normalized size = 2.04 \begin {gather*} \text {Piecewise}\left [\left \{\left \{\frac {I \left (81 x-27 x^3+2 x^5-81 \text {ArcCosh}\left [\frac {x}{3}\right ] \sqrt {-9+x^2}\right )}{8 \sqrt {-9+x^2}},\text {Abs}\left [x^2\right ]>9\right \}\right \},\frac {-81 x}{8 \sqrt {9-x^2}}+\frac {27 x^3}{8 \sqrt {9-x^2}}-\frac {x^5}{4 \sqrt {9-x^2}}+\frac {81 \text {ArcSin}\left [\frac {x}{3}\right ]}{8}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 32, normalized size = 0.71
method | result | size |
default | \(-\frac {x \left (-x^{2}+9\right )^{\frac {3}{2}}}{4}+\frac {9 x \sqrt {-x^{2}+9}}{8}+\frac {81 \arcsin \left (\frac {x}{3}\right )}{8}\) | \(32\) |
risch | \(-\frac {x \left (2 x^{2}-9\right ) \left (x^{2}-9\right )}{8 \sqrt {-x^{2}+9}}+\frac {81 \arcsin \left (\frac {x}{3}\right )}{8}\) | \(32\) |
meijerg | \(-\frac {81 i \left (-\frac {i \sqrt {\pi }\, x \left (-\frac {2 x^{2}}{3}+3\right ) \sqrt {-\frac {x^{2}}{9}+1}}{18}+\frac {i \sqrt {\pi }\, \arcsin \left (\frac {x}{3}\right )}{2}\right )}{4 \sqrt {\pi }}\) | \(41\) |
trager | \(\frac {x \left (2 x^{2}-9\right ) \sqrt {-x^{2}+9}}{8}+\frac {81 \RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (\RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {-x^{2}+9}+x \right )}{8}\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.36, size = 31, normalized size = 0.69 \begin {gather*} -\frac {1}{4} \, {\left (-x^{2} + 9\right )}^{\frac {3}{2}} x + \frac {9}{8} \, \sqrt {-x^{2} + 9} x + \frac {81}{8} \, \arcsin \left (\frac {1}{3} \, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 39, normalized size = 0.87 \begin {gather*} \frac {1}{8} \, {\left (2 \, x^{3} - 9 \, x\right )} \sqrt {-x^{2} + 9} - \frac {81}{4} \, \arctan \left (\frac {\sqrt {-x^{2} + 9} - 3}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.68, size = 110, normalized size = 2.44 \begin {gather*} \begin {cases} \frac {i x^{5}}{4 \sqrt {x^{2} - 9}} - \frac {27 i x^{3}}{8 \sqrt {x^{2} - 9}} + \frac {81 i x}{8 \sqrt {x^{2} - 9}} - \frac {81 i \operatorname {acosh}{\left (\frac {x}{3} \right )}}{8} & \text {for}\: \left |{x^{2}}\right | > 9 \\- \frac {x^{5}}{4 \sqrt {9 - x^{2}}} + \frac {27 x^{3}}{8 \sqrt {9 - x^{2}}} - \frac {81 x}{8 \sqrt {9 - x^{2}}} + \frac {81 \operatorname {asin}{\left (\frac {x}{3} \right )}}{8} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 33, normalized size = 0.73 \begin {gather*} 2 \left (\frac {1}{8} x x-\frac {9}{16}\right ) x \sqrt {-x^{2}+9}+\frac {81}{8} \arcsin \left (\frac {x}{3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 27, normalized size = 0.60 \begin {gather*} \frac {81\,\mathrm {asin}\left (\frac {x}{3}\right )}{8}-\sqrt {9-x^2}\,\left (\frac {9\,x}{8}-\frac {x^3}{4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________