Optimal. Leaf size=128 \[ -\frac {\sqrt {3} \text {ArcTan}\left (\frac {-\frac {2 \sqrt [3]{2} x}{\sqrt {3}}+\frac {\sqrt [3]{2+x+x^2}}{\sqrt {3}}}{\sqrt [3]{2+x+x^2}}\right )}{\sqrt [3]{2}}+\frac {\log \left (\sqrt [3]{2} x+\sqrt [3]{2+x+x^2}\right )}{\sqrt [3]{2}}-\frac {\log \left (2^{2/3} x^2-\sqrt [3]{2} x \sqrt [3]{2+x+x^2}+\left (2+x+x^2\right )^{2/3}\right )}{2 \sqrt [3]{2}} \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 0.29, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps
used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {}
\begin {gather*} \int \frac {6+2 x+x^2}{(1+x) \sqrt [3]{2+x+x^2} \left (2-x+2 x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {6+2 x+x^2}{(1+x) \sqrt [3]{2+x+x^2} \left (2-x+2 x^2\right )} \, dx &=\int \frac {6+2 x+x^2}{\sqrt [3]{2+x+x^2} \left (2+x+x^2+2 x^3\right )} \, dx\\ &=\int \left (\frac {1}{(1+x) \sqrt [3]{2+x+x^2}}+\frac {4-x}{\sqrt [3]{2+x+x^2} \left (2-x+2 x^2\right )}\right ) \, dx\\ &=\int \frac {1}{(1+x) \sqrt [3]{2+x+x^2}} \, dx+\int \frac {4-x}{\sqrt [3]{2+x+x^2} \left (2-x+2 x^2\right )} \, dx\\ &=-\frac {\left (\sqrt [3]{\frac {1-i \sqrt {7}+2 x}{1+x}} \sqrt [3]{\frac {1+i \sqrt {7}+2 x}{1+x}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{x} \sqrt [3]{1-\frac {1}{2} \left (1-i \sqrt {7}\right ) x} \sqrt [3]{1-\frac {1}{2} \left (1+i \sqrt {7}\right ) x}} \, dx,x,\frac {1}{1+x}\right )}{2^{2/3} \left (\frac {1}{1+x}\right )^{2/3} \sqrt [3]{2+x+x^2}}+\int \frac {4-x}{\sqrt [3]{2+x+x^2} \left (2-x+2 x^2\right )} \, dx\\ &=-\frac {3 \sqrt [3]{\frac {1-i \sqrt {7}+2 x}{1+x}} \sqrt [3]{\frac {1+i \sqrt {7}+2 x}{1+x}} F_1\left (\frac {2}{3};\frac {1}{3},\frac {1}{3};\frac {5}{3};\frac {1-i \sqrt {7}}{2 (1+x)},\frac {1+i \sqrt {7}}{2 (1+x)}\right )}{2\ 2^{2/3} \sqrt [3]{2+x+x^2}}+\int \frac {4-x}{\sqrt [3]{2+x+x^2} \left (2-x+2 x^2\right )} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 104, normalized size = 0.81 \begin {gather*} -\frac {2 \sqrt {3} \text {ArcTan}\left (\frac {1-\frac {2 \sqrt [3]{2} x}{\sqrt [3]{2+x+x^2}}}{\sqrt {3}}\right )-2 \log \left (\sqrt [3]{2} x+\sqrt [3]{2+x+x^2}\right )+\log \left (2^{2/3} x^2-\sqrt [3]{2} x \sqrt [3]{2+x+x^2}+\left (2+x+x^2\right )^{2/3}\right )}{2 \sqrt [3]{2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 3.35, size = 720, normalized size = 5.62
method | result | size |
trager | \(\text {Expression too large to display}\) | \(720\) |
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. 407 vs.
\(2 (99) = 198\).
time = 10.03, size = 407, normalized size = 3.18 \begin {gather*} -\frac {1}{6} \, \sqrt {3} 2^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3} 2^{\frac {1}{6}} {\left (2^{\frac {5}{6}} {\left (8 \, x^{9} + 48 \, x^{8} + 18 \, x^{7} + 37 \, x^{6} - 147 \, x^{5} - 111 \, x^{4} - 107 \, x^{3} + 18 \, x^{2} + 12 \, x + 8\right )} + 12 \, \sqrt {2} {\left (4 \, x^{8} - 14 \, x^{7} - 13 \, x^{6} - 26 \, x^{5} + 5 \, x^{4} + 4 \, x^{3} + 4 \, x^{2}\right )} {\left (x^{2} + x + 2\right )}^{\frac {1}{3}} + 12 \cdot 2^{\frac {1}{6}} {\left (8 \, x^{7} + 2 \, x^{6} + x^{5} + 2 \, x^{4} - 5 \, x^{3} - 4 \, x^{2} - 4 \, x\right )} {\left (x^{2} + x + 2\right )}^{\frac {2}{3}}\right )}}{6 \, {\left (8 \, x^{9} - 96 \, x^{8} - 90 \, x^{7} - 179 \, x^{6} + 33 \, x^{5} + 33 \, x^{4} + 37 \, x^{3} + 18 \, x^{2} + 12 \, x + 8\right )}}\right ) + \frac {1}{6} \cdot 2^{\frac {2}{3}} \log \left (\frac {6 \cdot 2^{\frac {1}{3}} {\left (x^{2} + x + 2\right )}^{\frac {1}{3}} x^{2} + 2^{\frac {2}{3}} {\left (2 \, x^{3} + x^{2} + x + 2\right )} + 6 \, {\left (x^{2} + x + 2\right )}^{\frac {2}{3}} x}{2 \, x^{3} + x^{2} + x + 2}\right ) - \frac {1}{12} \cdot 2^{\frac {2}{3}} \log \left (\frac {3 \cdot 2^{\frac {2}{3}} {\left (4 \, x^{4} - x^{3} - x^{2} - 2 \, x\right )} {\left (x^{2} + x + 2\right )}^{\frac {2}{3}} + 2^{\frac {1}{3}} {\left (4 \, x^{6} - 14 \, x^{5} - 13 \, x^{4} - 26 \, x^{3} + 5 \, x^{2} + 4 \, x + 4\right )} - 12 \, {\left (x^{5} - x^{4} - x^{3} - 2 \, x^{2}\right )} {\left (x^{2} + x + 2\right )}^{\frac {1}{3}}}{4 \, x^{6} + 4 \, x^{5} + 5 \, x^{4} + 10 \, x^{3} + 5 \, x^{2} + 4 \, x + 4}\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} + 2 x + 6}{\left (x + 1\right ) \sqrt [3]{x^{2} + x + 2} \cdot \left (2 x^{2} - x + 2\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.01 \begin {gather*} \int \frac {x^2+2\,x+6}{\left (x+1\right )\,\left (2\,x^2-x+2\right )\,{\left (x^2+x+2\right )}^{1/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________