Optimal. Leaf size=147 \[ -\frac{a f^2 \sqrt{f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x}}{2 e \left (f \sqrt{a+\frac{e^2 x^2}{f^2}}+e x\right )}+\frac{\left (f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x\right )^{3/2}}{3 e}-\frac{a f^2 \tanh ^{-1}\left (\frac{\sqrt{f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x}}{\sqrt{d}}\right )}{2 \sqrt{d} e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.122284, antiderivative size = 147, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185, Rules used = {2117, 897, 1257, 1153, 206} \[ -\frac{a f^2 \sqrt{f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x}}{2 e \left (f \sqrt{a+\frac{e^2 x^2}{f^2}}+e x\right )}+\frac{\left (f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x\right )^{3/2}}{3 e}-\frac{a f^2 \tanh ^{-1}\left (\frac{\sqrt{f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x}}{\sqrt{d}}\right )}{2 \sqrt{d} e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2117
Rule 897
Rule 1257
Rule 1153
Rule 206
Rubi steps
\begin{align*} \int \sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\sqrt{x} \left (d^2+a f^2-2 d x+x^2\right )}{(d-x)^2} \, dx,x,d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}\right )}{2 e}\\ &=\frac{\operatorname{Subst}\left (\int \frac{x^2 \left (d^2+a f^2-2 d x^2+x^4\right )}{\left (d-x^2\right )^2} \, dx,x,\sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}\right )}{e}\\ &=-\frac{a f^2 \sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}}{2 e \left (e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}\right )}+\frac{\operatorname{Subst}\left (\int \frac{-a f^2+2 d x^2-2 x^4}{d-x^2} \, dx,x,\sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}\right )}{2 e}\\ &=-\frac{a f^2 \sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}}{2 e \left (e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}\right )}+\frac{\operatorname{Subst}\left (\int \left (2 x^2-\frac{a f^2}{d-x^2}\right ) \, dx,x,\sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}\right )}{2 e}\\ &=-\frac{a f^2 \sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}}{2 e \left (e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}\right )}+\frac{\left (d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}\right )^{3/2}}{3 e}-\frac{\left (a f^2\right ) \operatorname{Subst}\left (\int \frac{1}{d-x^2} \, dx,x,\sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}\right )}{2 e}\\ &=-\frac{a f^2 \sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}}{2 e \left (e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}\right )}+\frac{\left (d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}\right )^{3/2}}{3 e}-\frac{a f^2 \tanh ^{-1}\left (\frac{\sqrt{d+e x+f \sqrt{a+\frac{e^2 x^2}{f^2}}}}{\sqrt{d}}\right )}{2 \sqrt{d} e}\\ \end{align*}
Mathematica [A] time = 0.329926, size = 139, normalized size = 0.95 \[ -\frac{\frac{a f^2 \sqrt{f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x}}{f \sqrt{a+\frac{e^2 x^2}{f^2}}+e x}-\frac{2}{3} \left (f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x\right )^{3/2}+\frac{a f^2 \tanh ^{-1}\left (\frac{\sqrt{f \sqrt{a+\frac{e^2 x^2}{f^2}}+d+e x}}{\sqrt{d}}\right )}{\sqrt{d}}}{2 e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.007, size = 0, normalized size = 0. \begin{align*} \int \sqrt{d+ex+f\sqrt{a+{\frac{{e}^{2}{x}^{2}}{{f}^{2}}}}}\, dx \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 \sqrt{e x + \sqrt{\frac{e^{2} x^{2}}{f^{2}} + a} f + d}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.36777, size = 664, normalized size = 4.52 \begin{align*} \left [\frac{3 \, a \sqrt{d} f^{2} \log \left (a f^{2} - 2 \, d e x + 2 \, d f \sqrt{\frac{e^{2} x^{2} + a f^{2}}{f^{2}}} + 2 \,{\left (\sqrt{d} e x - \sqrt{d} f \sqrt{\frac{e^{2} x^{2} + a f^{2}}{f^{2}}}\right )} \sqrt{e x + f \sqrt{\frac{e^{2} x^{2} + a f^{2}}{f^{2}}} + d}\right ) + 2 \,{\left (5 \, d e x - d f \sqrt{\frac{e^{2} x^{2} + a f^{2}}{f^{2}}} + 2 \, d^{2}\right )} \sqrt{e x + f \sqrt{\frac{e^{2} x^{2} + a f^{2}}{f^{2}}} + d}}{12 \, d e}, \frac{3 \, a \sqrt{-d} f^{2} \arctan \left (\frac{\sqrt{e x + f \sqrt{\frac{e^{2} x^{2} + a f^{2}}{f^{2}}} + d} \sqrt{-d}}{d}\right ) +{\left (5 \, d e x - d f \sqrt{\frac{e^{2} x^{2} + a f^{2}}{f^{2}}} + 2 \, d^{2}\right )} \sqrt{e x + f \sqrt{\frac{e^{2} x^{2} + a f^{2}}{f^{2}}} + d}}{6 \, d e}\right ] \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 \sqrt{d + e x + f \sqrt{a + \frac{e^{2} x^{2}}{f^{2}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{e x + \sqrt{\frac{e^{2} x^{2}}{f^{2}} + a} f + d}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]