3.13 \(\int \frac{\sqrt{x+\sqrt{1+x}}}{\sqrt{1+x} (1+x^2)} \, dx\)

Optimal. Leaf size=365 \[ -\frac{i \tan ^{-1}\left (\frac{-\left (1-2 \sqrt{1-i}\right ) \sqrt{x+1}+\sqrt{1-i}+2}{2 \sqrt{i+\sqrt{1-i}} \sqrt{x+\sqrt{x+1}}}\right )}{2 \sqrt{\frac{1-i}{i+\sqrt{1-i}}}}+\frac{i \tan ^{-1}\left (\frac{-\left (1-2 \sqrt{1+i}\right ) \sqrt{x+1}+\sqrt{1+i}+2}{2 \sqrt{\sqrt{1+i}-i} \sqrt{x+\sqrt{x+1}}}\right )}{2 \sqrt{-\frac{1+i}{i-\sqrt{1+i}}}}+\frac{i \tanh ^{-1}\left (\frac{-\left (1+2 \sqrt{1-i}\right ) \sqrt{x+1}-\sqrt{1-i}+2}{2 \sqrt{\sqrt{1-i}-i} \sqrt{x+\sqrt{x+1}}}\right )}{2 \sqrt{-\frac{1-i}{i-\sqrt{1-i}}}}-\frac{i \tanh ^{-1}\left (\frac{-\left (1+2 \sqrt{1+i}\right ) \sqrt{x+1}-\sqrt{1+i}+2}{2 \sqrt{i+\sqrt{1+i}} \sqrt{x+\sqrt{x+1}}}\right )}{2 \sqrt{\frac{1+i}{i+\sqrt{1+i}}}} \]

[Out]

((-I/2)*ArcTan[(2 + Sqrt[1 - I] - (1 - 2*Sqrt[1 - I])*Sqrt[1 + x])/(2*Sqrt[I + Sqrt[1 - I]]*Sqrt[x + Sqrt[1 +
x]])])/Sqrt[(1 - I)/(I + Sqrt[1 - I])] + ((I/2)*ArcTan[(2 + Sqrt[1 + I] - (1 - 2*Sqrt[1 + I])*Sqrt[1 + x])/(2*
Sqrt[-I + Sqrt[1 + I]]*Sqrt[x + Sqrt[1 + x]])])/Sqrt[(-1 - I)/(I - Sqrt[1 + I])] + ((I/2)*ArcTanh[(2 - Sqrt[1
- I] - (1 + 2*Sqrt[1 - I])*Sqrt[1 + x])/(2*Sqrt[-I + Sqrt[1 - I]]*Sqrt[x + Sqrt[1 + x]])])/Sqrt[(-1 + I)/(I -
Sqrt[1 - I])] - ((I/2)*ArcTanh[(2 - Sqrt[1 + I] - (1 + 2*Sqrt[1 + I])*Sqrt[1 + x])/(2*Sqrt[I + Sqrt[1 + I]]*Sq
rt[x + Sqrt[1 + x]])])/Sqrt[(1 + I)/(I + Sqrt[1 + I])]

________________________________________________________________________________________

Rubi [A]  time = 0.858984, antiderivative size = 365, normalized size of antiderivative = 1., number of steps used = 20, number of rules used = 8, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {6741, 6728, 990, 621, 206, 1033, 724, 204} \[ -\frac{i \tan ^{-1}\left (\frac{-\left (1-2 \sqrt{1-i}\right ) \sqrt{x+1}+\sqrt{1-i}+2}{2 \sqrt{i+\sqrt{1-i}} \sqrt{x+\sqrt{x+1}}}\right )}{2 \sqrt{\frac{1-i}{i+\sqrt{1-i}}}}+\frac{i \tan ^{-1}\left (\frac{-\left (1-2 \sqrt{1+i}\right ) \sqrt{x+1}+\sqrt{1+i}+2}{2 \sqrt{\sqrt{1+i}-i} \sqrt{x+\sqrt{x+1}}}\right )}{2 \sqrt{-\frac{1+i}{i-\sqrt{1+i}}}}+\frac{i \tanh ^{-1}\left (\frac{-\left (1+2 \sqrt{1-i}\right ) \sqrt{x+1}-\sqrt{1-i}+2}{2 \sqrt{\sqrt{1-i}-i} \sqrt{x+\sqrt{x+1}}}\right )}{2 \sqrt{-\frac{1-i}{i-\sqrt{1-i}}}}-\frac{i \tanh ^{-1}\left (\frac{-\left (1+2 \sqrt{1+i}\right ) \sqrt{x+1}-\sqrt{1+i}+2}{2 \sqrt{i+\sqrt{1+i}} \sqrt{x+\sqrt{x+1}}}\right )}{2 \sqrt{\frac{1+i}{i+\sqrt{1+i}}}} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[x + Sqrt[1 + x]]/(Sqrt[1 + x]*(1 + x^2)),x]

