3.19.87 \(\int \frac {x \sqrt {x+x^2}}{\sqrt {x^2+x \sqrt {x+x^2}}} \, dx\) [1887]

Optimal. Leaf size=130 \[ \frac {\left (255-136 x-384 x^2\right ) \sqrt {x+x^2} \sqrt {x \left (x+\sqrt {x+x^2}\right )}}{960 x}+\sqrt {x \left (x+\sqrt {x+x^2}\right )} \left (\frac {1}{960} \left (-85+568 x+384 x^2\right )-\frac {17 \sqrt {-x+\sqrt {x+x^2}} \tanh ^{-1}\left (\sqrt {2} \sqrt {-x+\sqrt {x+x^2}}\right )}{64 \sqrt {2} x}\right ) \]

[Out]

1/960*(-384*x^2-136*x+255)*(x^2+x)^(1/2)*(x*(x+(x^2+x)^(1/2)))^(1/2)/x+(x*(x+(x^2+x)^(1/2)))^(1/2)*(2/5*x^2+71
/120*x-17/192-17/128*2^(1/2)*(-x+(x^2+x)^(1/2))^(1/2)*arctanh(2^(1/2)*(-x+(x^2+x)^(1/2))^(1/2))/x)

________________________________________________________________________________________

Rubi [F]
time = 1.03, 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 {x \sqrt {x+x^2}}{\sqrt {x^2+x \sqrt {x+x^2}}} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

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

[Out]

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 2.66, size = 142, normalized size = 1.09 \begin {gather*} \frac {(1+x) \sqrt {x \left (x+\sqrt {x (1+x)}\right )} \left (2 x \left (-384 x^3-85 \left (-3+\sqrt {x (1+x)}\right )+8 x^2 \left (-65+48 \sqrt {x (1+x)}\right )+x \left (119+568 \sqrt {x (1+x)}\right )\right )-255 \sqrt {2} \sqrt {x (1+x)} \sqrt {-x+\sqrt {x (1+x)}} \tanh ^{-1}\left (\sqrt {-2 x+2 \sqrt {x (1+x)}}\right )\right )}{1920 (x (1+x))^{3/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

((1 + x)*Sqrt[x*(x + Sqrt[x*(1 + x)])]*(2*x*(-384*x^3 - 85*(-3 + Sqrt[x*(1 + x)]) + 8*x^2*(-65 + 48*Sqrt[x*(1
+ x)]) + x*(119 + 568*Sqrt[x*(1 + x)])) - 255*Sqrt[2]*Sqrt[x*(1 + x)]*Sqrt[-x + Sqrt[x*(1 + x)]]*ArcTanh[Sqrt[
-2*x + 2*Sqrt[x*(1 + x)]]]))/(1920*(x*(1 + x))^(3/2))

________________________________________________________________________________________

Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {x \sqrt {x^{2}+x}}{\sqrt {x^{2}+x \sqrt {x^{2}+x}}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.36, size = 118, normalized size = 0.91 \begin {gather*} \frac {255 \, \sqrt {2} x \log \left (\frac {4 \, x^{2} - 2 \, \sqrt {x^{2} + \sqrt {x^{2} + x} x} {\left (\sqrt {2} x + \sqrt {2} \sqrt {x^{2} + x}\right )} + 4 \, \sqrt {x^{2} + x} x + x}{x}\right ) + 4 \, {\left (384 \, x^{3} + 568 \, x^{2} - {\left (384 \, x^{2} + 136 \, x - 255\right )} \sqrt {x^{2} + x} - 85 \, x\right )} \sqrt {x^{2} + \sqrt {x^{2} + x} x}}{3840 \, x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3840*(255*sqrt(2)*x*log((4*x^2 - 2*sqrt(x^2 + sqrt(x^2 + x)*x)*(sqrt(2)*x + sqrt(2)*sqrt(x^2 + x)) + 4*sqrt(
x^2 + x)*x + x)/x) + 4*(384*x^3 + 568*x^2 - (384*x^2 + 136*x - 255)*sqrt(x^2 + x) - 85*x)*sqrt(x^2 + sqrt(x^2
+ x)*x))/x

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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]

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

[Out]

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

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x\,\sqrt {x^2+x}}{\sqrt {x^2+x\,\sqrt {x^2+x}}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________