Optimal. Leaf size=35 \[ -\frac{1}{3} \tan ^{-1}\left (\sqrt{3}-2 x\right )+\frac{2}{3} \tan ^{-1}(x)+\frac{1}{3} \tan ^{-1}\left (2 x+\sqrt{3}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.425398, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 22, number of rules used = 8, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.615, Rules used = {1876, 209, 634, 618, 204, 628, 203, 295} \[ -\frac{1}{3} \tan ^{-1}\left (\sqrt{3}-2 x\right )+\frac{2}{3} \tan ^{-1}(x)+\frac{1}{3} \tan ^{-1}\left (2 x+\sqrt{3}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1876
Rule 209
Rule 634
Rule 618
Rule 204
Rule 628
Rule 203
Rule 295
Rubi steps
\begin{align*} \int \frac{1+x^4}{1+x^6} \, dx &=\int \left (\frac{1}{1+x^6}+\frac{x^4}{1+x^6}\right ) \, dx\\ &=\int \frac{1}{1+x^6} \, dx+\int \frac{x^4}{1+x^6} \, dx\\ &=\frac{1}{3} \int \frac{1-\frac{\sqrt{3} x}{2}}{1-\sqrt{3} x+x^2} \, dx+\frac{1}{3} \int \frac{-\frac{1}{2}+\frac{\sqrt{3} x}{2}}{1-\sqrt{3} x+x^2} \, dx+\frac{1}{3} \int \frac{-\frac{1}{2}-\frac{\sqrt{3} x}{2}}{1+\sqrt{3} x+x^2} \, dx+\frac{1}{3} \int \frac{1+\frac{\sqrt{3} x}{2}}{1+\sqrt{3} x+x^2} \, dx+\frac{2}{3} \int \frac{1}{1+x^2} \, dx\\ &=\frac{2}{3} \tan ^{-1}(x)+2 \left (\frac{1}{12} \int \frac{1}{1-\sqrt{3} x+x^2} \, dx\right )+2 \left (\frac{1}{12} \int \frac{1}{1+\sqrt{3} x+x^2} \, dx\right )\\ &=\frac{2}{3} \tan ^{-1}(x)-2 \left (\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,-\sqrt{3}+2 x\right )\right )-2 \left (\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,\sqrt{3}+2 x\right )\right )\\ &=-\frac{1}{3} \tan ^{-1}\left (\sqrt{3}-2 x\right )+\frac{2}{3} \tan ^{-1}(x)+\frac{1}{3} \tan ^{-1}\left (\sqrt{3}+2 x\right )\\ \end{align*}
Mathematica [A] time = 0.0069387, size = 21, normalized size = 0.6 \[ \frac{2}{3} \tan ^{-1}(x)-\frac{1}{3} \tan ^{-1}\left (\frac{x}{x^2-1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.024, size = 28, normalized size = 0.8 \begin{align*}{\frac{2\,\arctan \left ( x \right ) }{3}}+{\frac{\arctan \left ( 2\,x-\sqrt{3} \right ) }{3}}+{\frac{\arctan \left ( 2\,x+\sqrt{3} \right ) }{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.41201, size = 36, normalized size = 1.03 \begin{align*} \frac{1}{3} \, \arctan \left (2 \, x + \sqrt{3}\right ) + \frac{1}{3} \, \arctan \left (2 \, x - \sqrt{3}\right ) + \frac{2}{3} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.99997, size = 39, normalized size = 1.11 \begin{align*} \frac{1}{3} \, \arctan \left (x^{3}\right ) + \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.110474, size = 8, normalized size = 0.23 \begin{align*} \operatorname{atan}{\left (x \right )} + \frac{\operatorname{atan}{\left (x^{3} \right )}}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.0464, size = 36, normalized size = 1.03 \begin{align*} \frac{1}{3} \, \arctan \left (2 \, x + \sqrt{3}\right ) + \frac{1}{3} \, \arctan \left (2 \, x - \sqrt{3}\right ) + \frac{2}{3} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]