[Out]

((-I/2)*ArcTan[(2 + Sqrt[1 - I] - (1 - 2*Sqrt[1 - I])*Sqrt[1 + x])/(2*Sqrt[I + Sqrt[1 - I]]*Sqrt[x + Sqrt[1 +
x]])])/Sqrt[(1 - I)/(I + Sqrt[1 - I])] + ((I/2)*ArcTan[(2 + Sqrt[1 + I] - (1 - 2*Sqrt[1 + I])*Sqrt[1 + x])/(2*
Sqrt[-I + Sqrt[1 + I]]*Sqrt[x + Sqrt[1 + x]])])/Sqrt[(-1 - I)/(I - Sqrt[1 + I])] + ((I/2)*ArcTanh[(2 - Sqrt[1
- I] - (1 + 2*Sqrt[1 - I])*Sqrt[1 + x])/(2*Sqrt[-I + Sqrt[1 - I]]*Sqrt[x + Sqrt[1 + x]])])/Sqrt[(-1 + I)/(I -
Sqrt[1 - I])] - ((I/2)*ArcTanh[(2 - Sqrt[1 + I] - (1 + 2*Sqrt[1 + I])*Sqrt[1 + x])/(2*Sqrt[I + Sqrt[1 + I]]*Sq
rt[x + Sqrt[1 + x]])])/Sqrt[(1 + I)/(I + Sqrt[1 + I])]

Rule 6741

Int[u_, x_Symbol] :> With[{v = NormalizeIntegrand[u, x]}, Int[v, x] /; v =!= u]

Rule 6728

Int[(u_)/((a_.) + (b_.)*(x_)^(n_.) + (c_.)*(x_)^(n2_.)), x_Symbol] :> With[{v = RationalFunctionExpand[u/(a +
b*x^n + c*x^(2*n)), x]}, Int[v, x] /; SumQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]

Rule 990

