Optimal. Leaf size=64 \[ -\frac {2 \tanh (x)}{\sqrt {a \tanh ^3(x)}}+\frac {\tanh ^{-1}\left (\sqrt {\tanh (x)}\right ) \tanh ^{\frac {3}{2}}(x)}{\sqrt {a \tanh ^3(x)}}-\frac {\tanh ^{\frac {3}{2}}(x) \tan ^{-1}\left (\sqrt {\tanh (x)}\right )}{\sqrt {a \tanh ^3(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.700, Rules used = {3658, 3474, 3476, 329, 298, 203, 206} \[ \frac {\tanh ^{-1}\left (\sqrt {\tanh (x)}\right ) \tanh ^{\frac {3}{2}}(x)}{\sqrt {a \tanh ^3(x)}}-\frac {2 \tanh (x)}{\sqrt {a \tanh ^3(x)}}-\frac {\tanh ^{\frac {3}{2}}(x) \tan ^{-1}\left (\sqrt {\tanh (x)}\right )}{\sqrt {a \tanh ^3(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 206
Rule 298
Rule 329
Rule 3474
Rule 3476
Rule 3658
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a \tanh ^3(x)}} \, dx &=\frac {\tanh ^{\frac {3}{2}}(x) \int \frac {1}{\tanh ^{\frac {3}{2}}(x)} \, dx}{\sqrt {a \tanh ^3(x)}}\\ &=-\frac {2 \tanh (x)}{\sqrt {a \tanh ^3(x)}}+\frac {\tanh ^{\frac {3}{2}}(x) \int \sqrt {\tanh (x)} \, dx}{\sqrt {a \tanh ^3(x)}}\\ &=-\frac {2 \tanh (x)}{\sqrt {a \tanh ^3(x)}}-\frac {\tanh ^{\frac {3}{2}}(x) \operatorname {Subst}\left (\int \frac {\sqrt {x}}{-1+x^2} \, dx,x,\tanh (x)\right )}{\sqrt {a \tanh ^3(x)}}\\ &=-\frac {2 \tanh (x)}{\sqrt {a \tanh ^3(x)}}-\frac {\left (2 \tanh ^{\frac {3}{2}}(x)\right ) \operatorname {Subst}\left (\int \frac {x^2}{-1+x^4} \, dx,x,\sqrt {\tanh (x)}\right )}{\sqrt {a \tanh ^3(x)}}\\ &=-\frac {2 \tanh (x)}{\sqrt {a \tanh ^3(x)}}+\frac {\tanh ^{\frac {3}{2}}(x) \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {\tanh (x)}\right )}{\sqrt {a \tanh ^3(x)}}-\frac {\tanh ^{\frac {3}{2}}(x) \operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\tanh (x)}\right )}{\sqrt {a \tanh ^3(x)}}\\ &=-\frac {2 \tanh (x)}{\sqrt {a \tanh ^3(x)}}-\frac {\tan ^{-1}\left (\sqrt {\tanh (x)}\right ) \tanh ^{\frac {3}{2}}(x)}{\sqrt {a \tanh ^3(x)}}+\frac {\tanh ^{-1}\left (\sqrt {\tanh (x)}\right ) \tanh ^{\frac {3}{2}}(x)}{\sqrt {a \tanh ^3(x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.02, size = 26, normalized size = 0.41 \[ -\frac {2 \tanh (x) \, _2F_1\left (-\frac {1}{4},1;\frac {3}{4};\tanh ^2(x)\right )}{\sqrt {a \tanh ^3(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.53, size = 516, normalized size = 8.06 \[ \left [-\frac {2 \, {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 1\right )} \sqrt {-a} \arctan \left (\frac {{\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2}\right )} \sqrt {-a} \sqrt {\frac {a \sinh \relax (x)}{\cosh \relax (x)}}}{a \cosh \relax (x)^{2} + 2 \, a \cosh \relax (x) \sinh \relax (x) + a \sinh \relax (x)^{2} - a}\right ) + {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 1\right )} \sqrt {-a} \log \left (-\frac {a \cosh \relax (x)^{4} + 4 \, a \cosh \relax (x)^{3} \sinh \relax (x) + 6 \, a \cosh \relax (x)^{2} \sinh \relax (x)^{2} + 4 \, a \cosh \relax (x) \sinh \relax (x)^{3} + a \sinh \relax (x)^{4} + 2 \, {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} + 1\right )} \sqrt {-a} \sqrt {\frac {a \sinh \relax (x)}{\cosh \relax (x)}} - 2 \, a}{\cosh \relax (x)^{4} + 4 \, \cosh \relax (x)^{3} \sinh \relax (x) + 6 \, \cosh \relax (x)^{2} \sinh \relax (x)^{2} + 4 \, \cosh \relax (x) \sinh \relax (x)^{3} + \sinh \relax (x)^{4}}\right ) + 8 \, {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} + 1\right )} \sqrt {\frac {a \sinh \relax (x)}{\cosh \relax (x)}}}{4 \, {\left (a \cosh \relax (x)^{2} + 2 \, a \cosh \relax (x) \sinh \relax (x) + a \sinh \relax (x)^{2} - a\right )}}, -\frac {2 \, {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 1\right )} \sqrt {a} \arctan \left (\frac {{\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} + 1\right )} \sqrt {\frac {a \sinh \relax (x)}{\cosh \relax (x)}}}{\sqrt {a}}\right ) - {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 1\right )} \sqrt {a} \log \left (2 \, a \cosh \relax (x)^{4} + 8 \, a \cosh \relax (x)^{3} \sinh \relax (x) + 12 \, a \cosh \relax (x)^{2} \sinh \relax (x)^{2} + 8 \, a \cosh \relax (x) \sinh \relax (x)^{3} + 2 \, a \sinh \relax (x)^{4} + 2 \, {\left (\cosh \relax (x)^{4} + 4 \, \cosh \relax (x) \sinh \relax (x)^{3} + \sinh \relax (x)^{4} + {\left (6 \, \cosh \relax (x)^{2} + 1\right )} \sinh \relax (x)^{2} + \cosh \relax (x)^{2} + 2 \, {\left (2 \, \cosh \relax (x)^{3} + \cosh \relax (x)\right )} \sinh \relax (x)\right )} \sqrt {a} \sqrt {\frac {a \sinh \relax (x)}{\cosh \relax (x)}} - a\right ) + 8 \, {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} + 1\right )} \sqrt {\frac {a \sinh \relax (x)}{\cosh \relax (x)}}}{4 \, {\left (a \cosh \relax (x)^{2} + 2 \, a \cosh \relax (x) \sinh \relax (x) + a \sinh \relax (x)^{2} - a\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.19, size = 123, normalized size = 1.92 \[ -\frac {\arctan \left (-\frac {\sqrt {a} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} - a}}{\sqrt {a}}\right )}{\sqrt {a} \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right )} - \frac {\log \left ({\left | -\sqrt {a} e^{\left (2 \, x\right )} + \sqrt {a e^{\left (4 \, x\right )} - a} \right |}\right )}{2 \, \sqrt {a} \mathrm {sgn}\left (e^{\left (4 \, x\right )} - 1\right )} + \frac {4}{{\left (\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 )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 65, normalized size = 1.02 \[ -\frac {\tanh \relax (x ) \left (2 a^{\frac {5}{2}}+\arctan \left (\frac {\sqrt {a \tanh \relax (x )}}{\sqrt {a}}\right ) a^{2} \sqrt {a \tanh \relax (x )}-\arctanh \left (\frac {\sqrt {a \tanh \relax (x )}}{\sqrt {a}}\right ) a^{2} \sqrt {a \tanh \relax (x )}\right )}{\sqrt {a \left (\tanh ^{3}\relax (x )\right )}\, a^{\frac {5}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \tanh \relax (x)^{3}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {1}{\sqrt {a\,{\mathrm {tanh}\relax (x)}^3}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \tanh ^{3}{\relax (x )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________