Optimal. Leaf size=76 \[ \frac {\sqrt {\frac {a+b x}{c+d x}} (c+d x)}{d}-\frac {(b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {a+b x}{c+d x}}}{\sqrt {b}}\right )}{\sqrt {b} d^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {1979, 294, 214}
\begin {gather*} \frac {(c+d x) \sqrt {\frac {a+b x}{c+d x}}}{d}-\frac {(b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {a+b x}{c+d x}}}{\sqrt {b}}\right )}{\sqrt {b} d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 294
Rule 1979
Rubi steps
\begin {align*} \int \sqrt {\frac {a+b x}{c+d x}} \, dx &=(2 (b c-a d)) \text {Subst}\left (\int \frac {x^2}{\left (b-d x^2\right )^2} \, dx,x,\sqrt {\frac {a+b x}{c+d x}}\right )\\ &=\frac {\sqrt {\frac {a+b x}{c+d x}} (c+d x)}{d}-\frac {(b c-a d) \text {Subst}\left (\int \frac {1}{b-d x^2} \, dx,x,\sqrt {\frac {a+b x}{c+d x}}\right )}{d}\\ &=\frac {\sqrt {\frac {a+b x}{c+d x}} (c+d x)}{d}-\frac {(b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {a+b x}{c+d x}}}{\sqrt {b}}\right )}{\sqrt {b} d^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 114, normalized size = 1.50 \begin {gather*} \frac {\sqrt {\frac {a+b x}{c+d x}} \left (\sqrt {\frac {b}{d}} d \sqrt {a+b x} (c+d x)+(b c-a d) \sqrt {c+d x} \log \left (\sqrt {a+b x}-\sqrt {\frac {b}{d}} \sqrt {c+d x}\right )\right )}{\sqrt {\frac {b}{d}} d^2 \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. \(151\) vs.
\(2(64)=128\).
time = 0.05, size = 152, normalized size = 2.00
method | result | size |
default | \(\frac {\sqrt {\frac {b x +a}{d x +c}}\, \left (d x +c \right ) \left (\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 ) a d -\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 ) b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}\right )}{2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, d \sqrt {b d}}\) | \(152\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 118, normalized size = 1.55 \begin {gather*} \frac {{\left (b c - a d\right )} \sqrt {\frac {b x + a}{d x + c}}}{b d - \frac {{\left (b x + a\right )} d^{2}}{d x + c}} + \frac {{\left (b c - a d\right )} \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 )}{2 \, \sqrt {b d} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 180, normalized size = 2.37 \begin {gather*} \left [-\frac {{\left (b c - a d\right )} \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 ) - 2 \, {\left (b d^{2} x + b c d\right )} \sqrt {\frac {b x + a}{d x + c}}}{2 \, b d^{2}}, \frac {{\left (b c - a d\right )} \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 ) + {\left (b d^{2} x + b c d\right )} \sqrt {\frac {b x + a}{d x + c}}}{b d^{2}}\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 \sqrt {\frac {a + b x}{c + d x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.28, size = 119, normalized size = 1.57 \begin {gather*} \frac {\sqrt {b d x^{2} + b c x + a d x + a c} \mathrm {sgn}\left (d x + c\right )}{d} + \frac {{\left (b c \mathrm {sgn}\left (d x + c\right ) - a d \mathrm {sgn}\left (d x + c\right )\right )} \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 )}{2 \, b d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.27, size = 90, normalized size = 1.18 \begin {gather*} \frac {\mathrm {atanh}\left (\frac {\sqrt {d}\,\sqrt {\frac {a+b\,x}{c+d\,x}}}{\sqrt {b}}\right )\,\left (a\,d-b\,c\right )}{\sqrt {b}\,d^{3/2}}+\frac {\left (a\,d-b\,c\right )\,\sqrt {\frac {a+b\,x}{c+d\,x}}}{b\,d\,\left (\frac {d\,\left (a+b\,x\right )}{b\,\left (c+d\,x\right )}-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________