Optimal. Leaf size=184 \[ \frac {8}{5} \sqrt {x+1} \sqrt {\sqrt {\sqrt {x+1}+1}+1}-\frac {32}{15} \sqrt {\sqrt {x+1}+1} \sqrt {\sqrt {\sqrt {x+1}+1}+1}+\frac {88}{15} \sqrt {\sqrt {\sqrt {x+1}+1}+1}-2 \sqrt {2 \left (1+\sqrt {2}\right )} \tan ^{-1}\left (\frac {\sqrt {\sqrt {\sqrt {x+1}+1}+1}}{\sqrt {\sqrt {2}-1}}\right )-2 \sqrt {2 \left (\sqrt {2}-1\right )} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {\sqrt {x+1}+1}+1}}{\sqrt {1+\sqrt {2}}}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 1.75, antiderivative size = 162, normalized size of antiderivative = 0.88, number of steps used = 10, number of rules used = 6, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.140, Rules used = {1586, 898, 1287, 1093, 207, 203} \begin {gather*} \frac {8}{5} \left (\sqrt {\sqrt {x+1}+1}+1\right )^{5/2}-\frac {16}{3} \left (\sqrt {\sqrt {x+1}+1}+1\right )^{3/2}+8 \sqrt {\sqrt {\sqrt {x+1}+1}+1}-2 \sqrt {2 \left (1+\sqrt {2}\right )} \tan ^{-1}\left (\frac {\sqrt {\sqrt {\sqrt {x+1}+1}+1}}{\sqrt {\sqrt {2}-1}}\right )-2 \sqrt {2 \left (\sqrt {2}-1\right )} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {\sqrt {x+1}+1}+1}}{\sqrt {1+\sqrt {2}}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 207
Rule 898
Rule 1093
Rule 1287
Rule 1586
Rubi steps
\begin {align*} \int \frac {\sqrt {1+x} \sqrt {1+\sqrt {1+x}}}{x \sqrt {1+\sqrt {1+\sqrt {1+x}}}} \, dx &=2 \operatorname {Subst}\left (\int \frac {x^2 \sqrt {1+x}}{\left (-1+x^2\right ) \sqrt {1+\sqrt {1+x}}} \, dx,x,\sqrt {1+x}\right )\\ &=2 \operatorname {Subst}\left (\int \frac {x^2}{(-1+x) \sqrt {1+x} \sqrt {1+\sqrt {1+x}}} \, dx,x,\sqrt {1+x}\right )\\ &=4 \operatorname {Subst}\left (\int \frac {\left (-1+x^2\right )^2}{\sqrt {1+x} \left (-2+x^2\right )} \, dx,x,\sqrt {1+\sqrt {1+x}}\right )\\ &=4 \operatorname {Subst}\left (\int \frac {(-1+x)^2 (1+x)^{3/2}}{-2+x^2} \, dx,x,\sqrt {1+\sqrt {1+x}}\right )\\ &=8 \operatorname {Subst}\left (\int \frac {x^4 \left (-2+x^2\right )^2}{-1-2 x^2+x^4} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ &=8 \operatorname {Subst}\left (\int \left (1-2 x^2+x^4+\frac {1}{-1-2 x^2+x^4}\right ) \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ &=8 \sqrt {1+\sqrt {1+\sqrt {1+x}}}-\frac {16}{3} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{3/2}+\frac {8}{5} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{5/2}+8 \operatorname {Subst}\left (\int \frac {1}{-1-2 x^2+x^4} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ &=8 \sqrt {1+\sqrt {1+\sqrt {1+x}}}-\frac {16}{3} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{3/2}+\frac {8}{5} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{5/2}+\left (2 \sqrt {2}\right ) \operatorname {Subst}\left (\int \frac {1}{-1-\sqrt {2}+x^2} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )-\left (2 \sqrt {2}\right ) \operatorname {Subst}\left (\int \frac {1}{-1+\sqrt {2}+x^2} \, dx,x,\sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )\\ &=8 \sqrt {1+\sqrt {1+\sqrt {1+x}}}-\frac {16}{3} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{3/2}+\frac {8}{5} \left (1+\sqrt {1+\sqrt {1+x}}\right )^{5/2}-2 \sqrt {2 \left (1+\sqrt {2}\right )} \tan ^{-1}\left (\frac {\sqrt {1+\sqrt {1+\sqrt {1+x}}}}{\sqrt {-1+\sqrt {2}}}\right )-2 \sqrt {2 \left (-1+\sqrt {2}\right )} \tanh ^{-1}\left (\frac {\sqrt {1+\sqrt {1+\sqrt {1+x}}}}{\sqrt {1+\sqrt {2}}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.53, size = 146, normalized size = 0.79 \begin {gather*} 2 \left (\frac {4}{15} \sqrt {\sqrt {\sqrt {x+1}+1}+1} \left (3 \sqrt {x+1}-4 \sqrt {\sqrt {x+1}+1}+11\right )-\sqrt {2 \left (1+\sqrt {2}\right )} \tan ^{-1}\left (\sqrt {1+\sqrt {2}} \sqrt {\sqrt {\sqrt {x+1}+1}+1}\right )-\sqrt {2 \left (\sqrt {2}-1\right )} \tanh ^{-1}\left (\sqrt {\sqrt {2}-1} \sqrt {\sqrt {\sqrt {x+1}+1}+1}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.28, size = 165, normalized size = 0.90 \begin {gather*} -\frac {32}{15} \sqrt {1+\sqrt {1+x}} \sqrt {1+\sqrt {1+\sqrt {1+x}}}+\frac {8}{15} \left (11+3 \sqrt {1+x}\right ) \sqrt {1+\sqrt {1+\sqrt {1+x}}}-2 \sqrt {2 \left (1+\sqrt {2}\right )} \tan ^{-1}\left (\sqrt {1+\sqrt {2}} \sqrt {1+\sqrt {1+\sqrt {1+x}}}\right )-2 \sqrt {2 \left (-1+\sqrt {2}\right )} \tanh ^{-1}\left (\sqrt {-1+\sqrt {2}} \sqrt {1+\sqrt {1+\sqrt {1+x}}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.61, size = 186, normalized size = 1.01 \begin {gather*} 4 \, \sqrt {2} \sqrt {\sqrt {2} + 1} \arctan \left (\sqrt {\sqrt {2} + \sqrt {\sqrt {x + 1} + 1}} \sqrt {\sqrt {2} + 1} - \sqrt {\sqrt {2} + 1} \sqrt {\sqrt {\sqrt {x + 1} + 1} + 1}\right ) - \sqrt {2} \sqrt {\sqrt {2} - 1} \log \left (2 \, \sqrt {2} {\left (\sqrt {2} + 2\right )} \sqrt {\sqrt {2} - 1} + 4 \, \sqrt {\sqrt {\sqrt {x + 1} + 1} + 1}\right ) + \sqrt {2} \sqrt {\sqrt {2} - 1} \log \left (-2 \, \sqrt {2} {\left (\sqrt {2} + 2\right )} \sqrt {\sqrt {2} - 1} + 4 \, \sqrt {\sqrt {\sqrt {x + 1} + 1} + 1}\right ) + \frac {8}{15} \, {\left (3 \, \sqrt {x + 1} - 4 \, \sqrt {\sqrt {x + 1} + 1} + 11\right )} \sqrt {\sqrt {\sqrt {x + 1} + 1} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.20, size = 115, normalized size = 0.62
method | result | size |
derivativedivides | \(\frac {8 \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}+8 \sqrt {1+\sqrt {1+\sqrt {1+x}}}-\frac {2 \sqrt {2}\, \arctanh \left (\frac {\sqrt {1+\sqrt {1+\sqrt {1+x}}}}{\sqrt {1+\sqrt {2}}}\right )}{\sqrt {1+\sqrt {2}}}-\frac {2 \sqrt {2}\, \arctan \left (\frac {\sqrt {1+\sqrt {1+\sqrt {1+x}}}}{\sqrt {\sqrt {2}-1}}\right )}{\sqrt {\sqrt {2}-1}}\) | \(115\) |
default | \(\frac {8 \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}+8 \sqrt {1+\sqrt {1+\sqrt {1+x}}}-\frac {2 \sqrt {2}\, \arctanh \left (\frac {\sqrt {1+\sqrt {1+\sqrt {1+x}}}}{\sqrt {1+\sqrt {2}}}\right )}{\sqrt {1+\sqrt {2}}}-\frac {2 \sqrt {2}\, \arctan \left (\frac {\sqrt {1+\sqrt {1+\sqrt {1+x}}}}{\sqrt {\sqrt {2}-1}}\right )}{\sqrt {\sqrt {2}-1}}\) | \(115\) |
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*} \int \frac {\sqrt {x + 1} \sqrt {\sqrt {x + 1} + 1}}{x \sqrt {\sqrt {\sqrt {x + 1} + 1} + 1}}\,{d x} \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 {\sqrt {\sqrt {x+1}+1}\,\sqrt {x+1}}{x\,\sqrt {\sqrt {\sqrt {x+1}+1}+1}} \,d x \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 {\sqrt {x + 1} \sqrt {\sqrt {x + 1} + 1}}{x \sqrt {\sqrt {\sqrt {x + 1} + 1} + 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________