Optimal. Leaf size=101 \[ \frac {4 x}{\sqrt [4]{1+x^2}}+\frac {7}{4} \text {ArcTan}\left (\frac {-x+\sqrt [4]{1+x^2}}{\sqrt [4]{1+x^2}}\right )-\frac {7}{4} \text {ArcTan}\left (\frac {x+\sqrt [4]{1+x^2}}{\sqrt [4]{1+x^2}}\right )-\frac {7}{4} \tanh ^{-1}\left (\frac {2 x \sqrt [4]{1+x^2}}{x^2+2 \sqrt {1+x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 73, normalized size of antiderivative = 0.72, number of steps
used = 9, number of rules used = 6, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {1702, 6857,
202, 291, 412, 406} \begin {gather*} \frac {7}{2} \text {ArcTan}\left (\frac {\sqrt {x^2+1}+1}{x \sqrt [4]{x^2+1}}\right )+\frac {4 x}{\sqrt [4]{x^2+1}}+\frac {7}{2} \tanh ^{-1}\left (\frac {1-\sqrt {x^2+1}}{x \sqrt [4]{x^2+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 202
Rule 291
Rule 406
Rule 412
Rule 1702
Rule 6857
Rubi steps
\begin {align*} \int \frac {1+x^2+2 x^4}{\sqrt [4]{1+x^2} \left (2+3 x^2+x^4\right )} \, dx &=\int \frac {1+x^2+2 x^4}{\left (1+x^2\right )^{5/4} \left (2+x^2\right )} \, dx\\ &=\int \left (-\frac {3}{\left (1+x^2\right )^{5/4}}+\frac {2 x^2}{\left (1+x^2\right )^{5/4}}+\frac {7}{\left (1+x^2\right )^{5/4} \left (2+x^2\right )}\right ) \, dx\\ &=2 \int \frac {x^2}{\left (1+x^2\right )^{5/4}} \, dx-3 \int \frac {1}{\left (1+x^2\right )^{5/4}} \, dx+7 \int \frac {1}{\left (1+x^2\right )^{5/4} \left (2+x^2\right )} \, dx\\ &=\frac {4 x}{\sqrt [4]{1+x^2}}-6 E\left (\left .\frac {1}{2} \tan ^{-1}(x)\right |2\right )-4 \int \frac {1}{\left (1+x^2\right )^{5/4}} \, dx+7 \int \frac {1}{\left (1+x^2\right )^{5/4}} \, dx-7 \int \frac {1}{\sqrt [4]{1+x^2} \left (2+x^2\right )} \, dx\\ &=\frac {4 x}{\sqrt [4]{1+x^2}}+\frac {7}{2} \tan ^{-1}\left (\frac {1+\sqrt {1+x^2}}{x \sqrt [4]{1+x^2}}\right )+\frac {7}{2} \tanh ^{-1}\left (\frac {1-\sqrt {1+x^2}}{x \sqrt [4]{1+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.28, size = 82, normalized size = 0.81 \begin {gather*} \frac {1}{4} \left (\frac {16 x}{\sqrt [4]{1+x^2}}+7 \text {ArcTan}\left (1-\frac {x}{\sqrt [4]{1+x^2}}\right )-7 \text {ArcTan}\left (1+\frac {x}{\sqrt [4]{1+x^2}}\right )-7 \tanh ^{-1}\left (\frac {2 x \sqrt [4]{1+x^2}}{x^2+2 \sqrt {1+x^2}}\right )\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 = 2.99, size = 291, normalized size = 2.88
method | result | size |
trager | \(\frac {4 x}{\left (x^{2}+1\right )^{\frac {1}{4}}}+\frac {7 \ln \left (\frac {8 \left (x^{2}+1\right )^{\frac {3}{4}} \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right )-2 \left (x^{2}+1\right )^{\frac {3}{4}}+x \sqrt {x^{2}+1}+8 \left (x^{2}+1\right )^{\frac {1}{4}} \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right )-8 \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right ) x +x}{x^{2}+2}\right )}{2}-14 \ln \left (\frac {8 \left (x^{2}+1\right )^{\frac {3}{4}} \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right )-2 \left (x^{2}+1\right )^{\frac {3}{4}}+x \sqrt {x^{2}+1}+8 \left (x^{2}+1\right )^{\frac {1}{4}} \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right )-8 \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right ) x +x}{x^{2}+2}\right ) \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right )+14 \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right ) \ln \left (-\frac {8 \left (x^{2}+1\right )^{\frac {3}{4}} \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right )-x \sqrt {x^{2}+1}+8 \left (x^{2}+1\right )^{\frac {1}{4}} \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right )-8 \RootOf \left (32 \textit {\_Z}^{2}-8 \textit {\_Z} +1\right ) x -2 \left (x^{2}+1\right )^{\frac {1}{4}}+x}{x^{2}+2}\right )\) | \(291\) |
risch | \(\frac {4 x}{\left (x^{2}+1\right )^{\frac {1}{4}}}+7 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) \ln \left (-\frac {4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) \left (x^{2}+1\right )^{\frac {3}{4}}-x \sqrt {x^{2}+1}+4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) \left (x^{2}+1\right )^{\frac {1}{4}}+4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) x +2 \left (x^{2}+1\right )^{\frac {1}{4}}+x}{x^{2}+2}\right )-\frac {7 \ln \left (\frac {4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) \left (x^{2}+1\right )^{\frac {3}{4}}+2 \left (x^{2}+1\right )^{\frac {3}{4}}+x \sqrt {x^{2}+1}+4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) \left (x^{2}+1\right )^{\frac {1}{4}}+4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) x +x}{x^{2}+2}\right )}{2}-7 \ln \left (\frac {4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) \left (x^{2}+1\right )^{\frac {3}{4}}+2 \left (x^{2}+1\right )^{\frac {3}{4}}+x \sqrt {x^{2}+1}+4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) \left (x^{2}+1\right )^{\frac {1}{4}}+4 \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right ) x +x}{x^{2}+2}\right ) \RootOf \left (8 \textit {\_Z}^{2}+4 \textit {\_Z} +1\right )\) | \(291\) |
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 [A]
time = 0.34, size = 137, normalized size = 1.36 \begin {gather*} \frac {14 \, {\left (x^{2} + 1\right )} \arctan \left (\frac {x + 2 \, {\left (x^{2} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 14 \, {\left (x^{2} + 1\right )} \arctan \left (-\frac {x - 2 \, {\left (x^{2} + 1\right )}^{\frac {1}{4}}}{x}\right ) - 7 \, {\left (x^{2} + 1\right )} \log \left (\frac {x^{2} + 2 \, {\left (x^{2} + 1\right )}^{\frac {1}{4}} x + 2 \, \sqrt {x^{2} + 1}}{x^{2}}\right ) + 7 \, {\left (x^{2} + 1\right )} \log \left (\frac {x^{2} - 2 \, {\left (x^{2} + 1\right )}^{\frac {1}{4}} x + 2 \, \sqrt {x^{2} + 1}}{x^{2}}\right ) + 32 \, {\left (x^{2} + 1\right )}^{\frac {3}{4}} x}{8 \, {\left (x^{2} + 1\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 {2 x^{4} + x^{2} + 1}{\left (x^{2} + 1\right )^{\frac {5}{4}} \left (x^{2} + 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 {2\,x^4+x^2+1}{{\left (x^2+1\right )}^{1/4}\,\left (x^4+3\,x^2+2\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________