Optimal. Leaf size=181 \[ \frac {32}{105} \sqrt {1+\sqrt {1+\sqrt {1+x}}}+\frac {32}{105} \sqrt {1+\sqrt {1+x}} \sqrt {1+\sqrt {1+\sqrt {1+x}}}+\sqrt {1+x} \left (-\frac {48}{35} \sqrt {1+\sqrt {1+\sqrt {1+x}}}+\frac {8}{7} \sqrt {1+\sqrt {1+x}} \sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )+2 \text {RootSum}\left [-2+4 \text {$\#$1}^4-4 \text {$\#$1}^6+\text {$\#$1}^8\& ,\frac {\log \left (\sqrt {1+\sqrt {1+\sqrt {1+x}}}-\text {$\#$1}\right )}{\text {$\#$1}}\& \right ] \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 1.07, 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 {1+x}{(-1+x) \sqrt {1+\sqrt {1+\sqrt {1+x}}}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {1+x}{(-1+x) \sqrt {1+\sqrt {1+\sqrt {1+x}}}} \, dx &=2 \text {Subst}\left (\int \frac {x^3}{\left (-2+x^2\right ) \sqrt {1+\sqrt {1+x}}} \, dx,x,\sqrt {1+x}\right )\\ &=4 \text {Subst}\left (\int \frac {x \left (-1+x^2\right )^3}{\sqrt {1+x} \left (-2+\left (-1+x^2\right )^2\right )} \, dx,x,\sqrt {1+\sqrt {1+x}}\right )\\ &=4 \text {Subst}\left (\int \frac {(-1+x)^3 x (1+x)^{5/2}}{-2+\left (-1+x^2\right )^2} \, dx,x,\sqrt {1+\sqrt {1+x}}\right )\\ &=8 \text {Subst}\left (\int \frac {x^6 \left (-2+x^2\right )^3 \left (-1+x^2\right )}{-2+x^4 \left (-2+x^2\right )^2} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ &=8 \text {Subst}\left (\int \left (2 x^2-3 x^4+x^6+\frac {2 x^2 \left (2-3 x^2+x^4\right )}{-2+x^4 \left (-2+x^2\right )^2}\right ) \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ &=\frac {16}{3} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{3/2}-\frac {24}{5} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{5/2}+\frac {8}{7} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{7/2}+16 \text {Subst}\left (\int \frac {x^2 \left (2-3 x^2+x^4\right )}{-2+x^4 \left (-2+x^2\right )^2} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ &=\frac {16}{3} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{3/2}-\frac {24}{5} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{5/2}+\frac {8}{7} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{7/2}+16 \text {Subst}\left (\int \left (\frac {2 x^2}{-2+4 x^4-4 x^6+x^8}-\frac {3 x^4}{-2+4 x^4-4 x^6+x^8}+\frac {x^6}{-2+4 x^4-4 x^6+x^8}\right ) \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ &=\frac {16}{3} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{3/2}-\frac {24}{5} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{5/2}+\frac {8}{7} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{7/2}+16 \text {Subst}\left (\int \frac {x^6}{-2+4 x^4-4 x^6+x^8} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )+32 \text {Subst}\left (\int \frac {x^2}{-2+4 x^4-4 x^6+x^8} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )-48 \text {Subst}\left (\int \frac {x^4}{-2+4 x^4-4 x^6+x^8} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 125, normalized size = 0.69 \begin {gather*} \frac {8}{105} \sqrt {1+\sqrt {1+\sqrt {1+x}}} \left (4-18 \sqrt {1+x}+4 \sqrt {1+\sqrt {1+x}}+15 \sqrt {1+x} \sqrt {1+\sqrt {1+x}}\right )+2 \text {RootSum}\left [-2+4 \text {$\#$1}^4-4 \text {$\#$1}^6+\text {$\#$1}^8\&,\frac {\log \left (\sqrt {1+\sqrt {1+\sqrt {1+x}}}-\text {$\#$1}\right )}{\text {$\#$1}}\&\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
1.
time = 0.13, size = 117, normalized size = 0.65
method | result | size |
derivativedivides | \(\frac {8 \left (1+\sqrt {1+\sqrt {1+x}}\right )^{\frac {7}{2}}}{7}-\frac {24 \left (1+\sqrt {1+\sqrt {1+x}}\right )^{\frac {5}{2}}}{5}+\frac {16 \left (1+\sqrt {1+\sqrt {1+x}}\right )^{\frac {3}{2}}}{3}+2 \left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{8}-4 \textit {\_Z}^{6}+4 \textit {\_Z}^{4}-2\right )}{\sum }\frac {\left (\textit {\_R}^{6}-3 \textit {\_R}^{4}+2 \textit {\_R}^{2}\right ) \ln \left (\sqrt {1+\sqrt {1+\sqrt {1+x}}}-\textit {\_R} \right )}{\textit {\_R}^{7}-3 \textit {\_R}^{5}+2 \textit {\_R}^{3}}\right )\) | \(117\) |
default | \(\frac {8 \left (1+\sqrt {1+\sqrt {1+x}}\right )^{\frac {7}{2}}}{7}-\frac {24 \left (1+\sqrt {1+\sqrt {1+x}}\right )^{\frac {5}{2}}}{5}+\frac {16 \left (1+\sqrt {1+\sqrt {1+x}}\right )^{\frac {3}{2}}}{3}+2 \left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{8}-4 \textit {\_Z}^{6}+4 \textit {\_Z}^{4}-2\right )}{\sum }\frac {\left (\textit {\_R}^{6}-3 \textit {\_R}^{4}+2 \textit {\_R}^{2}\right ) \ln \left (\sqrt {1+\sqrt {1+\sqrt {1+x}}}-\textit {\_R} \right )}{\textit {\_R}^{7}-3 \textit {\_R}^{5}+2 \textit {\_R}^{3}}\right )\) | \(117\) |
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.29, size = 2096, normalized size = 11.58 \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 {x + 1}{\left (x - 1\right ) \sqrt {\sqrt {\sqrt {x + 1} + 1} + 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x+1}{\sqrt {\sqrt {\sqrt {x+1}+1}+1}\,\left (x-1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________