Optimal. Leaf size=44 \[ \frac {3}{2} \sqrt {1-(1+x)^2}-\frac {1}{2} x \sqrt {1-(1+x)^2}+\frac {3}{2} \sin ^{-1}(1+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {378, 685, 655,
222} \begin {gather*} \frac {3}{2} \text {ArcSin}(x+1)-\frac {1}{2} \sqrt {1-(x+1)^2} x+\frac {3}{2} \sqrt {1-(x+1)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 378
Rule 655
Rule 685
Rubi steps
\begin {align*} \int \frac {x^2}{\sqrt {1-(1+x)^2}} \, dx &=\text {Subst}\left (\int \frac {(-1+x)^2}{\sqrt {1-x^2}} \, dx,x,1+x\right )\\ &=-\frac {1}{2} x \sqrt {1-(1+x)^2}-\frac {3}{2} \text {Subst}\left (\int \frac {-1+x}{\sqrt {1-x^2}} \, dx,x,1+x\right )\\ &=\frac {3}{2} \sqrt {1-(1+x)^2}-\frac {1}{2} x \sqrt {1-(1+x)^2}+\frac {3}{2} \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,1+x\right )\\ &=\frac {3}{2} \sqrt {1-(1+x)^2}-\frac {1}{2} x \sqrt {1-(1+x)^2}+\frac {3}{2} \sin ^{-1}(1+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 51, normalized size = 1.16 \begin {gather*} \frac {x \left (-6-x+x^2\right )+6 \sqrt {x} \sqrt {2+x} \tanh ^{-1}\left (\sqrt {\frac {x}{2+x}}\right )}{2 \sqrt {-x (2+x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 35, normalized size = 0.80
method | result | size |
risch | \(\frac {\left (x -3\right ) x \left (x +2\right )}{2 \sqrt {-x \left (x +2\right )}}+\frac {3 \arcsin \left (1+x \right )}{2}\) | \(25\) |
default | \(-\frac {x \sqrt {-x^{2}-2 x}}{2}+\frac {3 \sqrt {-x^{2}-2 x}}{2}+\frac {3 \arcsin \left (1+x \right )}{2}\) | \(35\) |
meijerg | \(-\frac {4 i \left (-\frac {\sqrt {\pi }\, \sqrt {x}\, \sqrt {2}\, \left (-5 x +15\right ) \sqrt {1+\frac {x}{2}}}{40}+\frac {3 \sqrt {\pi }\, \arcsinh \left (\frac {\sqrt {2}\, \sqrt {x}}{2}\right )}{4}\right )}{\sqrt {\pi }}\) | \(45\) |
trager | \(\left (-\frac {x}{2}+\frac {3}{2}\right ) \sqrt {-x^{2}-2 x}-\frac {3 \RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (x \RootOf \left (\textit {\_Z}^{2}+1\right )+\sqrt {-x^{2}-2 x}+\RootOf \left (\textit {\_Z}^{2}+1\right )\right )}{2}\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 36, normalized size = 0.82 \begin {gather*} -\frac {1}{2} \, \sqrt {-x^{2} - 2 \, x} x + \frac {3}{2} \, \sqrt {-x^{2} - 2 \, x} - \frac {3}{2} \, \arcsin \left (-x - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 35, normalized size = 0.80 \begin {gather*} -\frac {1}{2} \, \sqrt {-x^{2} - 2 \, x} {\left (x - 3\right )} - 3 \, \arctan \left (\frac {\sqrt {-x^{2} - 2 \, x}}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2}}{\sqrt {- x \left (x + 2\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.58, size = 23, normalized size = 0.52 \begin {gather*} -\frac {1}{2} \, \sqrt {-x^{2} - 2 \, x} {\left (x - 3\right )} + \frac {3}{2} \, \arcsin \left (x + 1\right ) \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 \frac {x^2}{\sqrt {1-{\left (x+1\right )}^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________