\(\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx\) [161]
Optimal result
Integrand size = 11, antiderivative size = 31 \[
\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx=\frac {x}{b}+\frac {\left (b x-\coth ^{-1}(\tanh (a+b x))\right ) \log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^2}
\]
[Out]
x/b+(b*x-arccoth(tanh(b*x+a)))*ln(arccoth(tanh(b*x+a)))/b^2
Rubi [A] (verified)
Time = 0.01 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.00, number of
steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {2189, 2188, 29}
\[
\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx=\frac {\left (b x-\coth ^{-1}(\tanh (a+b x))\right ) \log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^2}+\frac {x}{b}
\]
[In]
Int[x/ArcCoth[Tanh[a + b*x]],x]
[Out]
x/b + ((b*x - ArcCoth[Tanh[a + b*x]])*Log[ArcCoth[Tanh[a + b*x]]])/b^2
Rule 29
Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]
Rule 2188
Int[(u_)^(m_.), x_Symbol] :> With[{c = Simplify[D[u, x]]}, Dist[1/c, Subst[Int[x^m, x], x, u], x]] /; FreeQ[m,
x] && PiecewiseLinearQ[u, x]
Rule 2189
Int[(v_)/(u_), x_Symbol] :> With[{a = Simplify[D[u, x]], b = Simplify[D[v, x]]}, Simp[b*(x/a), x] - Dist[(b*u
- a*v)/a, Int[1/u, x], x] /; NeQ[b*u - a*v, 0]] /; PiecewiseLinearQ[u, v, x]
Rubi steps \begin{align*}
\text {integral}& = \frac {x}{b}-\frac {\left (-b x+\coth ^{-1}(\tanh (a+b x))\right ) \int \frac {1}{\coth ^{-1}(\tanh (a+b x))} \, dx}{b} \\ & = \frac {x}{b}-\frac {\left (-b x+\coth ^{-1}(\tanh (a+b x))\right ) \text {Subst}\left (\int \frac {1}{x} \, dx,x,\coth ^{-1}(\tanh (a+b x))\right )}{b^2} \\ & = \frac {x}{b}+\frac {\left (b x-\coth ^{-1}(\tanh (a+b x))\right ) \log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^2} \\
\end{align*}
Mathematica [A] (verified)
Time = 0.02 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.00
\[
\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx=\frac {x}{b}-\frac {\left (-b x+\coth ^{-1}(\tanh (a+b x))\right ) \log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^2}
\]
[In]
Integrate[x/ArcCoth[Tanh[a + b*x]],x]
[Out]
x/b - ((-(b*x) + ArcCoth[Tanh[a + b*x]])*Log[ArcCoth[Tanh[a + b*x]]])/b^2
Maple [C] (warning: unable to verify)
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.20 (sec) , antiderivative size = 4303, normalized size of antiderivative =
138.81
| | |
method | result | size |
| | |
risch |
\(\text {Expression too large to display}\) |
\(4303\) |
| | |
|
|
|
[In]
int(x/arccoth(tanh(b*x+a)),x,method=_RETURNVERBOSE)
[Out]
x/b+1/4*I/b^2*ln(Pi*csgn(I/(exp(2*b*x+2*a)+1))*csgn(I*exp(2*b*x+2*a))*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1)
)-Pi*csgn(I/(exp(2*b*x+2*a)+1))*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1))^2+2*Pi*csgn(I/(exp(2*b*x+2*a)+1))^3-
2*Pi*csgn(I/(exp(2*b*x+2*a)+1))^2+Pi*csgn(I*exp(b*x+a))^2*csgn(I*exp(2*b*x+2*a))-2*Pi*csgn(I*exp(b*x+a))*csgn(
I*exp(2*b*x+2*a))^2+Pi*csgn(I*exp(2*b*x+2*a))^3-Pi*csgn(I*exp(2*b*x+2*a))*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a
)+1))^2+Pi*csg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*a)
/(exp(2*b*x+2*a)+1))-Pi*csgn(I/(exp(2*b*x+2*a)+1))*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1))^2+2*Pi*csgn(I/(ex
p(2*b*x+2*a)+1))^3-2*Pi*csgn(I/(exp(2*b*x+2*a)+1))^2+Pi*csgn(I*exp(b*x+a))^2*csgn(I*exp(2*b*x+2*a))-2*Pi*csgn(
I*exp(b*x+a))*csgn(I*exp(2*b*x+2*a))^2+Pi*csgn(I*exp(2*b*x+2*a))^3-Pi*csgn(I*exp(2*b*x+2*a))*csgn(I*exp(2*b*x+
2*a)/(exp(2*b*x+2*a)+1))^2+Pi*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1))^3+4*I*(ln(exp(b*x+a))-b*x-a)+4*I*a+4*I
*b*x+2*Pi)*x-1/b^2*ln(Pi*csgn(I/(exp(2*b*x+2*a)+1))*csgn(I*exp(2*b*x+2*a))*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*
a)+1))-Pi*csgn(I/(exp(2*b*x+2*a)+1))*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1))^2+2*Pi*csgn(I/(exp(2*b*x+2*a)+1
))^3-2*Pi*csgn(I/(exp(2*b*x+2*a)+1))^2+Pi*csgn(I*exp(b*x+a))^2*csgn(I*exp(2*b*x+2*a))-2*Pi*csgn(I*exp(b*x+a))*
csgn(I*exp(2*b*x+2*a))^2+Pi*csgn(I*exp(2*b*x+2*a))^3-Pi*csgn(I*exp(2*b*x+2*a))*csgn(I*exp(2*b*x+2*a)/(exp(2*b*
x+2*a)+1))^2+Pi*csgn(I*exp(2*b*x+2*a)/(exp(2*b*x+2*a)+1))^3+4*I*(ln(exp(b*x+a))-b*x-a)+4*I*a+4*I*b*x+2*Pi)*ln(
exp(b*x+a))
Fricas [C] (verification not implemented)
Result contains complex when optimal does not.
Time = 0.25 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.97
\[
\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx=\frac {2 \, b x + {\left (-i \, \pi - 2 \, a\right )} \log \left (i \, \pi + 2 \, b x + 2 \, a\right )}{2 \, b^{2}}
\]
[In]
integrate(x/arccoth(tanh(b*x+a)),x, algorithm="fricas")
[Out]
1/2*(2*b*x + (-I*pi - 2*a)*log(I*pi + 2*b*x + 2*a))/b^2
Sympy [F]
\[
\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx=\int \frac {x}{\operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )}}\, dx
\]
[In]
integrate(x/acoth(tanh(b*x+a)),x)
[Out]
Integral(x/acoth(tanh(a + b*x)), x)
Maxima [C] (verification not implemented)
Result contains complex when optimal does not.
Time = 0.36 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.97
\[
\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx=\frac {x}{b} - \frac {{\left (-i \, \pi + 2 \, a\right )} \log \left (-i \, \pi + 2 \, b x + 2 \, a\right )}{2 \, b^{2}}
\]
[In]
integrate(x/arccoth(tanh(b*x+a)),x, algorithm="maxima")
[Out]
x/b - 1/2*(-I*pi + 2*a)*log(-I*pi + 2*b*x + 2*a)/b^2
Giac [C] (verification not implemented)
Result contains complex when optimal does not.
Time = 0.28 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.90
\[
\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx=\frac {x}{b} - \frac {{\left (i \, \pi + 2 \, a\right )} \log \left (\pi - 2 i \, b x - 2 i \, a\right )}{2 \, b^{2}}
\]
[In]
integrate(x/arccoth(tanh(b*x+a)),x, algorithm="giac")
[Out]
x/b - 1/2*(I*pi + 2*a)*log(pi - 2*I*b*x - 2*I*a)/b^2
Mupad [B] (verification not implemented)
Time = 3.91 (sec) , antiderivative size = 108, normalized size of antiderivative = 3.48
\[
\int \frac {x}{\coth ^{-1}(\tanh (a+b x))} \, dx=\frac {x}{b}+\frac {\ln \left (\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )-\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )\right )\,\left (\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )-\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )+2\,b\,x\right )}{2\,b^2}
\]
[In]
int(x/acoth(tanh(a + b*x)),x)
[Out]
x/b + (log(log((2*exp(2*a)*exp(2*b*x))/(exp(2*a)*exp(2*b*x) - 1)) - log(-2/(exp(2*a)*exp(2*b*x) - 1)))*(log(-2
/(exp(2*a)*exp(2*b*x) - 1)) - log((2*exp(2*a)*exp(2*b*x))/(exp(2*a)*exp(2*b*x) - 1)) + 2*b*x))/(2*b^2)