Optimal. Leaf size=210 \[ -\frac {\left (2+\sqrt {3}\right ) \tan ^{-1}\left (\frac {\sqrt [4]{3} \left (1-\sqrt {3}-2 x\right )}{\sqrt {2} \sqrt {1+x^3}}\right )}{3 \sqrt {2} \sqrt [4]{3}}-\frac {\left (2+\sqrt {3}\right ) \tan ^{-1}\left (\frac {\sqrt [4]{3} \left (1+\sqrt {3}\right ) (1+x)}{\sqrt {2} \sqrt {1+x^3}}\right )}{6 \sqrt {2} \sqrt [4]{3}}+\frac {\left (2+\sqrt {3}\right ) \tanh ^{-1}\left (\frac {\sqrt [4]{3} \left (1-\sqrt {3}\right ) (1+x)}{\sqrt {2} \sqrt {1+x^3}}\right )}{2 \sqrt {2} 3^{3/4}}+\frac {\left (2+\sqrt {3}\right ) \tanh ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt {1+x^3}}{\sqrt {2} 3^{3/4}}\right )}{3 \sqrt {2} 3^{3/4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 210, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {500}
\begin {gather*} -\frac {\left (2+\sqrt {3}\right ) \text {ArcTan}\left (\frac {\sqrt [4]{3} \left (-2 x-\sqrt {3}+1\right )}{\sqrt {2} \sqrt {x^3+1}}\right )}{3 \sqrt {2} \sqrt [4]{3}}-\frac {\left (2+\sqrt {3}\right ) \text {ArcTan}\left (\frac {\sqrt [4]{3} \left (1+\sqrt {3}\right ) (x+1)}{\sqrt {2} \sqrt {x^3+1}}\right )}{6 \sqrt {2} \sqrt [4]{3}}+\frac {\left (2+\sqrt {3}\right ) \tanh ^{-1}\left (\frac {\sqrt [4]{3} \left (1-\sqrt {3}\right ) (x+1)}{\sqrt {2} \sqrt {x^3+1}}\right )}{2 \sqrt {2} 3^{3/4}}+\frac {\left (2+\sqrt {3}\right ) \tanh ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt {x^3+1}}{\sqrt {2} 3^{3/4}}\right )}{3 \sqrt {2} 3^{3/4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 500
Rubi steps
\begin {align*} \int \frac {x}{\sqrt {1+x^3} \left (10-6 \sqrt {3}+x^3\right )} \, dx &=-\frac {\left (2+\sqrt {3}\right ) \tan ^{-1}\left (\frac {\sqrt [4]{3} \left (1-\sqrt {3}-2 x\right )}{\sqrt {2} \sqrt {1+x^3}}\right )}{3 \sqrt {2} \sqrt [4]{3}}-\frac {\left (2+\sqrt {3}\right ) \tan ^{-1}\left (\frac {\sqrt [4]{3} \left (1+\sqrt {3}\right ) (1+x)}{\sqrt {2} \sqrt {1+x^3}}\right )}{6 \sqrt {2} \sqrt [4]{3}}+\frac {\left (2+\sqrt {3}\right ) \tanh ^{-1}\left (\frac {\sqrt [4]{3} \left (1-\sqrt {3}\right ) (1+x)}{\sqrt {2} \sqrt {1+x^3}}\right )}{2 \sqrt {2} 3^{3/4}}+\frac {\left (2+\sqrt {3}\right ) \tanh ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt {1+x^3}}{\sqrt {2} 3^{3/4}}\right )}{3 \sqrt {2} 3^{3/4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 3 in
optimal.
time = 10.07, size = 50, normalized size = 0.24 \begin {gather*} -\frac {x^2 F_1\left (\frac {2}{3};\frac {1}{2},1;\frac {5}{3};-x^3,\frac {1}{4} \left (5+3 \sqrt {3}\right ) x^3\right )}{4 \left (-5+3 \sqrt {3}\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 37.87, size = 350, normalized size = 1.67
method | result | size |
default | \(\frac {\left (\sqrt {3}-1\right ) \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \sqrt {3}\, \EllipticPi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, -\frac {\left (-\frac {3}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}{3}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{9 \left (-2+\sqrt {3}\right ) \sqrt {x^{3}+1}}-\frac {\sqrt {2}\, \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\RootOf \left (\textit {\_Z}^{2}+\left (\sqrt {3}-1\right ) \textit {\_Z} -2 \sqrt {3}+4\right )}{\sum }\frac {\left (-\sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha -\underline {\hspace {1.25 ex}}\alpha +2\right ) \left (3-i \sqrt {3}\right ) \sqrt {\frac {1+x}{3-i \sqrt {3}}}\, \sqrt {\frac {-i \sqrt {3}+2 x -1}{-3-i \sqrt {3}}}\, \sqrt {\frac {i \sqrt {3}+2 x -1}{i \sqrt {3}-3}}\, \left (2 \underline {\hspace {1.25 ex}}\alpha -1+\sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha \right ) \EllipticPi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \frac {i \underline {\hspace {1.25 ex}}\alpha \sqrt {3}}{3}+\frac {i \underline {\hspace {1.25 ex}}\alpha }{2}-\frac {\sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha }{2}-\underline {\hspace {1.25 ex}}\alpha -\frac {i \sqrt {3}}{6}+\frac {1}{2}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\left (1-2 \underline {\hspace {1.25 ex}}\alpha -\sqrt {3}\right ) \sqrt {x^{3}+1}}\right )}{18}\) | \(350\) |
elliptic | \(\frac {2 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \left (-\frac {2 \left (\sqrt {3}-1\right )^{2} \sqrt {3}}{9}-\frac {\left (\sqrt {3}-1\right )^{2}}{3}+\frac {2 \left (\sqrt {3}-1\right ) \sqrt {3}}{9}+\frac {\sqrt {3}}{9}-\frac {2}{3}\right ) \EllipticPi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, -\frac {i \left (\sqrt {3}-1\right )^{2} \sqrt {3}}{6}-\frac {i \left (\sqrt {3}-1\right )^{2}}{3}+\frac {\left (\sqrt {3}-1\right )^{2} \sqrt {3}}{3}+\frac {\left (\sqrt {3}-1\right )^{2}}{2}+\frac {i \left (\sqrt {3}-1\right ) \sqrt {3}}{6}+\frac {i \left (\sqrt {3}-1\right )}{3}-\frac {\left (\sqrt {3}-1\right ) \sqrt {3}}{3}-\frac {\sqrt {3}}{6}+1-\frac {i}{3}-\frac {i \sqrt {3}}{6}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{3 \left (\sqrt {3}-1\right ) \sqrt {x^{3}+1}}+\frac {\sqrt {2}\, \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\RootOf \left (\textit {\_Z}^{2}+\left (\sqrt {3}-1\right ) \textit {\_Z} -2 \sqrt {3}+4\right )}{\sum }\frac {\left (3-i \sqrt {3}\right ) \sqrt {\frac {1+x}{3-i \sqrt {3}}}\, \sqrt {\frac {-i \sqrt {3}+2 x -1}{-3-i \sqrt {3}}}\, \sqrt {\frac {i \sqrt {3}+2 x -1}{i \sqrt {3}-3}}\, \left (-3 \underline {\hspace {1.25 ex}}\alpha ^{2}+3 \underline {\hspace {1.25 ex}}\alpha -3+2 \sqrt {3}\, \left (-\underline {\hspace {1.25 ex}}\alpha ^{2}+\underline {\hspace {1.25 ex}}\alpha -1\right )\right ) \EllipticPi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, -\frac {i \underline {\hspace {1.25 ex}}\alpha ^{2} \sqrt {3}}{6}-\frac {i \underline {\hspace {1.25 ex}}\alpha ^{2}}{3}+\frac {\underline {\hspace {1.25 ex}}\alpha ^{2} \sqrt {3}}{3}+\frac {\underline {\hspace {1.25 ex}}\alpha ^{2}}{2}+\frac {i \underline {\hspace {1.25 ex}}\alpha \sqrt {3}}{6}+\frac {i \underline {\hspace {1.25 ex}}\alpha }{3}-\frac {\sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha }{3}-\frac {\underline {\hspace {1.25 ex}}\alpha }{2}-\frac {i \sqrt {3}}{6}+\frac {1}{2}-\frac {i}{3}+\frac {\sqrt {3}}{3}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\underline {\hspace {1.25 ex}}\alpha \sqrt {x^{3}+1}}\right )}{27}\) | \(483\) |
trager | \(\text {Expression too large to display}\) | \(4171\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 8237 vs.
\(2 (146) = 292\).
time = 5.48, size = 8237, normalized size = 39.22 \begin {gather*} \text {Too large to display} \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}{\sqrt {\left (x + 1\right ) \left (x^{2} - x + 1\right )} \left (x^{3} - 6 \sqrt {3} + 10\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.00 \begin {gather*} \int \frac {x}{\sqrt {x^3+1}\,\left (x^3-6\,\sqrt {3}+10\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________