Optimal. Leaf size=41 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {a+b x}{c+d x}}}{\sqrt {b}}\right )}{\sqrt {b} \sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {1983, 12, 214}
\begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {a+b x}{c+d x}}}{\sqrt {b}}\right )}{\sqrt {b} \sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 214
Rule 1983
Rubi steps
\begin {align*} \int \frac {\sqrt {\frac {a+b x}{c+d x}}}{a+b x} \, dx &=(2 (b c-a d)) \text {Subst}\left (\int \frac {1}{(b c-a d) \left (b-d x^2\right )} \, dx,x,\sqrt {\frac {a+b x}{c+d x}}\right )\\ &=2 \text {Subst}\left (\int \frac {1}{b-d x^2} \, dx,x,\sqrt {\frac {a+b x}{c+d x}}\right )\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {a+b x}{c+d x}}}{\sqrt {b}}\right )}{\sqrt {b} \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 77, normalized size = 1.88 \begin {gather*} \frac {2 \sqrt {\frac {a+b x}{c+d x}} \sqrt {c+d x} \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {a+b x}}\right )}{\sqrt {b} \sqrt {d} \sqrt {a+b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(79\) vs.
\(2(31)=62\).
time = 0.40, size = 80, normalized size = 1.95
method | result | size |
default | \(\frac {\ln \left (\frac {2 b d x +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) \left (d x +c \right ) \sqrt {\frac {b x +a}{d x +c}}}{\sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}\) | \(80\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 59, normalized size = 1.44 \begin {gather*} -\frac {\log \left (\frac {d \sqrt {\frac {b x + a}{d x + c}} - \sqrt {b d}}{d \sqrt {\frac {b x + a}{d x + c}} + \sqrt {b d}}\right )}{\sqrt {b d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 105, normalized size = 2.56 \begin {gather*} \left [\frac {\sqrt {b d} \log \left (2 \, b d x + b c + a d + 2 \, \sqrt {b d} {\left (d x + c\right )} \sqrt {\frac {b x + a}{d x + c}}\right )}{b d}, -\frac {2 \, \sqrt {-b d} \arctan \left (\frac {\sqrt {-b d} {\left (d x + c\right )} \sqrt {\frac {b x + a}{d x + c}}}{b d x + a d}\right )}{b d}\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 {\sqrt {\frac {a + b x}{c + d x}}}{a + b x}\, 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. 74 vs.
\(2 (31) = 62\).
time = 4.22, size = 74, normalized size = 1.80 \begin {gather*} -\frac {\sqrt {b d} \log \left ({\left | -2 \, {\left (\sqrt {b d} x - \sqrt {b d x^{2} + b c x + a d x + a c}\right )} b d - \sqrt {b d} b c - \sqrt {b d} a d \right |}\right ) \mathrm {sgn}\left (d x + c\right )}{b d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.20, size = 31, normalized size = 0.76 \begin {gather*} \frac {2\,\mathrm {atanh}\left (\frac {\sqrt {d}\,\sqrt {\frac {a+b\,x}{c+d\,x}}}{\sqrt {b}}\right )}{\sqrt {b}\,\sqrt {d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________