Optimal. Leaf size=24 \[ \sqrt{x-1} \sqrt{x}-\sinh ^{-1}\left (\sqrt{x-1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0112379, antiderivative size = 28, normalized size of antiderivative = 1.17, number of steps used = 5, number of rules used = 5, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.454, Rules used = {1972, 242, 47, 63, 206} \[ \sqrt{\frac{x-1}{x}} x-\tanh ^{-1}\left (\sqrt{\frac{x-1}{x}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1972
Rule 242
Rule 47
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \sqrt{\frac{-1+x}{x}} \, dx &=\int \sqrt{1-\frac{1}{x}} \, dx\\ &=-\operatorname{Subst}\left (\int \frac{\sqrt{1-x}}{x^2} \, dx,x,\frac{1}{x}\right )\\ &=\sqrt{\frac{-1+x}{x}} x+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-x} x} \, dx,x,\frac{1}{x}\right )\\ &=\sqrt{\frac{-1+x}{x}} x-\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{\frac{-1+x}{x}}\right )\\ &=\sqrt{\frac{-1+x}{x}} x-\tanh ^{-1}\left (\sqrt{\frac{-1+x}{x}}\right )\\ \end{align*}
Mathematica [A] time = 0.0137291, size = 38, normalized size = 1.58 \[ \frac{\sqrt{x} (x-1)+\sqrt{1-x} \sin ^{-1}\left (\sqrt{1-x}\right )}{\sqrt{x-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.005, size = 47, normalized size = 2. \begin{align*}{\frac{x}{2}\sqrt{{\frac{x-1}{x}}} \left ( 2\,\sqrt{{x}^{2}-x}-\ln \left ( x-{\frac{1}{2}}+\sqrt{{x}^{2}-x} \right ) \right ){\frac{1}{\sqrt{x \left ( x-1 \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.05021, size = 69, normalized size = 2.88 \begin{align*} -\frac{\sqrt{\frac{x - 1}{x}}}{\frac{x - 1}{x} - 1} - \frac{1}{2} \, \log \left (\sqrt{\frac{x - 1}{x}} + 1\right ) + \frac{1}{2} \, \log \left (\sqrt{\frac{x - 1}{x}} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.43424, size = 109, normalized size = 4.54 \begin{align*} x \sqrt{\frac{x - 1}{x}} - \frac{1}{2} \, \log \left (\sqrt{\frac{x - 1}{x}} + 1\right ) + \frac{1}{2} \, \log \left (\sqrt{\frac{x - 1}{x}} - 1\right ) \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 \sqrt{\frac{x - 1}{x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14224, size = 47, normalized size = 1.96 \begin{align*} \frac{1}{2} \, \log \left ({\left | -2 \, x + 2 \, \sqrt{x^{2} - x} + 1 \right |}\right ) \mathrm{sgn}\left (x\right ) + \sqrt{x^{2} - x} \mathrm{sgn}\left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]