Optimal. Leaf size=147 \[ \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 d^{3/2} e}-\frac {a f^2 \sqrt {f \sqrt {a+\frac {e^2 x^2}{f^2}}+d+e x}}{2 d e \left (f \sqrt {a+\frac {e^2 x^2}{f^2}}+e x\right )}+\frac {\sqrt {f \sqrt {a+\frac {e^2 x^2}{f^2}}+d+e x}}{e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 147, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2117, 897, 1157, 388, 206} \[ \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 d^{3/2} e}-\frac {a f^2 \sqrt {f \sqrt {a+\frac {e^2 x^2}{f^2}}+d+e x}}{2 d e \left (f \sqrt {a+\frac {e^2 x^2}{f^2}}+e x\right )}+\frac {\sqrt {f \sqrt {a+\frac {e^2 x^2}{f^2}}+d+e x}}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 388
Rule 897
Rule 1157
Rule 2117
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {d+e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {d^2+a f^2-2 d x+x^2}{(d-x)^2 \sqrt {x}} \, dx,x,d+e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}\right )}{2 e}\\ &=\frac {\operatorname {Subst}\left (\int \frac {d^2+a f^2-2 d x^2+x^4}{\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 d e \left (e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}\right )}-\frac {\operatorname {Subst}\left (\int \frac {-2 d^2-a f^2+2 d x^2}{d-x^2} \, dx,x,\sqrt {d+e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}}\right )}{2 d e}\\ &=\frac {\sqrt {d+e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}}}{e}-\frac {a f^2 \sqrt {d+e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}}}{2 d e \left (e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}\right )}+\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 d e}\\ &=\frac {\sqrt {d+e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}}}{e}-\frac {a f^2 \sqrt {d+e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}}}{2 d e \left (e x+f \sqrt {a+\frac {e^2 x^2}{f^2}}\right )}+\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 d^{3/2} e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.25, size = 143, normalized size = 0.97 \[ \frac {\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 d^{3/2}}+\frac {a f^2 \sqrt {f \sqrt {a+\frac {e^2 x^2}{f^2}}+d+e x}}{2 d \left (f \left (-\sqrt {a+\frac {e^2 x^2}{f^2}}\right )-e x\right )}+\sqrt {f \sqrt {a+\frac {e^2 x^2}{f^2}}+d+e x}}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.55, size = 298, normalized size = 2.03 \[ \left [\frac {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 (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}}{4 \, d^{2} e}, -\frac {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 (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}}{2 \, d^{2} e}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {e x + \sqrt {\frac {e^{2} x^{2}}{f^{2}} + a} f + d}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.02, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {e x +d +\sqrt {\frac {e^{2} x^{2}}{f^{2}}+a}\, f}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {e x + \sqrt {\frac {e^{2} x^{2}}{f^{2}} + a} f + d}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{\sqrt {d+e\,x+f\,\sqrt {a+\frac {e^2\,x^2}{f^2}}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {d + e x + f \sqrt {a + \frac {e^{2} x^{2}}{f^{2}}}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________