3.1.11 \(\int x^2 \tanh ^{-1}(\frac {\sqrt {e} x}{\sqrt {d+e x^2}}) \, dx\) [11]

Optimal. Leaf size=68 \[ \frac {d \sqrt {d+e x^2}}{3 e^{3/2}}-\frac {\left (d+e x^2\right )^{3/2}}{9 e^{3/2}}+\frac {1}{3} x^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \]

[Out]

-1/9*(e*x^2+d)^(3/2)/e^(3/2)+1/3*x^3*arctanh(x*e^(1/2)/(e*x^2+d)^(1/2))+1/3*d*(e*x^2+d)^(1/2)/e^(3/2)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 68, 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 {\left (d+e x^2\right )^{3/2}}{9 e^{3/2}}+\frac {d \sqrt {d+e x^2}}{3 e^{3/2}}+\frac {1}{3} x^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2*ArcTanh[(Sqrt[e]*x)/Sqrt[d + e*x^2]],x]

[Out]

(d*Sqrt[d + e*x^2])/(3*e^(3/2)) - (d + e*x^2)^(3/2)/(9*e^(3/2)) + (x^3*ArcTanh[(Sqrt[e]*x)/Sqrt[d + e*x^2]])/3

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 272

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 6356

Int[ArcTanh[((c_.)*(x_))/Sqrt[(a_.) + (b_.)*(x_)^2]]*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*(ArcT
anh[(c*x)/Sqrt[a + b*x^2]]/(d*(m + 1))), x] - Dist[c/(d*(m + 1)), Int[(d*x)^(m + 1)/Sqrt[a + b*x^2], x], x] /;
 FreeQ[{a, b, c, d, m}, x] && EqQ[b, c^2] && NeQ[m, -1]

Rubi steps

\begin {align*} \int x^2 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right ) \, dx &=\frac {1}{3} x^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {1}{3} \sqrt {e} \int \frac {x^3}{\sqrt {d+e x^2}} \, dx\\ &=\frac {1}{3} x^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {1}{6} \sqrt {e} \text {Subst}\left (\int \frac {x}{\sqrt {d+e x}} \, dx,x,x^2\right )\\ &=\frac {1}{3} x^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )-\frac {1}{6} \sqrt {e} \text {Subst}\left (\int \left (-\frac {d}{e \sqrt {d+e x}}+\frac {\sqrt {d+e x}}{e}\right ) \, dx,x,x^2\right )\\ &=\frac {d \sqrt {d+e x^2}}{3 e^{3/2}}-\frac {\left (d+e x^2\right )^{3/2}}{9 e^{3/2}}+\frac {1}{3} x^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 56, normalized size = 0.82 \begin {gather*} \frac {1}{9} \left (\frac {\left (2 d-e x^2\right ) \sqrt {d+e x^2}}{e^{3/2}}+3 x^3 \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d+e x^2}}\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2*ArcTanh[(Sqrt[e]*x)/Sqrt[d + e*x^2]],x]

[Out]

(((2*d - e*x^2)*Sqrt[d + e*x^2])/e^(3/2) + 3*x^3*ArcTanh[(Sqrt[e]*x)/Sqrt[d + e*x^2]])/9

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(127\) vs. \(2(50)=100\).
time = 0.01, size = 128, normalized size = 1.88

method result size
default \(\frac {x^{3} \arctanh \left (\frac {x \sqrt {e}}{\sqrt {e \,x^{2}+d}}\right )}{3}+\frac {e^{\frac {3}{2}} \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 )}{3 d}-\frac {\sqrt {e}\, \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 )}{3 d}\) \(128\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*arctanh(x*e^(1/2)/(e*x^2+d)^(1/2)),x,method=_RETURNVERBOSE)

[Out]

1/3*x^3*arctanh(x*e^(1/2)/(e*x^2+d)^(1/2))+1/3*e^(3/2)/d*(1/5*x^4/e*(e*x^2+d)^(1/2)-4/5*d/e*(1/3*x^2/e*(e*x^2+
d)^(1/2)-2/3*d/e^2*(e*x^2+d)^(1/2)))-1/3*e^(1/2)/d*(1/5*x^2*(e*x^2+d)^(3/2)/e-2/15*d/e^2*(e*x^2+d)^(3/2))

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 102 vs. \(2 (50) = 100\).
time = 0.27, size = 102, normalized size = 1.50 \begin {gather*} \frac {1}{3} \, x^{3} \operatorname {artanh}\left (\frac {x e^{\frac {1}{2}}}{\sqrt {x^{2} e + d}}\right ) - \frac {{\left (3 \, {\left (x^{2} e + d\right )}^{\frac {5}{2}} - 5 \, {\left (x^{2} e + d\right )}^{\frac {3}{2}} d\right )} e^{\left (-\frac {3}{2}\right )}}{45 \, d} + \frac {{\left (3 \, {\left (x^{2} e + d\right )}^{\frac {5}{2}} - 10 \, {\left (x^{2} e + d\right )}^{\frac {3}{2}} d + 15 \, \sqrt {x^{2} e + d} d^{2}\right )} e^{\left (-\frac {3}{2}\right )}}{45 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*arctanh(x*e^(1/2)/(e*x^2+d)^(1/2)),x, algorithm="maxima")

