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]

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

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 25, normalized size of antiderivative = 1.00, 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.05, 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)

________________________________________________________________________________________

fricas [B]  time = 0.52, size = 76, normalized size = 3.04 \[ -\frac {b d n \log \relax (x) - \log \left (\frac {2 \, \cosh \left (b d n \log \relax (x) + b d \log \relax (c) + a d\right )}{\cosh \left (b d n \log \relax (x) + b d \log \relax (c) + a d\right ) - \sinh \left (b d n \log \relax (x) + b d \log \relax (c) + a d\right )}\right )}{b d n} \]

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)

________________________________________________________________________________________

giac [B]  time = 0.29, size = 74, normalized size = 2.96 \[ \frac {\log \left (\sqrt {2 \, x^{2 \, b d n} {\left | c \right |}^{2 \, b d} \cos \left (\pi b d \mathrm {sgn}\relax (c) - \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 )}{b d n} - \log \relax (x) \]

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]

log(sqrt(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)

________________________________________________________________________________________

maple [B]  time = 0.01, size = 56, normalized size = 2.24 \[ -\frac {\ln \left (\tanh \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )-1\right )}{2 b d n}-\frac {\ln \left (\tanh \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )+1\right )}{2 b d n} \]

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 = 0.30, size = 24, normalized size = 0.96 \[ \frac {\log \left (\cosh \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right )\right )}{b d n} \]

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)

________________________________________________________________________________________

mupad [B]  time = 1.06, size = 34, normalized size = 1.36 \[ \frac {\ln \left ({\mathrm {e}}^{2\,a\,d}\,{\left (c\,x^n\right )}^{2\,b\,d}+1\right )}{b\,d\,n}-\ln \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(exp(2*a*d)*(c*x^n)^(2*b*d) + 1)/(b*d*n) - log(x)

________________________________________________________________________________________

sympy [A]  time = 3.08, size = 36, normalized size = 1.44 \[ - \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} \]

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)

________________________________________________________________________________________