Integrand size = 44, antiderivative size = 321 \[ \int \frac {\left (1+x^2\right )^2 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4} \left (-1+x^2+x^4\right )} \, dx=\sqrt {2} \text {arctanh}\left (\frac {\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}}{1+x^2+\sqrt {1+x^4}}\right )-\frac {\text {RootSum}\left [1+2 \text {$\#$1}^2-6 \text {$\#$1}^4-2 \text {$\#$1}^6+\text {$\#$1}^8\&,\frac {\log \left (-1+x^2+\sqrt {1+x^4}\right )-\log \left (\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}-\text {$\#$1}+x^2 \text {$\#$1}+\sqrt {1+x^4} \text {$\#$1}\right )-2 \log \left (-1+x^2+\sqrt {1+x^4}\right ) \text {$\#$1}^4+2 \log \left (\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}-\text {$\#$1}+x^2 \text {$\#$1}+\sqrt {1+x^4} \text {$\#$1}\right ) \text {$\#$1}^4-\log \left (-1+x^2+\sqrt {1+x^4}\right ) \text {$\#$1}^6+\log \left (\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}-\text {$\#$1}+x^2 \text {$\#$1}+\sqrt {1+x^4} \text {$\#$1}\right ) \text {$\#$1}^6}{\text {$\#$1}-6 \text {$\#$1}^3-3 \text {$\#$1}^5+2 \text {$\#$1}^7}\&\right ]}{\sqrt {2}} \] Output:
Unintegrable
Time = 0.59 (sec) , antiderivative size = 324, normalized size of antiderivative = 1.01 \[ \int \frac {\left (1+x^2\right )^2 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4} \left (-1+x^2+x^4\right )} \, dx=\frac {2 \text {arctanh}\left (\frac {-1+x^2+\sqrt {1+x^4}}{\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}}\right )+\text {RootSum}\left [1-2 \text {$\#$1}^2-6 \text {$\#$1}^4+2 \text {$\#$1}^6+\text {$\#$1}^8\&,\frac {\log \left (1+x^2+\sqrt {1+x^4}\right )-\log \left (\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}-\text {$\#$1}-x^2 \text {$\#$1}-\sqrt {1+x^4} \text {$\#$1}\right )+2 \log \left (1+x^2+\sqrt {1+x^4}\right ) \text {$\#$1}^2-2 \log \left (\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}-\text {$\#$1}-x^2 \text {$\#$1}-\sqrt {1+x^4} \text {$\#$1}\right ) \text {$\#$1}^2-\log \left (1+x^2+\sqrt {1+x^4}\right ) \text {$\#$1}^6+\log \left (\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}-\text {$\#$1}-x^2 \text {$\#$1}-\sqrt {1+x^4} \text {$\#$1}\right ) \text {$\#$1}^6}{-\text {$\#$1}-6 \text {$\#$1}^3+3 \text {$\#$1}^5+2 \text {$\#$1}^7}\&\right ]}{\sqrt {2}} \] Input:
Integrate[((1 + x^2)^2*Sqrt[x^2 + Sqrt[1 + x^4]])/(Sqrt[1 + x^4]*(-1 + x^2 + x^4)),x]
Output:
(2*ArcTanh[(-1 + x^2 + Sqrt[1 + x^4])/(Sqrt[2]*x*Sqrt[x^2 + Sqrt[1 + x^4]] )] + RootSum[1 - 2*#1^2 - 6*#1^4 + 2*#1^6 + #1^8 & , (Log[1 + x^2 + Sqrt[1 + x^4]] - Log[Sqrt[2]*x*Sqrt[x^2 + Sqrt[1 + x^4]] - #1 - x^2*#1 - Sqrt[1 + x^4]*#1] + 2*Log[1 + x^2 + Sqrt[1 + x^4]]*#1^2 - 2*Log[Sqrt[2]*x*Sqrt[x^ 2 + Sqrt[1 + x^4]] - #1 - x^2*#1 - Sqrt[1 + x^4]*#1]*#1^2 - Log[1 + x^2 + Sqrt[1 + x^4]]*#1^6 + Log[Sqrt[2]*x*Sqrt[x^2 + Sqrt[1 + x^4]] - #1 - x^2*# 1 - Sqrt[1 + x^4]*#1]*#1^6)/(-#1 - 6*#1^3 + 3*#1^5 + 2*#1^7) & ])/Sqrt[2]
Result contains complex when optimal does not.
Time = 3.12 (sec) , antiderivative size = 710, normalized size of antiderivative = 2.21, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {7279, 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 {\left (x^2+1\right )^2 \sqrt {\sqrt {x^4+1}+x^2}}{\sqrt {x^4+1} \left (x^4+x^2-1\right )} \, dx\) |
\(\Big \downarrow \) 7279 |
\(\displaystyle \int \left (\frac {\sqrt {\sqrt {x^4+1}+x^2} \left (x^2+2\right )}{\sqrt {x^4+1} \left (x^4+x^2-1\right )}+\frac {\sqrt {\sqrt {x^4+1}+x^2}}{\sqrt {x^4+1}}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {i \left (3+\sqrt {5}\right ) \arctan \left (\frac {(1+i) \left (\sqrt {2}-i \sqrt {\sqrt {5}-1} x\right )}{\sqrt {2 \left (\sqrt {5}+(-1-2 i)\right )} \sqrt {1+i x^2}}\right )}{4 \sqrt {(-5-5 i) \left (\sqrt {5}+(-2+i)\right )}}+\frac {i \left (3+\sqrt {5}\right ) \arctan \left (\frac {(1+i) \left (\sqrt {2}+i \sqrt {\sqrt {5}-1} x\right )}{\sqrt {2 \left (\sqrt {5}+(-1-2 i)\right )} \sqrt {1+i x^2}}\right )}{4 \sqrt {(-5-5 i) \left (\sqrt {5}+(-2+i)\right )}}-\frac {\left (3-\sqrt {5}\right ) \arctan \left (\frac {(1+i) \left (\sqrt {2}-\sqrt {1+\sqrt {5}} x\right )}{\sqrt {-2 \sqrt {5}+(-2-4 i)} \sqrt {1+i x^2}}\right )}{4 \sqrt {(-5-5 i) \left (\sqrt {5}+(2-i)\right )}}+\frac {\left (3-\sqrt {5}\right ) \arctan \left (\frac {(1+i) \left (\sqrt {1+\sqrt {5}} x+\sqrt {2}\right )}{\sqrt {-2 \sqrt {5}+(-2-4 i)} \sqrt {1+i x^2}}\right )}{4 \sqrt {(-5-5 i) \left (\sqrt {5}+(2-i)\right )}}-\frac {\left (\frac {1}{4}-\frac {i}{4}\right ) \left (3+\sqrt {5}\right ) \text {arctanh}\left (\frac {\sqrt {2}-i \sqrt {\sqrt {5}-1} x}{\sqrt {(2+i)-i \sqrt {5}} \sqrt {1-i x^2}}\right )}{\sqrt {(10+10 i) \left (\sqrt {5}+(-2-i)\right )}}+\frac {\left (\frac {1}{4}-\frac {i}{4}\right ) \left (3+\sqrt {5}\right ) \text {arctanh}\left (\frac {\sqrt {2}+i \sqrt {\sqrt {5}-1} x}{\sqrt {(2+i)-i \sqrt {5}} \sqrt {1-i x^2}}\right )}{\sqrt {(10+10 i) \left (\sqrt {5}+(-2-i)\right )}}+\frac {\left (\frac {1}{4}+\frac {i}{4}\right ) \left (3-\sqrt {5}\right ) \text {arctanh}\left (\frac {\sqrt {2}-\sqrt {1+\sqrt {5}} x}{\sqrt {(2+i)+i \sqrt {5}} \sqrt {1-i x^2}}\right )}{\sqrt {(10+10 i) \left (\sqrt {5}+(2+i)\right )}}-\frac {\left (\frac {1}{4}+\frac {i}{4}\right ) \left (3-\sqrt {5}\right ) \text {arctanh}\left (\frac {\sqrt {1+\sqrt {5}} x+\sqrt {2}}{\sqrt {(2+i)+i \sqrt {5}} \sqrt {1-i x^2}}\right )}{\sqrt {(10+10 i) \left (\sqrt {5}+(2+i)\right )}}+\frac {\text {arctanh}\left (\frac {\sqrt {2} x}{\sqrt {\sqrt {x^4+1}+x^2}}\right )}{\sqrt {2}}\) |
Input:
Int[((1 + x^2)^2*Sqrt[x^2 + Sqrt[1 + x^4]])/(Sqrt[1 + x^4]*(-1 + x^2 + x^4 )),x]
Output:
((-1/4*I)*(3 + Sqrt[5])*ArcTan[((1 + I)*(Sqrt[2] - I*Sqrt[-1 + Sqrt[5]]*x) )/(Sqrt[2*((-1 - 2*I) + Sqrt[5])]*Sqrt[1 + I*x^2])])/Sqrt[(-5 - 5*I)*((-2 +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[5] )] + ArcTanh[(Sqrt[2]*x)/Sqrt[x^2 + Sqrt[1 + x^4]]]/Sqrt[2]
Int[(u_)/((a_.) + (b_.)*(x_)^(n_.) + (c_.)*(x_)^(n2_.)), x_Symbol] :> With[ {v = RationalFunctionExpand[u/(a + b*x^n + c*x^(2*n)), x]}, Int[v, x] /; Su mQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]
Not integrable
Time = 0.02 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.12
\[\int \frac {\left (x^{2}+1\right )^{2} \sqrt {x^{2}+\sqrt {x^{4}+1}}}{\sqrt {x^{4}+1}\, \left (x^{4}+x^{2}-1\right )}d x\]
Input:
int((x^2+1)^2*(x^2+(x^4+1)^(1/2))^(1/2)/(x^4+1)^(1/2)/(x^4+x^2-1),x)
Output:
int((x^2+1)^2*(x^2+(x^4+1)^(1/2))^(1/2)/(x^4+1)^(1/2)/(x^4+x^2-1),x)
Result contains higher order function than in optimal. Order 3 vs. order 1.
Time = 19.88 (sec) , antiderivative size = 9945, normalized size of antiderivative = 30.98 \[ \int \frac {\left (1+x^2\right )^2 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4} \left (-1+x^2+x^4\right )} \, dx=\text {Too large to display} \] Input:
integrate((x^2+1)^2*(x^2+(x^4+1)^(1/2))^(1/2)/(x^4+1)^(1/2)/(x^4+x^2-1),x, algorithm="fricas")
Output:
Too large to include
Not integrable
Time = 29.95 (sec) , antiderivative size = 39, normalized size of antiderivative = 0.12 \[ \int \frac {\left (1+x^2\right )^2 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4} \left (-1+x^2+x^4\right )} \, dx=\int \frac {\left (x^{2} + 1\right )^{2} \sqrt {x^{2} + \sqrt {x^{4} + 1}}}{\sqrt {x^{4} + 1} \left (x^{4} + x^{2} - 1\right )}\, dx \] Input:
integrate((x**2+1)**2*(x**2+(x**4+1)**(1/2))**(1/2)/(x**4+1)**(1/2)/(x**4+ x**2-1),x)
Output:
Integral((x**2 + 1)**2*sqrt(x**2 + sqrt(x**4 + 1))/(sqrt(x**4 + 1)*(x**4 + x**2 - 1)), x)
Not integrable
Time = 0.17 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.12 \[ \int \frac {\left (1+x^2\right )^2 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4} \left (-1+x^2+x^4\right )} \, dx=\int { \frac {\sqrt {x^{2} + \sqrt {x^{4} + 1}} {\left (x^{2} + 1\right )}^{2}}{{\left (x^{4} + x^{2} - 1\right )} \sqrt {x^{4} + 1}} \,d x } \] Input:
integrate((x^2+1)^2*(x^2+(x^4+1)^(1/2))^(1/2)/(x^4+1)^(1/2)/(x^4+x^2-1),x, algorithm="maxima")
Output:
integrate(sqrt(x^2 + sqrt(x^4 + 1))*(x^2 + 1)^2/((x^4 + x^2 - 1)*sqrt(x^4 + 1)), x)
Not integrable
Time = 0.81 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.12 \[ \int \frac {\left (1+x^2\right )^2 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4} \left (-1+x^2+x^4\right )} \, dx=\int { \frac {\sqrt {x^{2} + \sqrt {x^{4} + 1}} {\left (x^{2} + 1\right )}^{2}}{{\left (x^{4} + x^{2} - 1\right )} \sqrt {x^{4} + 1}} \,d x } \] Input:
integrate((x^2+1)^2*(x^2+(x^4+1)^(1/2))^(1/2)/(x^4+1)^(1/2)/(x^4+x^2-1),x, algorithm="giac")
Output:
integrate(sqrt(x^2 + sqrt(x^4 + 1))*(x^2 + 1)^2/((x^4 + x^2 - 1)*sqrt(x^4 + 1)), x)
Not integrable
Time = 9.62 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.12 \[ \int \frac {\left (1+x^2\right )^2 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4} \left (-1+x^2+x^4\right )} \, dx=\int \frac {{\left (x^2+1\right )}^2\,\sqrt {\sqrt {x^4+1}+x^2}}{\sqrt {x^4+1}\,\left (x^4+x^2-1\right )} \,d x \] Input:
int(((x^2 + 1)^2*((x^4 + 1)^(1/2) + x^2)^(1/2))/((x^4 + 1)^(1/2)*(x^2 + x^ 4 - 1)),x)
Output:
int(((x^2 + 1)^2*((x^4 + 1)^(1/2) + x^2)^(1/2))/((x^4 + 1)^(1/2)*(x^2 + x^ 4 - 1)), x)
Not integrable
Time = 200.04 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.12 \[ \int \frac {\left (1+x^2\right )^2 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4} \left (-1+x^2+x^4\right )} \, dx=\int \frac {\left (x^{2}+1\right )^{2} \sqrt {x^{2}+\sqrt {x^{4}+1}}}{\sqrt {x^{4}+1}\, \left (x^{4}+x^{2}-1\right )}d x \] Input:
int((x^2+1)^2*(x^2+(x^4+1)^(1/2))^(1/2)/(x^4+1)^(1/2)/(x^4+x^2-1),x)
Output:
int((x^2+1)^2*(x^2+(x^4+1)^(1/2))^(1/2)/(x^4+1)^(1/2)/(x^4+x^2-1),x)