3.849 \(\int \frac {1-x}{1+\sqrt {x}} \, dx\)

Optimal. Leaf size=11 \[ x-\frac {2 x^{3/2}}{3} \]

[Out]

x-2/3*x^(3/2)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1398, 26, 43} \[ x-\frac {2 x^{3/2}}{3} \]

Antiderivative was successfully verified.

[In]

Int[(1 - x)/(1 + Sqrt[x]),x]

[Out]

x - (2*x^(3/2))/3

Rule 26

Int[(u_.)*((a_) + (b_.)*(x_)^(n_.))^(m_.)*((c_) + (d_.)*(x_)^(j_))^(p_.), x_Symbol] :> Dist[(-(b^2/d))^m, Int[
u/(a - b*x^n)^m, x], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && EqQ[j, 2*n] && EqQ[p, -m] && EqQ[b^2*c + a^2*d,
0] && GtQ[a, 0] && LtQ[d, 0]

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 1398

Int[((a_) + (c_.)*(x_)^(n2_.))^(p_.)*((d_) + (e_.)*(x_)^(n_))^(q_.), x_Symbol] :> With[{g = Denominator[n]}, D
ist[g, Subst[Int[x^(g - 1)*(d + e*x^(g*n))^q*(a + c*x^(2*g*n))^p, x], x, x^(1/g)], x]] /; FreeQ[{a, c, d, e, p
, q}, x] && EqQ[n2, 2*n] && FractionQ[n]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 11, normalized size = 1.00 \[ x-\frac {2 x^{3/2}}{3} \]

Antiderivative was successfully verified.

[In]

Integrate[(1 - x)/(1 + Sqrt[x]),x]

[Out]

x - (2*x^(3/2))/3

________________________________________________________________________________________

fricas [A]  time = 0.40, size = 7, normalized size = 0.64 \[ -\frac {2}{3} \, x^{\frac {3}{2}} + x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/3*x^(3/2) + x

________________________________________________________________________________________

giac [A]  time = 0.33, size = 7, normalized size = 0.64 \[ -\frac {2}{3} \, x^{\frac {3}{2}} + x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/3*x^(3/2) + x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 8, normalized size = 0.73 \[ -\frac {2 x^{\frac {3}{2}}}{3}+x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/3*x^(3/2)+x

________________________________________________________________________________________

maxima [A]  time = 0.91, size = 7, normalized size = 0.64 \[ -\frac {2}{3} \, x^{\frac {3}{2}} + x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/3*x^(3/2) + x

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 7, normalized size = 0.64 \[ x-\frac {2\,x^{3/2}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x - (2*x^(3/2))/3

________________________________________________________________________________________

sympy [A]  time = 0.15, size = 8, normalized size = 0.73 \[ - \frac {2 x^{\frac {3}{2}}}{3} + x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2*x**(3/2)/3 + x

________________________________________________________________________________________