Optimal. Leaf size=28 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a x+b x^2}}\right )}{\sqrt {b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {1976, 634, 212}
\begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a x+b x^2}}\right )}{\sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 634
Rule 1976
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {x (a+b x)}} \, dx &=\int \frac {1}{\sqrt {a x+b x^2}} \, dx\\ &=2 \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a x+b x^2}}\right )\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a x+b x^2}}\right )}{\sqrt {b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 55, normalized size = 1.96 \begin {gather*} -\frac {2 \sqrt {x} \sqrt {a+b x} \log \left (-\sqrt {b} \sqrt {x}+\sqrt {a+b x}\right )}{\sqrt {b} \sqrt {x (a+b x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.23, size = 29, normalized size = 1.04
method | result | size |
default | \(\frac {\ln \left (\frac {\frac {a}{2}+b x}{\sqrt {b}}+\sqrt {b \,x^{2}+a x}\right )}{\sqrt {b}}\) | \(29\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 27, normalized size = 0.96 \begin {gather*} \frac {\log \left (2 \, b x + a + 2 \, \sqrt {b x^{2} + a x} \sqrt {b}\right )}{\sqrt {b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 62, normalized size = 2.21 \begin {gather*} \left [\frac {\log \left (2 \, b x + a + 2 \, \sqrt {b x^{2} + a x} \sqrt {b}\right )}{\sqrt {b}}, -\frac {2 \, \sqrt {-b} \arctan \left (\frac {\sqrt {b x^{2} + a x} \sqrt {-b}}{b x}\right )}{b}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {x \left (a + b x\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 61 vs.
\(2 (22) = 44\).
time = 1.95, size = 61, normalized size = 2.18 \begin {gather*} \frac {1}{4} \, \sqrt {b x^{2} + a x} {\left (2 \, x + \frac {a}{b}\right )} + \frac {a^{2} \log \left ({\left | -2 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a x}\right )} \sqrt {b} - a \right |}\right )}{8 \, b^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.53, size = 28, normalized size = 1.00 \begin {gather*} \frac {\ln \left (\frac {\frac {a}{2}+b\,x}{\sqrt {b}}+\sqrt {b\,x^2+a\,x}\right )}{\sqrt {b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________