3.7.3 \(\int \sqrt {1+\sqrt {1+x}} \, dx\)

Optimal. Leaf size=47 \[ \frac {4}{15} \sqrt {\sqrt {x+1}+1} (3 x+1)+\frac {4}{15} \sqrt {x+1} \sqrt {\sqrt {x+1}+1} \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 35, normalized size of antiderivative = 0.74, number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {247, 190, 43} \begin {gather*} \frac {4}{5} \left (\sqrt {x+1}+1\right )^{5/2}-\frac {4}{3} \left (\sqrt {x+1}+1\right )^{3/2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[1 + Sqrt[1 + x]],x]

[Out]

(-4*(1 + Sqrt[1 + x])^(3/2))/3 + (4*(1 + Sqrt[1 + x])^(5/2))/5

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 190

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(1/n - 1)*(a + b*x)^p, x], x, x^n], x] /
; FreeQ[{a, b, p}, x] && FractionQ[n] && IntegerQ[1/n]

Rule 247

Int[((a_.) + (b_.)*(v_)^(n_))^(p_), x_Symbol] :> Dist[1/Coefficient[v, x, 1], Subst[Int[(a + b*x^n)^p, x], x,
v], x] /; FreeQ[{a, b, n, p}, x] && LinearQ[v, x] && NeQ[v, x]

Rubi steps

\begin {align*} \int \sqrt {1+\sqrt {1+x}} \, dx &=\operatorname {Subst}\left (\int \sqrt {1+\sqrt {x}} \, dx,x,1+x\right )\\ &=2 \operatorname {Subst}\left (\int x \sqrt {1+x} \, dx,x,\sqrt {1+x}\right )\\ &=2 \operatorname {Subst}\left (\int \left (-\sqrt {1+x}+(1+x)^{3/2}\right ) \, dx,x,\sqrt {1+x}\right )\\ &=-\frac {4}{3} \left (1+\sqrt {1+x}\right )^{3/2}+\frac {4}{5} \left (1+\sqrt {1+x}\right )^{5/2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 28, normalized size = 0.60 \begin {gather*} \frac {4}{15} \left (\sqrt {x+1}+1\right )^{3/2} \left (3 \sqrt {x+1}-2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[1 + Sqrt[1 + x]],x]

[Out]

(4*(1 + Sqrt[1 + x])^(3/2)*(-2 + 3*Sqrt[1 + x]))/15

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.01, size = 28, normalized size = 0.60 \begin {gather*} \frac {4}{15} \left (1+\sqrt {1+x}\right )^{3/2} \left (-2+3 \sqrt {1+x}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[Sqrt[1 + Sqrt[1 + x]],x]

[Out]

(4*(1 + Sqrt[1 + x])^(3/2)*(-2 + 3*Sqrt[1 + x]))/15

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 21, normalized size = 0.45 \begin {gather*} \frac {4}{15} \, {\left (3 \, x + \sqrt {x + 1} + 1\right )} \sqrt {\sqrt {x + 1} + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+(1+x)^(1/2))^(1/2),x, algorithm="fricas")

[Out]

4/15*(3*x + sqrt(x + 1) + 1)*sqrt(sqrt(x + 1) + 1)

________________________________________________________________________________________

giac [C]  time = 0.23, size = 23, normalized size = 0.49 \begin {gather*} \frac {4}{5} \, {\left (\sqrt {x + 1} + 1\right )}^{\frac {5}{2}} - \frac {4}{3} \, {\left (\sqrt {x + 1} + 1\right )}^{\frac {3}{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+(1+x)^(1/2))^(1/2),x, algorithm="giac")

[Out]

4/5*(sqrt(x + 1) + 1)^(5/2) - 4/3*(sqrt(x + 1) + 1)^(3/2)

________________________________________________________________________________________

maple [C]  time = 0.07, size = 17, normalized size = 0.36

method result size
meijerg \(\hypergeom \left (\left [-\frac {1}{4}, \frac {1}{4}, 1\right ], \left [\frac {1}{2}, 2\right ], -x \right ) \sqrt {2}\, x\) \(17\)
derivativedivides \(\frac {4 \left (1+\sqrt {1+x}\right )^{\frac {5}{2}}}{5}-\frac {4 \left (1+\sqrt {1+x}\right )^{\frac {3}{2}}}{3}\) \(24\)
default \(\frac {4 \left (1+\sqrt {1+x}\right )^{\frac {5}{2}}}{5}-\frac {4 \left (1+\sqrt {1+x}\right )^{\frac {3}{2}}}{3}\) \(24\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1+(1+x)^(1/2))^(1/2),x,method=_RETURNVERBOSE)

