Optimal. Leaf size=71 \[ -\frac {\text {ArcTan}\left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}+\frac {\tanh ^{-1}\left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}-\frac {2}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.316, Rules used = {3555, 3557,
335, 304, 209, 212} \begin {gather*} -\frac {\text {ArcTan}\left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}+\frac {\tanh ^{-1}\left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}-\frac {2}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 335
Rule 3555
Rule 3557
Rubi steps
\begin {align*} \int \frac {1}{x \tanh ^{\frac {3}{2}}\left (a+b \log \left (c x^n\right )\right )} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{\tanh ^{\frac {3}{2}}(a+b x)} \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=-\frac {2}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}}+\frac {\text {Subst}\left (\int \sqrt {\tanh (a+b x)} \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=-\frac {2}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}}-\frac {\text {Subst}\left (\int \frac {\sqrt {x}}{-1+x^2} \, dx,x,\tanh \left (a+b \log \left (c x^n\right )\right )\right )}{b n}\\ &=-\frac {2}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}}-\frac {2 \text {Subst}\left (\int \frac {x^2}{-1+x^4} \, dx,x,\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}\\ &=-\frac {2}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}}+\frac {\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}-\frac {\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}\\ &=-\frac {\tan ^{-1}\left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}+\frac {\tanh ^{-1}\left (\sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}\right )}{b n}-\frac {2}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.12, size = 44, normalized size = 0.62 \begin {gather*} -\frac {2 \, _2F_1\left (-\frac {1}{4},1;\frac {3}{4};\tanh ^2\left (a+b \log \left (c x^n\right )\right )\right )}{b n \sqrt {\tanh \left (a+b \log \left (c x^n\right )\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 4.12, size = 76, normalized size = 1.07
method | result | size |
derivativedivides | \(\frac {-\frac {\ln \left (\sqrt {\tanh }\left (a +b \ln \left (c \,x^{n}\right )\right )-1\right )}{2}-\frac {2}{\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}}+\frac {\ln \left (\sqrt {\tanh }\left (a +b \ln \left (c \,x^{n}\right )\right )+1\right )}{2}-\arctan \left (\sqrt {\tanh }\left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{n b}\) | \(76\) |
default | \(\frac {-\frac {\ln \left (\sqrt {\tanh }\left (a +b \ln \left (c \,x^{n}\right )\right )-1\right )}{2}-\frac {2}{\sqrt {\tanh \left (a +b \ln \left (c \,x^{n}\right )\right )}}+\frac {\ln \left (\sqrt {\tanh }\left (a +b \ln \left (c \,x^{n}\right )\right )+1\right )}{2}-\arctan \left (\sqrt {\tanh }\left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{n b}\) | \(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. 625 vs.
\(2 (65) = 130\).
time = 0.36, size = 625, normalized size = 8.80 \begin {gather*} -\frac {2 \, {\left (\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 1\right )} \arctan \left (-\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) - \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + {\left (\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 1\right )} \sqrt {\frac {\sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}}\right ) + 4 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + {\left (\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 1\right )} \log \left (-\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) - \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + {\left (\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 1\right )} \sqrt {\frac {\sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}}\right ) + 8 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + 4 \, \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 4 \, {\left (\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 1\right )} \sqrt {\frac {\sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}} - 4}{2 \, {\left (b n \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} + 2 \, b n \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + b n \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - b n\right )}} \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 \frac {1}{x \tanh ^{\frac {3}{2}}{\left (a + b \log {\left (c x^{n} \right )} \right )}}\, dx \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 [B]
time = 1.72, size = 65, normalized size = 0.92 \begin {gather*} \frac {\mathrm {atanh}\left (\sqrt {\mathrm {tanh}\left (a+b\,\ln \left (c\,x^n\right )\right )}\right )}{b\,n}-\frac {\mathrm {atan}\left (\sqrt {\mathrm {tanh}\left (a+b\,\ln \left (c\,x^n\right )\right )}\right )}{b\,n}-\frac {2}{b\,n\,\sqrt {\mathrm {tanh}\left (a+b\,\ln \left (c\,x^n\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________