Optimal. Leaf size=118 \[ \frac {\left (-3+2 b \sqrt {b+a x}\right ) \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}{2 a b^2}+\frac {\left (-3-4 b^3\right ) \log \left (-1-2 b \sqrt {b+a x}+2 \sqrt {b} \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}\right )}{4 a b^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 148, normalized size of antiderivative = 1.25, number of steps
used = 5, number of rules used = 4, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {756, 654, 635,
212} \begin {gather*} \frac {\sqrt {a x+b} \sqrt {b (a x+b)+\sqrt {a x+b}-b^2}}{a b}-\frac {3 \sqrt {b (a x+b)+\sqrt {a x+b}-b^2}}{2 a b^2}+\frac {\left (4 b^3+3\right ) \tanh ^{-1}\left (\frac {2 b \sqrt {a x+b}+1}{2 \sqrt {b} \sqrt {b (a x+b)+\sqrt {a x+b}-b^2}}\right )}{4 a b^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 654
Rule 756
Rubi steps
\begin {align*} \int \frac {\sqrt {b+a x}}{\sqrt {a b x+\sqrt {b+a x}}} \, dx &=\frac {2 \text {Subst}\left (\int \frac {x^2}{\sqrt {-b^2+x+b x^2}} \, dx,x,\sqrt {b+a x}\right )}{a}\\ &=\frac {\sqrt {b+a x} \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}{a b}+\frac {\text {Subst}\left (\int \frac {b^2-\frac {3 x}{2}}{\sqrt {-b^2+x+b x^2}} \, dx,x,\sqrt {b+a x}\right )}{a b}\\ &=-\frac {3 \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}{2 a b^2}+\frac {\sqrt {b+a x} \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}{a b}+\frac {\left (3+4 b^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-b^2+x+b x^2}} \, dx,x,\sqrt {b+a x}\right )}{4 a b^2}\\ &=-\frac {3 \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}{2 a b^2}+\frac {\sqrt {b+a x} \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}{a b}+\frac {\left (3+4 b^3\right ) \text {Subst}\left (\int \frac {1}{4 b-x^2} \, dx,x,\frac {1+2 b \sqrt {b+a x}}{\sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}\right )}{2 a b^2}\\ &=-\frac {3 \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}{2 a b^2}+\frac {\sqrt {b+a x} \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}{a b}+\frac {\left (3+4 b^3\right ) \tanh ^{-1}\left (\frac {1+2 b \sqrt {b+a x}}{2 \sqrt {b} \sqrt {-b^2+\sqrt {b+a x}+b (b+a x)}}\right )}{4 a b^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.22, size = 106, normalized size = 0.90 \begin {gather*} \frac {2 \sqrt {b} \sqrt {a b x+\sqrt {b+a x}} \left (-3+2 b \sqrt {b+a x}\right )-\left (3+4 b^3\right ) \log \left (a b^2 \left (1+2 b \sqrt {b+a x}-2 \sqrt {b} \sqrt {a b x+\sqrt {b+a x}}\right )\right )}{4 a b^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 161, normalized size = 1.36
method | result | size |
derivativedivides | \(\frac {\frac {\sqrt {a x +b}\, \sqrt {-b^{2}+\sqrt {a x +b}+b \left (a x +b \right )}}{b}-\frac {3 \left (\frac {\sqrt {-b^{2}+\sqrt {a x +b}+b \left (a x +b \right )}}{b}-\frac {\ln \left (\frac {\frac {1}{2}+b \sqrt {a x +b}}{\sqrt {b}}+\sqrt {-b^{2}+\sqrt {a x +b}+b \left (a x +b \right )}\right )}{2 b^{\frac {3}{2}}}\right )}{2 b}+\sqrt {b}\, \ln \left (\frac {\frac {1}{2}+b \sqrt {a x +b}}{\sqrt {b}}+\sqrt {-b^{2}+\sqrt {a x +b}+b \left (a x +b \right )}\right )}{a}\) | \(161\) |
default | \(\frac {\frac {\sqrt {a x +b}\, \sqrt {-b^{2}+\sqrt {a x +b}+b \left (a x +b \right )}}{b}-\frac {3 \left (\frac {\sqrt {-b^{2}+\sqrt {a x +b}+b \left (a x +b \right )}}{b}-\frac {\ln \left (\frac {\frac {1}{2}+b \sqrt {a x +b}}{\sqrt {b}}+\sqrt {-b^{2}+\sqrt {a x +b}+b \left (a x +b \right )}\right )}{2 b^{\frac {3}{2}}}\right )}{2 b}+\sqrt {b}\, \ln \left (\frac {\frac {1}{2}+b \sqrt {a x +b}}{\sqrt {b}}+\sqrt {-b^{2}+\sqrt {a x +b}+b \left (a x +b \right )}\right )}{a}\) | \(161\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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 {a x + b}}{\sqrt {a b x + \sqrt {a x + b}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {b+a\,x}}{\sqrt {\sqrt {b+a\,x}+a\,b\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________