[Out]

hypergeom([-1/4,1/4,1],[1/2,2],-x)*2^(1/2)*x

________________________________________________________________________________________

maxima [C]  time = 0.32, size = 23, normalized size = 0.49 \begin {gather*} \frac {4}{5} \, {\left (\sqrt {x + 1} + 1\right )}^{\frac {5}{2}} - \frac {4}{3} \, {\left (\sqrt {x + 1} + 1\right )}^{\frac {3}{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+(1+x)^(1/2))^(1/2),x, algorithm="maxima")

[Out]

4/5*(sqrt(x + 1) + 1)^(5/2) - 4/3*(sqrt(x + 1) + 1)^(3/2)

________________________________________________________________________________________

mupad [B]  time = 0.52, size = 16, normalized size = 0.34 \begin {gather*} \left (x+1\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{2},2;\ 3;\ -\sqrt {x+1}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((x + 1)^(1/2) + 1)^(1/2),x)

[Out]

(x + 1)*hypergeom([-1/2, 2], 3, -(x + 1)^(1/2))

________________________________________________________________________________________

sympy [B]  time = 0.80, size = 184, normalized size = 3.91 \begin {gather*} \frac {12 \left (x + 1\right )^{\frac {7}{2}} \sqrt {\sqrt {x + 1} + 1}}{15 \left (x + 1\right )^{\frac {5}{2}} + 15 \left (x + 1\right )^{2}} - \frac {4 \left (x + 1\right )^{\frac {5}{2}} \sqrt {\sqrt {x + 1} + 1}}{15 \left (x + 1\right )^{\frac {5}{2}} + 15 \left (x + 1\right )^{2}} + \frac {8 \left (x + 1\right )^{\frac {5}{2}}}{15 \left (x + 1\right )^{\frac {5}{2}} + 15 \left (x + 1\right )^{2}} + \frac {16 \left (x + 1\right )^{3} \sqrt {\sqrt {x + 1} + 1}}{15 \left (x + 1\right )^{\frac {5}{2}} + 15 \left (x + 1\right )^{2}} - \frac {8 \left (x + 1\right )^{2} \sqrt {\sqrt {x + 1} + 1}}{15 \left (x + 1\right )^{\frac {5}{2}} + 15 \left (x + 1\right )^{2}} + \frac {8 \left (x + 1\right )^{2}}{15 \left (x + 1\right )^{\frac {5}{2}} + 15 \left (x + 1\right )^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+(1+x)**(1/2))**(1/2),x)

[Out]

12*(x + 1)**(7/2)*sqrt(sqrt(x + 1) + 1)/(15*(x + 1)**(5/2) + 15*(x + 1)**2) - 4*(x + 1)**(5/2)*sqrt(sqrt(x + 1
) + 1)/(15*(x + 1)**(5/2) + 15*(x + 1)**2) + 8*(x + 1)**(5/2)/(15*(x + 1)**(5/2) + 15*(x + 1)**2) + 16*(x + 1)
**3*sqrt(sqrt(x + 1) + 1)/(15*(x + 1)**(5/2) + 15*(x + 1)**2) - 8*(x + 1)**2*sqrt(sqrt(x + 1) + 1)/(15*(x + 1)
**(5/2) + 15*(x + 1)**2) + 8*(x + 1)**2/(15*(x + 1)**(5/2) + 15*(x + 1)**2)

________________________________________________________________________________________