3.176 \(\int \frac{\tanh (d (a+b \log (c x^n)))}{x} \, dx\)

Optimal. Leaf size=25 \[ \frac{\log \left (\cosh \left (a d+b d \log \left (c x^n\right )\right )\right )}{b d n} \]

[Out]

Log[Cosh[a*d + b*d*Log[c*x^n]]]/(b*d*n)

________________________________________________________________________________________

Rubi [A]  time = 0.0204699, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.059, Rules used = {3475} \[ \frac{\log \left (\cosh \left (a d+b d \log \left (c x^n\right )\right )\right )}{b d n} \]

Antiderivative was successfully verified.

[In]

Int[Tanh[d*(a + b*Log[c*x^n])]/x,x]

[Out]

Log[Cosh[a*d + b*d*Log[c*x^n]]]/(b*d*n)

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin{align*} \int \frac{\tanh \left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx &=\frac{\operatorname{Subst}\left (\int \tanh (d (a+b x)) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\frac{\log \left (\cosh \left (a d+b d \log \left (c x^n\right )\right )\right )}{b d n}\\ \end{align*}

Mathematica [A]  time = 0.0460165, size = 24, normalized size = 0.96 \[ \frac{\log \left (\cosh \left (d \left (a+b \log \left (c x^n\right )\right )\right )\right )}{b d n} \]

Antiderivative was successfully verified.

[In]

Integrate[Tanh[d*(a + b*Log[c*x^n])]/x,x]

[Out]

Log[Cosh[d*(a + b*Log[c*x^n])]]/(b*d*n)

________________________________________________________________________________________

Maple [B]  time = 0.004, size = 56, normalized size = 2.2 \begin{align*} -{\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]

int(tanh(d*(a+b*ln(c*x^n)))/x,x)

[Out]

-1/2/b/d/n*ln(tanh(d*(a+b*ln(c*x^n)))-1)-1/2/b/d/n*ln(tanh(d*(a+b*ln(c*x^n)))+1)

________________________________________________________________________________________

Maxima [A]  time = 1.08618, size = 32, normalized size = 1.28 \begin{align*} \frac{\log \left (\cosh \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right )\right )}{b d n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(d*(a+b*log(c*x^n)))/x,x, algorithm="maxima")

[Out]

log(cosh((b*log(c*x^n) + a)*d))/(b*d*n)

________________________________________________________________________________________

Fricas [B]  time = 2.14591, size = 205, normalized size = 8.2 \begin{align*} -\frac{b d n \log \left (x\right ) - \log \left (\frac{2 \, \cosh \left (b d n \log \left (x\right ) + b d \log \left (c\right ) + a d\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 )}\right )}{b d n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(d*(a+b*log(c*x^n)))/x,x, algorithm="fricas")

[Out]

-(b*d*n*log(x) - log(2*cosh(b*d*n*log(x) + b*d*log(c) + a*d)/(cosh(b*d*n*log(x) + b*d*log(c) + a*d) - sinh(b*d
*n*log(x) + b*d*log(c) + a*d))))/(b*d*n)

________________________________________________________________________________________

Sympy [A]  time = 5.89987, size = 36, normalized size = 1.44 \begin{align*} - \frac{\log{\left (b d n \tanh ^{2}{\left (a d + b d \log{\left (c x^{n} \right )} \right )} - b d n \right )}}{2 b d n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(d*(a+b*ln(c*x**n)))/x,x)

[Out]

-log(b*d*n*tanh(a*d + b*d*log(c*x**n))**2 - b*d*n)/(2*b*d*n)

________________________________________________________________________________________

Giac [B]  time = 1.37024, size = 99, normalized size = 3.96 \begin{align*} \frac{\log \left (2 \, x^{2 \, b d n}{\left | c \right |}^{2 \, b d} \cos \left (\pi b d \mathrm{sgn}\left (c\right ) - \pi b d\right ) e^{\left (2 \, a d\right )} + x^{4 \, b d n}{\left | c \right |}^{4 \, b d} e^{\left (4 \, a d\right )} + 1\right )}{2 \, b d n} - \log \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(d*(a+b*log(c*x^n)))/x,x, algorithm="giac")

[Out]

1/2*log(2*x^(2*b*d*n)*abs(c)^(2*b*d)*cos(pi*b*d*sgn(c) - pi*b*d)*e^(2*a*d) + x^(4*b*d*n)*abs(c)^(4*b*d)*e^(4*a
*d) + 1)/(b*d*n) - log(x)