Optimal. Leaf size=138 \[ \frac {\tan ^{-1}\left (\frac {x}{\sqrt [6]{2}}\right )}{3\ 2^{5/6}}-\frac {\tan ^{-1}\left (\sqrt {3}-2^{5/6} x\right )}{6\ 2^{5/6}}+\frac {\tan ^{-1}\left (\sqrt {3}+2^{5/6} x\right )}{6\ 2^{5/6}}-\frac {\log \left (\sqrt [3]{2}-\sqrt [6]{2} \sqrt {3} x+x^2\right )}{4\ 2^{5/6} \sqrt {3}}+\frac {\log \left (\sqrt [3]{2}+\sqrt [6]{2} \sqrt {3} x+x^2\right )}{4\ 2^{5/6} \sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 138, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 6, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.857, Rules used = {215, 648, 632,
210, 642, 209} \begin {gather*} \frac {\text {ArcTan}\left (\frac {x}{\sqrt [6]{2}}\right )}{3\ 2^{5/6}}-\frac {\text {ArcTan}\left (\sqrt {3}-2^{5/6} x\right )}{6\ 2^{5/6}}+\frac {\text {ArcTan}\left (2^{5/6} x+\sqrt {3}\right )}{6\ 2^{5/6}}-\frac {\log \left (x^2-\sqrt [6]{2} \sqrt {3} x+\sqrt [3]{2}\right )}{4\ 2^{5/6} \sqrt {3}}+\frac {\log \left (x^2+\sqrt [6]{2} \sqrt {3} x+\sqrt [3]{2}\right )}{4\ 2^{5/6} \sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 210
Rule 215
Rule 632
Rule 642
Rule 648
Rubi steps
\begin {align*} \int \frac {1}{2+x^6} \, dx &=\frac {\int \frac {\sqrt [6]{2}-\frac {\sqrt {3} x}{2}}{\sqrt [3]{2}-\sqrt [6]{2} \sqrt {3} x+x^2} \, dx}{3\ 2^{5/6}}+\frac {\int \frac {\sqrt [6]{2}+\frac {\sqrt {3} x}{2}}{\sqrt [3]{2}+\sqrt [6]{2} \sqrt {3} x+x^2} \, dx}{3\ 2^{5/6}}+\frac {\int \frac {1}{\sqrt [3]{2}+x^2} \, dx}{3\ 2^{2/3}}\\ &=\frac {\tan ^{-1}\left (\frac {x}{\sqrt [6]{2}}\right )}{3\ 2^{5/6}}+\frac {\int \frac {1}{\sqrt [3]{2}-\sqrt [6]{2} \sqrt {3} x+x^2} \, dx}{12\ 2^{2/3}}+\frac {\int \frac {1}{\sqrt [3]{2}+\sqrt [6]{2} \sqrt {3} x+x^2} \, dx}{12\ 2^{2/3}}-\frac {\int \frac {-\sqrt [6]{2} \sqrt {3}+2 x}{\sqrt [3]{2}-\sqrt [6]{2} \sqrt {3} x+x^2} \, dx}{4\ 2^{5/6} \sqrt {3}}+\frac {\int \frac {\sqrt [6]{2} \sqrt {3}+2 x}{\sqrt [3]{2}+\sqrt [6]{2} \sqrt {3} x+x^2} \, dx}{4\ 2^{5/6} \sqrt {3}}\\ &=\frac {\tan ^{-1}\left (\frac {x}{\sqrt [6]{2}}\right )}{3\ 2^{5/6}}-\frac {\log \left (\sqrt [3]{2}-\sqrt [6]{2} \sqrt {3} x+x^2\right )}{4\ 2^{5/6} \sqrt {3}}+\frac {\log \left (\sqrt [3]{2}+\sqrt [6]{2} \sqrt {3} x+x^2\right )}{4\ 2^{5/6} \sqrt {3}}+\frac {\text {Subst}\left (\int \frac {1}{-\frac {1}{3}-x^2} \, dx,x,1-\frac {2^{5/6} x}{\sqrt {3}}\right )}{6\ 2^{5/6} \sqrt {3}}-\frac {\text {Subst}\left (\int \frac {1}{-\frac {1}{3}-x^2} \, dx,x,1+\frac {2^{5/6} x}{\sqrt {3}}\right )}{6\ 2^{5/6} \sqrt {3}}\\ &=\frac {\tan ^{-1}\left (\frac {x}{\sqrt [6]{2}}\right )}{3\ 2^{5/6}}-\frac {\tan ^{-1}\left (\sqrt {3}-2^{5/6} x\right )}{6\ 2^{5/6}}+\frac {\tan ^{-1}\left (\sqrt {3}+2^{5/6} x\right )}{6\ 2^{5/6}}-\frac {\log \left (\sqrt [3]{2}-\sqrt [6]{2} \sqrt {3} x+x^2\right )}{4\ 2^{5/6} \sqrt {3}}+\frac {\log \left (\sqrt [3]{2}+\sqrt [6]{2} \sqrt {3} x+x^2\right )}{4\ 2^{5/6} \sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 115, normalized size = 0.83 \begin {gather*} \frac {4 \tan ^{-1}\left (\frac {x}{\sqrt [6]{2}}\right )-2 \tan ^{-1}\left (\sqrt {3}-2^{5/6} x\right )+2 \tan ^{-1}\left (\sqrt {3}+2^{5/6} x\right )-\sqrt {3} \log \left (2-2^{5/6} \sqrt {3} x+2^{2/3} x^2\right )+\sqrt {3} \log \left (2+2^{5/6} \sqrt {3} x+2^{2/3} x^2\right )}{12\ 2^{5/6}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 95, normalized size = 0.69
method | result | size |
risch | \(\frac {\left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{6}+2\right )}{\sum }\frac {\ln \left (-\textit {\_R} +x \right )}{\textit {\_R}^{5}}\right )}{6}\) | \(22\) |
default | \(\frac {\arctan \left (\frac {x 2^{\frac {5}{6}}}{2}\right ) 2^{\frac {1}{6}}}{6}+\frac {\arctan \left (x 2^{\frac {5}{6}}-\sqrt {3}\right ) 2^{\frac {1}{6}}}{12}+\frac {\arctan \left (x 2^{\frac {5}{6}}+\sqrt {3}\right ) 2^{\frac {1}{6}}}{12}-\frac {\ln \left (2^{\frac {1}{3}}+x^{2}-2^{\frac {1}{6}} x \sqrt {3}\right ) 2^{\frac {1}{6}} \sqrt {3}}{24}+\frac {\ln \left (2^{\frac {1}{3}}+x^{2}+2^{\frac {1}{6}} x \sqrt {3}\right ) 2^{\frac {1}{6}} \sqrt {3}}{24}\) | \(95\) |
meijerg | \(\frac {2^{\frac {1}{6}} \left (-\frac {x \sqrt {3}\, \ln \left (1-\frac {\sqrt {3}\, 2^{\frac {5}{6}} \left (x^{6}\right )^{\frac {1}{6}}}{2}+\frac {2^{\frac {2}{3}} \left (x^{6}\right )^{\frac {1}{3}}}{2}\right )}{2 \left (x^{6}\right )^{\frac {1}{6}}}+\frac {x \arctan \left (\frac {2^{\frac {5}{6}} \left (x^{6}\right )^{\frac {1}{6}}}{4-\sqrt {3}\, 2^{\frac {5}{6}} \left (x^{6}\right )^{\frac {1}{6}}}\right )}{\left (x^{6}\right )^{\frac {1}{6}}}+\frac {2 x \arctan \left (\frac {2^{\frac {5}{6}} \left (x^{6}\right )^{\frac {1}{6}}}{2}\right )}{\left (x^{6}\right )^{\frac {1}{6}}}+\frac {x \sqrt {3}\, \ln \left (1+\frac {\sqrt {3}\, 2^{\frac {5}{6}} \left (x^{6}\right )^{\frac {1}{6}}}{2}+\frac {2^{\frac {2}{3}} \left (x^{6}\right )^{\frac {1}{3}}}{2}\right )}{2 \left (x^{6}\right )^{\frac {1}{6}}}+\frac {x \arctan \left (\frac {2^{\frac {5}{6}} \left (x^{6}\right )^{\frac {1}{6}}}{4+\sqrt {3}\, 2^{\frac {5}{6}} \left (x^{6}\right )^{\frac {1}{6}}}\right )}{\left (x^{6}\right )^{\frac {1}{6}}}\right )}{12}\) | \(170\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.24, size = 107, normalized size = 0.78 \begin {gather*} \frac {1}{24} \, \sqrt {3} 2^{\frac {1}{6}} \log \left (x^{2} + \sqrt {3} 2^{\frac {1}{6}} x + 2^{\frac {1}{3}}\right ) - \frac {1}{24} \, \sqrt {3} 2^{\frac {1}{6}} \log \left (x^{2} - \sqrt {3} 2^{\frac {1}{6}} x + 2^{\frac {1}{3}}\right ) + \frac {1}{12} \cdot 2^{\frac {1}{6}} \arctan \left (\frac {1}{2} \cdot 2^{\frac {5}{6}} {\left (2 \, x + \sqrt {3} 2^{\frac {1}{6}}\right )}\right ) + \frac {1}{12} \cdot 2^{\frac {1}{6}} \arctan \left (\frac {1}{2} \cdot 2^{\frac {5}{6}} {\left (2 \, x - \sqrt {3} 2^{\frac {1}{6}}\right )}\right ) + \frac {1}{6} \cdot 2^{\frac {1}{6}} \arctan \left (\frac {1}{2} \cdot 2^{\frac {5}{6}} x\right ) \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. 279 vs.
\(2 (94) = 188\).
time = 1.22, size = 279, normalized size = 2.02 \begin {gather*} \frac {1}{768} \cdot 32^{\frac {5}{6}} \sqrt {3} \log \left (64 \cdot 32^{\frac {5}{6}} \sqrt {3} x + 1024 \, x^{2} + 512 \cdot 4^{\frac {2}{3}}\right ) + \frac {1}{768} \cdot 32^{\frac {5}{6}} \sqrt {3} \log \left (16 \cdot 32^{\frac {5}{6}} \sqrt {3} x + 256 \, x^{2} + 128 \cdot 4^{\frac {2}{3}}\right ) - \frac {1}{768} \cdot 32^{\frac {5}{6}} \sqrt {3} \log \left (-16 \cdot 32^{\frac {5}{6}} \sqrt {3} x + 256 \, x^{2} + 128 \cdot 4^{\frac {2}{3}}\right ) - \frac {1}{768} \cdot 32^{\frac {5}{6}} \sqrt {3} \log \left (-64 \cdot 32^{\frac {5}{6}} \sqrt {3} x + 1024 \, x^{2} + 512 \cdot 4^{\frac {2}{3}}\right ) - \frac {1}{48} \cdot 32^{\frac {5}{6}} \arctan \left (\frac {1}{4} \cdot 32^{\frac {1}{6}} \sqrt {2} \sqrt {2 \, x^{2} + 4^{\frac {2}{3}}} - \frac {1}{2} \cdot 32^{\frac {1}{6}} x\right ) - \frac {1}{96} \cdot 32^{\frac {5}{6}} \arctan \left (-32^{\frac {1}{6}} x + \frac {1}{4} \cdot 32^{\frac {1}{6}} \sqrt {32^{\frac {5}{6}} \sqrt {3} x + 16 \, x^{2} + 8 \cdot 4^{\frac {2}{3}}} - \sqrt {3}\right ) - \frac {1}{192} \cdot 32^{\frac {5}{6}} \arctan \left (-32^{\frac {1}{6}} x + \frac {1}{16} \cdot 32^{\frac {1}{6}} \sqrt {-16 \cdot 32^{\frac {5}{6}} \sqrt {3} x + 256 \, x^{2} + 128 \cdot 4^{\frac {2}{3}}} + \sqrt {3}\right ) - \frac {1}{192} \cdot 32^{\frac {5}{6}} \arctan \left (-32^{\frac {1}{6}} x + \frac {1}{32} \cdot 32^{\frac {1}{6}} \sqrt {-64 \cdot 32^{\frac {5}{6}} \sqrt {3} x + 1024 \, x^{2} + 512 \cdot 4^{\frac {2}{3}}} + \sqrt {3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 14, normalized size = 0.10 \begin {gather*} \operatorname {RootSum} {\left (1492992 t^{6} + 1, \left ( t \mapsto t \log {\left (12 t + x \right )} \right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.97, size = 107, normalized size = 0.78 \begin {gather*} \frac {1}{24} \, \sqrt {3} 2^{\frac {1}{6}} \log \left (x^{2} + \sqrt {3} 2^{\frac {1}{6}} x + 2^{\frac {1}{3}}\right ) - \frac {1}{24} \, \sqrt {3} 2^{\frac {1}{6}} \log \left (x^{2} - \sqrt {3} 2^{\frac {1}{6}} x + 2^{\frac {1}{3}}\right ) + \frac {1}{12} \cdot 2^{\frac {1}{6}} \arctan \left (\frac {1}{2} \cdot 2^{\frac {5}{6}} {\left (2 \, x + \sqrt {3} 2^{\frac {1}{6}}\right )}\right ) + \frac {1}{12} \cdot 2^{\frac {1}{6}} \arctan \left (\frac {1}{2} \cdot 2^{\frac {5}{6}} {\left (2 \, x - \sqrt {3} 2^{\frac {1}{6}}\right )}\right ) + \frac {1}{6} \cdot 2^{\frac {1}{6}} \arctan \left (\frac {1}{2} \cdot 2^{\frac {5}{6}} x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 135, normalized size = 0.98 \begin {gather*} \frac {2^{1/6}\,\mathrm {atan}\left (\frac {2^{5/6}\,x}{2}\right )}{6}+\frac {2^{1/6}\,\mathrm {atan}\left (\frac {2^{1/6}\,x}{2\,\left (-\frac {2^{1/3}}{2}+\frac {2^{1/3}\,\sqrt {3}\,1{}\mathrm {i}}{2}\right )}+\frac {2^{1/6}\,\sqrt {3}\,x\,1{}\mathrm {i}}{2\,\left (-\frac {2^{1/3}}{2}+\frac {2^{1/3}\,\sqrt {3}\,1{}\mathrm {i}}{2}\right )}\right )\,\left (\sqrt {3}-\mathrm {i}\right )\,1{}\mathrm {i}}{12}+\frac {2^{1/6}\,\mathrm {atan}\left (\frac {2^{1/6}\,x}{2\,\left (\frac {2^{1/3}}{2}+\frac {2^{1/3}\,\sqrt {3}\,1{}\mathrm {i}}{2}\right )}-\frac {2^{1/6}\,\sqrt {3}\,x\,1{}\mathrm {i}}{2\,\left (\frac {2^{1/3}}{2}+\frac {2^{1/3}\,\sqrt {3}\,1{}\mathrm {i}}{2}\right )}\right )\,\left (\sqrt {3}+1{}\mathrm {i}\right )\,1{}\mathrm {i}}{12} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________