Optimal. Leaf size=119 \[ -\frac {4 (5+c) \sqrt {b+a x} \sqrt {c+\sqrt {b+a x}}}{15 a}-\frac {4 \left (15+3 b+5 c-2 c^2+3 a x\right ) \sqrt {c+\sqrt {b+a x}}}{15 a}-\frac {4 \sqrt {-1-c} \text {ArcTan}\left (\frac {\sqrt {-1-c} \sqrt {c+\sqrt {b+a x}}}{1+c}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 106, normalized size of antiderivative = 0.89, number of steps
used = 7, number of rules used = 6, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {527, 457, 90,
52, 65, 212} \begin {gather*} -\frac {4 \left (\sqrt {a x+b}+c\right )^{5/2}}{5 a}-\frac {4 (1-c) \left (\sqrt {a x+b}+c\right )^{3/2}}{3 a}-\frac {4 \sqrt {\sqrt {a x+b}+c}}{a}+\frac {4 \sqrt {c+1} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a x+b}+c}}{\sqrt {c+1}}\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 90
Rule 212
Rule 457
Rule 527
Rubi steps
\begin {align*} \int \frac {\sqrt {b+a x} \sqrt {c+\sqrt {b+a x}}}{1-\sqrt {b+a x}} \, dx &=\frac {\text {Subst}\left (\int \frac {\sqrt {c+\sqrt {x}} \sqrt {x}}{1-\sqrt {x}} \, dx,x,b+a x\right )}{a}\\ &=\frac {2 \text {Subst}\left (\int \frac {x^2 \sqrt {c+x}}{1-x} \, dx,x,\sqrt {b+a x}\right )}{a}\\ &=\frac {2 \text {Subst}\left (\int \left ((-1+c) \sqrt {c+x}+\frac {\sqrt {c+x}}{1-x}-(c+x)^{3/2}\right ) \, dx,x,\sqrt {b+a x}\right )}{a}\\ &=-\frac {4 (1-c) \left (c+\sqrt {b+a x}\right )^{3/2}}{3 a}-\frac {4 \left (c+\sqrt {b+a x}\right )^{5/2}}{5 a}+\frac {2 \text {Subst}\left (\int \frac {\sqrt {c+x}}{1-x} \, dx,x,\sqrt {b+a x}\right )}{a}\\ &=-\frac {4 \sqrt {c+\sqrt {b+a x}}}{a}-\frac {4 (1-c) \left (c+\sqrt {b+a x}\right )^{3/2}}{3 a}-\frac {4 \left (c+\sqrt {b+a x}\right )^{5/2}}{5 a}+\frac {(2 (1+c)) \text {Subst}\left (\int \frac {1}{(1-x) \sqrt {c+x}} \, dx,x,\sqrt {b+a x}\right )}{a}\\ &=-\frac {4 \sqrt {c+\sqrt {b+a x}}}{a}-\frac {4 (1-c) \left (c+\sqrt {b+a x}\right )^{3/2}}{3 a}-\frac {4 \left (c+\sqrt {b+a x}\right )^{5/2}}{5 a}+\frac {(4 (1+c)) \text {Subst}\left (\int \frac {1}{1+c-x^2} \, dx,x,\sqrt {c+\sqrt {b+a x}}\right )}{a}\\ &=-\frac {4 \sqrt {c+\sqrt {b+a x}}}{a}-\frac {4 (1-c) \left (c+\sqrt {b+a x}\right )^{3/2}}{3 a}-\frac {4 \left (c+\sqrt {b+a x}\right )^{5/2}}{5 a}+\frac {4 \sqrt {1+c} \tanh ^{-1}\left (\frac {\sqrt {c+\sqrt {b+a x}}}{\sqrt {1+c}}\right )}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.20, size = 100, normalized size = 0.84 \begin {gather*} \frac {-4 \sqrt {c+\sqrt {b+a x}} \left (15+3 b-2 c^2+3 a x+5 \sqrt {b+a x}+c \left (5+\sqrt {b+a x}\right )\right )+60 \sqrt {-1-c} \text {ArcTan}\left (\frac {\sqrt {c+\sqrt {b+a x}}}{\sqrt {-1-c}}\right )}{15 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 85, normalized size = 0.71
method | result | size |
derivativedivides | \(-\frac {2 \left (\frac {2 \left (c +\sqrt {a x +b}\right )^{\frac {5}{2}}}{5}-\frac {2 c \left (c +\sqrt {a x +b}\right )^{\frac {3}{2}}}{3}+\frac {2 \left (c +\sqrt {a x +b}\right )^{\frac {3}{2}}}{3}+2 \sqrt {c +\sqrt {a x +b}}-2 \sqrt {1+c}\, \arctanh \left (\frac {\sqrt {c +\sqrt {a x +b}}}{\sqrt {1+c}}\right )\right )}{a}\) | \(85\) |
default | \(-\frac {2 \left (\frac {2 \left (c +\sqrt {a x +b}\right )^{\frac {5}{2}}}{5}-\frac {2 c \left (c +\sqrt {a x +b}\right )^{\frac {3}{2}}}{3}+\frac {2 \left (c +\sqrt {a x +b}\right )^{\frac {3}{2}}}{3}+2 \sqrt {c +\sqrt {a x +b}}-2 \sqrt {1+c}\, \arctanh \left (\frac {\sqrt {c +\sqrt {a x +b}}}{\sqrt {1+c}}\right )\right )}{a}\) | \(85\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 95, normalized size = 0.80 \begin {gather*} -\frac {2 \, {\left (6 \, {\left (c + \sqrt {a x + b}\right )}^{\frac {5}{2}} - 10 \, {\left (c + \sqrt {a x + b}\right )}^{\frac {3}{2}} {\left (c - 1\right )} + 15 \, \sqrt {c + 1} \log \left (\frac {\sqrt {c + \sqrt {a x + b}} - \sqrt {c + 1}}{\sqrt {c + \sqrt {a x + b}} + \sqrt {c + 1}}\right ) + 30 \, \sqrt {c + \sqrt {a x + b}}\right )}}{15 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 200, normalized size = 1.68 \begin {gather*} \left [\frac {2 \, {\left (2 \, {\left (2 \, c^{2} - 3 \, a x - \sqrt {a x + b} {\left (c + 5\right )} - 3 \, b - 5 \, c - 15\right )} \sqrt {c + \sqrt {a x + b}} + 15 \, \sqrt {c + 1} \log \left (\frac {a x + 2 \, {\left (\sqrt {a x + b} \sqrt {c + 1} + \sqrt {c + 1}\right )} \sqrt {c + \sqrt {a x + b}} + 2 \, \sqrt {a x + b} {\left (c + 1\right )} + b + 2 \, c + 1}{a x + b - 1}\right )\right )}}{15 \, a}, \frac {4 \, {\left ({\left (2 \, c^{2} - 3 \, a x - \sqrt {a x + b} {\left (c + 5\right )} - 3 \, b - 5 \, c - 15\right )} \sqrt {c + \sqrt {a x + b}} - 15 \, \sqrt {-c - 1} \arctan \left (\frac {\sqrt {c + \sqrt {a x + b}} \sqrt {-c - 1}}{c + 1}\right )\right )}}{15 \, a}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.55, size = 90, normalized size = 0.76 \begin {gather*} \frac {2 \cdot \left (\frac {2 \left (c - 1\right ) \left (c + \sqrt {a x + b}\right )^{\frac {3}{2}}}{3} - \frac {2 \left (c + \sqrt {a x + b}\right )^{\frac {5}{2}}}{5} - 2 \sqrt {c + \sqrt {a x + b}} - \frac {2 \left (c + 1\right ) \operatorname {atan}{\left (\frac {\sqrt {c + \sqrt {a x + b}}}{\sqrt {- c - 1}} \right )}}{\sqrt {- c - 1}}\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 107, normalized size = 0.90 \begin {gather*} -\frac {4 \, {\left (c + 1\right )} \arctan \left (\frac {\sqrt {c + \sqrt {a x + b}}}{\sqrt {-c - 1}}\right )}{a \sqrt {-c - 1}} - \frac {4 \, {\left (3 \, a^{4} {\left (c + \sqrt {a x + b}\right )}^{\frac {5}{2}} - 5 \, a^{4} {\left (c + \sqrt {a x + b}\right )}^{\frac {3}{2}} c + 5 \, a^{4} {\left (c + \sqrt {a x + b}\right )}^{\frac {3}{2}} + 15 \, a^{4} \sqrt {c + \sqrt {a x + b}}\right )}}{15 \, a^{5}} \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 {c+\sqrt {b+a\,x}}\,\sqrt {b+a\,x}}{\sqrt {b+a\,x}-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________