Optimal. Leaf size=127 \[ -\frac {5 d^2 x \sqrt {d+e x^2}}{96 e^{5/2}}+\frac {5 d x^3 \sqrt {d+e x^2}}{144 e^{3/2}}-\frac {x^5 \sqrt {d+e x^2}}{36 \sqrt {e}}+\frac {5 d^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )}{96 e^3}+\frac {1}{6} x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 127, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {6356, 327, 223,
212} \begin {gather*} \frac {5 d^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )}{96 e^3}-\frac {5 d^2 x \sqrt {d+e x^2}}{96 e^{5/2}}+\frac {5 d x^3 \sqrt {d+e x^2}}{144 e^{3/2}}+\frac {1}{6} x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {x^5 \sqrt {d+e x^2}}{36 \sqrt {e}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rule 327
Rule 6356
Rubi steps
\begin {align*} \int x^5 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \, dx &=\frac {1}{6} x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {1}{6} \sqrt {e} \int \frac {x^6}{\sqrt {d+e x^2}} \, dx\\ &=-\frac {x^5 \sqrt {d+e x^2}}{36 \sqrt {e}}+\frac {1}{6} x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )+\frac {(5 d) \int \frac {x^4}{\sqrt {d+e x^2}} \, dx}{36 \sqrt {e}}\\ &=\frac {5 d x^3 \sqrt {d+e x^2}}{144 e^{3/2}}-\frac {x^5 \sqrt {d+e x^2}}{36 \sqrt {e}}+\frac {1}{6} x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {\left (5 d^2\right ) \int \frac {x^2}{\sqrt {d+e x^2}} \, dx}{48 e^{3/2}}\\ &=-\frac {5 d^2 x \sqrt {d+e x^2}}{96 e^{5/2}}+\frac {5 d x^3 \sqrt {d+e x^2}}{144 e^{3/2}}-\frac {x^5 \sqrt {d+e x^2}}{36 \sqrt {e}}+\frac {1}{6} x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )+\frac {\left (5 d^3\right ) \int \frac {1}{\sqrt {d+e x^2}} \, dx}{96 e^{5/2}}\\ &=-\frac {5 d^2 x \sqrt {d+e x^2}}{96 e^{5/2}}+\frac {5 d x^3 \sqrt {d+e x^2}}{144 e^{3/2}}-\frac {x^5 \sqrt {d+e x^2}}{36 \sqrt {e}}+\frac {1}{6} x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )+\frac {\left (5 d^3\right ) \text {Subst}\left (\int \frac {1}{1-e x^2} \, dx,x,\frac {x}{\sqrt {d+e x^2}}\right )}{96 e^{5/2}}\\ &=-\frac {5 d^2 x \sqrt {d+e x^2}}{96 e^{5/2}}+\frac {5 d x^3 \sqrt {d+e x^2}}{144 e^{3/2}}-\frac {x^5 \sqrt {d+e x^2}}{36 \sqrt {e}}+\frac {5 d^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )}{96 e^3}+\frac {1}{6} x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 99, normalized size = 0.78 \begin {gather*} \frac {\sqrt {e} x \sqrt {d+e x^2} \left (-15 d^2+10 d e x^2-8 e^2 x^4\right )+48 e^3 x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )+15 d^3 \log \left (\sqrt {e} x+\sqrt {d+e x^2}\right )}{288 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(252\) vs.
\(2(97)=194\).
time = 0.04, size = 253, normalized size = 1.99
method | result | size |
default | \(\frac {x^{6} \arctanh \left (\frac {x \sqrt {e}}{\sqrt {e \,x^{2}+d}}\right )}{6}+\frac {e^{\frac {3}{2}} \left (\frac {x^{7} \sqrt {e \,x^{2}+d}}{8 e}-\frac {7 d \left (\frac {x^{5} \sqrt {e \,x^{2}+d}}{6 e}-\frac {5 d \left (\frac {x^{3} \sqrt {e \,x^{2}+d}}{4 e}-\frac {3 d \left (\frac {x \sqrt {e \,x^{2}+d}}{2 e}-\frac {d \ln \left (x \sqrt {e}+\sqrt {e \,x^{2}+d}\right )}{2 e^{\frac {3}{2}}}\right )}{4 e}\right )}{6 e}\right )}{8 e}\right )}{6 d}-\frac {\sqrt {e}\, \left (\frac {x^{5} \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{8 e}-\frac {5 d \left (\frac {x^{3} \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{6 e}-\frac {d \left (\frac {x \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{4 e}-\frac {d \left (\frac {x \sqrt {e \,x^{2}+d}}{2}+\frac {d \ln \left (x \sqrt {e}+\sqrt {e \,x^{2}+d}\right )}{2 \sqrt {e}}\right )}{4 e}\right )}{2 e}\right )}{8 e}\right )}{6 d}\) | \(253\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \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. 380 vs.
\(2 (96) = 192\).
time = 0.35, size = 380, normalized size = 2.99 \begin {gather*} \frac {3 \, {\left (16 \, x^{6} \cosh \left (\frac {1}{2}\right )^{6} + 96 \, x^{6} \cosh \left (\frac {1}{2}\right )^{5} \sinh \left (\frac {1}{2}\right ) + 240 \, x^{6} \cosh \left (\frac {1}{2}\right )^{4} \sinh \left (\frac {1}{2}\right )^{2} + 320 \, x^{6} \cosh \left (\frac {1}{2}\right )^{3} \sinh \left (\frac {1}{2}\right )^{3} + 240 \, x^{6} \cosh \left (\frac {1}{2}\right )^{2} \sinh \left (\frac {1}{2}\right )^{4} + 96 \, x^{6} \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right )^{5} + 16 \, x^{6} \sinh \left (\frac {1}{2}\right )^{6} + 5 \, d^{3}\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 \, {\left (8 \, x^{5} \cosh \left (\frac {1}{2}\right )^{5} + 40 \, x^{5} \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right )^{4} + 8 \, x^{5} \sinh \left (\frac {1}{2}\right )^{5} - 10 \, d x^{3} \cosh \left (\frac {1}{2}\right )^{3} + 15 \, d^{2} x \cosh \left (\frac {1}{2}\right ) + 10 \, {\left (8 \, x^{5} \cosh \left (\frac {1}{2}\right )^{2} - d x^{3}\right )} \sinh \left (\frac {1}{2}\right )^{3} + 10 \, {\left (8 \, x^{5} \cosh \left (\frac {1}{2}\right )^{3} - 3 \, d x^{3} \cosh \left (\frac {1}{2}\right )\right )} \sinh \left (\frac {1}{2}\right )^{2} + 5 \, {\left (8 \, x^{5} \cosh \left (\frac {1}{2}\right )^{4} - 6 \, d x^{3} \cosh \left (\frac {1}{2}\right )^{2} + 3 \, d^{2} x\right )} \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 )}}}{576 \, {\left (\cosh \left (\frac {1}{2}\right )^{6} + 6 \, \cosh \left (\frac {1}{2}\right )^{5} \sinh \left (\frac {1}{2}\right ) + 15 \, \cosh \left (\frac {1}{2}\right )^{4} \sinh \left (\frac {1}{2}\right )^{2} + 20 \, \cosh \left (\frac {1}{2}\right )^{3} \sinh \left (\frac {1}{2}\right )^{3} + 15 \, \cosh \left (\frac {1}{2}\right )^{2} \sinh \left (\frac {1}{2}\right )^{4} + 6 \, \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right )^{5} + \sinh \left (\frac {1}{2}\right )^{6}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.64, size = 121, normalized size = 0.95 \begin {gather*} \begin {cases} \frac {5 d^{3} \operatorname {atanh}{\left (\frac {\sqrt {e} x}{\sqrt {d + e x^{2}}} \right )}}{96 e^{3}} - \frac {5 d^{2} x \sqrt {d + e x^{2}}}{96 e^{\frac {5}{2}}} + \frac {5 d x^{3} \sqrt {d + e x^{2}}}{144 e^{\frac {3}{2}}} + \frac {x^{6} \operatorname {atanh}{\left (\frac {\sqrt {e} x}{\sqrt {d + e x^{2}}} \right )}}{6} - \frac {x^{5} \sqrt {d + e x^{2}}}{36 \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 [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^5\,\mathrm {atanh}\left (\frac {\sqrt {e}\,x}{\sqrt {e\,x^2+d}}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________