Optimal. Leaf size=40 \[ -\frac {\sqrt {d+e x^2}}{\sqrt {e}}+x \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {6352, 267}
\begin {gather*} x \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {\sqrt {d+e x^2}}{\sqrt {e}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 267
Rule 6352
Rubi steps
\begin {align*} \int \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \, dx &=x \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\sqrt {e} \int \frac {x}{\sqrt {d+e x^2}} \, dx\\ &=-\frac {\sqrt {d+e x^2}}{\sqrt {e}}+x \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 40, normalized size = 1.00 \begin {gather*} -\frac {\sqrt {d+e x^2}}{\sqrt {e}}+x \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(75\) vs.
\(2(32)=64\).
time = 0.00, size = 76, normalized size = 1.90
method | result | size |
default | \(x \arctanh \left (\frac {x \sqrt {e}}{\sqrt {e \,x^{2}+d}}\right )+\frac {e^{\frac {3}{2}} \left (\frac {x^{2} \sqrt {e \,x^{2}+d}}{3 e}-\frac {2 d \sqrt {e \,x^{2}+d}}{3 e^{2}}\right )}{d}-\frac {\left (e \,x^{2}+d \right )^{\frac {3}{2}}}{3 \sqrt {e}\, d}\) | \(76\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 66 vs.
\(2 (32) = 64\).
time = 0.28, size = 66, normalized size = 1.65 \begin {gather*} x \operatorname {artanh}\left (\frac {x e^{\frac {1}{2}}}{\sqrt {x^{2} e + d}}\right ) - \frac {{\left (x^{2} e + d\right )}^{\frac {3}{2}} e^{\left (-\frac {1}{2}\right )}}{3 \, d} + \frac {{\left ({\left (x^{2} e + d\right )}^{\frac {3}{2}} - 3 \, \sqrt {x^{2} e + d} d\right )} e^{\left (-\frac {1}{2}\right )}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 129 vs.
\(2 (32) = 64\).
time = 0.35, size = 129, normalized size = 3.22 \begin {gather*} \frac {{\left (x \cosh \left (\frac {1}{2}\right ) + x \sinh \left (\frac {1}{2}\right )\right )} \log \left (\frac {2 \, x^{2} \cosh \left (\frac {1}{2}\right )^{2} + 4 \, x^{2} \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right ) + 2 \, x^{2} \sinh \left (\frac {1}{2}\right )^{2} + 2 \, {\left (x \cosh \left (\frac {1}{2}\right ) + x \sinh \left (\frac {1}{2}\right )\right )} \sqrt {\frac {{\left (x^{2} + d\right )} \cosh \left (\frac {1}{2}\right ) + {\left (x^{2} - d\right )} \sinh \left (\frac {1}{2}\right )}{\cosh \left (\frac {1}{2}\right ) - \sinh \left (\frac {1}{2}\right )}} + d}{d}\right ) - 2 \, \sqrt {\frac {{\left (x^{2} + d\right )} \cosh \left (\frac {1}{2}\right ) + {\left (x^{2} - d\right )} \sinh \left (\frac {1}{2}\right )}{\cosh \left (\frac {1}{2}\right ) - \sinh \left (\frac {1}{2}\right )}}}{2 \, {\left (\cosh \left (\frac {1}{2}\right ) + \sinh \left (\frac {1}{2}\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.33, size = 36, normalized size = 0.90 \begin {gather*} \begin {cases} x \operatorname {atanh}{\left (\frac {\sqrt {e} x}{\sqrt {d + e x^{2}}} \right )} - \frac {\sqrt {d + e x^{2}}}{\sqrt {e}} & \text {for}\: e \neq 0 \\0 & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 59, normalized size = 1.48 \begin {gather*} \frac {1}{2} \, x \log \left (-\frac {\frac {\sqrt {e} x}{\sqrt {e x^{2} + d}} + 1}{\frac {\sqrt {e} x}{\sqrt {e x^{2} + d}} - 1}\right ) - \frac {\sqrt {e^{2} x^{2} + d e}}{e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.06, size = 32, normalized size = 0.80 \begin {gather*} x\,\mathrm {atanh}\left (\frac {\sqrt {e}\,x}{\sqrt {e\,x^2+d}}\right )-\frac {\sqrt {e\,x^2+d}}{\sqrt {e}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________