Integrand size = 22, antiderivative size = 119 \[ \int \frac {1+x^{16}}{\sqrt {1+x^4} \left (-1+x^{16}\right )} \, dx=-\frac {x}{4 \sqrt {1+x^4}}-\frac {\arctan \left (\frac {\sqrt [4]{2} x}{\sqrt {1+x^4}}\right )}{4 \sqrt [4]{2}}-\frac {\arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )}{8 \sqrt {2}}-\frac {\text {arctanh}\left (\frac {\sqrt [4]{2} x}{\sqrt {1+x^4}}\right )}{4 \sqrt [4]{2}}-\frac {\text {arctanh}\left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )}{8 \sqrt {2}} \] Output:
-1/4*x/(x^4+1)^(1/2)-1/8*arctan(2^(1/4)*x/(x^4+1)^(1/2))*2^(3/4)-1/16*arct an(2^(1/2)*x/(x^4+1)^(1/2))*2^(1/2)-1/8*arctanh(2^(1/4)*x/(x^4+1)^(1/2))*2 ^(3/4)-1/16*arctanh(2^(1/2)*x/(x^4+1)^(1/2))*2^(1/2)
Time = 0.54 (sec) , antiderivative size = 113, normalized size of antiderivative = 0.95 \[ \int \frac {1+x^{16}}{\sqrt {1+x^4} \left (-1+x^{16}\right )} \, dx=\frac {1}{16} \left (-\frac {4 x}{\sqrt {1+x^4}}-2\ 2^{3/4} \arctan \left (\frac {\sqrt [4]{2} x}{\sqrt {1+x^4}}\right )-\sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )-2\ 2^{3/4} \text {arctanh}\left (\frac {\sqrt [4]{2} x}{\sqrt {1+x^4}}\right )-\sqrt {2} \text {arctanh}\left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )\right ) \] Input:
Integrate[(1 + x^16)/(Sqrt[1 + x^4]*(-1 + x^16)),x]
Output:
((-4*x)/Sqrt[1 + x^4] - 2*2^(3/4)*ArcTan[(2^(1/4)*x)/Sqrt[1 + x^4]] - Sqrt [2]*ArcTan[(Sqrt[2]*x)/Sqrt[1 + x^4]] - 2*2^(3/4)*ArcTanh[(2^(1/4)*x)/Sqrt [1 + x^4]] - Sqrt[2]*ArcTanh[(Sqrt[2]*x)/Sqrt[1 + x^4]])/16
Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
Time = 1.13 (sec) , antiderivative size = 380, normalized size of antiderivative = 3.19, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {7276, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^{16}+1}{\sqrt {x^4+1} \left (x^{16}-1\right )} \, dx\) |
\(\Big \downarrow \) 7276 |
\(\displaystyle \int \left (\frac {1}{\sqrt {x^4+1}}+\frac {2}{\left (x^{16}-1\right ) \sqrt {x^4+1}}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {\arctan \left (\frac {\sqrt [4]{2} x}{\sqrt {x^4+1}}\right )}{4 \sqrt [4]{2}}-\frac {\arctan \left (\frac {\sqrt {2} x}{\sqrt {x^4+1}}\right )}{8 \sqrt {2}}+\frac {i \left (\sqrt {2}+(1+i)\right ) \left (x^2+1\right ) \sqrt {\frac {x^4+1}{\left (x^2+1\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{16 \sqrt {x^4+1}}+\frac {i \left (\sqrt {2}+(-1+i)\right ) \left (x^2+1\right ) \sqrt {\frac {x^4+1}{\left (x^2+1\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{16 \sqrt {x^4+1}}-\frac {i \left (\sqrt {2}+(-1-i)\right ) \left (x^2+1\right ) \sqrt {\frac {x^4+1}{\left (x^2+1\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{16 \sqrt {x^4+1}}+\frac {\left ((-1-i)-i \sqrt {2}\right ) \left (x^2+1\right ) \sqrt {\frac {x^4+1}{\left (x^2+1\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{16 \sqrt {x^4+1}}+\frac {\left (x^2+1\right ) \sqrt {\frac {x^4+1}{\left (x^2+1\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{4 \sqrt {x^4+1}}-\frac {\text {arctanh}\left (\frac {\sqrt [4]{2} x}{\sqrt {x^4+1}}\right )}{4 \sqrt [4]{2}}-\frac {\text {arctanh}\left (\frac {\sqrt {2} x}{\sqrt {x^4+1}}\right )}{8 \sqrt {2}}-\frac {x}{4 \sqrt {x^4+1}}\) |
Input:
Int[(1 + x^16)/(Sqrt[1 + x^4]*(-1 + x^16)),x]
Output:
-1/4*x/Sqrt[1 + x^4] - ArcTan[(2^(1/4)*x)/Sqrt[1 + x^4]]/(4*2^(1/4)) - Arc Tan[(Sqrt[2]*x)/Sqrt[1 + x^4]]/(8*Sqrt[2]) - ArcTanh[(2^(1/4)*x)/Sqrt[1 + x^4]]/(4*2^(1/4)) - ArcTanh[(Sqrt[2]*x)/Sqrt[1 + x^4]]/(8*Sqrt[2]) + ((1 + x^2)*Sqrt[(1 + x^4)/(1 + x^2)^2]*EllipticF[2*ArcTan[x], 1/2])/(4*Sqrt[1 + x^4]) + (((-1 - I) - I*Sqrt[2])*(1 + x^2)*Sqrt[(1 + x^4)/(1 + x^2)^2]*Ell ipticF[2*ArcTan[x], 1/2])/(16*Sqrt[1 + x^4]) - ((I/16)*((-1 - I) + Sqrt[2] )*(1 + x^2)*Sqrt[(1 + x^4)/(1 + x^2)^2]*EllipticF[2*ArcTan[x], 1/2])/Sqrt[ 1 + x^4] + ((I/16)*((-1 + I) + Sqrt[2])*(1 + x^2)*Sqrt[(1 + x^4)/(1 + x^2) ^2]*EllipticF[2*ArcTan[x], 1/2])/Sqrt[1 + x^4] + ((I/16)*((1 + I) + Sqrt[2 ])*(1 + x^2)*Sqrt[(1 + x^4)/(1 + x^2)^2]*EllipticF[2*ArcTan[x], 1/2])/Sqrt [1 + x^4]
Int[(u_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> With[{v = RationalFunctionE xpand[u/(a + b*x^n), x]}, Int[v, x] /; SumQ[v]] /; FreeQ[{a, b}, x] && IGtQ [n, 0]
Time = 8.13 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.17
method | result | size |
risch | \(-\frac {x}{4 \sqrt {x^{4}+1}}-\frac {\arctan \left (\frac {\sqrt {2}\, x}{\sqrt {x^{4}+1}}\right ) \sqrt {2}}{16}-\frac {\sqrt {2}\, \operatorname {arctanh}\left (\frac {\left (x^{2}-x +1\right ) \sqrt {2}}{\sqrt {x^{4}+1}}\right )}{32}+\frac {\sqrt {2}\, \operatorname {arctanh}\left (\frac {\left (x^{2}+x +1\right ) \sqrt {2}}{\sqrt {x^{4}+1}}\right )}{32}+\frac {\arctan \left (\frac {2^{\frac {3}{4}} \sqrt {x^{4}+1}}{2 x}\right ) 2^{\frac {3}{4}}}{8}-\frac {\ln \left (\frac {-2^{\frac {1}{4}} x -\sqrt {x^{4}+1}}{2^{\frac {1}{4}} x -\sqrt {x^{4}+1}}\right ) 2^{\frac {3}{4}}}{16}\) | \(139\) |
elliptic | \(\frac {\left (-\frac {\sqrt {2}\, x}{4 \sqrt {x^{4}+1}}+\frac {\arctan \left (\frac {\sqrt {2}\, \sqrt {x^{4}+1}}{2 x}\right )}{8}+\frac {2^{\frac {1}{4}} \left (2 \arctan \left (\frac {2^{\frac {3}{4}} \sqrt {x^{4}+1}}{2 x}\right )-\ln \left (\frac {\frac {\sqrt {2}\, \sqrt {x^{4}+1}}{2 x}+\frac {2^{\frac {3}{4}}}{2}}{\frac {\sqrt {2}\, \sqrt {x^{4}+1}}{2 x}-\frac {2^{\frac {3}{4}}}{2}}\right )\right )}{8}-\frac {\ln \left (1+\frac {\sqrt {2}\, \sqrt {x^{4}+1}}{2 x}\right )}{16}+\frac {\ln \left (-1+\frac {\sqrt {2}\, \sqrt {x^{4}+1}}{2 x}\right )}{16}\right ) \sqrt {2}}{2}\) | \(150\) |
default | \(\frac {-8 x \sqrt {x^{4}+1}+\left (x^{4}+1\right ) \left (\left (-\operatorname {arctanh}\left (\frac {\left (x^{2}-x +1\right ) \sqrt {2}}{\sqrt {x^{4}+1}}\right )+\operatorname {arctanh}\left (\frac {\left (x^{2}+x +1\right ) \sqrt {2}}{\sqrt {x^{4}+1}}\right )-2 \arctan \left (\frac {\sqrt {2}\, x}{\sqrt {x^{4}+1}}\right )\right ) \sqrt {2}+2 \,2^{\frac {3}{4}} \left (\operatorname {arctanh}\left (\frac {\left (\sqrt {2+\sqrt {2}}\, x^{2}+\sqrt {2+\sqrt {2}}+2 x \right ) 2^{\frac {3}{4}}}{2 \sqrt {x^{4}+1}}\right )+\arctan \left (\frac {\left (\sqrt {2-\sqrt {2}}\, x^{2}+\sqrt {2-\sqrt {2}}-2 x \right ) 2^{\frac {3}{4}}}{2 \sqrt {x^{4}+1}}\right )-\arctan \left (\frac {\left (\sqrt {2-\sqrt {2}}\, x^{2}+\sqrt {2-\sqrt {2}}+2 x \right ) 2^{\frac {3}{4}}}{2 \sqrt {x^{4}+1}}\right )-\operatorname {arctanh}\left (\frac {\left (\sqrt {2+\sqrt {2}}\, x^{2}+\sqrt {2+\sqrt {2}}-2 x \right ) 2^{\frac {3}{4}}}{2 \sqrt {x^{4}+1}}\right )\right )\right )}{32 \left (-x \sqrt {2}+x^{2}+1\right ) \left (x \sqrt {2}+x^{2}+1\right )}\) | \(264\) |
pseudoelliptic | \(\frac {-8 x \sqrt {x^{4}+1}+\left (x^{4}+1\right ) \left (\left (-\operatorname {arctanh}\left (\frac {\left (x^{2}-x +1\right ) \sqrt {2}}{\sqrt {x^{4}+1}}\right )+\operatorname {arctanh}\left (\frac {\left (x^{2}+x +1\right ) \sqrt {2}}{\sqrt {x^{4}+1}}\right )-2 \arctan \left (\frac {\sqrt {2}\, x}{\sqrt {x^{4}+1}}\right )\right ) \sqrt {2}+2 \,2^{\frac {3}{4}} \left (\operatorname {arctanh}\left (\frac {\left (\sqrt {2+\sqrt {2}}\, x^{2}+\sqrt {2+\sqrt {2}}+2 x \right ) 2^{\frac {3}{4}}}{2 \sqrt {x^{4}+1}}\right )+\arctan \left (\frac {\left (\sqrt {2-\sqrt {2}}\, x^{2}+\sqrt {2-\sqrt {2}}-2 x \right ) 2^{\frac {3}{4}}}{2 \sqrt {x^{4}+1}}\right )-\arctan \left (\frac {\left (\sqrt {2-\sqrt {2}}\, x^{2}+\sqrt {2-\sqrt {2}}+2 x \right ) 2^{\frac {3}{4}}}{2 \sqrt {x^{4}+1}}\right )-\operatorname {arctanh}\left (\frac {\left (\sqrt {2+\sqrt {2}}\, x^{2}+\sqrt {2+\sqrt {2}}-2 x \right ) 2^{\frac {3}{4}}}{2 \sqrt {x^{4}+1}}\right )\right )\right )}{32 \left (-x \sqrt {2}+x^{2}+1\right ) \left (x \sqrt {2}+x^{2}+1\right )}\) | \(264\) |
trager | \(-\frac {x}{4 \sqrt {x^{4}+1}}+\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) \ln \left (\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) x +\sqrt {x^{4}+1}}{x^{2}+1}\right )}{16}-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) \ln \left (-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) x +\sqrt {x^{4}+1}}{\left (-1+x \right ) \left (1+x \right )}\right )}{16}-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )\right ) \ln \left (\frac {-x^{4} \operatorname {RootOf}\left (\textit {\_Z}^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )\right )+x^{2} \operatorname {RootOf}\left (\textit {\_Z}^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )-4 x \sqrt {x^{4}+1}-\operatorname {RootOf}\left (\textit {\_Z}^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )\right )}{x^{4}+\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) x^{2}+1}\right )}{16}-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )\right ) \ln \left (-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )\right ) x^{4}+\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )^{2} \operatorname {RootOf}\left (\textit {\_Z}^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )\right ) x^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) \operatorname {RootOf}\left (\textit {\_Z}^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )\right )+8 x \sqrt {x^{4}+1}}{-x^{4}+\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) x^{2}-1}\right )}{32}\) | \(329\) |
Input:
int((x^16+1)/(x^4+1)^(1/2)/(x^16-1),x,method=_RETURNVERBOSE)
Output:
-1/4*x/(x^4+1)^(1/2)-1/16*arctan(2^(1/2)*x/(x^4+1)^(1/2))*2^(1/2)-1/32*2^( 1/2)*arctanh((x^2-x+1)*2^(1/2)/(x^4+1)^(1/2))+1/32*2^(1/2)*arctanh((x^2+x+ 1)*2^(1/2)/(x^4+1)^(1/2))+1/8*arctan(1/2*2^(3/4)/x*(x^4+1)^(1/2))*2^(3/4)- 1/16*ln((-2^(1/4)*x-(x^4+1)^(1/2))/(2^(1/4)*x-(x^4+1)^(1/2)))*2^(3/4)
Leaf count of result is larger than twice the leaf count of optimal. 268 vs. \(2 (83) = 166\).
Time = 0.18 (sec) , antiderivative size = 268, normalized size of antiderivative = 2.25 \[ \int \frac {1+x^{16}}{\sqrt {1+x^4} \left (-1+x^{16}\right )} \, dx=-\frac {2 \cdot 2^{\frac {3}{4}} {\left (x^{4} + 1\right )} \arctan \left (\frac {2 \, \sqrt {x^{4} + 1} {\left (2^{\frac {3}{4}} x^{3} + 2^{\frac {1}{4}} {\left (x^{5} + x\right )}\right )}}{x^{8} + 1}\right ) + 2^{\frac {3}{4}} {\left (x^{4} + 1\right )} \log \left (-\frac {2^{\frac {3}{4}} {\left (x^{8} + 4 \, x^{4} + 1\right )} + 4 \, {\left (x^{5} + \sqrt {2} x^{3} + x\right )} \sqrt {x^{4} + 1} + 4 \cdot 2^{\frac {1}{4}} {\left (x^{6} + x^{2}\right )}}{x^{8} + 1}\right ) - 2^{\frac {3}{4}} {\left (x^{4} + 1\right )} \log \left (\frac {2^{\frac {3}{4}} {\left (x^{8} + 4 \, x^{4} + 1\right )} - 4 \, {\left (x^{5} + \sqrt {2} x^{3} + x\right )} \sqrt {x^{4} + 1} + 4 \cdot 2^{\frac {1}{4}} {\left (x^{6} + x^{2}\right )}}{x^{8} + 1}\right ) + 2 \, \sqrt {2} {\left (x^{4} + 1\right )} \arctan \left (\frac {\sqrt {2} x}{\sqrt {x^{4} + 1}}\right ) - \sqrt {2} {\left (x^{4} + 1\right )} \log \left (\frac {x^{4} - 2 \, \sqrt {2} \sqrt {x^{4} + 1} x + 2 \, x^{2} + 1}{x^{4} - 2 \, x^{2} + 1}\right ) + 8 \, \sqrt {x^{4} + 1} x}{32 \, {\left (x^{4} + 1\right )}} \] Input:
integrate((x^16+1)/(x^4+1)^(1/2)/(x^16-1),x, algorithm="fricas")
Output:
-1/32*(2*2^(3/4)*(x^4 + 1)*arctan(2*sqrt(x^4 + 1)*(2^(3/4)*x^3 + 2^(1/4)*( x^5 + x))/(x^8 + 1)) + 2^(3/4)*(x^4 + 1)*log(-(2^(3/4)*(x^8 + 4*x^4 + 1) + 4*(x^5 + sqrt(2)*x^3 + x)*sqrt(x^4 + 1) + 4*2^(1/4)*(x^6 + x^2))/(x^8 + 1 )) - 2^(3/4)*(x^4 + 1)*log((2^(3/4)*(x^8 + 4*x^4 + 1) - 4*(x^5 + sqrt(2)*x ^3 + x)*sqrt(x^4 + 1) + 4*2^(1/4)*(x^6 + x^2))/(x^8 + 1)) + 2*sqrt(2)*(x^4 + 1)*arctan(sqrt(2)*x/sqrt(x^4 + 1)) - sqrt(2)*(x^4 + 1)*log((x^4 - 2*sqr t(2)*sqrt(x^4 + 1)*x + 2*x^2 + 1)/(x^4 - 2*x^2 + 1)) + 8*sqrt(x^4 + 1)*x)/ (x^4 + 1)
Timed out. \[ \int \frac {1+x^{16}}{\sqrt {1+x^4} \left (-1+x^{16}\right )} \, dx=\text {Timed out} \] Input:
integrate((x**16+1)/(x**4+1)**(1/2)/(x**16-1),x)
Output:
Timed out
\[ \int \frac {1+x^{16}}{\sqrt {1+x^4} \left (-1+x^{16}\right )} \, dx=\int { \frac {x^{16} + 1}{{\left (x^{16} - 1\right )} \sqrt {x^{4} + 1}} \,d x } \] Input:
integrate((x^16+1)/(x^4+1)^(1/2)/(x^16-1),x, algorithm="maxima")
Output:
integrate((x^16 + 1)/((x^16 - 1)*sqrt(x^4 + 1)), x)
\[ \int \frac {1+x^{16}}{\sqrt {1+x^4} \left (-1+x^{16}\right )} \, dx=\int { \frac {x^{16} + 1}{{\left (x^{16} - 1\right )} \sqrt {x^{4} + 1}} \,d x } \] Input:
integrate((x^16+1)/(x^4+1)^(1/2)/(x^16-1),x, algorithm="giac")
Output:
integrate((x^16 + 1)/((x^16 - 1)*sqrt(x^4 + 1)), x)
Timed out. \[ \int \frac {1+x^{16}}{\sqrt {1+x^4} \left (-1+x^{16}\right )} \, dx=\int \frac {x^{16}+1}{\sqrt {x^4+1}\,\left (x^{16}-1\right )} \,d x \] Input:
int((x^16 + 1)/((x^4 + 1)^(1/2)*(x^16 - 1)),x)
Output:
int((x^16 + 1)/((x^4 + 1)^(1/2)*(x^16 - 1)), x)
\[ \int \frac {1+x^{16}}{\sqrt {1+x^4} \left (-1+x^{16}\right )} \, dx=\int \frac {\sqrt {x^{4}+1}}{x^{20}+x^{16}-x^{4}-1}d x +\int \frac {\sqrt {x^{4}+1}\, x^{16}}{x^{20}+x^{16}-x^{4}-1}d x \] Input:
int((x^16+1)/(x^4+1)^(1/2)/(x^16-1),x)
Output:
int(sqrt(x**4 + 1)/(x**20 + x**16 - x**4 - 1),x) + int((sqrt(x**4 + 1)*x** 16)/(x**20 + x**16 - x**4 - 1),x)