Optimal. Leaf size=116 \[ 4 \sqrt{a+b \sqrt{c+d x}}-2 \sqrt{a-b \sqrt{c}} \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{c+d x}}}{\sqrt{a-b \sqrt{c}}}\right )-2 \sqrt{a+b \sqrt{c}} \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{c+d x}}}{\sqrt{a+b \sqrt{c}}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.155936, antiderivative size = 116, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {371, 1398, 825, 827, 1166, 207} \[ 4 \sqrt{a+b \sqrt{c+d x}}-2 \sqrt{a-b \sqrt{c}} \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{c+d x}}}{\sqrt{a-b \sqrt{c}}}\right )-2 \sqrt{a+b \sqrt{c}} \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{c+d x}}}{\sqrt{a+b \sqrt{c}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 1398
Rule 825
Rule 827
Rule 1166
Rule 207
Rubi steps
\begin{align*} \int \frac{\sqrt{a+b \sqrt{c+d x}}}{x} \, dx &=\operatorname{Subst}\left (\int \frac{\sqrt{a+b \sqrt{x}}}{-c+x} \, dx,x,c+d x\right )\\ &=2 \operatorname{Subst}\left (\int \frac{x \sqrt{a+b x}}{-c+x^2} \, dx,x,\sqrt{c+d x}\right )\\ &=4 \sqrt{a+b \sqrt{c+d x}}+2 \operatorname{Subst}\left (\int \frac{b c+a x}{\sqrt{a+b x} \left (-c+x^2\right )} \, dx,x,\sqrt{c+d x}\right )\\ &=4 \sqrt{a+b \sqrt{c+d x}}+4 \operatorname{Subst}\left (\int \frac{-a^2+b^2 c+a x^2}{a^2-b^2 c-2 a x^2+x^4} \, dx,x,\sqrt{a+b \sqrt{c+d x}}\right )\\ &=4 \sqrt{a+b \sqrt{c+d x}}+\left (2 \left (a-b \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-a+b \sqrt{c}+x^2} \, dx,x,\sqrt{a+b \sqrt{c+d x}}\right )+\left (2 \left (a+b \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-a-b \sqrt{c}+x^2} \, dx,x,\sqrt{a+b \sqrt{c+d x}}\right )\\ &=4 \sqrt{a+b \sqrt{c+d x}}-2 \sqrt{a-b \sqrt{c}} \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{c+d x}}}{\sqrt{a-b \sqrt{c}}}\right )-2 \sqrt{a+b \sqrt{c}} \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{c+d x}}}{\sqrt{a+b \sqrt{c}}}\right )\\ \end{align*}
Mathematica [A] time = 0.135855, size = 116, normalized size = 1. \[ 4 \sqrt{a+b \sqrt{c+d x}}-2 \sqrt{a-b \sqrt{c}} \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{c+d x}}}{\sqrt{a-b \sqrt{c}}}\right )-2 \sqrt{a+b \sqrt{c}} \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{c+d x}}}{\sqrt{a+b \sqrt{c}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.035, size = 221, normalized size = 1.9 \begin{align*} 4\,\sqrt{a+b\sqrt{dx+c}}+2\,{\frac{{b}^{2}c}{\sqrt{{b}^{2}c}\sqrt{-\sqrt{{b}^{2}c}-a}}\arctan \left ({\frac{\sqrt{a+b\sqrt{dx+c}}}{\sqrt{-\sqrt{{b}^{2}c}-a}}} \right ) }+2\,{\frac{a}{\sqrt{-\sqrt{{b}^{2}c}-a}}\arctan \left ({\frac{\sqrt{a+b\sqrt{dx+c}}}{\sqrt{-\sqrt{{b}^{2}c}-a}}} \right ) }-2\,{\frac{{b}^{2}c}{\sqrt{{b}^{2}c}\sqrt{\sqrt{{b}^{2}c}-a}}\arctan \left ({\frac{\sqrt{a+b\sqrt{dx+c}}}{\sqrt{\sqrt{{b}^{2}c}-a}}} \right ) }+2\,{\frac{a}{\sqrt{\sqrt{{b}^{2}c}-a}}\arctan \left ({\frac{\sqrt{a+b\sqrt{dx+c}}}{\sqrt{\sqrt{{b}^{2}c}-a}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{\sqrt{d x + c} b + a}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.51916, size = 489, normalized size = 4.22 \begin{align*} -\sqrt{a + \sqrt{b^{2} c}} \log \left (2 \, \sqrt{\sqrt{d x + c} b + a} + 2 \, \sqrt{a + \sqrt{b^{2} c}}\right ) + \sqrt{a + \sqrt{b^{2} c}} \log \left (2 \, \sqrt{\sqrt{d x + c} b + a} - 2 \, \sqrt{a + \sqrt{b^{2} c}}\right ) - \sqrt{a - \sqrt{b^{2} c}} \log \left (2 \, \sqrt{\sqrt{d x + c} b + a} + 2 \, \sqrt{a - \sqrt{b^{2} c}}\right ) + \sqrt{a - \sqrt{b^{2} c}} \log \left (2 \, \sqrt{\sqrt{d x + c} b + a} - 2 \, \sqrt{a - \sqrt{b^{2} c}}\right ) + 4 \, \sqrt{\sqrt{d x + c} b + a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a + b \sqrt{c + d x}}}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]