Optimal. Leaf size=21 \[ \frac{2}{3} \left (1-x^2\right )^{3/2}-x^2 \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.227074, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.075 \[ \frac{2}{3} \left (1-x^2\right )^{3/2}-x^2 \]
Antiderivative was successfully verified.
[In] Int[x*(-Sqrt[1 - x] - Sqrt[1 + x])*(Sqrt[1 - x] + Sqrt[1 + x]),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ - 2 \int ^{\sqrt{x + 1}} x \left (x + \sqrt{- x^{2} + 2}\right )^{2} \left (x^{2} - 1\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x*(-(1-x)**(1/2)-(1+x)**(1/2))*((1-x)**(1/2)+(1+x)**(1/2)),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0234544, size = 24, normalized size = 1.14 \[ -\frac{1}{3} \left (x^2-1\right ) \left (2 \sqrt{1-x^2}+3\right ) \]
Antiderivative was successfully verified.
[In] Integrate[x*(-Sqrt[1 - x] - Sqrt[1 + x])*(Sqrt[1 - x] + Sqrt[1 + x]),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.002, size = 26, normalized size = 1.2 \[ -{x}^{2}-{\frac{2\,{x}^{2}-2}{3}\sqrt{1-x}\sqrt{1+x}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x*(-(1-x)^(1/2)-(1+x)^(1/2))*((1-x)^(1/2)+(1+x)^(1/2)),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.760666, size = 23, normalized size = 1.1 \[ -x^{2} + \frac{2}{3} \,{\left (-x^{2} + 1\right )}^{\frac{3}{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-x*(sqrt(x + 1) + sqrt(-x + 1))^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.268052, size = 78, normalized size = 3.71 \[ -\frac{2 \, x^{6} + 3 \, \sqrt{x + 1} x^{4} \sqrt{-x + 1} - 3 \, x^{4}}{3 \,{\left (3 \, x^{2} -{\left (x^{2} - 4\right )} \sqrt{x + 1} \sqrt{-x + 1} - 4\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-x*(sqrt(x + 1) + sqrt(-x + 1))^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 72.5871, size = 110, normalized size = 5.24 \[ \frac{x^{3}}{3} + x - \frac{\left (x + 1\right )^{3}}{3} + 4 \left (\begin{cases} \frac{x \sqrt{- x + 1} \sqrt{x + 1}}{4} + \frac{\operatorname{asin}{\left (\frac{\sqrt{2} \sqrt{x + 1}}{2} \right )}}{2} & \text{for}\: x \geq -1 \wedge x < 1 \end{cases}\right ) - 4 \left (\begin{cases} \frac{x \sqrt{- x + 1} \sqrt{x + 1}}{4} - \frac{\left (- x + 1\right )^{\frac{3}{2}} \left (x + 1\right )^{\frac{3}{2}}}{6} + \frac{\operatorname{asin}{\left (\frac{\sqrt{2} \sqrt{x + 1}}{2} \right )}}{2} & \text{for}\: x \geq -1 \wedge x < 1 \end{cases}\right ) + 1 \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x*(-(1-x)**(1/2)-(1+x)**(1/2))*((1-x)**(1/2)+(1+x)**(1/2)),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.299002, size = 39, normalized size = 1.86 \[ -\frac{2}{3} \,{\left (x + 1\right )}^{\frac{3}{2}}{\left (x - 1\right )} \sqrt{-x + 1} -{\left (x + 1\right )}^{2} + 2 \, x + 2 \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-x*(sqrt(x + 1) + sqrt(-x + 1))^2,x, algorithm="giac")
[Out]