Optimal. Leaf size=28 \[ \log (x)-\frac{\tanh \left (a d+b d \log \left (c x^n\right )\right )}{b d n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0290263, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {3473, 8} \[ \log (x)-\frac{\tanh \left (a d+b d \log \left (c x^n\right )\right )}{b d n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \frac{\tanh ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx &=\frac{\operatorname{Subst}\left (\int \tanh ^2(d (a+b x)) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=-\frac{\tanh \left (a d+b d \log \left (c x^n\right )\right )}{b d n}+\frac{\operatorname{Subst}\left (\int 1 \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\log (x)-\frac{\tanh \left (a d+b d \log \left (c x^n\right )\right )}{b d n}\\ \end{align*}
Mathematica [A] time = 0.0777238, size = 51, normalized size = 1.82 \[ \frac{\tanh ^{-1}\left (\tanh \left (a d+b d \log \left (c x^n\right )\right )\right )}{b d n}-\frac{\tanh \left (a d+b d \log \left (c x^n\right )\right )}{b d n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.006, size = 80, normalized size = 2.9 \begin{align*} -{\frac{\tanh \left ( d \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) \right ) }{dbn}}-{\frac{\ln \left ( \tanh \left ( d \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) \right ) -1 \right ) }{2\,dbn}}+{\frac{\ln \left ( \tanh \left ( d \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) \right ) +1 \right ) }{2\,dbn}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.39626, size = 49, normalized size = 1.75 \begin{align*} \frac{2}{b c^{2 \, b d} d n e^{\left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right )} + b d n} + \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.14826, size = 197, normalized size = 7.04 \begin{align*} \frac{{\left (b d n \log \left (x\right ) + 1\right )} \cosh \left (b d n \log \left (x\right ) + b d \log \left (c\right ) + a d\right ) - \sinh \left (b d n \log \left (x\right ) + b d \log \left (c\right ) + a d\right )}{b d n \cosh \left (b d n \log \left (x\right ) + b d \log \left (c\right ) + a d\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 14.9082, size = 70, normalized size = 2.5 \begin{align*} - \frac{\log{\left (\tanh{\left (a d + b d \log{\left (c x^{n} \right )} \right )} - 1 \right )}}{2 b d n} + \frac{\log{\left (\tanh{\left (a d + b d \log{\left (c x^{n} \right )} \right )} + 1 \right )}}{2 b d n} - \frac{\tanh{\left (a d + b d \log{\left (c x^{n} \right )} \right )}}{b d n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.51496, size = 50, normalized size = 1.79 \begin{align*} \frac{2}{{\left (c^{2 \, b d} x^{2 \, b d n} e^{\left (2 \, a d\right )} + 1\right )} b d n} + \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]