Optimal. Leaf size=79 \[ -\frac {2 \sqrt {2 x-x^2}}{3 (x+1)}-\frac {5 \sqrt {2 x-x^2}}{6 (x+1)^2}+\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3} \sqrt {2 x-x^2}}\right )}{2 \sqrt {3}} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {834, 806, 724, 204} \[ -\frac {2 \sqrt {2 x-x^2}}{3 (x+1)}-\frac {5 \sqrt {2 x-x^2}}{6 (x+1)^2}+\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3} \sqrt {2 x-x^2}}\right )}{2 \sqrt {3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 724
Rule 806
Rule 834
Rubi steps
\begin {align*} \int \frac {-2+3 x}{(1+x)^3 \sqrt {2 x-x^2}} \, dx &=-\frac {5 \sqrt {2 x-x^2}}{6 (1+x)^2}+\frac {1}{6} \int \frac {-7+5 x}{(1+x)^2 \sqrt {2 x-x^2}} \, dx\\ &=-\frac {5 \sqrt {2 x-x^2}}{6 (1+x)^2}-\frac {2 \sqrt {2 x-x^2}}{3 (1+x)}-\frac {1}{2} \int \frac {1}{(1+x) \sqrt {2 x-x^2}} \, dx\\ &=-\frac {5 \sqrt {2 x-x^2}}{6 (1+x)^2}-\frac {2 \sqrt {2 x-x^2}}{3 (1+x)}+\operatorname {Subst}\left (\int \frac {1}{-12-x^2} \, dx,x,\frac {-2+4 x}{\sqrt {2 x-x^2}}\right )\\ &=-\frac {5 \sqrt {2 x-x^2}}{6 (1+x)^2}-\frac {2 \sqrt {2 x-x^2}}{3 (1+x)}-\frac {\tan ^{-1}\left (\frac {-2+4 x}{2 \sqrt {3} \sqrt {2 x-x^2}}\right )}{2 \sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 72, normalized size = 0.91 \[ \frac {x \left (4 x^2+x-18\right )-2 \sqrt {3} \sqrt {x-2} \sqrt {x} (x+1)^2 \tanh ^{-1}\left (\frac {\sqrt {\frac {x-2}{x}}}{\sqrt {3}}\right )}{6 \sqrt {-((x-2) x)} (x+1)^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.31, size = 57, normalized size = 0.72 \[ \frac {\sqrt {2 x-x^2} (-4 x-9)}{6 (x+1)^2}+\frac {\tan ^{-1}\left (\frac {\sqrt {2 x-x^2}}{\sqrt {3} x}\right )}{\sqrt {3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.84, size = 64, normalized size = 0.81 \[ \frac {2 \, \sqrt {3} {\left (x^{2} + 2 \, x + 1\right )} \arctan \left (\frac {\sqrt {3} \sqrt {-x^{2} + 2 \, x}}{3 \, x}\right ) - \sqrt {-x^{2} + 2 \, x} {\left (4 \, x + 9\right )}}{6 \, {\left (x^{2} + 2 \, x + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.67, size = 147, normalized size = 1.86 \[ \frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (\frac {2 \, {\left (\sqrt {-x^{2} + 2 \, x} - 1\right )}}{x - 1} - 1\right )}\right ) + \frac {\frac {34 \, {\left (\sqrt {-x^{2} + 2 \, x} - 1\right )}}{x - 1} - \frac {39 \, {\left (\sqrt {-x^{2} + 2 \, x} - 1\right )}^{2}}{{\left (x - 1\right )}^{2}} + \frac {18 \, {\left (\sqrt {-x^{2} + 2 \, x} - 1\right )}^{3}}{{\left (x - 1\right )}^{3}} - 26}{24 \, {\left (\frac {\sqrt {-x^{2} + 2 \, x} - 1}{x - 1} - \frac {{\left (\sqrt {-x^{2} + 2 \, x} - 1\right )}^{2}}{{\left (x - 1\right )}^{2}} - 1\right )}^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.29, size = 56, normalized size = 0.71
method | result | size |
risch | \(\frac {x \left (-2+x \right ) \left (9+4 x \right )}{6 \left (1+x \right )^{2} \sqrt {-x \left (-2+x \right )}}-\frac {\sqrt {3}\, \arctan \left (\frac {\left (-2+4 x \right ) \sqrt {3}}{6 \sqrt {-\left (1+x \right )^{2}+1+4 x}}\right )}{6}\) | \(56\) |
trager | \(-\frac {\left (9+4 x \right ) \sqrt {-x^{2}+2 x}}{6 \left (1+x \right )^{2}}+\frac {\RootOf \left (\textit {\_Z}^{2}+3\right ) \ln \left (\frac {2 \RootOf \left (\textit {\_Z}^{2}+3\right ) x +3 \sqrt {-x^{2}+2 x}-\RootOf \left (\textit {\_Z}^{2}+3\right )}{1+x}\right )}{6}\) | \(71\) |
default | \(-\frac {5 \sqrt {-\left (1+x \right )^{2}+1+4 x}}{6 \left (1+x \right )^{2}}-\frac {2 \sqrt {-\left (1+x \right )^{2}+1+4 x}}{3 \left (1+x \right )}-\frac {\sqrt {3}\, \arctan \left (\frac {\left (-2+4 x \right ) \sqrt {3}}{6 \sqrt {-\left (1+x \right )^{2}+1+4 x}}\right )}{6}\) | \(74\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.33, size = 66, normalized size = 0.84 \[ -\frac {1}{6} \, \sqrt {3} \arcsin \left (\frac {2 \, x}{{\left | x + 1 \right |}} - \frac {1}{{\left | x + 1 \right |}}\right ) - \frac {5 \, \sqrt {-x^{2} + 2 \, x}}{6 \, {\left (x^{2} + 2 \, x + 1\right )}} - \frac {2 \, \sqrt {-x^{2} + 2 \, x}}{3 \, {\left (x + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {3\,x-2}{\sqrt {2\,x-x^2}\,{\left (x+1\right )}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {3 x - 2}{\sqrt {- x \left (x - 2\right )} \left (x + 1\right )^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________