Optimal. Leaf size=114 \[ \frac {d^3 \sqrt {d+e x^2}}{7 e^{7/2}}-\frac {d^2 \left (d+e x^2\right )^{3/2}}{7 e^{7/2}}+\frac {3 d \left (d+e x^2\right )^{5/2}}{35 e^{7/2}}-\frac {\left (d+e x^2\right )^{7/2}}{49 e^{7/2}}+\frac {1}{7} x^7 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {6356, 272, 45}
\begin {gather*} \frac {d^3 \sqrt {d+e x^2}}{7 e^{7/2}}-\frac {d^2 \left (d+e x^2\right )^{3/2}}{7 e^{7/2}}-\frac {\left (d+e x^2\right )^{7/2}}{49 e^{7/2}}+\frac {3 d \left (d+e x^2\right )^{5/2}}{35 e^{7/2}}+\frac {1}{7} x^7 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rule 6356
Rubi steps
\begin {align*} \int x^6 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \, dx &=\frac {1}{7} x^7 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {1}{7} \sqrt {e} \int \frac {x^7}{\sqrt {d+e x^2}} \, dx\\ &=\frac {1}{7} x^7 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {1}{14} \sqrt {e} \text {Subst}\left (\int \frac {x^3}{\sqrt {d+e x}} \, dx,x,x^2\right )\\ &=\frac {1}{7} x^7 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {1}{14} \sqrt {e} \text {Subst}\left (\int \left (-\frac {d^3}{e^3 \sqrt {d+e x}}+\frac {3 d^2 \sqrt {d+e x}}{e^3}-\frac {3 d (d+e x)^{3/2}}{e^3}+\frac {(d+e x)^{5/2}}{e^3}\right ) \, dx,x,x^2\right )\\ &=\frac {d^3 \sqrt {d+e x^2}}{7 e^{7/2}}-\frac {d^2 \left (d+e x^2\right )^{3/2}}{7 e^{7/2}}+\frac {3 d \left (d+e x^2\right )^{5/2}}{35 e^{7/2}}-\frac {\left (d+e x^2\right )^{7/2}}{49 e^{7/2}}+\frac {1}{7} x^7 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 79, normalized size = 0.69 \begin {gather*} \frac {\sqrt {d+e x^2} \left (16 d^3-8 d^2 e x^2+6 d e^2 x^4-5 e^3 x^6\right )}{245 e^{7/2}}+\frac {1}{7} x^7 \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. \(223\) vs.
\(2(84)=168\).
time = 0.01, size = 224, normalized size = 1.96
method | result | size |
default | \(\frac {x^{7} \arctanh \left (\frac {x \sqrt {e}}{\sqrt {e \,x^{2}+d}}\right )}{7}+\frac {e^{\frac {3}{2}} \left (\frac {x^{8} \sqrt {e \,x^{2}+d}}{9 e}-\frac {8 d \left (\frac {x^{6} \sqrt {e \,x^{2}+d}}{7 e}-\frac {6 d \left (\frac {x^{4} \sqrt {e \,x^{2}+d}}{5 e}-\frac {4 d \left (\frac {x^{2} \sqrt {e \,x^{2}+d}}{3 e}-\frac {2 d \sqrt {e \,x^{2}+d}}{3 e^{2}}\right )}{5 e}\right )}{7 e}\right )}{9 e}\right )}{7 d}-\frac {\sqrt {e}\, \left (\frac {x^{6} \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{9 e}-\frac {2 d \left (\frac {x^{4} \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{7 e}-\frac {4 d \left (\frac {x^{2} \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{5 e}-\frac {2 d \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{15 e^{2}}\right )}{7 e}\right )}{3 e}\right )}{7 d}\) | \(224\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 162, normalized size = 1.42 \begin {gather*} \frac {1}{7} \, x^{7} \operatorname {artanh}\left (\frac {x e^{\frac {1}{2}}}{\sqrt {x^{2} e + d}}\right ) - \frac {{\left (35 \, {\left (x^{2} e + d\right )}^{\frac {9}{2}} - 135 \, {\left (x^{2} e + d\right )}^{\frac {7}{2}} d + 189 \, {\left (x^{2} e + d\right )}^{\frac {5}{2}} d^{2} - 105 \, {\left (x^{2} e + d\right )}^{\frac {3}{2}} d^{3}\right )} e^{\left (-\frac {7}{2}\right )}}{2205 \, d} + \frac {{\left (35 \, {\left (x^{2} e + d\right )}^{\frac {9}{2}} - 180 \, {\left (x^{2} e + d\right )}^{\frac {7}{2}} d + 378 \, {\left (x^{2} e + d\right )}^{\frac {5}{2}} d^{2} - 420 \, {\left (x^{2} e + d\right )}^{\frac {3}{2}} d^{3} + 315 \, \sqrt {x^{2} e + d} d^{4}\right )} e^{\left (-\frac {7}{2}\right )}}{2205 \, 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. 442 vs.
\(2 (84) = 168\).
time = 0.36, size = 442, normalized size = 3.88 \begin {gather*} \frac {35 \, {\left (x^{7} \cosh \left (\frac {1}{2}\right )^{7} + 7 \, x^{7} \cosh \left (\frac {1}{2}\right )^{6} \sinh \left (\frac {1}{2}\right ) + 21 \, x^{7} \cosh \left (\frac {1}{2}\right )^{5} \sinh \left (\frac {1}{2}\right )^{2} + 35 \, x^{7} \cosh \left (\frac {1}{2}\right )^{4} \sinh \left (\frac {1}{2}\right )^{3} + 35 \, x^{7} \cosh \left (\frac {1}{2}\right )^{3} \sinh \left (\frac {1}{2}\right )^{4} + 21 \, x^{7} \cosh \left (\frac {1}{2}\right )^{2} \sinh \left (\frac {1}{2}\right )^{5} + 7 \, x^{7} \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right )^{6} + x^{7} \sinh \left (\frac {1}{2}\right )^{7}\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 (5 \, x^{6} \cosh \left (\frac {1}{2}\right )^{6} + 30 \, x^{6} \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right )^{5} + 5 \, x^{6} \sinh \left (\frac {1}{2}\right )^{6} - 6 \, d x^{4} \cosh \left (\frac {1}{2}\right )^{4} + 8 \, d^{2} x^{2} \cosh \left (\frac {1}{2}\right )^{2} + 3 \, {\left (25 \, x^{6} \cosh \left (\frac {1}{2}\right )^{2} - 2 \, d x^{4}\right )} \sinh \left (\frac {1}{2}\right )^{4} + 4 \, {\left (25 \, x^{6} \cosh \left (\frac {1}{2}\right )^{3} - 6 \, d x^{4} \cosh \left (\frac {1}{2}\right )\right )} \sinh \left (\frac {1}{2}\right )^{3} - 16 \, d^{3} + {\left (75 \, x^{6} \cosh \left (\frac {1}{2}\right )^{4} - 36 \, d x^{4} \cosh \left (\frac {1}{2}\right )^{2} + 8 \, d^{2} x^{2}\right )} \sinh \left (\frac {1}{2}\right )^{2} + 2 \, {\left (15 \, x^{6} \cosh \left (\frac {1}{2}\right )^{5} - 12 \, d x^{4} \cosh \left (\frac {1}{2}\right )^{3} + 8 \, d^{2} x^{2} \cosh \left (\frac {1}{2}\right )\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 )}}}{490 \, {\left (\cosh \left (\frac {1}{2}\right )^{7} + 7 \, \cosh \left (\frac {1}{2}\right )^{6} \sinh \left (\frac {1}{2}\right ) + 21 \, \cosh \left (\frac {1}{2}\right )^{5} \sinh \left (\frac {1}{2}\right )^{2} + 35 \, \cosh \left (\frac {1}{2}\right )^{4} \sinh \left (\frac {1}{2}\right )^{3} + 35 \, \cosh \left (\frac {1}{2}\right )^{3} \sinh \left (\frac {1}{2}\right )^{4} + 21 \, \cosh \left (\frac {1}{2}\right )^{2} \sinh \left (\frac {1}{2}\right )^{5} + 7 \, \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right )^{6} + \sinh \left (\frac {1}{2}\right )^{7}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.90, size = 116, normalized size = 1.02 \begin {gather*} \begin {cases} \frac {16 d^{3} \sqrt {d + e x^{2}}}{245 e^{\frac {7}{2}}} - \frac {8 d^{2} x^{2} \sqrt {d + e x^{2}}}{245 e^{\frac {5}{2}}} + \frac {6 d x^{4} \sqrt {d + e x^{2}}}{245 e^{\frac {3}{2}}} + \frac {x^{7} \operatorname {atanh}{\left (\frac {\sqrt {e} x}{\sqrt {d + e x^{2}}} \right )}}{7} - \frac {x^{6} \sqrt {d + e x^{2}}}{49 \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^6\,\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]
________________________________________________________________________________________