Optimal. Leaf size=63 \[ \frac{\tanh ^{-1}\left (\sqrt{\tanh (x)}\right ) \sqrt{a \tanh ^3(x)}}{\tanh ^{\frac{3}{2}}(x)}+\frac{\sqrt{a \tanh ^3(x)} \tan ^{-1}\left (\sqrt{\tanh (x)}\right )}{\tanh ^{\frac{3}{2}}(x)}-2 \coth (x) \sqrt{a \tanh ^3(x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0296038, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.7, Rules used = {3658, 3473, 3476, 329, 212, 206, 203} \[ \frac{\tanh ^{-1}\left (\sqrt{\tanh (x)}\right ) \sqrt{a \tanh ^3(x)}}{\tanh ^{\frac{3}{2}}(x)}+\frac{\sqrt{a \tanh ^3(x)} \tan ^{-1}\left (\sqrt{\tanh (x)}\right )}{\tanh ^{\frac{3}{2}}(x)}-2 \coth (x) \sqrt{a \tanh ^3(x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3658
Rule 3473
Rule 3476
Rule 329
Rule 212
Rule 206
Rule 203
Rubi steps
\begin{align*} \int \sqrt{a \tanh ^3(x)} \, dx &=\frac{\sqrt{a \tanh ^3(x)} \int \tanh ^{\frac{3}{2}}(x) \, dx}{\tanh ^{\frac{3}{2}}(x)}\\ &=-2 \coth (x) \sqrt{a \tanh ^3(x)}+\frac{\sqrt{a \tanh ^3(x)} \int \frac{1}{\sqrt{\tanh (x)}} \, dx}{\tanh ^{\frac{3}{2}}(x)}\\ &=-2 \coth (x) \sqrt{a \tanh ^3(x)}-\frac{\sqrt{a \tanh ^3(x)} \operatorname{Subst}\left (\int \frac{1}{\sqrt{x} \left (-1+x^2\right )} \, dx,x,\tanh (x)\right )}{\tanh ^{\frac{3}{2}}(x)}\\ &=-2 \coth (x) \sqrt{a \tanh ^3(x)}-\frac{\left (2 \sqrt{a \tanh ^3(x)}\right ) \operatorname{Subst}\left (\int \frac{1}{-1+x^4} \, dx,x,\sqrt{\tanh (x)}\right )}{\tanh ^{\frac{3}{2}}(x)}\\ &=-2 \coth (x) \sqrt{a \tanh ^3(x)}+\frac{\sqrt{a \tanh ^3(x)} \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{\tanh (x)}\right )}{\tanh ^{\frac{3}{2}}(x)}+\frac{\sqrt{a \tanh ^3(x)} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{\tanh (x)}\right )}{\tanh ^{\frac{3}{2}}(x)}\\ &=-2 \coth (x) \sqrt{a \tanh ^3(x)}+\frac{\tan ^{-1}\left (\sqrt{\tanh (x)}\right ) \sqrt{a \tanh ^3(x)}}{\tanh ^{\frac{3}{2}}(x)}+\frac{\tanh ^{-1}\left (\sqrt{\tanh (x)}\right ) \sqrt{a \tanh ^3(x)}}{\tanh ^{\frac{3}{2}}(x)}\\ \end{align*}
Mathematica [A] time = 0.0330763, size = 40, normalized size = 0.63 \[ \frac{\sqrt{a \tanh ^3(x)} \left (\tanh ^{-1}\left (\sqrt{\tanh (x)}\right )-2 \sqrt{\tanh (x)}+\tan ^{-1}\left (\sqrt{\tanh (x)}\right )\right )}{\tanh ^{\frac{3}{2}}(x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.036, size = 62, normalized size = 1. \begin{align*} -{\frac{1}{\tanh \left ( x \right ) }\sqrt{a \left ( \tanh \left ( x \right ) \right ) ^{3}} \left ( 2\,\sqrt{a\tanh \left ( x \right ) }-\sqrt{a}{\it Artanh} \left ({\sqrt{a\tanh \left ( x \right ) }{\frac{1}{\sqrt{a}}}} \right ) -\sqrt{a}\arctan \left ({\sqrt{a\tanh \left ( x \right ) }{\frac{1}{\sqrt{a}}}} \right ) \right ){\frac{1}{\sqrt{a\tanh \left ( x \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \tanh \left (x\right )^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.31753, size = 1237, normalized size = 19.63 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \tanh ^{3}{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.24178, size = 155, normalized size = 2.46 \begin{align*} \sqrt{a} \arctan \left (-\frac{\sqrt{a} e^{\left (2 \, x\right )} - \sqrt{a e^{\left (4 \, x\right )} - a}}{\sqrt{a}}\right ) \mathrm{sgn}\left (e^{\left (4 \, x\right )} - 1\right ) - \frac{1}{2} \, \sqrt{a} \log \left ({\left | -\sqrt{a} e^{\left (2 \, x\right )} + \sqrt{a e^{\left (4 \, x\right )} - a} \right |}\right ) \mathrm{sgn}\left (e^{\left (4 \, x\right )} - 1\right ) - \frac{4 \, a \mathrm{sgn}\left (e^{\left (4 \, x\right )} - 1\right )}{\sqrt{a} e^{\left (2 \, x\right )} - \sqrt{a e^{\left (4 \, x\right )} - a} + \sqrt{a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]