Optimal. Leaf size=48 \[ \frac {2 x^3}{3}-\frac {1}{4} \sqrt {1-x^2} x+\frac {1}{2} \sqrt {1-x^2} x^3+\frac {1}{4} \sin ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {6742, 279, 321, 216} \[ \frac {1}{2} \sqrt {1-x^2} x^3+\frac {2 x^3}{3}-\frac {1}{4} \sqrt {1-x^2} x+\frac {1}{4} \sin ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 216
Rule 279
Rule 321
Rule 6742
Rubi steps
\begin {align*} \int x^2 \left (\sqrt {1-x}+\sqrt {1+x}\right )^2 \, dx &=\int \left (2 x^2+2 x^2 \sqrt {1-x^2}\right ) \, dx\\ &=\frac {2 x^3}{3}+2 \int x^2 \sqrt {1-x^2} \, dx\\ &=\frac {2 x^3}{3}+\frac {1}{2} x^3 \sqrt {1-x^2}+\frac {1}{2} \int \frac {x^2}{\sqrt {1-x^2}} \, dx\\ &=\frac {2 x^3}{3}-\frac {1}{4} x \sqrt {1-x^2}+\frac {1}{2} x^3 \sqrt {1-x^2}+\frac {1}{4} \int \frac {1}{\sqrt {1-x^2}} \, dx\\ &=\frac {2 x^3}{3}-\frac {1}{4} x \sqrt {1-x^2}+\frac {1}{2} x^3 \sqrt {1-x^2}+\frac {1}{4} \sin ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 42, normalized size = 0.88 \[ \frac {1}{12} \left (-3 \sqrt {1-x^2} x+\left (6 \sqrt {1-x^2}+8\right ) x^3+3 \sin ^{-1}(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 51, normalized size = 1.06 \[ \frac {2}{3} \, x^{3} + \frac {1}{4} \, {\left (2 \, x^{3} - x\right )} \sqrt {x + 1} \sqrt {-x + 1} - \frac {1}{2} \, \arctan \left (\frac {\sqrt {x + 1} \sqrt {-x + 1} - 1}{x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.23, size = 76, normalized size = 1.58 \[ \frac {2}{3} \, x^{3} + \frac {1}{12} \, {\left ({\left (2 \, {\left (3 \, x - 10\right )} {\left (x + 1\right )} + 43\right )} {\left (x + 1\right )} - 39\right )} \sqrt {x + 1} \sqrt {-x + 1} + \frac {1}{3} \, {\left ({\left (2 \, x - 5\right )} {\left (x + 1\right )} + 9\right )} \sqrt {x + 1} \sqrt {-x + 1} + \frac {1}{2} \, \arcsin \left (\frac {1}{2} \, \sqrt {2} \sqrt {x + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 59, normalized size = 1.23 \[ \frac {2 x^{3}}{3}+\frac {\sqrt {x +1}\, \sqrt {-x +1}\, \left (2 \sqrt {-x^{2}+1}\, x^{3}-\sqrt {-x^{2}+1}\, x +\arcsin \relax (x )\right )}{4 \sqrt {-x^{2}+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.40, size = 34, normalized size = 0.71 \[ \frac {2}{3} \, x^{3} - \frac {1}{2} \, {\left (-x^{2} + 1\right )}^{\frac {3}{2}} x + \frac {1}{4} \, \sqrt {-x^{2} + 1} x + \frac {1}{4} \, \arcsin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 14.09, size = 563, normalized size = 11.73 \[ \frac {\frac {4\,\left (\sqrt {1-x}-1\right )}{\sqrt {x+1}-1}-\frac {28\,{\left (\sqrt {1-x}-1\right )}^3}{{\left (\sqrt {x+1}-1\right )}^3}+\frac {28\,{\left (\sqrt {1-x}-1\right )}^5}{{\left (\sqrt {x+1}-1\right )}^5}-\frac {4\,{\left (\sqrt {1-x}-1\right )}^7}{{\left (\sqrt {x+1}-1\right )}^7}}{\frac {4\,{\left (\sqrt {1-x}-1\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}+\frac {6\,{\left (\sqrt {1-x}-1\right )}^4}{{\left (\sqrt {x+1}-1\right )}^4}+\frac {4\,{\left (\sqrt {1-x}-1\right )}^6}{{\left (\sqrt {x+1}-1\right )}^6}+\frac {{\left (\sqrt {1-x}-1\right )}^8}{{\left (\sqrt {x+1}-1\right )}^8}+1}-\mathrm {atan}\left (\frac {\sqrt {1-x}-1}{\sqrt {x+1}-1}\right )-\frac {\frac {3\,\left (\sqrt {1-x}-1\right )}{\sqrt {x+1}-1}+\frac {23\,{\left (\sqrt {1-x}-1\right )}^3}{{\left (\sqrt {x+1}-1\right )}^3}-\frac {333\,{\left (\sqrt {1-x}-1\right )}^5}{{\left (\sqrt {x+1}-1\right )}^5}+\frac {671\,{\left (\sqrt {1-x}-1\right )}^7}{{\left (\sqrt {x+1}-1\right )}^7}-\frac {671\,{\left (\sqrt {1-x}-1\right )}^9}{{\left (\sqrt {x+1}-1\right )}^9}+\frac {333\,{\left (\sqrt {1-x}-1\right )}^{11}}{{\left (\sqrt {x+1}-1\right )}^{11}}-\frac {23\,{\left (\sqrt {1-x}-1\right )}^{13}}{{\left (\sqrt {x+1}-1\right )}^{13}}-\frac {3\,{\left (\sqrt {1-x}-1\right )}^{15}}{{\left (\sqrt {x+1}-1\right )}^{15}}}{\frac {8\,{\left (\sqrt {1-x}-1\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}+\frac {28\,{\left (\sqrt {1-x}-1\right )}^4}{{\left (\sqrt {x+1}-1\right )}^4}+\frac {56\,{\left (\sqrt {1-x}-1\right )}^6}{{\left (\sqrt {x+1}-1\right )}^6}+\frac {70\,{\left (\sqrt {1-x}-1\right )}^8}{{\left (\sqrt {x+1}-1\right )}^8}+\frac {56\,{\left (\sqrt {1-x}-1\right )}^{10}}{{\left (\sqrt {x+1}-1\right )}^{10}}+\frac {28\,{\left (\sqrt {1-x}-1\right )}^{12}}{{\left (\sqrt {x+1}-1\right )}^{12}}+\frac {8\,{\left (\sqrt {1-x}-1\right )}^{14}}{{\left (\sqrt {x+1}-1\right )}^{14}}+\frac {{\left (\sqrt {1-x}-1\right )}^{16}}{{\left (\sqrt {x+1}-1\right )}^{16}}+1}+\frac {2\,x^3}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________