[Out]

1/3*x^3*arctanh(x*e^(1/2)/sqrt(x^2*e + d)) - 1/45*(3*(x^2*e + d)^(5/2) - 5*(x^2*e + d)^(3/2)*d)*e^(-3/2)/d + 1
/45*(3*(x^2*e + d)^(5/2) - 10*(x^2*e + d)^(3/2)*d + 15*sqrt(x^2*e + d)*d^2)*e^(-3/2)/d

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 209 vs. \(2 (50) = 100\).
time = 0.37, size = 209, normalized size = 3.07 \begin {gather*} \frac {3 \, {\left (x^{3} \cosh \left (\frac {1}{2}\right )^{3} + 3 \, x^{3} \cosh \left (\frac {1}{2}\right )^{2} \sinh \left (\frac {1}{2}\right ) + 3 \, x^{3} \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right )^{2} + x^{3} \sinh \left (\frac {1}{2}\right )^{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 (x^{2} \cosh \left (\frac {1}{2}\right )^{2} + 2 \, x^{2} \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right ) + x^{2} \sinh \left (\frac {1}{2}\right )^{2} - 2 \, d\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 )}}}{18 \, {\left (\cosh \left (\frac {1}{2}\right )^{3} + 3 \, \cosh \left (\frac {1}{2}\right )^{2} \sinh \left (\frac {1}{2}\right ) + 3 \, \cosh \left (\frac {1}{2}\right ) \sinh \left (\frac {1}{2}\right )^{2} + \sinh \left (\frac {1}{2}\right )^{3}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*arctanh(x*e^(1/2)/(e*x^2+d)^(1/2)),x, algorithm="fricas")

[Out]

1/18*(3*(x^3*cosh(1/2)^3 + 3*x^3*cosh(1/2)^2*sinh(1/2) + 3*x^3*cosh(1/2)*sinh(1/2)^2 + x^3*sinh(1/2)^3)*log((2
*x^2*cosh(1/2)^2 + 4*x^2*cosh(1/2)*sinh(1/2) + 2*x^2*sinh(1/2)^2 + 2*(x*cosh(1/2) + x*sinh(1/2))*sqrt(((x^2 +
d)*cosh(1/2) + (x^2 - d)*sinh(1/2))/(cosh(1/2) - sinh(1/2))) + d)/d) - 2*(x^2*cosh(1/2)^2 + 2*x^2*cosh(1/2)*si
nh(1/2) + x^2*sinh(1/2)^2 - 2*d)*sqrt(((x^2 + d)*cosh(1/2) + (x^2 - d)*sinh(1/2))/(cosh(1/2) - sinh(1/2))))/(c
osh(1/2)^3 + 3*cosh(1/2)^2*sinh(1/2) + 3*cosh(1/2)*sinh(1/2)^2 + sinh(1/2)^3)

________________________________________________________________________________________

Sympy [A]
time = 0.43, size = 65, normalized size = 0.96 \begin {gather*} \begin {cases} \frac {2 d \sqrt {d + e x^{2}}}{9 e^{\frac {3}{2}}} + \frac {x^{3} \operatorname {atanh}{\left (\frac {\sqrt {e} x}{\sqrt {d + e x^{2}}} \right )}}{3} - \frac {x^{2} \sqrt {d + e x^{2}}}{9 \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]

integrate(x**2*atanh(x*e**(1/2)/(e*x**2+d)**(1/2)),x)

[Out]

Piecewise((2*d*sqrt(d + e*x**2)/(9*e**(3/2)) + x**3*atanh(sqrt(e)*x/sqrt(d + e*x**2))/3 - x**2*sqrt(d + e*x**2
)/(9*sqrt(e)), Ne(e, 0)), (0, True))

________________________________________________________________________________________

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]

integrate(x^2*arctanh(x*e^(1/2)/(e*x^2+d)^(1/2)),x, algorithm="giac")

[Out]

Timed out

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^2\,\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]

int(x^2*atanh((e^(1/2)*x)/(d + e*x^2)^(1/2)),x)

[Out]

int(x^2*atanh((e^(1/2)*x)/(d + e*x^2)^(1/2)), x)

________________________________________________________________________________________