Optimal. Leaf size=25 \[ \frac{2 x \sqrt{b-\frac{a}{x}}}{\sqrt{a-b x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.014152, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {435, 23, 30} \[ \frac{2 x \sqrt{b-\frac{a}{x}}}{\sqrt{a-b x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 435
Rule 23
Rule 30
Rubi steps
\begin{align*} \int \frac{\sqrt{b-\frac{a}{x}}}{\sqrt{a-b x}} \, dx &=\frac{\left (\sqrt{b-\frac{a}{x}} \sqrt{x}\right ) \int \frac{\sqrt{-a+b x}}{\sqrt{x} \sqrt{a-b x}} \, dx}{\sqrt{-a+b x}}\\ &=\frac{\left (\sqrt{b-\frac{a}{x}} \sqrt{x}\right ) \int \frac{1}{\sqrt{x}} \, dx}{\sqrt{a-b x}}\\ &=\frac{2 \sqrt{b-\frac{a}{x}} x}{\sqrt{a-b x}}\\ \end{align*}
Mathematica [A] time = 0.010256, size = 25, normalized size = 1. \[ \frac{2 x \sqrt{b-\frac{a}{x}}}{\sqrt{a-b x}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 25, normalized size = 1. \begin{align*} 2\,{\frac{x}{\sqrt{-bx+a}}\sqrt{-{\frac{-bx+a}{x}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.38986, size = 7, normalized size = 0.28 \begin{align*} -2 i \, \sqrt{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.46328, size = 66, normalized size = 2.64 \begin{align*} -\frac{2 \, \sqrt{-b x + a} x \sqrt{\frac{b x - a}{x}}}{b x - a} \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{\sqrt{- \frac{a}{x} + b}}{\sqrt{a - b x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.11791, size = 69, normalized size = 2.76 \begin{align*} \frac{2 \,{\left (\sqrt{-{\left (b x - a\right )} b - a b} - \sqrt{-a b}\right )}{\left | b \right |} \mathrm{sgn}\left (x\right )}{b^{2}} + \frac{2 \, \sqrt{-a b}{\left | b \right |} \mathrm{sgn}\left (x\right )}{b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]