Optimal. Leaf size=18 \[ -(x+1) \sqrt{\frac{2}{x+1}-1} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0306565, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {512, 514, 375, 74} \[ -(x+1) \sqrt{\frac{2}{x+1}-1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 512
Rule 514
Rule 375
Rule 74
Rubi steps
\begin{align*} \int \frac{x}{(1+x) \sqrt{-1+\frac{2}{1+x}}} \, dx &=\operatorname{Subst}\left (\int \frac{-1+x}{\sqrt{-1+\frac{2}{x}} x} \, dx,x,1+x\right )\\ &=\operatorname{Subst}\left (\int \frac{1-\frac{1}{x}}{\sqrt{-1+\frac{2}{x}}} \, dx,x,1+x\right )\\ &=-\operatorname{Subst}\left (\int \frac{1-x}{x^2 \sqrt{-1+2 x}} \, dx,x,\frac{1}{1+x}\right )\\ &=-(1+x) \sqrt{-1+\frac{2}{1+x}}\\ \end{align*}
Mathematica [A] time = 0.0067792, size = 17, normalized size = 0.94 \[ \frac{x-1}{\sqrt{\frac{2}{x+1}-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.002, size = 17, normalized size = 0.9 \begin{align*}{(x-1){\frac{1}{\sqrt{-{\frac{x-1}{1+x}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.02281, size = 22, normalized size = 1.22 \begin{align*} \frac{\sqrt{x + 1}{\left (x - 1\right )}}{\sqrt{-x + 1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.74462, size = 45, normalized size = 2.5 \begin{align*} -{\left (x + 1\right )} \sqrt{-\frac{x - 1}{x + 1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x}{\sqrt{- \frac{x - 1}{x + 1}} \left (x + 1\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23699, size = 39, normalized size = 2.17 \begin{align*} -\frac{2}{\sqrt{-\frac{x - 1}{x + 1}} + \frac{1}{\sqrt{-\frac{x - 1}{x + 1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]