Optimal. Leaf size=254 \[ -\frac {\sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} x}{-x+2^{2/3} \sqrt [3]{x^2+x^4}}\right )}{4 \sqrt [3]{2}}-\frac {3 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} x}{x+2^{2/3} \sqrt [3]{x^2+x^4}}\right )}{4 \sqrt [3]{2}}+\frac {3 \log \left (-2 x+2^{2/3} \sqrt [3]{x^2+x^4}\right )}{4 \sqrt [3]{2}}-\frac {\log \left (2 x+2^{2/3} \sqrt [3]{x^2+x^4}\right )}{4 \sqrt [3]{2}}+\frac {\log \left (-2 x^2+2^{2/3} x \sqrt [3]{x^2+x^4}-\sqrt [3]{2} \left (x^2+x^4\right )^{2/3}\right )}{8 \sqrt [3]{2}}-\frac {3 \log \left (2 x^2+2^{2/3} x \sqrt [3]{x^2+x^4}+\sqrt [3]{2} \left (x^2+x^4\right )^{2/3}\right )}{8 \sqrt [3]{2}} \]
[Out]
________________________________________________________________________________________
Rubi [C] Result contains higher order function than in optimal. Order 6 vs. order 3 in
optimal.
time = 0.86, antiderivative size = 477, normalized size of antiderivative = 1.88, number
of steps used = 32, number of rules used = 15, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules
used = {2081, 6857, 371, 973, 477, 440, 476, 502, 2174, 206, 31, 648, 631, 210, 642}
\begin {gather*} -\frac {6 x \sqrt [3]{x^2+1} F_1\left (\frac {1}{6};1,\frac {1}{3};\frac {7}{6};x^2,-x^2\right )}{\sqrt [3]{x^4+x^2}}-\frac {\sqrt {3} x^{2/3} \sqrt [3]{x^2+1} \text {ArcTan}\left (\frac {1-\frac {2 \sqrt [3]{2} \left (x^{2/3}+1\right )}{\sqrt [3]{x^2+1}}}{\sqrt {3}}\right )}{2 \sqrt [3]{2} \sqrt [3]{x^4+x^2}}-\frac {\sqrt {3} x^{2/3} \sqrt [3]{x^2+1} \text {ArcTan}\left (\frac {\frac {\sqrt [3]{2} \left (x^{2/3}+1\right )}{\sqrt [3]{x^2+1}}+1}{\sqrt {3}}\right )}{4 \sqrt [3]{2} \sqrt [3]{x^4+x^2}}+\frac {3 x \sqrt [3]{x^2+1} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-x^2\right )}{\sqrt [3]{x^4+x^2}}-\frac {x^{2/3} \sqrt [3]{x^2+1} \log \left (\left (1-x^{2/3}\right )^2 \left (x^{2/3}+1\right )\right )}{8 \sqrt [3]{2} \sqrt [3]{x^4+x^2}}-\frac {x^{2/3} \sqrt [3]{x^2+1} \log \left (\frac {2^{2/3} \left (x^{2/3}+1\right )^2}{\left (x^2+1\right )^{2/3}}-\frac {\sqrt [3]{2} \left (x^{2/3}+1\right )}{\sqrt [3]{x^2+1}}+1\right )}{4 \sqrt [3]{2} \sqrt [3]{x^4+x^2}}+\frac {x^{2/3} \sqrt [3]{x^2+1} \log \left (\frac {\sqrt [3]{2} \left (x^{2/3}+1\right )}{\sqrt [3]{x^2+1}}+1\right )}{2 \sqrt [3]{2} \sqrt [3]{x^4+x^2}}+\frac {3 x^{2/3} \sqrt [3]{x^2+1} \log \left (x^{2/3}-2^{2/3} \sqrt [3]{x^2+1}+1\right )}{8 \sqrt [3]{2} \sqrt [3]{x^4+x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 206
Rule 210
Rule 371
Rule 440
Rule 476
Rule 477
Rule 502
Rule 631
Rule 642
Rule 648
Rule 973
Rule 2081
Rule 2174
Rule 6857
Rubi steps
\begin {align*} \int \frac {1+x+x^2}{\left (-1+x^2\right ) \sqrt [3]{x^2+x^4}} \, dx &=\frac {\left (x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {1+x+x^2}{x^{2/3} \left (-1+x^2\right ) \sqrt [3]{1+x^2}} \, dx}{\sqrt [3]{x^2+x^4}}\\ &=\frac {\left (x^{2/3} \sqrt [3]{1+x^2}\right ) \int \left (\frac {1}{x^{2/3} \sqrt [3]{1+x^2}}+\frac {2+x}{x^{2/3} \left (-1+x^2\right ) \sqrt [3]{1+x^2}}\right ) \, dx}{\sqrt [3]{x^2+x^4}}\\ &=\frac {\left (x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {1}{x^{2/3} \sqrt [3]{1+x^2}} \, dx}{\sqrt [3]{x^2+x^4}}+\frac {\left (x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {2+x}{x^{2/3} \left (-1+x^2\right ) \sqrt [3]{1+x^2}} \, dx}{\sqrt [3]{x^2+x^4}}\\ &=\frac {3 x \sqrt [3]{1+x^2} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-x^2\right )}{\sqrt [3]{x^2+x^4}}+\frac {\left (x^{2/3} \sqrt [3]{1+x^2}\right ) \int \left (-\frac {3}{2 (1-x) x^{2/3} \sqrt [3]{1+x^2}}-\frac {1}{2 x^{2/3} (1+x) \sqrt [3]{1+x^2}}\right ) \, dx}{\sqrt [3]{x^2+x^4}}\\ &=\frac {3 x \sqrt [3]{1+x^2} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-x^2\right )}{\sqrt [3]{x^2+x^4}}-\frac {\left (x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {1}{x^{2/3} (1+x) \sqrt [3]{1+x^2}} \, dx}{2 \sqrt [3]{x^2+x^4}}-\frac {\left (3 x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {1}{(1-x) x^{2/3} \sqrt [3]{1+x^2}} \, dx}{2 \sqrt [3]{x^2+x^4}}\\ &=\frac {3 x \sqrt [3]{1+x^2} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-x^2\right )}{\sqrt [3]{x^2+x^4}}-\frac {\left (x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {1}{x^{2/3} \left (1-x^2\right ) \sqrt [3]{1+x^2}} \, dx}{2 \sqrt [3]{x^2+x^4}}+\frac {\left (x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {\sqrt [3]{x}}{\left (1-x^2\right ) \sqrt [3]{1+x^2}} \, dx}{2 \sqrt [3]{x^2+x^4}}-\frac {\left (3 x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {1}{x^{2/3} \left (1-x^2\right ) \sqrt [3]{1+x^2}} \, dx}{2 \sqrt [3]{x^2+x^4}}-\frac {\left (3 x^{2/3} \sqrt [3]{1+x^2}\right ) \int \frac {\sqrt [3]{x}}{\left (1-x^2\right ) \sqrt [3]{1+x^2}} \, dx}{2 \sqrt [3]{x^2+x^4}}\\ &=\frac {3 x \sqrt [3]{1+x^2} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-x^2\right )}{\sqrt [3]{x^2+x^4}}-\frac {\left (3 x^{2/3} \sqrt [3]{1+x^2}\right ) \text {Subst}\left (\int \frac {1}{\left (1-x^6\right ) \sqrt [3]{1+x^6}} \, dx,x,\sqrt [3]{x}\right )}{2 \sqrt [3]{x^2+x^4}}+\frac {\left (3 x^{2/3} \sqrt [3]{1+x^2}\right ) \text {Subst}\left (\int \frac {x^3}{\left (1-x^6\right ) \sqrt [3]{1+x^6}} \, dx,x,\sqrt [3]{x}\right )}{2 \sqrt [3]{x^2+x^4}}-\frac {\left (9 x^{2/3} \sqrt [3]{1+x^2}\right ) \text {Subst}\left (\int \frac {1}{\left (1-x^6\right ) \sqrt [3]{1+x^6}} \, dx,x,\sqrt [3]{x}\right )}{2 \sqrt [3]{x^2+x^4}}-\frac {\left (9 x^{2/3} \sqrt [3]{1+x^2}\right ) \text {Subst}\left (\int \frac {x^3}{\left (1-x^6\right ) \sqrt [3]{1+x^6}} \, dx,x,\sqrt [3]{x}\right )}{2 \sqrt [3]{x^2+x^4}}\\ &=-\frac {6 x \sqrt [3]{1+x^2} F_1\left (\frac {1}{6};1,\frac {1}{3};\frac {7}{6};x^2,-x^2\right )}{\sqrt [3]{x^2+x^4}}+\frac {3 x \sqrt [3]{1+x^2} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-x^2\right )}{\sqrt [3]{x^2+x^4}}+\frac {\left (3 x^{2/3} \sqrt [3]{1+x^2}\right ) \text {Subst}\left (\int \frac {x}{\left (1-x^3\right ) \sqrt [3]{1+x^3}} \, dx,x,x^{2/3}\right )}{4 \sqrt [3]{x^2+x^4}}-\frac {\left (9 x^{2/3} \sqrt [3]{1+x^2}\right ) \text {Subst}\left (\int \frac {x}{\left (1-x^3\right ) \sqrt [3]{1+x^3}} \, dx,x,x^{2/3}\right )}{4 \sqrt [3]{x^2+x^4}}\\ &=-\frac {6 x \sqrt [3]{1+x^2} F_1\left (\frac {1}{6};1,\frac {1}{3};\frac {7}{6};x^2,-x^2\right )}{\sqrt [3]{x^2+x^4}}-\frac {3 x^2 \sqrt [3]{1+x^2} F_1\left (\frac {2}{3};1,\frac {1}{3};\frac {5}{3};x^2,-x^2\right )}{4 \sqrt [3]{x^2+x^4}}+\frac {3 x \sqrt [3]{1+x^2} \, _2F_1\left (\frac {1}{6},\frac {1}{3};\frac {7}{6};-x^2\right )}{\sqrt [3]{x^2+x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.74, size = 263, normalized size = 1.04 \begin {gather*} \frac {x^{2/3} \sqrt [3]{1+x^2} \left (2 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{x}}{\sqrt [3]{x}-2^{2/3} \sqrt [3]{1+x^2}}\right )-6 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{x}}{\sqrt [3]{x}+2^{2/3} \sqrt [3]{1+x^2}}\right )+6 \log \left (-2 \sqrt [3]{x}+2^{2/3} \sqrt [3]{1+x^2}\right )-2 \log \left (2 \sqrt [3]{x}+2^{2/3} \sqrt [3]{1+x^2}\right )+\log \left (-2 x^{2/3}+2^{2/3} \sqrt [3]{x} \sqrt [3]{1+x^2}-\sqrt [3]{2} \left (1+x^2\right )^{2/3}\right )-3 \log \left (2 x^{2/3}+2^{2/3} \sqrt [3]{x} \sqrt [3]{1+x^2}+\sqrt [3]{2} \left (1+x^2\right )^{2/3}\right )\right )}{8 \sqrt [3]{2} \sqrt [3]{x^2+x^4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.06, size = 0, normalized size = 0.00 \[\int \frac {x^{2}+x +1}{\left (x^{2}-1\right ) \left (x^{4}+x^{2}\right )^{\frac {1}{3}}}\, dx\]
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 [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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} + x + 1}{\sqrt [3]{x^{2} \left (x^{2} + 1\right )} \left (x - 1\right ) \left (x + 1\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^2+x+1}{{\left (x^4+x^2\right )}^{1/3}\,\left (x^2-1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________