Optimal. Leaf size=86 \[ -\frac {2}{3} a \sqrt {a \tanh ^3(x)}-\frac {a \text {ArcTan}\left (\sqrt {\tanh (x)}\right ) \sqrt {a \tanh ^3(x)}}{\tanh ^{\frac {3}{2}}(x)}+\frac {a \tanh ^{-1}\left (\sqrt {\tanh (x)}\right ) \sqrt {a \tanh ^3(x)}}{\tanh ^{\frac {3}{2}}(x)}-\frac {2}{7} a \tanh ^2(x) \sqrt {a \tanh ^3(x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.700, Rules used = {3739, 3554,
3557, 335, 304, 209, 212} \begin {gather*} -\frac {a \sqrt {a \tanh ^3(x)} \text {ArcTan}\left (\sqrt {\tanh (x)}\right )}{\tanh ^{\frac {3}{2}}(x)}-\frac {2}{3} a \sqrt {a \tanh ^3(x)}-\frac {2}{7} a \tanh ^2(x) \sqrt {a \tanh ^3(x)}+\frac {a \tanh ^{-1}\left (\sqrt {\tanh (x)}\right ) \sqrt {a \tanh ^3(x)}}{\tanh ^{\frac {3}{2}}(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 335
Rule 3554
Rule 3557
Rule 3739
Rubi steps
\begin {align*} \int \left (a \tanh ^3(x)\right )^{3/2} \, dx &=\frac {\left (a \sqrt {a \tanh ^3(x)}\right ) \int \tanh ^{\frac {9}{2}}(x) \, dx}{\tanh ^{\frac {3}{2}}(x)}\\ &=-\frac {2}{7} a \tanh ^2(x) \sqrt {a \tanh ^3(x)}+\frac {\left (a \sqrt {a \tanh ^3(x)}\right ) \int \tanh ^{\frac {5}{2}}(x) \, dx}{\tanh ^{\frac {3}{2}}(x)}\\ &=-\frac {2}{3} a \sqrt {a \tanh ^3(x)}-\frac {2}{7} a \tanh ^2(x) \sqrt {a \tanh ^3(x)}+\frac {\left (a \sqrt {a \tanh ^3(x)}\right ) \int \sqrt {\tanh (x)} \, dx}{\tanh ^{\frac {3}{2}}(x)}\\ &=-\frac {2}{3} a \sqrt {a \tanh ^3(x)}-\frac {2}{7} a \tanh ^2(x) \sqrt {a \tanh ^3(x)}-\frac {\left (a \sqrt {a \tanh ^3(x)}\right ) \text {Subst}\left (\int \frac {\sqrt {x}}{-1+x^2} \, dx,x,\tanh (x)\right )}{\tanh ^{\frac {3}{2}}(x)}\\ &=-\frac {2}{3} a \sqrt {a \tanh ^3(x)}-\frac {2}{7} a \tanh ^2(x) \sqrt {a \tanh ^3(x)}-\frac {\left (2 a \sqrt {a \tanh ^3(x)}\right ) \text {Subst}\left (\int \frac {x^2}{-1+x^4} \, dx,x,\sqrt {\tanh (x)}\right )}{\tanh ^{\frac {3}{2}}(x)}\\ &=-\frac {2}{3} a \sqrt {a \tanh ^3(x)}-\frac {2}{7} a \tanh ^2(x) \sqrt {a \tanh ^3(x)}+\frac {\left (a \sqrt {a \tanh ^3(x)}\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {\tanh (x)}\right )}{\tanh ^{\frac {3}{2}}(x)}-\frac {\left (a \sqrt {a \tanh ^3(x)}\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\tanh (x)}\right )}{\tanh ^{\frac {3}{2}}(x)}\\ &=-\frac {2}{3} a \sqrt {a \tanh ^3(x)}-\frac {a \tan ^{-1}\left (\sqrt {\tanh (x)}\right ) \sqrt {a \tanh ^3(x)}}{\tanh ^{\frac {3}{2}}(x)}+\frac {a \tanh ^{-1}\left (\sqrt {\tanh (x)}\right ) \sqrt {a \tanh ^3(x)}}{\tanh ^{\frac {3}{2}}(x)}-\frac {2}{7} a \tanh ^2(x) \sqrt {a \tanh ^3(x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 55, normalized size = 0.64 \begin {gather*} -\frac {\left (a \tanh ^3(x)\right )^{3/2} \left (21 \text {ArcTan}\left (\sqrt {\tanh (x)}\right )-21 \tanh ^{-1}\left (\sqrt {\tanh (x)}\right )+14 \tanh ^{\frac {3}{2}}(x)+6 \tanh ^{\frac {7}{2}}(x)\right )}{21 \tanh ^{\frac {9}{2}}(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.12, size = 76, normalized size = 0.88
method | result | size |
derivativedivides | \(-\frac {\left (a \left (\tanh ^{3}\left (x \right )\right )\right )^{\frac {3}{2}} \left (21 a^{\frac {7}{2}} \arctan \left (\frac {\sqrt {a \tanh \left (x \right )}}{\sqrt {a}}\right )-21 a^{\frac {7}{2}} \arctanh \left (\frac {\sqrt {a \tanh \left (x \right )}}{\sqrt {a}}\right )+6 \left (a \tanh \left (x \right )\right )^{\frac {7}{2}}+14 a^{2} \left (a \tanh \left (x \right )\right )^{\frac {3}{2}}\right )}{21 \tanh \left (x \right )^{3} \left (a \tanh \left (x \right )\right )^{\frac {3}{2}} a^{2}}\) | \(76\) |
default | \(-\frac {\left (a \left (\tanh ^{3}\left (x \right )\right )\right )^{\frac {3}{2}} \left (21 a^{\frac {7}{2}} \arctan \left (\frac {\sqrt {a \tanh \left (x \right )}}{\sqrt {a}}\right )-21 a^{\frac {7}{2}} \arctanh \left (\frac {\sqrt {a \tanh \left (x \right )}}{\sqrt {a}}\right )+6 \left (a \tanh \left (x \right )\right )^{\frac {7}{2}}+14 a^{2} \left (a \tanh \left (x \right )\right )^{\frac {3}{2}}\right )}{21 \tanh \left (x \right )^{3} \left (a \tanh \left (x \right )\right )^{\frac {3}{2}} a^{2}}\) | \(76\) |
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. 615 vs.
\(2 (66) = 132\).
time = 0.41, size = 1269, normalized size = 14.76 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \tanh ^{3}{\left (x \right )}\right )^{\frac {3}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 342 vs.
\(2 (66) = 132\).
time = 0.47, size = 342, normalized size = 3.98 \begin {gather*} -\frac {1}{42} \, {\left (42 \, \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 ) + 21 \, \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 {16 \, {\left (21 \, {\left (\sqrt {a} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} - a}\right )}^{6} a \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right ) + 42 \, {\left (\sqrt {a} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} - a}\right )}^{5} a^{\frac {3}{2}} \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right ) + 119 \, {\left (\sqrt {a} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} - a}\right )}^{4} a^{2} \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right ) + 56 \, {\left (\sqrt {a} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} - a}\right )}^{3} a^{\frac {5}{2}} \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right ) + 63 \, {\left (\sqrt {a} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} - a}\right )}^{2} a^{3} \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right ) + 14 \, {\left (\sqrt {a} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} - a}\right )} a^{\frac {7}{2}} \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right ) + 5 \, a^{4} \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right )\right )}}{{\left (\sqrt {a} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} - a} + \sqrt {a}\right )}^{7}}\right )} a \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 {\left (a\,{\mathrm {tanh}\left (x\right )}^3\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________