3.143 \(\int \frac {\coth ^{-1}(\tanh (a+b x))^2}{x^3} \, dx\)

Optimal. Leaf size=36 \[ -\frac {\coth ^{-1}(\tanh (a+b x))^2}{2 x^2}-\frac {b \coth ^{-1}(\tanh (a+b x))}{x}+b^2 \log (x) \]

[Out]

-b*arccoth(tanh(b*x+a))/x-1/2*arccoth(tanh(b*x+a))^2/x^2+b^2*ln(x)

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2168, 29} \[ -\frac {\coth ^{-1}(\tanh (a+b x))^2}{2 x^2}-\frac {b \coth ^{-1}(\tanh (a+b x))}{x}+b^2 \log (x) \]

Antiderivative was successfully verified.

[In]

Int[ArcCoth[Tanh[a + b*x]]^2/x^3,x]

[Out]

-((b*ArcCoth[Tanh[a + b*x]])/x) - ArcCoth[Tanh[a + b*x]]^2/(2*x^2) + b^2*Log[x]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 2168

Int[(u_)^(m_)*(v_)^(n_.), x_Symbol] :> With[{a = Simplify[D[u, x]], b = Simplify[D[v, x]]}, Simp[(u^(m + 1)*v^
n)/(a*(m + 1)), x] - Dist[(b*n)/(a*(m + 1)), Int[u^(m + 1)*v^(n - 1), x], x] /; NeQ[b*u - a*v, 0]] /; FreeQ[{m
, n}, x] && PiecewiseLinearQ[u, v, x] && NeQ[m, -1] && ((LtQ[m, -1] && GtQ[n, 0] &&  !(ILtQ[m + n, -2] && (Fra
ctionQ[m] || GeQ[2*n + m + 1, 0]))) || (IGtQ[n, 0] && IGtQ[m, 0] && LeQ[n, m]) || (IGtQ[n, 0] &&  !IntegerQ[m]
) || (ILtQ[m, 0] &&  !IntegerQ[n]))

Rubi steps

\begin {align*} \int \frac {\coth ^{-1}(\tanh (a+b x))^2}{x^3} \, dx &=-\frac {\coth ^{-1}(\tanh (a+b x))^2}{2 x^2}+b \int \frac {\coth ^{-1}(\tanh (a+b x))}{x^2} \, dx\\ &=-\frac {b \coth ^{-1}(\tanh (a+b x))}{x}-\frac {\coth ^{-1}(\tanh (a+b x))^2}{2 x^2}+b^2 \int \frac {1}{x} \, dx\\ &=-\frac {b \coth ^{-1}(\tanh (a+b x))}{x}-\frac {\coth ^{-1}(\tanh (a+b x))^2}{2 x^2}+b^2 \log (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 42, normalized size = 1.17 \[ -\frac {2 b x \coth ^{-1}(\tanh (a+b x))+\coth ^{-1}(\tanh (a+b x))^2-b^2 x^2 (2 \log (x)+3)}{2 x^2} \]

Antiderivative was successfully verified.

[In]

Integrate[ArcCoth[Tanh[a + b*x]]^2/x^3,x]

[Out]

-1/2*(2*b*x*ArcCoth[Tanh[a + b*x]] + ArcCoth[Tanh[a + b*x]]^2 - b^2*x^2*(3 + 2*Log[x]))/x^2

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 29, normalized size = 0.81 \[ \frac {8 \, b^{2} x^{2} \log \relax (x) - 16 \, a b x + \pi ^{2} - 4 \, a^{2}}{8 \, x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arccoth(tanh(b*x+a))^2/x^3,x, algorithm="fricas")

[Out]

1/8*(8*b^2*x^2*log(x) - 16*a*b*x + pi^2 - 4*a^2)/x^2

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {arcoth}\left (\tanh \left (b x + a\right )\right )^{2}}{x^{3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arccoth(tanh(b*x+a))^2/x^3,x, algorithm="giac")

[Out]

integrate(arccoth(tanh(b*x + a))^2/x^3, x)

________________________________________________________________________________________

maple [C]  time = 0.43, size = 3213, normalized size = 89.25 \[ \text {output too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arccoth(tan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(b*x+a))*c
sgn(I*exp(2*b*x+2*a))^2*csgn(I/(exp(2*b*x+2*a)+1))^2-2*Pi^2*csgn(I*exp(b*x+a))^2*csgn(I*exp(2*b*x+2*a))^2*csgn
(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1))^2+4*Pi^2*csgn(I*exp(b*x+a))*csgn(I*exp(2*b*x+2*a))^3*csgn(I*exp(2*b*x+2*
a)/(exp(2*b*x+2*a)+1))^2-2*Pi^2*csgn(I/(exp(2*b*x+2*a)+1))^2*csgn(I*exp(2*b*x+2*a))*csgn(I*exp(2*b*x+2*a)/(exp
(2*b*x+2*a)+1))^3+2*Pi^2*csgn(I/(exp(2*b*x+2*a)+1))*csgn(I*exp(2*b*x+2*a))^4*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+
2*a)+1))+8*I*Pi*b*x*csgn(I*exp(b*x+a))^2*csgn(I*exp(2*b*x+2*a))+4*Pi^2*csgn(I/(exp(2*b*x+2*a)+1))*csgn(I*exp(b
*x+a))*csgn(I*exp(2*b*x+2*a))^2*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1))^2-8*I*Pi*b*x*csgn(I*exp(2*b*x+2*a))*
csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1))^2-16*I*Pi*b*x*csgn(I*exp(b*x+a))*csgn(I*exp(2*b*x+2*a))^2)/x^2

________________________________________________________________________________________

maxima [A]  time = 0.46, size = 34, normalized size = 0.94 \[ b^{2} \log \relax (x) - \frac {b \operatorname {arcoth}\left (\tanh \left (b x + a\right )\right )}{x} - \frac {\operatorname {arcoth}\left (\tanh \left (b x + a\right )\right )^{2}}{2 \, x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arccoth(tanh(b*x+a))^2/x^3,x, algorithm="maxima")

[Out]

b^2*log(x) - b*arccoth(tanh(b*x + a))/x - 1/2*arccoth(tanh(b*x + a))^2/x^2

________________________________________________________________________________________

mupad [B]  time = 1.16, size = 34, normalized size = 0.94 \[ b^2\,\ln \relax (x)-\frac {\frac {{\mathrm {acoth}\left (\mathrm {tanh}\left (a+b\,x\right )\right )}^2}{2}+b\,x\,\mathrm {acoth}\left (\mathrm {tanh}\left (a+b\,x\right )\right )}{x^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(acoth(tanh(a + b*x))^2/x^3,x)

[Out]

b^2*log(x) - (acoth(tanh(a + b*x))^2/2 + b*x*acoth(tanh(a + b*x)))/x^2

________________________________________________________________________________________

sympy [A]  time = 0.57, size = 32, normalized size = 0.89 \[ b^{2} \log {\relax (x )} - \frac {b \operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )}}{x} - \frac {\operatorname {acoth}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{2 x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(acoth(tanh(b*x+a))**2/x**3,x)

[Out]

b**2*log(x) - b*acoth(tanh(a + b*x))/x - acoth(tanh(a + b*x))**2/(2*x**2)

________________________________________________________________________________________