Integrand size = 26, antiderivative size = 148 \[ \int \frac {-1+x^4+7 x^5+x^9}{-7+6 x^4+x^8} \, dx=\frac {x^2}{2}-\frac {\arctan \left (1-\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )}{2 \sqrt {2} 7^{3/4}}+\frac {\arctan \left (1+\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )}{2 \sqrt {2} 7^{3/4}}-\frac {\text {arctanh}\left (x^2\right )}{2}-\frac {\log \left (\sqrt {7}-\sqrt {2} \sqrt [4]{7} x+x^2\right )}{4 \sqrt {2} 7^{3/4}}+\frac {\log \left (\sqrt {7}+\sqrt {2} \sqrt [4]{7} x+x^2\right )}{4 \sqrt {2} 7^{3/4}} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps used = 17, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {1804, 1417, 217, 1179, 642, 1176, 631, 210, 1598, 1492, 281, 327, 213} \[ \int \frac {-1+x^4+7 x^5+x^9}{-7+6 x^4+x^8} \, dx=-\frac {\arctan \left (1-\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )}{2 \sqrt {2} 7^{3/4}}+\frac {\arctan \left (\frac {\sqrt {2} x}{\sqrt [4]{7}}+1\right )}{2 \sqrt {2} 7^{3/4}}-\frac {\text {arctanh}\left (x^2\right )}{2}+\frac {x^2}{2}-\frac {\log \left (x^2-\sqrt {2} \sqrt [4]{7} x+\sqrt {7}\right )}{4 \sqrt {2} 7^{3/4}}+\frac {\log \left (x^2+\sqrt {2} \sqrt [4]{7} x+\sqrt {7}\right )}{4 \sqrt {2} 7^{3/4}} \]
[In]
[Out]
Rule 210
Rule 213
Rule 217
Rule 281
Rule 327
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 1417
Rule 1492
Rule 1598
Rule 1804
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {-1+x^4}{-7+6 x^4+x^8}+\frac {x \left (7 x^4+x^8\right )}{-7+6 x^4+x^8}\right ) \, dx \\ & = \int \frac {-1+x^4}{-7+6 x^4+x^8} \, dx+\int \frac {x \left (7 x^4+x^8\right )}{-7+6 x^4+x^8} \, dx \\ & = \int \frac {1}{7+x^4} \, dx+\int \frac {x^5 \left (7+x^4\right )}{-7+6 x^4+x^8} \, dx \\ & = \frac {\int \frac {\sqrt {7}-x^2}{7+x^4} \, dx}{2 \sqrt {7}}+\frac {\int \frac {\sqrt {7}+x^2}{7+x^4} \, dx}{2 \sqrt {7}}+\int \frac {x^5}{-1+x^4} \, dx \\ & = \frac {1}{2} \text {Subst}\left (\int \frac {x^2}{-1+x^2} \, dx,x,x^2\right )-\frac {\int \frac {\sqrt {2} \sqrt [4]{7}+2 x}{-\sqrt {7}-\sqrt {2} \sqrt [4]{7} x-x^2} \, dx}{4 \sqrt {2} 7^{3/4}}-\frac {\int \frac {\sqrt {2} \sqrt [4]{7}-2 x}{-\sqrt {7}+\sqrt {2} \sqrt [4]{7} x-x^2} \, dx}{4 \sqrt {2} 7^{3/4}}+\frac {\int \frac {1}{\sqrt {7}-\sqrt {2} \sqrt [4]{7} x+x^2} \, dx}{4 \sqrt {7}}+\frac {\int \frac {1}{\sqrt {7}+\sqrt {2} \sqrt [4]{7} x+x^2} \, dx}{4 \sqrt {7}} \\ & = \frac {x^2}{2}-\frac {\log \left (\sqrt {7}-\sqrt {2} \sqrt [4]{7} x+x^2\right )}{4 \sqrt {2} 7^{3/4}}+\frac {\log \left (\sqrt {7}+\sqrt {2} \sqrt [4]{7} x+x^2\right )}{4 \sqrt {2} 7^{3/4}}+\frac {1}{2} \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,x^2\right )+\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )}{2 \sqrt {2} 7^{3/4}}-\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )}{2 \sqrt {2} 7^{3/4}} \\ & = \frac {x^2}{2}-\frac {\tan ^{-1}\left (1-\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )}{2 \sqrt {2} 7^{3/4}}+\frac {\tan ^{-1}\left (1+\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )}{2 \sqrt {2} 7^{3/4}}-\frac {1}{2} \tanh ^{-1}\left (x^2\right )-\frac {\log \left (\sqrt {7}-\sqrt {2} \sqrt [4]{7} x+x^2\right )}{4 \sqrt {2} 7^{3/4}}+\frac {\log \left (\sqrt {7}+\sqrt {2} \sqrt [4]{7} x+x^2\right )}{4 \sqrt {2} 7^{3/4}} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 159, normalized size of antiderivative = 1.07 \[ \int \frac {-1+x^4+7 x^5+x^9}{-7+6 x^4+x^8} \, dx=\frac {1}{56} \left (28 x^2-2 \sqrt {2} \sqrt [4]{7} \arctan \left (1-\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )+2 \sqrt {2} \sqrt [4]{7} \arctan \left (1+\frac {\sqrt {2} x}{\sqrt [4]{7}}\right )+14 \log (1-x)+14 \log (1+x)-14 \log \left (1+x^2\right )-\sqrt {2} \sqrt [4]{7} \log \left (7-\sqrt {2} 7^{3/4} x+\sqrt {7} x^2\right )+\sqrt {2} \sqrt [4]{7} \log \left (7+\sqrt {2} 7^{3/4} x+\sqrt {7} x^2\right )\right ) \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.13 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.30
method | result | size |
risch | \(\frac {x^{2}}{2}+\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (343 \textit {\_Z}^{4}+1\right )}{\sum }\textit {\_R} \ln \left (x +7 \textit {\_R} \right )\right )}{4}+\frac {\ln \left (x^{2}-1\right )}{4}-\frac {\ln \left (x^{2}+1\right )}{4}\) | \(44\) |
default | \(\frac {x^{2}}{2}+\frac {\ln \left (x +1\right )}{4}+\frac {7^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {x^{2}+7^{\frac {1}{4}} x \sqrt {2}+\sqrt {7}}{x^{2}-7^{\frac {1}{4}} x \sqrt {2}+\sqrt {7}}\right )+2 \arctan \left (1+\frac {x \sqrt {2}\, 7^{\frac {3}{4}}}{7}\right )+2 \arctan \left (-1+\frac {x \sqrt {2}\, 7^{\frac {3}{4}}}{7}\right )\right )}{56}-\frac {\ln \left (x^{2}+1\right )}{4}+\frac {\ln \left (x -1\right )}{4}\) | \(99\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.26 (sec) , antiderivative size = 106, normalized size of antiderivative = 0.72 \[ \int \frac {-1+x^4+7 x^5+x^9}{-7+6 x^4+x^8} \, dx=\left (\frac {1}{2744} i + \frac {1}{2744}\right ) \cdot 343^{\frac {3}{4}} \sqrt {2} \log \left (\left (i + 1\right ) \cdot 343^{\frac {3}{4}} \sqrt {2} + 98 \, x\right ) - \left (\frac {1}{2744} i - \frac {1}{2744}\right ) \cdot 343^{\frac {3}{4}} \sqrt {2} \log \left (-\left (i - 1\right ) \cdot 343^{\frac {3}{4}} \sqrt {2} + 98 \, x\right ) + \left (\frac {1}{2744} i - \frac {1}{2744}\right ) \cdot 343^{\frac {3}{4}} \sqrt {2} \log \left (\left (i - 1\right ) \cdot 343^{\frac {3}{4}} \sqrt {2} + 98 \, x\right ) - \left (\frac {1}{2744} i + \frac {1}{2744}\right ) \cdot 343^{\frac {3}{4}} \sqrt {2} \log \left (-\left (i + 1\right ) \cdot 343^{\frac {3}{4}} \sqrt {2} + 98 \, x\right ) + \frac {1}{2} \, x^{2} - \frac {1}{4} \, \log \left (x^{2} + 1\right ) + \frac {1}{4} \, \log \left (x^{2} - 1\right ) \]
[In]
[Out]
Time = 0.21 (sec) , antiderivative size = 146, normalized size of antiderivative = 0.99 \[ \int \frac {-1+x^4+7 x^5+x^9}{-7+6 x^4+x^8} \, dx=\frac {x^{2}}{2} + \frac {\log {\left (x^{2} - 1 \right )}}{4} - \frac {\log {\left (x^{2} + 1 \right )}}{4} - \frac {\sqrt {2} \cdot \sqrt [4]{7} \log {\left (x^{2} - \sqrt {2} \cdot \sqrt [4]{7} x + \sqrt {7} \right )}}{56} + \frac {\sqrt {2} \cdot \sqrt [4]{7} \log {\left (x^{2} + \sqrt {2} \cdot \sqrt [4]{7} x + \sqrt {7} \right )}}{56} + \frac {\sqrt {2} \cdot \sqrt [4]{7} \operatorname {atan}{\left (\frac {\sqrt {2} \cdot 7^{\frac {3}{4}} x}{7} - 1 \right )}}{28} + \frac {\sqrt {2} \cdot \sqrt [4]{7} \operatorname {atan}{\left (\frac {\sqrt {2} \cdot 7^{\frac {3}{4}} x}{7} + 1 \right )}}{28} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 132, normalized size of antiderivative = 0.89 \[ \int \frac {-1+x^4+7 x^5+x^9}{-7+6 x^4+x^8} \, dx=\frac {1}{2} \, x^{2} + \frac {1}{28} \cdot 7^{\frac {1}{4}} \sqrt {2} \arctan \left (\frac {1}{14} \cdot 7^{\frac {3}{4}} \sqrt {2} {\left (2 \, x + 7^{\frac {1}{4}} \sqrt {2}\right )}\right ) + \frac {1}{28} \cdot 7^{\frac {1}{4}} \sqrt {2} \arctan \left (\frac {1}{14} \cdot 7^{\frac {3}{4}} \sqrt {2} {\left (2 \, x - 7^{\frac {1}{4}} \sqrt {2}\right )}\right ) + \frac {1}{56} \cdot 7^{\frac {1}{4}} \sqrt {2} \log \left (x^{2} + 7^{\frac {1}{4}} \sqrt {2} x + \sqrt {7}\right ) - \frac {1}{56} \cdot 7^{\frac {1}{4}} \sqrt {2} \log \left (x^{2} - 7^{\frac {1}{4}} \sqrt {2} x + \sqrt {7}\right ) - \frac {1}{4} \, \log \left (x^{2} + 1\right ) + \frac {1}{4} \, \log \left (x + 1\right ) + \frac {1}{4} \, \log \left (x - 1\right ) \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 122, normalized size of antiderivative = 0.82 \[ \int \frac {-1+x^4+7 x^5+x^9}{-7+6 x^4+x^8} \, dx=\frac {1}{2} \, x^{2} + \frac {1}{28} \cdot 28^{\frac {1}{4}} \arctan \left (\frac {1}{14} \cdot 7^{\frac {3}{4}} \sqrt {2} {\left (2 \, x + 7^{\frac {1}{4}} \sqrt {2}\right )}\right ) + \frac {1}{28} \cdot 28^{\frac {1}{4}} \arctan \left (\frac {1}{14} \cdot 7^{\frac {3}{4}} \sqrt {2} {\left (2 \, x - 7^{\frac {1}{4}} \sqrt {2}\right )}\right ) + \frac {1}{56} \cdot 28^{\frac {1}{4}} \log \left (x^{2} + 7^{\frac {1}{4}} \sqrt {2} x + \sqrt {7}\right ) - \frac {1}{56} \cdot 28^{\frac {1}{4}} \log \left (x^{2} - 7^{\frac {1}{4}} \sqrt {2} x + \sqrt {7}\right ) - \frac {1}{4} \, \log \left (x^{2} + 1\right ) + \frac {1}{4} \, \log \left ({\left | x + 1 \right |}\right ) + \frac {1}{4} \, \log \left ({\left | x - 1 \right |}\right ) \]
[In]
[Out]
Time = 9.10 (sec) , antiderivative size = 124, normalized size of antiderivative = 0.84 \[ \int \frac {-1+x^4+7 x^5+x^9}{-7+6 x^4+x^8} \, dx=\frac {\mathrm {atan}\left (x^2\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2}+\frac {x^2}{2}+\sqrt {2}\,7^{1/4}\,\mathrm {atan}\left (\frac {\sqrt {2}\,7^{1/4}\,x\,\left (\frac {89653248}{2401}+\frac {89653248}{2401}{}\mathrm {i}\right )}{-\frac {1048576}{49}+\frac {\sqrt {7}\,179306496{}\mathrm {i}}{2401}}+\frac {\sqrt {2}\,7^{3/4}\,x\,\left (-\frac {524288}{343}+\frac {524288}{343}{}\mathrm {i}\right )}{-\frac {1048576}{49}+\frac {\sqrt {7}\,179306496{}\mathrm {i}}{2401}}\right )\,\left (\frac {1}{28}+\frac {1}{28}{}\mathrm {i}\right )+\sqrt {2}\,7^{1/4}\,\mathrm {atan}\left (\frac {\sqrt {2}\,7^{1/4}\,x\,\left (\frac {89653248}{2401}-\frac {89653248}{2401}{}\mathrm {i}\right )}{\frac {1048576}{49}+\frac {\sqrt {7}\,179306496{}\mathrm {i}}{2401}}+\frac {\sqrt {2}\,7^{3/4}\,x\,\left (-\frac {524288}{343}-\frac {524288}{343}{}\mathrm {i}\right )}{\frac {1048576}{49}+\frac {\sqrt {7}\,179306496{}\mathrm {i}}{2401}}\right )\,\left (-\frac {1}{28}+\frac {1}{28}{}\mathrm {i}\right ) \]
[In]
[Out]