Optimal. Leaf size=24 \[ \frac {2 \tan ^{-1}\left (\sqrt {\frac {a+b x}{c-b x}}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {1983, 12, 209}
\begin {gather*} \frac {2 \text {ArcTan}\left (\sqrt {\frac {a+b x}{c-b x}}\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 209
Rule 1983
Rubi steps
\begin {align*} \int \frac {\sqrt {\frac {a+b x}{c-b x}}}{a+b x} \, dx &=(2 b (a+c)) \text {Subst}\left (\int \frac {1}{b^2 (a+c) \left (1+x^2\right )} \, dx,x,\sqrt {\frac {a+b x}{c-b x}}\right )\\ &=\frac {2 \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\frac {a+b x}{c-b x}}\right )}{b}\\ &=\frac {2 \tan ^{-1}\left (\sqrt {\frac {a+b x}{c-b x}}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(63\) vs. \(2(24)=48\).
time = 0.07, size = 63, normalized size = 2.62 \begin {gather*} -\frac {2 \sqrt {c-b x} \sqrt {\frac {a+b x}{c-b x}} \tan ^{-1}\left (\frac {\sqrt {c-b x}}{\sqrt {a+b x}}\right )}{b \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. \(84\) vs.
\(2(22)=44\).
time = 0.36, size = 85, normalized size = 3.54
method | result | size |
default | \(-\frac {\arctan \left (\frac {\sqrt {b^{2}}\, \left (2 b x +a -c \right )}{2 b \sqrt {-\left (b x +a \right ) \left (b x -c \right )}}\right ) \left (b x -c \right ) \sqrt {-\frac {b x +a}{b x -c}}}{\sqrt {b^{2}}\, \sqrt {-\left (b x +a \right ) \left (b x -c \right )}}\) | \(85\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 24, normalized size = 1.00 \begin {gather*} \frac {2 \, \arctan \left (\sqrt {-\frac {b x + a}{b x - c}}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 24, normalized size = 1.00 \begin {gather*} \frac {2 \, \arctan \left (\sqrt {-\frac {b x + a}{b x - c}}\right )}{b} \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}{- b x + c}}}{a + b x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.86, size = 41, normalized size = 1.71 \begin {gather*} -\frac {\arcsin \left (-\frac {2 \, b x + a - c}{a + c}\right ) \mathrm {sgn}\left (-a b - b c\right ) \mathrm {sgn}\left (b x - c\right )}{{\left | b \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.18, size = 36, normalized size = 1.50 \begin {gather*} -\frac {2\,\sqrt {-b}\,\mathrm {atanh}\left (\frac {\sqrt {-b}\,\sqrt {\frac {a+b\,x}{c-b\,x}}}{\sqrt {b}}\right )}{b^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________