Optimal. Leaf size=20 \[ -\sqrt{\frac{1-x}{x+1}} (x+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.055983, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {1962, 12, 383} \[ -\sqrt{\frac{1-x}{x+1}} (x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1962
Rule 12
Rule 383
Rubi steps
\begin{align*} \int \frac{x}{\sqrt{\frac{1-x}{1+x}} (1+x)} \, dx &=-\left (4 \operatorname{Subst}\left (\int \frac{1-x^2}{2 \left (1+x^2\right )^2} \, dx,x,\sqrt{\frac{1-x}{1+x}}\right )\right )\\ &=-\left (2 \operatorname{Subst}\left (\int \frac{1-x^2}{\left (1+x^2\right )^2} \, dx,x,\sqrt{\frac{1-x}{1+x}}\right )\right )\\ &=-\sqrt{\frac{1-x}{1+x}} (1+x)\\ \end{align*}
Mathematica [A] time = 0.0089171, size = 19, normalized size = 0.95 \[ \frac{x-1}{\sqrt{\frac{1-x}{x+1}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, 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 = 0.971723, size = 36, normalized size = 1.8 \begin{align*} \frac{2 \, \sqrt{-\frac{x - 1}{x + 1}}}{\frac{x - 1}{x + 1} - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68215, size = 45, normalized size = 2.25 \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.15837, size = 39, normalized size = 1.95 \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]