Optimal. Leaf size=38 \[ -\frac {2 \tan ^{-1}\left (\frac {\sqrt {1-d} (1-x)}{\sqrt {1-x^3}}\right )}{\sqrt {1-d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.057, Rules used = {2170, 210}
\begin {gather*} -\frac {2 \text {ArcTan}\left (\frac {\sqrt {1-d} (1-x)}{\sqrt {1-x^3}}\right )}{\sqrt {1-d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 2170
Rubi steps
\begin {align*} \int \frac {2+2 x-x^2}{\left (2-d+d x+x^2\right ) \sqrt {1-x^3}} \, dx &=4 \text {Subst}\left (\int \frac {1}{-2-(2-2 d) x^2} \, dx,x,\frac {1-x}{\sqrt {1-x^3}}\right )\\ &=-\frac {2 \tan ^{-1}\left (\frac {\sqrt {1-d} (1-x)}{\sqrt {1-x^3}}\right )}{\sqrt {1-d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.71, size = 37, normalized size = 0.97 \begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {-1+d} \sqrt {1-x^3}}{1+x+x^2}\right )}{\sqrt {-1+d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 0.37, size = 1908, normalized size = 50.21
method | result | size |
default | \(\text {Expression too large to display}\) | \(1908\) |
elliptic | \(\text {Expression too large to display}\) | \(1919\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 191, normalized size = 5.03 \begin {gather*} \left [\frac {\log \left (-\frac {2 \, {\left (3 \, d - 4\right )} x^{3} - x^{4} - {\left (d^{2} - 2 \, d + 4\right )} x^{2} - 4 \, \sqrt {-x^{3} + 1} {\left ({\left (d - 2\right )} x - x^{2} - d\right )} \sqrt {d - 1} - d^{2} + 2 \, {\left (d^{2} - 2 \, d\right )} x - 4 \, d + 4}{2 \, d x^{3} + x^{4} + {\left (d^{2} - 2 \, d + 4\right )} x^{2} + d^{2} - 2 \, {\left (d^{2} - 2 \, d\right )} x - 4 \, d + 4}\right )}{2 \, \sqrt {d - 1}}, -\frac {\sqrt {-d + 1} \arctan \left (-\frac {\sqrt {-x^{3} + 1} {\left ({\left (d - 2\right )} x - x^{2} - d\right )} \sqrt {-d + 1}}{2 \, {\left ({\left (d - 1\right )} x^{3} - d + 1\right )}}\right )}{d - 1}\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 \left (- \frac {2 x}{d x \sqrt {1 - x^{3}} - d \sqrt {1 - x^{3}} + x^{2} \sqrt {1 - x^{3}} + 2 \sqrt {1 - x^{3}}}\right )\, dx - \int \frac {x^{2}}{d x \sqrt {1 - x^{3}} - d \sqrt {1 - x^{3}} + x^{2} \sqrt {1 - x^{3}} + 2 \sqrt {1 - x^{3}}}\, dx - \int \left (- \frac {2}{d x \sqrt {1 - x^{3}} - d \sqrt {1 - x^{3}} + x^{2} \sqrt {1 - x^{3}} + 2 \sqrt {1 - x^{3}}}\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 [B]
time = 0.14, size = 677, normalized size = 17.82 \begin {gather*} \frac {2\,\left (\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\sqrt {x^3-1}\,\sqrt {-\frac {x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\mathrm {F}\left (\mathrm {asin}\left (\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )}{\sqrt {1-x^3}\,\sqrt {x^3+\left (-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )-1\right )\,x+\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}}+\frac {2\,\left (\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\sqrt {x^3-1}\,\sqrt {-\frac {x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\Pi \left (\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {d}{2}-\frac {\sqrt {d^2+4\,d-8}}{2}+1};\mathrm {asin}\left (\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )\,\left (d+\left (d+2\right )\,\left (\frac {d}{2}-\frac {\sqrt {d^2+4\,d-8}}{2}\right )-4\right )}{\sqrt {1-x^3}\,\sqrt {x^3+\left (-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )-1\right )\,x+\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}\,\left (\frac {d}{2}-\frac {\sqrt {d^2+4\,d-8}}{2}+1\right )\,\sqrt {d^2+4\,d-8}}-\frac {2\,\left (\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\sqrt {x^3-1}\,\sqrt {-\frac {x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\Pi \left (\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {d}{2}+\frac {\sqrt {d^2+4\,d-8}}{2}+1};\mathrm {asin}\left (\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )\,\left (d+\left (d+2\right )\,\left (\frac {d}{2}+\frac {\sqrt {d^2+4\,d-8}}{2}\right )-4\right )}{\sqrt {1-x^3}\,\sqrt {x^3+\left (-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )-1\right )\,x+\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}\,\left (\frac {d}{2}+\frac {\sqrt {d^2+4\,d-8}}{2}+1\right )\,\sqrt {d^2+4\,d-8}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________