Optimal. Leaf size=17 \[ -\frac {F\left (\sin ^{-1}(1-x)|-\frac {1}{3}\right )}{\sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {1120, 1109,
430} \begin {gather*} -\frac {F\left (\text {ArcSin}(1-x)\left |-\frac {1}{3}\right .\right )}{\sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 430
Rule 1109
Rule 1120
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {(2-x) x \left (4-2 x+x^2\right )}} \, dx &=\text {Subst}\left (\int \frac {1}{\sqrt {3-2 x^2-x^4}} \, dx,x,-1+x\right )\\ &=2 \text {Subst}\left (\int \frac {1}{\sqrt {2-2 x^2} \sqrt {6+2 x^2}} \, dx,x,-1+x\right )\\ &=-\frac {F\left (\sin ^{-1}(1-x)|-\frac {1}{3}\right )}{\sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 31.92, size = 100, normalized size = 5.88 \begin {gather*} -\frac {\sqrt [3]{-1} (-2+x)^2 \sqrt {\frac {x \left (-1+i \sqrt {3}+x\right )}{(-2+x)^2}} \sqrt {\frac {-2+x-\sqrt [3]{-1} x}{-2+x}} F\left (\sin ^{-1}\left (\sqrt {-\frac {(-1)^{2/3} x}{-2+x}}\right )|(-1)^{2/3}\right )}{\sqrt {-x \left (-8+8 x-4 x^2+x^3\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 199 vs. \(2 (15 ) = 30\).
time = 0.51, size = 200, normalized size = 11.76
method | result | size |
default | \(\frac {2 \left (-1-i \sqrt {3}\right ) \sqrt {\frac {\left (-1+i \sqrt {3}\right ) x}{\left (1+i \sqrt {3}\right ) \left (x -2\right )}}\, \left (x -2\right )^{2} \sqrt {\frac {x -1+i \sqrt {3}}{\left (1-i \sqrt {3}\right ) \left (x -2\right )}}\, \sqrt {\frac {x -1-i \sqrt {3}}{\left (1+i \sqrt {3}\right ) \left (x -2\right )}}\, \EllipticF \left (\sqrt {\frac {\left (-1+i \sqrt {3}\right ) x}{\left (1+i \sqrt {3}\right ) \left (x -2\right )}}, \sqrt {\frac {\left (1+i \sqrt {3}\right ) \left (-1-i \sqrt {3}\right )}{\left (-1+i \sqrt {3}\right ) \left (1-i \sqrt {3}\right )}}\right )}{\left (-1+i \sqrt {3}\right ) \sqrt {-x \left (x -2\right ) \left (x -1+i \sqrt {3}\right ) \left (x -1-i \sqrt {3}\right )}}\) | \(200\) |
elliptic | \(\frac {2 \left (-1-i \sqrt {3}\right ) \sqrt {\frac {\left (-1+i \sqrt {3}\right ) x}{\left (1+i \sqrt {3}\right ) \left (x -2\right )}}\, \left (x -2\right )^{2} \sqrt {\frac {x -1+i \sqrt {3}}{\left (1-i \sqrt {3}\right ) \left (x -2\right )}}\, \sqrt {\frac {x -1-i \sqrt {3}}{\left (1+i \sqrt {3}\right ) \left (x -2\right )}}\, \EllipticF \left (\sqrt {\frac {\left (-1+i \sqrt {3}\right ) x}{\left (1+i \sqrt {3}\right ) \left (x -2\right )}}, \sqrt {\frac {\left (1+i \sqrt {3}\right ) \left (-1-i \sqrt {3}\right )}{\left (-1+i \sqrt {3}\right ) \left (1-i \sqrt {3}\right )}}\right )}{\left (-1+i \sqrt {3}\right ) \sqrt {-x \left (x -2\right ) \left (x -1+i \sqrt {3}\right ) \left (x -1-i \sqrt {3}\right )}}\) | \(200\) |
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 [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.08, size = 16, normalized size = 0.94 \begin {gather*} -\frac {1}{2} \, \sqrt {2} {\rm weierstrassPInverse}\left (-\frac {2}{3}, \frac {7}{54}, -\frac {x - 3}{3 \, 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 {1}{\sqrt {x \left (2 - x\right ) \left (x^{2} - 2 x + 4\right )}}\, dx \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.06 \begin {gather*} \int \frac {1}{\sqrt {-x\,\left (x-2\right )\,\left (x^2-2\,x+4\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________