Optimal. Leaf size=68 \[ \frac {1}{3} x^3 \left (a+b \text {ArcSin}\left (c x^n\right )\right )-\frac {b c n x^{3+n} \, _2F_1\left (\frac {1}{2},\frac {3+n}{2 n};\frac {3 (1+n)}{2 n};c^2 x^{2 n}\right )}{3 (3+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 68, 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 = {4926, 12, 371}
\begin {gather*} \frac {1}{3} x^3 \left (a+b \text {ArcSin}\left (c x^n\right )\right )-\frac {b c n x^{n+3} \, _2F_1\left (\frac {1}{2},\frac {n+3}{2 n};\frac {3 (n+1)}{2 n};c^2 x^{2 n}\right )}{3 (n+3)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 371
Rule 4926
Rubi steps
\begin {align*} \int x^2 \left (a+b \sin ^{-1}\left (c x^n\right )\right ) \, dx &=\frac {1}{3} x^3 \left (a+b \sin ^{-1}\left (c x^n\right )\right )-\frac {1}{3} b \int \frac {c n x^{2+n}}{\sqrt {1-c^2 x^{2 n}}} \, dx\\ &=\frac {1}{3} x^3 \left (a+b \sin ^{-1}\left (c x^n\right )\right )-\frac {1}{3} (b c n) \int \frac {x^{2+n}}{\sqrt {1-c^2 x^{2 n}}} \, dx\\ &=\frac {1}{3} x^3 \left (a+b \sin ^{-1}\left (c x^n\right )\right )-\frac {b c n x^{3+n} \, _2F_1\left (\frac {1}{2},\frac {3+n}{2 n};\frac {3 (1+n)}{2 n};c^2 x^{2 n}\right )}{3 (3+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 75, normalized size = 1.10 \begin {gather*} \frac {a x^3}{3}+\frac {1}{3} b x^3 \text {ArcSin}\left (c x^n\right )-\frac {b c n x^{3+n} \, _2F_1\left (\frac {1}{2},\frac {3+n}{2 n};1+\frac {3+n}{2 n};c^2 x^{2 n}\right )}{3 (3+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int x^{2} \left (a +b \arcsin \left (c \,x^{n}\right )\right )\, dx\]
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(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 4.40, size = 66, normalized size = 0.97 \begin {gather*} \frac {a x^{3}}{3} + \frac {b x^{3} \operatorname {asin}{\left (c x^{n} \right )}}{3} + \frac {i b x^{3} \Gamma \left (\frac {3}{2 n}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, - \frac {3}{2 n} \\ 1 - \frac {3}{2 n} \end {matrix}\middle | {\frac {x^{- 2 n}}{c^{2}}} \right )}}{6 \Gamma \left (1 + \frac {3}{2 n}\right )} \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 x^2\,\left (a+b\,\mathrm {asin}\left (c\,x^n\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________