Optimal. Leaf size=57 \[ b^2 d x+4 a b \sqrt {c+d x}-4 a b \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x}}{\sqrt {c}}\right )+\left (a^2+b^2 c\right ) \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.316, Rules used = {378, 1412, 815,
649, 213, 266} \begin {gather*} \log (x) \left (a^2+b^2 c\right )+4 a b \sqrt {c+d x}-4 a b \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x}}{\sqrt {c}}\right )+b^2 d x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 213
Rule 266
Rule 378
Rule 649
Rule 815
Rule 1412
Rubi steps
\begin {align*} \int \frac {\left (a+b \sqrt {c+d x}\right )^2}{x} \, dx &=\text {Subst}\left (\int \frac {\left (a+b \sqrt {x}\right )^2}{-c+x} \, dx,x,c+d x\right )\\ &=2 \text {Subst}\left (\int \frac {x (a+b x)^2}{-c+x^2} \, dx,x,\sqrt {c+d x}\right )\\ &=2 \text {Subst}\left (\int \left (2 a b+b^2 x+\frac {2 a b c+\left (a^2+b^2 c\right ) x}{-c+x^2}\right ) \, dx,x,\sqrt {c+d x}\right )\\ &=b^2 d x+4 a b \sqrt {c+d x}+2 \text {Subst}\left (\int \frac {2 a b c+\left (a^2+b^2 c\right ) x}{-c+x^2} \, dx,x,\sqrt {c+d x}\right )\\ &=b^2 d x+4 a b \sqrt {c+d x}+(4 a b c) \text {Subst}\left (\int \frac {1}{-c+x^2} \, dx,x,\sqrt {c+d x}\right )+\left (2 \left (a^2+b^2 c\right )\right ) \text {Subst}\left (\int \frac {x}{-c+x^2} \, dx,x,\sqrt {c+d x}\right )\\ &=b^2 d x+4 a b \sqrt {c+d x}-4 a b \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x}}{\sqrt {c}}\right )+\left (a^2+b^2 c\right ) \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 63, normalized size = 1.11 \begin {gather*} b \left (b c+b d x+4 a \sqrt {c+d x}\right )-4 a b \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x}}{\sqrt {c}}\right )+\left (a^2+b^2 c\right ) \log (-d x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.30, size = 51, normalized size = 0.89
method | result | size |
default | \(b^{2} \left (d x +c \ln \left (x \right )\right )+2 a b \left (2 \sqrt {d x +c}-2 \sqrt {c}\, \arctanh \left (\frac {\sqrt {d x +c}}{\sqrt {c}}\right )\right )+a^{2} \ln \left (x \right )\) | \(51\) |
derivativedivides | \(\left (d x +c \right ) b^{2}+4 a b \sqrt {d x +c}-\left (-b^{2} c -a^{2}\right ) \ln \left (-d x \right )-4 a b \arctanh \left (\frac {\sqrt {d x +c}}{\sqrt {c}}\right ) \sqrt {c}\) | \(60\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 70, normalized size = 1.23 \begin {gather*} 2 \, a b \sqrt {c} \log \left (\frac {\sqrt {d x + c} - \sqrt {c}}{\sqrt {d x + c} + \sqrt {c}}\right ) + {\left (d x + c\right )} b^{2} + 4 \, \sqrt {d x + c} a b + {\left (b^{2} c + a^{2}\right )} \log \left (d x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 118, normalized size = 2.07 \begin {gather*} \left [b^{2} d x + 2 \, a b \sqrt {c} \log \left (\frac {d x - 2 \, \sqrt {d x + c} \sqrt {c} + 2 \, c}{x}\right ) + 4 \, \sqrt {d x + c} a b + {\left (b^{2} c + a^{2}\right )} \log \left (x\right ), b^{2} d x + 4 \, a b \sqrt {-c} \arctan \left (\frac {\sqrt {d x + c} \sqrt {-c}}{c}\right ) + 4 \, \sqrt {d x + c} a b + {\left (b^{2} c + a^{2}\right )} \log \left (x\right )\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 13.60, size = 65, normalized size = 1.14 \begin {gather*} a^{2} \log {\left (x \right )} - 2 a b \left (- \frac {2 c \operatorname {atan}{\left (\frac {\sqrt {c + d x}}{\sqrt {- c}} \right )}}{\sqrt {- c}} - 2 \sqrt {c + d x}\right ) + b^{2} c \log {\left (x \right )} + b^{2} d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.00, size = 59, normalized size = 1.04 \begin {gather*} \frac {4 \, a b c \arctan \left (\frac {\sqrt {d x + c}}{\sqrt {-c}}\right )}{\sqrt {-c}} + {\left (d x + c\right )} b^{2} + 4 \, \sqrt {d x + c} a b + {\left (b^{2} c + a^{2}\right )} \log \left (d x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 130, normalized size = 2.28 \begin {gather*} \ln \left (\left (2\,a^2+2\,c\,b^2\right )\,\sqrt {c+d\,x}-2\,{\left (a+b\,\sqrt {c}\right )}^2\,\sqrt {c+d\,x}+4\,a\,b\,c\right )\,{\left (a+b\,\sqrt {c}\right )}^2+\ln \left (\left (2\,a^2+2\,c\,b^2\right )\,\sqrt {c+d\,x}-2\,{\left (a-b\,\sqrt {c}\right )}^2\,\sqrt {c+d\,x}+4\,a\,b\,c\right )\,{\left (a-b\,\sqrt {c}\right )}^2+4\,a\,b\,\sqrt {c+d\,x}+b^2\,d\,x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________