Integrand size = 27, antiderivative size = 118 \[ \int \frac {\left (-1+x^2\right ) \sqrt [4]{x^2+x^6}}{x^2 \left (1+x^2\right )} \, dx=\frac {2 \sqrt [4]{x^2+x^6}}{x}-\frac {\arctan \left (\frac {2^{3/4} x \sqrt [4]{x^2+x^6}}{\sqrt {2} x^2-\sqrt {x^2+x^6}}\right )}{\sqrt [4]{2}}-\frac {\text {arctanh}\left (\frac {\frac {x^2}{\sqrt [4]{2}}+\frac {\sqrt {x^2+x^6}}{2^{3/4}}}{x \sqrt [4]{x^2+x^6}}\right )}{\sqrt [4]{2}} \]
[Out]
Result contains higher order function than in optimal. Order 6 vs. order 3 in optimal.
Time = 0.39 (sec) , antiderivative size = 147, normalized size of antiderivative = 1.25, number of steps used = 20, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.407, Rules used = {2081, 6857, 283, 335, 371, 1326, 1350, 331, 1351, 477, 524} \[ \int \frac {\left (-1+x^2\right ) \sqrt [4]{x^2+x^6}}{x^2 \left (1+x^2\right )} \, dx=\frac {8 \sqrt [4]{x^6+x^2} x \operatorname {AppellF1}\left (\frac {3}{8},1,\frac {3}{4},\frac {11}{8},x^4,-x^4\right )}{3 \sqrt [4]{x^4+1}}-\frac {8 \sqrt [4]{x^6+x^2} x^3 \operatorname {AppellF1}\left (\frac {7}{8},1,\frac {3}{4},\frac {15}{8},x^4,-x^4\right )}{7 \sqrt [4]{x^4+1}}-\frac {4 \sqrt [4]{x^6+x^2} x \operatorname {Hypergeometric2F1}\left (\frac {3}{8},\frac {3}{4},\frac {11}{8},-x^4\right )}{3 \sqrt [4]{x^4+1}}+\frac {2 \sqrt [4]{x^6+x^2}}{x} \]
[In]
[Out]
Rule 283
Rule 331
Rule 335
Rule 371
Rule 477
Rule 524
Rule 1326
Rule 1350
Rule 1351
Rule 2081
Rule 6857
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt [4]{x^2+x^6} \int \frac {\left (-1+x^2\right ) \sqrt [4]{1+x^4}}{x^{3/2} \left (1+x^2\right )} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}} \\ & = \frac {\sqrt [4]{x^2+x^6} \int \left (\frac {\sqrt [4]{1+x^4}}{x^{3/2}}-\frac {2 \sqrt [4]{1+x^4}}{x^{3/2} \left (1+x^2\right )}\right ) \, dx}{\sqrt {x} \sqrt [4]{1+x^4}} \\ & = \frac {\sqrt [4]{x^2+x^6} \int \frac {\sqrt [4]{1+x^4}}{x^{3/2}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}-\frac {\left (2 \sqrt [4]{x^2+x^6}\right ) \int \frac {\sqrt [4]{1+x^4}}{x^{3/2} \left (1+x^2\right )} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}} \\ & = -\frac {2 \sqrt [4]{x^2+x^6}}{x}+\frac {\left (2 \sqrt [4]{x^2+x^6}\right ) \int \frac {x^{5/2}}{\left (1+x^4\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}-\frac {\left (2 \sqrt [4]{x^2+x^6}\right ) \int \frac {1+x^2}{x^{3/2} \left (1+x^4\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}+\frac {\left (4 \sqrt [4]{x^2+x^6}\right ) \int \frac {\sqrt {x}}{\left (1+x^2\right ) \left (1+x^4\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}} \\ & = -\frac {2 \sqrt [4]{x^2+x^6}}{x}-\frac {\left (2 \sqrt [4]{x^2+x^6}\right ) \int \left (\frac {1}{x^{3/2} \left (1+x^4\right )^{3/4}}+\frac {\sqrt {x}}{\left (1+x^4\right )^{3/4}}\right ) \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}+\frac {\left (4 \sqrt [4]{x^2+x^6}\right ) \int \left (\frac {\sqrt {x}}{\left (1-x^4\right ) \left (1+x^4\right )^{3/4}}+\frac {x^{5/2}}{\left (-1+x^4\right ) \left (1+x^4\right )^{3/4}}\right ) \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}+\frac {\left (4 \sqrt [4]{x^2+x^6}\right ) \text {Subst}\left (\int \frac {x^6}{\left (1+x^8\right )^{3/4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt [4]{1+x^4}} \\ & = -\frac {2 \sqrt [4]{x^2+x^6}}{x}+\frac {4 x^3 \sqrt [4]{x^2+x^6} \operatorname {Hypergeometric2F1}\left (\frac {3}{4},\frac {7}{8},\frac {15}{8},-x^4\right )}{7 \sqrt [4]{1+x^4}}-\frac {\left (2 \sqrt [4]{x^2+x^6}\right ) \int \frac {1}{x^{3/2} \left (1+x^4\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}-\frac {\left (2 \sqrt [4]{x^2+x^6}\right ) \int \frac {\sqrt {x}}{\left (1+x^4\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}+\frac {\left (4 \sqrt [4]{x^2+x^6}\right ) \int \frac {\sqrt {x}}{\left (1-x^4\right ) \left (1+x^4\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}+\frac {\left (4 \sqrt [4]{x^2+x^6}\right ) \int \frac {x^{5/2}}{\left (-1+x^4\right ) \left (1+x^4\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}} \\ & = \frac {2 \sqrt [4]{x^2+x^6}}{x}+\frac {4 x^3 \sqrt [4]{x^2+x^6} \operatorname {Hypergeometric2F1}\left (\frac {3}{4},\frac {7}{8},\frac {15}{8},-x^4\right )}{7 \sqrt [4]{1+x^4}}-\frac {\left (2 \sqrt [4]{x^2+x^6}\right ) \int \frac {x^{5/2}}{\left (1+x^4\right )^{3/4}} \, dx}{\sqrt {x} \sqrt [4]{1+x^4}}-\frac {\left (4 \sqrt [4]{x^2+x^6}\right ) \text {Subst}\left (\int \frac {x^2}{\left (1+x^8\right )^{3/4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt [4]{1+x^4}}+\frac {\left (8 \sqrt [4]{x^2+x^6}\right ) \text {Subst}\left (\int \frac {x^2}{\left (1-x^8\right ) \left (1+x^8\right )^{3/4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt [4]{1+x^4}}+\frac {\left (8 \sqrt [4]{x^2+x^6}\right ) \text {Subst}\left (\int \frac {x^6}{\left (-1+x^8\right ) \left (1+x^8\right )^{3/4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt [4]{1+x^4}} \\ & = \frac {2 \sqrt [4]{x^2+x^6}}{x}+\frac {8 x \sqrt [4]{x^2+x^6} \operatorname {AppellF1}\left (\frac {3}{8},1,\frac {3}{4},\frac {11}{8},x^4,-x^4\right )}{3 \sqrt [4]{1+x^4}}-\frac {8 x^3 \sqrt [4]{x^2+x^6} \operatorname {AppellF1}\left (\frac {7}{8},1,\frac {3}{4},\frac {15}{8},x^4,-x^4\right )}{7 \sqrt [4]{1+x^4}}-\frac {4 x \sqrt [4]{x^2+x^6} \operatorname {Hypergeometric2F1}\left (\frac {3}{8},\frac {3}{4},\frac {11}{8},-x^4\right )}{3 \sqrt [4]{1+x^4}}+\frac {4 x^3 \sqrt [4]{x^2+x^6} \operatorname {Hypergeometric2F1}\left (\frac {3}{4},\frac {7}{8},\frac {15}{8},-x^4\right )}{7 \sqrt [4]{1+x^4}}-\frac {\left (4 \sqrt [4]{x^2+x^6}\right ) \text {Subst}\left (\int \frac {x^6}{\left (1+x^8\right )^{3/4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt [4]{1+x^4}} \\ & = \frac {2 \sqrt [4]{x^2+x^6}}{x}+\frac {8 x \sqrt [4]{x^2+x^6} \operatorname {AppellF1}\left (\frac {3}{8},1,\frac {3}{4},\frac {11}{8},x^4,-x^4\right )}{3 \sqrt [4]{1+x^4}}-\frac {8 x^3 \sqrt [4]{x^2+x^6} \operatorname {AppellF1}\left (\frac {7}{8},1,\frac {3}{4},\frac {15}{8},x^4,-x^4\right )}{7 \sqrt [4]{1+x^4}}-\frac {4 x \sqrt [4]{x^2+x^6} \operatorname {Hypergeometric2F1}\left (\frac {3}{8},\frac {3}{4},\frac {11}{8},-x^4\right )}{3 \sqrt [4]{1+x^4}} \\ \end{align*}
Time = 1.18 (sec) , antiderivative size = 146, normalized size of antiderivative = 1.24 \[ \int \frac {\left (-1+x^2\right ) \sqrt [4]{x^2+x^6}}{x^2 \left (1+x^2\right )} \, dx=-\frac {\sqrt [4]{x^2+x^6} \left (-4 \sqrt [4]{1+x^4}+2^{3/4} \sqrt {x} \arctan \left (\frac {2^{3/4} \sqrt {x} \sqrt [4]{1+x^4}}{\sqrt {2} x-\sqrt {1+x^4}}\right )+2^{3/4} \sqrt {x} \text {arctanh}\left (\frac {2 \sqrt [4]{2} \sqrt {x} \sqrt [4]{1+x^4}}{2 x+\sqrt {2} \sqrt {1+x^4}}\right )\right )}{2 x \sqrt [4]{1+x^4}} \]
[In]
[Out]
Time = 6.56 (sec) , antiderivative size = 159, normalized size of antiderivative = 1.35
method | result | size |
pseudoelliptic | \(\frac {-\ln \left (\frac {2^{\frac {3}{4}} \left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}} x +\sqrt {2}\, x^{2}+\sqrt {x^{2} \left (x^{4}+1\right )}}{-2^{\frac {3}{4}} \left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}} x +\sqrt {2}\, x^{2}+\sqrt {x^{2} \left (x^{4}+1\right )}}\right ) 2^{\frac {3}{4}} x -2 \arctan \left (\frac {2^{\frac {1}{4}} \left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}}+x}{x}\right ) 2^{\frac {3}{4}} x -2 \arctan \left (\frac {2^{\frac {1}{4}} \left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}}-x}{x}\right ) 2^{\frac {3}{4}} x +8 \left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}}}{4 x}\) | \(159\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 4.67 (sec) , antiderivative size = 332, normalized size of antiderivative = 2.81 \[ \int \frac {\left (-1+x^2\right ) \sqrt [4]{x^2+x^6}}{x^2 \left (1+x^2\right )} \, dx=\frac {\left (-2\right )^{\frac {1}{4}} x \log \left (\frac {4 \, \left (-2\right )^{\frac {1}{4}} {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} x^{2} - 2 \, \left (-2\right )^{\frac {3}{4}} {\left (x^{6} + x^{2}\right )}^{\frac {3}{4}} + \sqrt {-2} {\left (x^{5} - 2 \, x^{3} + x\right )} - 4 \, \sqrt {x^{6} + x^{2}} x}{x^{5} + 2 \, x^{3} + x}\right ) - \left (-2\right )^{\frac {1}{4}} x \log \left (-\frac {4 \, \left (-2\right )^{\frac {1}{4}} {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} x^{2} - 2 \, \left (-2\right )^{\frac {3}{4}} {\left (x^{6} + x^{2}\right )}^{\frac {3}{4}} - \sqrt {-2} {\left (x^{5} - 2 \, x^{3} + x\right )} + 4 \, \sqrt {x^{6} + x^{2}} x}{x^{5} + 2 \, x^{3} + x}\right ) + i \, \left (-2\right )^{\frac {1}{4}} x \log \left (\frac {4 i \, \left (-2\right )^{\frac {1}{4}} {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} x^{2} + 2 i \, \left (-2\right )^{\frac {3}{4}} {\left (x^{6} + x^{2}\right )}^{\frac {3}{4}} - \sqrt {-2} {\left (x^{5} - 2 \, x^{3} + x\right )} - 4 \, \sqrt {x^{6} + x^{2}} x}{x^{5} + 2 \, x^{3} + x}\right ) - i \, \left (-2\right )^{\frac {1}{4}} x \log \left (\frac {-4 i \, \left (-2\right )^{\frac {1}{4}} {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} x^{2} - 2 i \, \left (-2\right )^{\frac {3}{4}} {\left (x^{6} + x^{2}\right )}^{\frac {3}{4}} - \sqrt {-2} {\left (x^{5} - 2 \, x^{3} + x\right )} - 4 \, \sqrt {x^{6} + x^{2}} x}{x^{5} + 2 \, x^{3} + x}\right ) + 8 \, {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}}}{4 \, x} \]
[In]
[Out]
\[ \int \frac {\left (-1+x^2\right ) \sqrt [4]{x^2+x^6}}{x^2 \left (1+x^2\right )} \, dx=\int \frac {\sqrt [4]{x^{2} \left (x^{4} + 1\right )} \left (x - 1\right ) \left (x + 1\right )}{x^{2} \left (x^{2} + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\left (-1+x^2\right ) \sqrt [4]{x^2+x^6}}{x^2 \left (1+x^2\right )} \, dx=\int { \frac {{\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} {\left (x^{2} - 1\right )}}{{\left (x^{2} + 1\right )} x^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (-1+x^2\right ) \sqrt [4]{x^2+x^6}}{x^2 \left (1+x^2\right )} \, dx=\int { \frac {{\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} {\left (x^{2} - 1\right )}}{{\left (x^{2} + 1\right )} x^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (-1+x^2\right ) \sqrt [4]{x^2+x^6}}{x^2 \left (1+x^2\right )} \, dx=\int \frac {{\left (x^6+x^2\right )}^{1/4}\,\left (x^2-1\right )}{x^2\,\left (x^2+1\right )} \,d x \]
[In]
[Out]