Int[Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2]/((d_) + (f_.)*(x_)^2), x_Symbol] :> Dist[c/f, Int[1/Sqrt[a + b*x +
c*x^2], x], x] - Dist[1/f, Int[(c*d - a*f - b*f*x)/(Sqrt[a + b*x + c*x^2]*(d + f*x^2)), x], x] /; FreeQ[{a, b,
 c, d, f}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 621

Int[1/Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(4*c - x^2), x], x, (b + 2*c*x)
/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 1033

Int[((g_.) + (h_.)*(x_))/(((a_) + (c_.)*(x_)^2)*Sqrt[(d_.) + (e_.)*(x_) + (f_.)*(x_)^2]), x_Symbol] :> With[{q
 = Rt[-(a*c), 2]}, Dist[h/2 + (c*g)/(2*q), Int[1/((-q + c*x)*Sqrt[d + e*x + f*x^2]), x], x] + Dist[h/2 - (c*g)
/(2*q), Int[1/((q + c*x)*Sqrt[d + e*x + f*x^2]), x], x]] /; FreeQ[{a, c, d, e, f, g, h}, x] && NeQ[e^2 - 4*d*f
, 0] && PosQ[-(a*c)]

Rule 724

Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Symbol] :> Dist[-2, Subst[Int[1/(4*c*d
^2 - 4*b*d*e + 4*a*e^2 - x^2), x], x, (2*a*e - b*d - (2*c*d - b*e)*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a,
b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[2*c*d - b*e, 0]

Rule 204

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rubi steps

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

Mathematica [A]  time = 0.456813, size = 357, normalized size = 0.98 \[ \frac{1}{4} (1-i)^{3/2} \sqrt{i+\sqrt{1-i}} \tan ^{-1}\left (\frac{-\left (1-2 \sqrt{1-i}\right ) \sqrt{x+1}+\sqrt{1-i}+2}{2 \sqrt{i+\sqrt{1-i}} \sqrt{x+\sqrt{x+1}}}\right )+\frac{1}{4} (1+i)^{3/2} \sqrt{\sqrt{1+i}-i} \tan ^{-1}\left (\frac{-\left (1-2 \sqrt{1+i}\right ) \sqrt{x+1}+\sqrt{1+i}+2}{2 \sqrt{\sqrt{1+i}-i} \sqrt{x+\sqrt{x+1}}}\right )-\frac{1}{4} (1-i)^{3/2} \sqrt{\sqrt{1-i}-i} \tanh ^{-1}\left (\frac{-\left (1+2 \sqrt{1-i}\right ) \sqrt{x+1}-\sqrt{1-i}+2}{2 \sqrt{\sqrt{1-i}-i} \sqrt{x+\sqrt{x+1}}}\right )-\frac{1}{4} (1+i)^{3/2} \sqrt{i+\sqrt{1+i}} \tanh ^{-1}\left (\frac{-\left (1+2 \sqrt{1+i}\right ) \sqrt{x+1}-\sqrt{1+i}+2}{2 \sqrt{i+\sqrt{1+i}} \sqrt{x+\sqrt{x+1}}}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[x + Sqrt[1 + x]]/(Sqrt[1 + x]*(1 + x^2)),x]

[Out]

((1 - I)^(3/2)*Sqrt[I + Sqrt[1 - I]]*ArcTan[(2 + Sqrt[1 - I] - (1 - 2*Sqrt[1 - I])*Sqrt[1 + x])/(2*Sqrt[I + Sq
rt[1 - I]]*Sqrt[x + Sqrt[1 + x]])])/4 + ((1 + I)^(3/2)*Sqrt[-I + Sqrt[1 + I]]*ArcTan[(2 + Sqrt[1 + I] - (1 - 2
*Sqrt[1 + I])*Sqrt[1 + x])/(2*Sqrt[-I + Sqrt[1 + I]]*Sqrt[x + Sqrt[1 + x]])])/4 - ((1 - I)^(3/2)*Sqrt[-I + Sqr
t[1 - I]]*ArcTanh[(2 - Sqrt[1 - I] - (1 + 2*Sqrt[1 - I])*Sqrt[1 + x])/(2*Sqrt[-I + Sqrt[1 - I]]*Sqrt[x + Sqrt[
1 + x]])])/4 - ((1 + I)^(3/2)*Sqrt[I + Sqrt[1 + I]]*ArcTanh[(2 - Sqrt[1 + I] - (1 + 2*Sqrt[1 + I])*Sqrt[1 + x]
)/(2*Sqrt[I + Sqrt[1 + I]]*Sqrt[x + Sqrt[1 + x]])])/4

________________________________________________________________________________________

Maple [C]  time = 0.017, size = 109, normalized size = 0.3 \begin{align*} -{\frac{1}{2}\sum _{{\it \_R}={\it RootOf} \left ({{\it \_Z}}^{8}-4\,{{\it \_Z}}^{6}+8\,{{\it \_Z}}^{5}+20\,{{\it \_Z}}^{4}-48\,{{\it \_Z}}^{3}+40\,{{\it \_Z}}^{2}-8\,{\it \_Z}+1 \right ) }{\frac{2\,{{\it \_R}}^{5}-5\,{{\it \_R}}^{4}+5\,{{\it \_R}}^{2}-1}{{{\it \_R}}^{7}-3\,{{\it \_R}}^{5}+5\,{{\it \_R}}^{4}+10\,{{\it \_R}}^{3}-18\,{{\it \_R}}^{2}+10\,{\it \_R}-1}\ln \left ( \sqrt{x+\sqrt{1+x}}-\sqrt{1+x}-{\it \_R} \right ) }} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*sum((2*_R^5-5*_R^4+5*_R^2-1)/(_R^7-3*_R^5+5*_R^4+10*_R^3-18*_R^2+10*_R-1)*ln((x+(1+x)^(1/2))^(1/2)-(1+x)^
(1/2)-_R),_R=RootOf(_Z^8-4*_Z^6+8*_Z^5+20*_Z^4-48*_Z^3+40*_Z^2-8*_Z+1))

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x + \sqrt{x + 1}}}{{\left (x^{2} + 1\right )} \sqrt{x + 1}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [B]  time = 56.984, size = 20056, normalized size = 54.95 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/4*sqrt(sqrt(1/8*I + 1/8) + sqrt(-1/8*I + 1/8) - 2*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt
(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*
I + 1/8) + 1/8*I + 1/8) - 1/2)*log(1/4*(2*(((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) -
3*(3*x - 1)*sqrt(x + 1) - 7*x + 9)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1)^2 + 2*(((3*x - 1)*sqrt(
x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 4*((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8)
 + I + 1) + 2*(7*x + 1)*sqrt(x + 1) + 12*x - 14)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1) + 16*((((
3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 3*(3*x - 1)*sqrt(x + 1) - 7*x + 9)*sqrt(x + s
qrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1) - ((3*(3*x - 1)*sqrt(x + 1) + 7*x - 9)*(4*sqrt(-1/8*I + 1/8) + I + 1
) - 2*(11*x - 7)*sqrt(x + 1) - 16*x + 22)*sqrt(x + sqrt(x + 1)))*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 -
3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/
2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 2*((3*(3*x - 1)*sqrt(x + 1) + 7*x - 9)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2
- 2*((7*x + 1)*sqrt(x + 1) + 6*x - 7)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 4*sqrt(x + 1)*(x - 7) - 12*x + 44)*sqrt
(x + sqrt(x + 1)) + ((3*x^2 - (x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(9*
x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(1/8*I + 1/8) - I + 1)^2 + (3*x^2 + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15
)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 68*x^2 - ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8)
 + I + 1)^2 - 2*x^2 - 4*(x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 4*(7*x + 6)
*sqrt(x + 1) + 24*x + 30)*(4*sqrt(1/8*I + 1/8) - I + 1) + 2*(x^2 - 2*(7*x + 6)*sqrt(x + 1) - 12*x - 15)*(4*sqr
t(-1/8*I + 1/8) + I + 1) - 8*(14*x^2 - (3*x^2 - (x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8
) + I + 1) + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(1/8*I + 1/8) - I + 1) - (3*x^2 + 2*(9*x + 7)*sqrt(x
+ 1) + 24*x + 15)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 4*(11*x + 8)*sqrt(x + 1) + 72*x + 30)*sqrt(-3/64*(4*sqrt(1/
8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/
8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 8*(11*x + 3)*sqrt(x + 1) - 64*x - 20)*sqrt(sqrt(
1/8*I + 1/8) + sqrt(-1/8*I + 1/8) - 2*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8)
+ I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*
I + 1/8) - 1/2))/(x^2 + 1)) + 1/4*sqrt(sqrt(1/8*I + 1/8) + sqrt(-1/8*I + 1/8) - 2*sqrt(-3/64*(4*sqrt(1/8*I + 1
/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1
/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 1/2)*log(1/4*(2*(((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*s
qrt(-1/8*I + 1/8) + I + 1) - 3*(3*x - 1)*sqrt(x + 1) - 7*x + 9)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I
 + 1)^2 + 2*(((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 4*((3*x - 1)*sqrt(x + 1) + 4
*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(7*x + 1)*sqrt(x + 1) + 12*x - 14)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/
8*I + 1/8) - I + 1) + 16*((((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 3*(3*x - 1)*sqrt
(x + 1) - 7*x + 9)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1) - ((3*(3*x - 1)*sqrt(x + 1) + 7*x - 9)*
(4*sqrt(-1/8*I + 1/8) + I + 1) - 2*(11*x - 7)*sqrt(x + 1) - 16*x + 22)*sqrt(x + sqrt(x + 1)))*sqrt(-3/64*(4*sq
rt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqr
t(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 2*((3*(3*x - 1)*sqrt(x + 1) + 7*x - 9)*(4*s
qrt(-1/8*I + 1/8) + I + 1)^2 - 2*((7*x + 1)*sqrt(x + 1) + 6*x - 7)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 4*sqrt(x +
 1)*(x - 7) - 12*x + 44)*sqrt(x + sqrt(x + 1)) - ((3*x^2 - (x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-
1/8*I + 1/8) + I + 1) + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(1/8*I + 1/8) - I + 1)^2 + (3*x^2 + 2*(9*x
 + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 68*x^2 - ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8
*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 2*x^2 - 4*(x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I
+ 1/8) + I + 1) + 4*(7*x + 6)*sqrt(x + 1) + 24*x + 30)*(4*sqrt(1/8*I + 1/8) - I + 1) + 2*(x^2 - 2*(7*x + 6)*sq
rt(x + 1) - 12*x - 15)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 8*(14*x^2 - (3*x^2 - (x^2 + 2*(3*x + 4)*sqrt(x + 1) +
8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(1/8*I + 1/8) - I + 1) -
 (3*x^2 + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 4*(11*x + 8)*sqrt(x + 1) + 72*
x + 30)*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*
I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 8*(11*x + 3)*sqrt(x
 + 1) - 64*x - 20)*sqrt(sqrt(1/8*I + 1/8) + sqrt(-1/8*I + 1/8) - 2*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2
- 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) +
1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 1/2))/(x^2 + 1)) - 1/4*sqrt(sqrt(1/8*I + 1/8) + sqrt(-1/8*I + 1/8) + 2
*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8
) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 1/2)*log(1/4*(2*(((3*x - 1
)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 3*(3*x - 1)*sqrt(x + 1) - 7*x + 9)*sqrt(x + sqrt(x +
 1))*(4*sqrt(1/8*I + 1/8) - I + 1)^2 + 2*(((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 -
 4*((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(7*x + 1)*sqrt(x + 1) + 12*x - 14)*sqr
t(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1) - 16*((((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8
) + I + 1) - 3*(3*x - 1)*sqrt(x + 1) - 7*x + 9)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1) - ((3*(3*x
 - 1)*sqrt(x + 1) + 7*x - 9)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 2*(11*x - 7)*sqrt(x + 1) - 16*x + 22)*sqrt(x + s
qrt(x + 1)))*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt
(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 2*((3*(3*x - 1
)*sqrt(x + 1) + 7*x - 9)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 2*((7*x + 1)*sqrt(x + 1) + 6*x - 7)*(4*sqrt(-1/8*I
 + 1/8) + I + 1) - 4*sqrt(x + 1)*(x - 7) - 12*x + 44)*sqrt(x + sqrt(x + 1)) + ((3*x^2 - (x^2 + 2*(3*x + 4)*sqr
t(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(1/8*I + 1/8)
 - I + 1)^2 + (3*x^2 + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 68*x^2 - ((x^2
+ 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 2*x^2 - 4*(x^2 + 2*(3*x + 4)*sqrt(x +
1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 4*(7*x + 6)*sqrt(x + 1) + 24*x + 30)*(4*sqrt(1/8*I + 1/8) - I +
 1) + 2*(x^2 - 2*(7*x + 6)*sqrt(x + 1) - 12*x - 15)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 8*(14*x^2 - (3*x^2 - (x^2
 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4
*sqrt(1/8*I + 1/8) - I + 1) - (3*x^2 + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 4
*(11*x + 8)*sqrt(x + 1) + 72*x + 30)*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) +
 I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I
 + 1/8) - 8*(11*x + 3)*sqrt(x + 1) - 64*x - 20)*sqrt(sqrt(1/8*I + 1/8) + sqrt(-1/8*I + 1/8) + 2*sqrt(-3/64*(4*
sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*s
qrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 1/2))/(x^2 + 1)) + 1/4*sqrt(sqrt(1/8*I +
1/8) + sqrt(-1/8*I + 1/8) + 2*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)
^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8)
 - 1/2)*log(1/4*(2*(((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 3*(3*x - 1)*sqrt(x + 1)
 - 7*x + 9)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1)^2 + 2*(((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sq
rt(-1/8*I + 1/8) + I + 1)^2 - 4*((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(7*x + 1)
*sqrt(x + 1) + 12*x - 14)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1) - 16*((((3*x - 1)*sqrt(x + 1) +
4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 3*(3*x - 1)*sqrt(x + 1) - 7*x + 9)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8
*I + 1/8) - I + 1) - ((3*(3*x - 1)*sqrt(x + 1) + 7*x - 9)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 2*(11*x - 7)*sqrt(x
 + 1) - 16*x + 22)*sqrt(x + sqrt(x + 1)))*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1
/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) +
1/8*I + 1/8) - 2*((3*(3*x - 1)*sqrt(x + 1) + 7*x - 9)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 2*((7*x + 1)*sqrt(x +
 1) + 6*x - 7)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 4*sqrt(x + 1)*(x - 7) - 12*x + 44)*sqrt(x + sqrt(x + 1)) - ((3
*x^2 - (x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(9*x + 7)*sqrt(x + 1) + 24
*x + 15)*(4*sqrt(1/8*I + 1/8) - I + 1)^2 + (3*x^2 + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(-1/8*I + 1/8)
 + I + 1)^2 - 68*x^2 - ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 2*x^2 - 4
*(x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 4*(7*x + 6)*sqrt(x + 1) + 24*x + 3
0)*(4*sqrt(1/8*I + 1/8) - I + 1) + 2*(x^2 - 2*(7*x + 6)*sqrt(x + 1) - 12*x - 15)*(4*sqrt(-1/8*I + 1/8) + I + 1
) + 8*(14*x^2 - (3*x^2 - (x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(9*x + 7
)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(1/8*I + 1/8) - I + 1) - (3*x^2 + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sq
rt(-1/8*I + 1/8) + I + 1) + 4*(11*x + 8)*sqrt(x + 1) + 72*x + 30)*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 -
 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sqrt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1
/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 8*(11*x + 3)*sqrt(x + 1) - 64*x - 20)*sqrt(sqrt(1/8*I + 1/8) + sqrt(-1/
8*I + 1/8) + 2*sqrt(-3/64*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 3/64*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 1/32*(4*sq
rt(1/8*I + 1/8) - I + 1)*(4*sqrt(-1/8*I + 1/8) + I - 3) + 1/2*sqrt(-1/8*I + 1/8) + 1/8*I + 1/8) - 1/2))/(x^2 +
 1)) + 1/2*sqrt(-1/2*sqrt(1/8*I + 1/8) + 1/8*I - 1/8)*log(-((((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I
+ 1/8) + I + 1) - 3*(3*x - 1)*sqrt(x + 1) - 7*x + 9)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1)^2 + (
((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 4*((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sq
rt(-1/8*I + 1/8) + I + 1) + 2*(7*x + 1)*sqrt(x + 1) + 12*x - 14)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) -
I + 1) + (((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^3 - 4*((3*x - 1)*sqrt(x + 1) + 4*x
- 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 + 4*((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2
*(3*x - 1)*sqrt(x + 1) - 2*x + 14)*sqrt(x + sqrt(x + 1)) + ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(
-1/8*I + 1/8) + I + 1)^3 - (3*x^2 - (x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) +
 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 4*(x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x
 + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 18*x^2 + ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I +
1/8) + I + 1)^2 - 2*x^2 - 4*(x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 4*(7*x
+ 6)*sqrt(x + 1) + 24*x + 30)*(4*sqrt(1/8*I + 1/8) - I + 1) + 4*(x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*s
qrt(-1/8*I + 1/8) + I + 1) - 4*(7*x + 1)*sqrt(x + 1) + 16*x - 10)*sqrt(-1/2*sqrt(1/8*I + 1/8) + 1/8*I - 1/8))/
(x^2 + 1)) - 1/2*sqrt(-1/2*sqrt(1/8*I + 1/8) + 1/8*I - 1/8)*log(-((((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-
1/8*I + 1/8) + I + 1) - 3*(3*x - 1)*sqrt(x + 1) - 7*x + 9)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1/8) - I + 1)
^2 + (((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 4*((3*x - 1)*sqrt(x + 1) + 4*x - 3)
*(4*sqrt(-1/8*I + 1/8) + I + 1) + 2*(7*x + 1)*sqrt(x + 1) + 12*x - 14)*sqrt(x + sqrt(x + 1))*(4*sqrt(1/8*I + 1
/8) - I + 1) + (((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^3 - 4*((3*x - 1)*sqrt(x + 1)
+ 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 + 4*((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-1/8*I + 1/8) + I +
1) + 2*(3*x - 1)*sqrt(x + 1) - 2*x + 14)*sqrt(x + sqrt(x + 1)) - ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4
*sqrt(-1/8*I + 1/8) + I + 1)^3 - (3*x^2 - (x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I
+ 1) + 2*(9*x + 7)*sqrt(x + 1) + 24*x + 15)*(4*sqrt(1/8*I + 1/8) - I + 1)^2 - 4*(x^2 + 2*(3*x + 4)*sqrt(x + 1)
 + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 18*x^2 + ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/
8*I + 1/8) + I + 1)^2 - 2*x^2 - 4*(x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1) + 4
*(7*x + 6)*sqrt(x + 1) + 24*x + 30)*(4*sqrt(1/8*I + 1/8) - I + 1) + 4*(x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5
)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 4*(7*x + 1)*sqrt(x + 1) + 16*x - 10)*sqrt(-1/2*sqrt(1/8*I + 1/8) + 1/8*I -
1/8))/(x^2 + 1)) + 1/2*sqrt(-1/2*sqrt(-1/8*I + 1/8) - 1/8*I - 1/8)*log(((((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*
sqrt(-1/8*I + 1/8) + I + 1)^3 - ((3*x - 1)*sqrt(x + 1) + 9*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 2*((x + 3
)*sqrt(x + 1) - 2*x - 1)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 10*(3*x - 1)*sqrt(x + 1) - 30*x + 10)*sqrt(x + sqrt(
x + 1)) + ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^3 - (x^2 + 6*(x + 3)*sqrt(
x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 + 10*x^2 + 2*(3*x^2 - 2*sqrt(x + 1)*(x - 2) + 4*x - 5)*(4*s
qrt(-1/8*I + 1/8) + I + 1) - 20*(x + 3)*sqrt(x + 1) - 80*x - 30)*sqrt(-1/2*sqrt(-1/8*I + 1/8) - 1/8*I - 1/8))/
(x^2 + 1)) - 1/2*sqrt(-1/2*sqrt(-1/8*I + 1/8) - 1/8*I - 1/8)*log(((((3*x - 1)*sqrt(x + 1) + 4*x - 3)*(4*sqrt(-
1/8*I + 1/8) + I + 1)^3 - ((3*x - 1)*sqrt(x + 1) + 9*x - 3)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 - 2*((x + 3)*sqrt
(x + 1) - 2*x - 1)*(4*sqrt(-1/8*I + 1/8) + I + 1) - 10*(3*x - 1)*sqrt(x + 1) - 30*x + 10)*sqrt(x + sqrt(x + 1)
) - ((x^2 + 2*(3*x + 4)*sqrt(x + 1) + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^3 - (x^2 + 6*(x + 3)*sqrt(x + 1)
 + 8*x + 5)*(4*sqrt(-1/8*I + 1/8) + I + 1)^2 + 10*x^2 + 2*(3*x^2 - 2*sqrt(x + 1)*(x - 2) + 4*x - 5)*(4*sqrt(-1
/8*I + 1/8) + I + 1) - 20*(x + 3)*sqrt(x + 1) - 80*x - 30)*sqrt(-1/2*sqrt(-1/8*I + 1/8) - 1/8*I - 1/8))/(x^2 +
 1))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x + \sqrt{x + 1}}}{\sqrt{x + 1} \left (x^{2} + 1\right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(sqrt(x + sqrt(x + 1))/(sqrt(x + 1)*(x**2 + 1)), x)

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Exception raised: TypeError