Optimal. Leaf size=267 \[ -\frac {x \sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (-1+x^2\right ) \sqrt {x+\sqrt {1+x^2}}}-\frac {1}{8} \text {RootSum}\left [-2+4 \text {$\#$1}^4-4 \text {$\#$1}^6+\text {$\#$1}^8\& ,\frac {\log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right )+\log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right ) \text {$\#$1}^2}{2 \text {$\#$1}^3-3 \text {$\#$1}^5+\text {$\#$1}^7}\& \right ]-\frac {1}{8} \text {RootSum}\left [2-8 \text {$\#$1}^2+8 \text {$\#$1}^4-4 \text {$\#$1}^6+\text {$\#$1}^8\& ,\frac {\log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right )+\log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right ) \text {$\#$1}^2}{-2 \text {$\#$1}+4 \text {$\#$1}^3-3 \text {$\#$1}^5+\text {$\#$1}^7}\& \right ] \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 2.43, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps
used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {}
\begin {gather*} \int \frac {\left (1+x^2\right ) \sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (1-x^2\right )^2 \sqrt {x+\sqrt {1+x^2}}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\left (1+x^2\right ) \sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (1-x^2\right )^2 \sqrt {x+\sqrt {1+x^2}}} \, dx &=\int \left (\frac {2 \sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (1-x^2\right )^2 \sqrt {x+\sqrt {1+x^2}}}-\frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (1-x^2\right ) \sqrt {x+\sqrt {1+x^2}}}\right ) \, dx\\ &=2 \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (1-x^2\right )^2 \sqrt {x+\sqrt {1+x^2}}} \, dx-\int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (1-x^2\right ) \sqrt {x+\sqrt {1+x^2}}} \, dx\\ &=2 \int \left (\frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{4 (1-x)^2 \sqrt {x+\sqrt {1+x^2}}}+\frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{4 (1+x)^2 \sqrt {x+\sqrt {1+x^2}}}+\frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{2 \left (1-x^2\right ) \sqrt {x+\sqrt {1+x^2}}}\right ) \, dx-\int \left (\frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{2 (1-x) \sqrt {x+\sqrt {1+x^2}}}+\frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{2 (1+x) \sqrt {x+\sqrt {1+x^2}}}\right ) \, dx\\ &=\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1-x)^2 \sqrt {x+\sqrt {1+x^2}}} \, dx-\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1-x) \sqrt {x+\sqrt {1+x^2}}} \, dx+\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1+x)^2 \sqrt {x+\sqrt {1+x^2}}} \, dx-\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1+x) \sqrt {x+\sqrt {1+x^2}}} \, dx+\int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (1-x^2\right ) \sqrt {x+\sqrt {1+x^2}}} \, dx\\ &=\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1-x)^2 \sqrt {x+\sqrt {1+x^2}}} \, dx-\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1-x) \sqrt {x+\sqrt {1+x^2}}} \, dx+\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1+x)^2 \sqrt {x+\sqrt {1+x^2}}} \, dx-\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1+x) \sqrt {x+\sqrt {1+x^2}}} \, dx+\int \left (\frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{2 (1-x) \sqrt {x+\sqrt {1+x^2}}}+\frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{2 (1+x) \sqrt {x+\sqrt {1+x^2}}}\right ) \, dx\\ &=\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1-x)^2 \sqrt {x+\sqrt {1+x^2}}} \, dx+\frac {1}{2} \int \frac {\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{(1+x)^2 \sqrt {x+\sqrt {1+x^2}}} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 416, normalized size = 1.56 \begin {gather*} \frac {1}{8} \left (-\frac {8 x \sqrt {1+\sqrt {x+\sqrt {1+x^2}}}}{\left (-1+x^2\right ) \sqrt {x+\sqrt {1+x^2}}}+4 \text {RootSum}\left [-2+4 \text {$\#$1}^4-4 \text {$\#$1}^6+\text {$\#$1}^8\&,\frac {\log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right )}{2 \text {$\#$1}-3 \text {$\#$1}^3+\text {$\#$1}^5}\&\right ]-\text {RootSum}\left [-2+4 \text {$\#$1}^4-4 \text {$\#$1}^6+\text {$\#$1}^8\&,\frac {\log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right )+5 \log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right ) \text {$\#$1}^2}{2 \text {$\#$1}^3-3 \text {$\#$1}^5+\text {$\#$1}^7}\&\right ]+4 \text {RootSum}\left [2-8 \text {$\#$1}^2+8 \text {$\#$1}^4-4 \text {$\#$1}^6+\text {$\#$1}^8\&,\frac {\log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right ) \text {$\#$1}}{-2+4 \text {$\#$1}^2-3 \text {$\#$1}^4+\text {$\#$1}^6}\&\right ]-\text {RootSum}\left [2-8 \text {$\#$1}^2+8 \text {$\#$1}^4-4 \text {$\#$1}^6+\text {$\#$1}^8\&,\frac {\log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right )+5 \log \left (\sqrt {1+\sqrt {x+\sqrt {1+x^2}}}-\text {$\#$1}\right ) \text {$\#$1}^2}{-2 \text {$\#$1}+4 \text {$\#$1}^3-3 \text {$\#$1}^5+\text {$\#$1}^7}\&\right ]\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \frac {\left (x^{2}+1\right ) \sqrt {1+\sqrt {x +\sqrt {x^{2}+1}}}}{\left (-x^{2}+1\right )^{2} \sqrt {x +\sqrt {x^{2}+1}}}\, dx\]
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 [C] Result contains higher order function than in optimal. Order 3 vs. order
1.
time = 1.70, size = 6469, normalized size = 24.23 \begin {gather*} \text {Too large to display} \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 {\left (x^{2} + 1\right ) \sqrt {\sqrt {x + \sqrt {x^{2} + 1}} + 1}}{\left (x - 1\right )^{2} \left (x + 1\right )^{2} \sqrt {x + \sqrt {x^{2} + 1}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {\sqrt {x+\sqrt {x^2+1}}+1}\,\left (x^2+1\right )}{{\left (x^2-1\right )}^2\,\sqrt {x+\sqrt {x^2+1}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________