Optimal. Leaf size=128 \[ \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 ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 70, normalized size of antiderivative = 0.55, number of steps
used = 5, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {378, 1412, 786}
\begin {gather*} \frac {8}{7} \left (\sqrt {\sqrt {x+1}+1}+1\right )^{7/2}-\frac {24}{5} \left (\sqrt {\sqrt {x+1}+1}+1\right )^{5/2}+\frac {16}{3} \left (\sqrt {\sqrt {x+1}+1}+1\right )^{3/2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 378
Rule 786
Rule 1412
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {1+\sqrt {1+\sqrt {1+x}}}} \, dx &=2 \text {Subst}\left (\int \frac {x}{\sqrt {1+\sqrt {1+x}}} \, dx,x,\sqrt {1+x}\right )\\ &=2 \text {Subst}\left (\int \frac {-1+x}{\sqrt {1+\sqrt {x}}} \, dx,x,1+\sqrt {1+x}\right )\\ &=4 \text {Subst}\left (\int \frac {x \left (-1+x^2\right )}{\sqrt {1+x}} \, dx,x,\sqrt {1+\sqrt {1+x}}\right )\\ &=4 \text {Subst}\left (\int \left (2 \sqrt {1+x}-3 (1+x)^{3/2}+(1+x)^{5/2}\right ) \, dx,x,\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}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 71, normalized size = 0.55 \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 ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 47, normalized size = 0.37
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}\) | \(47\) |
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}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains higher order function than in optimal. Order 3 vs. order
2.
time = 0.25, size = 46, normalized size = 0.36 \begin {gather*} \frac {8}{7} \, {\left (\sqrt {\sqrt {x + 1} + 1} + 1\right )}^{\frac {7}{2}} - \frac {24}{5} \, {\left (\sqrt {\sqrt {x + 1} + 1} + 1\right )}^{\frac {5}{2}} + \frac {16}{3} \, {\left (\sqrt {\sqrt {x + 1} + 1} + 1\right )}^{\frac {3}{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 43, normalized size = 0.34 \begin {gather*} \frac {8}{105} \, {\left ({\left (15 \, \sqrt {x + 1} + 4\right )} \sqrt {\sqrt {x + 1} + 1} - 18 \, \sqrt {x + 1} + 4\right )} \sqrt {\sqrt {\sqrt {x + 1} + 1} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 445 vs.
\(2 (110) = 220\).
time = 0.92, size = 445, normalized size = 3.48 \begin {gather*} - \frac {336 \left (x + 1\right )^{\frac {13}{4}} \sqrt [4]{\sqrt {x + 1} + 1} \sin {\left (\frac {5 \operatorname {atan}{\left (\sqrt [4]{x + 1} \right )}}{2} \right )} \Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right )}{105 \pi \left (x + 1\right )^{\frac {5}{2}} + 105 \pi \left (x + 1\right )^{2}} - \frac {112 \left (x + 1\right )^{\frac {11}{4}} \sqrt [4]{\sqrt {x + 1} + 1} \sin {\left (\frac {5 \operatorname {atan}{\left (\sqrt [4]{x + 1} \right )}}{2} \right )} \Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right )}{105 \pi \left (x + 1\right )^{\frac {5}{2}} + 105 \pi \left (x + 1\right )^{2}} + \frac {224 \left (x + 1\right )^{\frac {9}{4}} \sqrt [4]{\sqrt {x + 1} + 1} \sin {\left (\frac {5 \operatorname {atan}{\left (\sqrt [4]{x + 1} \right )}}{2} \right )} \Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right )}{105 \pi \left (x + 1\right )^{\frac {5}{2}} + 105 \pi \left (x + 1\right )^{2}} - \frac {152 \left (x + 1\right )^{\frac {5}{2}} \left (\sqrt {x + 1} + 1\right )^{\frac {3}{4}} \cos {\left (\frac {7 \operatorname {atan}{\left (\sqrt [4]{x + 1} \right )}}{2} \right )} \Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right )}{105 \pi \left (x + 1\right )^{\frac {5}{2}} + 105 \pi \left (x + 1\right )^{2}} - \frac {64 \left (x + 1\right )^{\frac {5}{2}} \Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right )}{105 \pi \left (x + 1\right )^{\frac {5}{2}} + 105 \pi \left (x + 1\right )^{2}} - \frac {216 \left (x + 1\right )^{3} \left (\sqrt {x + 1} + 1\right )^{\frac {3}{4}} \cos {\left (\frac {7 \operatorname {atan}{\left (\sqrt [4]{x + 1} \right )}}{2} \right )} \Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right )}{105 \pi \left (x + 1\right )^{\frac {5}{2}} + 105 \pi \left (x + 1\right )^{2}} + \frac {64 \left (x + 1\right )^{2} \left (\sqrt {x + 1} + 1\right )^{\frac {3}{4}} \cos {\left (\frac {7 \operatorname {atan}{\left (\sqrt [4]{x + 1} \right )}}{2} \right )} \Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right )}{105 \pi \left (x + 1\right )^{\frac {5}{2}} + 105 \pi \left (x + 1\right )^{2}} - \frac {64 \left (x + 1\right )^{2} \Gamma \left (\frac {1}{4}\right ) \Gamma \left (\frac {3}{4}\right )}{105 \pi \left (x + 1\right )^{\frac {5}{2}} + 105 \pi \left (x + 1\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains higher order function than in optimal. Order 3 vs. order
2.
time = 0.45, size = 79, normalized size = 0.62 \begin {gather*} \frac {8 \, {\left (15 \, {\left (\sqrt {\sqrt {x + 1} + 1} + 1\right )}^{\frac {7}{2}} - 63 \, {\left (\sqrt {\sqrt {x + 1} + 1} + 1\right )}^{\frac {5}{2}} + 70 \, {\left (\sqrt {\sqrt {x + 1} + 1} + 1\right )}^{\frac {3}{2}}\right )}}{105 \, \mathrm {sgn}\left (4 \, {\left (\sqrt {x + 1} + 1\right )}^{2} - 8 \, \sqrt {x + 1} - 7\right ) \mathrm {sgn}\left (4 \, x + 1\right )} \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 {1}{\sqrt {\sqrt {\sqrt {x+1}+1}+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________