3.185 \(\int (e+f x) \cot ^{-1}(\tanh (a+b x)) \, dx\)

Optimal. Leaf size=159 \[ \frac {i f \text {Li}_3\left (-i e^{2 a+2 b x}\right )}{8 b^2}-\frac {i f \text {Li}_3\left (i e^{2 a+2 b x}\right )}{8 b^2}-\frac {i (e+f x) \text {Li}_2\left (-i e^{2 a+2 b x}\right )}{4 b}+\frac {i (e+f x) \text {Li}_2\left (i e^{2 a+2 b x}\right )}{4 b}+\frac {(e+f x)^2 \tan ^{-1}\left (e^{2 a+2 b x}\right )}{2 f}+\frac {(e+f x)^2 \cot ^{-1}(\tanh (a+b x))}{2 f} \]

[Out]

1/2*(f*x+e)^2*arccot(tanh(b*x+a))/f+1/2*(f*x+e)^2*arctan(exp(2*b*x+2*a))/f-1/4*I*(f*x+e)*polylog(2,-I*exp(2*b*
x+2*a))/b+1/4*I*(f*x+e)*polylog(2,I*exp(2*b*x+2*a))/b+1/8*I*f*polylog(3,-I*exp(2*b*x+2*a))/b^2-1/8*I*f*polylog
(3,I*exp(2*b*x+2*a))/b^2

________________________________________________________________________________________

Rubi [A]  time = 0.10, antiderivative size = 159, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 5, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {5184, 4180, 2531, 2282, 6589} \[ \frac {i f \text {PolyLog}\left (3,-i e^{2 a+2 b x}\right )}{8 b^2}-\frac {i f \text {PolyLog}\left (3,i e^{2 a+2 b x}\right )}{8 b^2}-\frac {i (e+f x) \text {PolyLog}\left (2,-i e^{2 a+2 b x}\right )}{4 b}+\frac {i (e+f x) \text {PolyLog}\left (2,i e^{2 a+2 b x}\right )}{4 b}+\frac {(e+f x)^2 \tan ^{-1}\left (e^{2 a+2 b x}\right )}{2 f}+\frac {(e+f x)^2 \cot ^{-1}(\tanh (a+b x))}{2 f} \]

Antiderivative was successfully verified.

[In]

Int[(e + f*x)*ArcCot[Tanh[a + b*x]],x]

[Out]

((e + f*x)^2*ArcCot[Tanh[a + b*x]])/(2*f) + ((e + f*x)^2*ArcTan[E^(2*a + 2*b*x)])/(2*f) - ((I/4)*(e + f*x)*Pol
yLog[2, (-I)*E^(2*a + 2*b*x)])/b + ((I/4)*(e + f*x)*PolyLog[2, I*E^(2*a + 2*b*x)])/b + ((I/8)*f*PolyLog[3, (-I
)*E^(2*a + 2*b*x)])/b^2 - ((I/8)*f*PolyLog[3, I*E^(2*a + 2*b*x)])/b^2

Rule 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 2531

Int[Log[1 + (e_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.)]*((f_.) + (g_.)*(x_))^(m_.), x_Symbol] :> -Simp[((
f + g*x)^m*PolyLog[2, -(e*(F^(c*(a + b*x)))^n)])/(b*c*n*Log[F]), x] + Dist[(g*m)/(b*c*n*Log[F]), Int[(f + g*x)
^(m - 1)*PolyLog[2, -(e*(F^(c*(a + b*x)))^n)], x], x] /; FreeQ[{F, a, b, c, e, f, g, n}, x] && GtQ[m, 0]

Rule 4180

Int[csc[(e_.) + Pi*(k_.) + (Complex[0, fz_])*(f_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(-2*(c
+ d*x)^m*ArcTanh[E^(-(I*e) + f*fz*x)/E^(I*k*Pi)])/(f*fz*I), x] + (-Dist[(d*m)/(f*fz*I), Int[(c + d*x)^(m - 1)*
Log[1 - E^(-(I*e) + f*fz*x)/E^(I*k*Pi)], x], x] + Dist[(d*m)/(f*fz*I), Int[(c + d*x)^(m - 1)*Log[1 + E^(-(I*e)
 + f*fz*x)/E^(I*k*Pi)], x], x]) /; FreeQ[{c, d, e, f, fz}, x] && IntegerQ[2*k] && IGtQ[m, 0]

Rule 5184

Int[ArcCot[Tanh[(a_.) + (b_.)*(x_)]]*((e_.) + (f_.)*(x_))^(m_.), x_Symbol] :> Simp[((e + f*x)^(m + 1)*ArcCot[T
anh[a + b*x]])/(f*(m + 1)), x] + Dist[b/(f*(m + 1)), Int[(e + f*x)^(m + 1)*Sech[2*a + 2*b*x], x], x] /; FreeQ[
{a, b, e, f}, x] && IGtQ[m, 0]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int (e+f x) \cot ^{-1}(\tanh (a+b x)) \, dx &=\frac {(e+f x)^2 \cot ^{-1}(\tanh (a+b x))}{2 f}+\frac {b \int (e+f x)^2 \text {sech}(2 a+2 b x) \, dx}{2 f}\\ &=\frac {(e+f x)^2 \cot ^{-1}(\tanh (a+b x))}{2 f}+\frac {(e+f x)^2 \tan ^{-1}\left (e^{2 a+2 b x}\right )}{2 f}-\frac {1}{2} i \int (e+f x) \log \left (1-i e^{2 a+2 b x}\right ) \, dx+\frac {1}{2} i \int (e+f x) \log \left (1+i e^{2 a+2 b x}\right ) \, dx\\ &=\frac {(e+f x)^2 \cot ^{-1}(\tanh (a+b x))}{2 f}+\frac {(e+f x)^2 \tan ^{-1}\left (e^{2 a+2 b x}\right )}{2 f}-\frac {i (e+f x) \text {Li}_2\left (-i e^{2 a+2 b x}\right )}{4 b}+\frac {i (e+f x) \text {Li}_2\left (i e^{2 a+2 b x}\right )}{4 b}+\frac {(i f) \int \text {Li}_2\left (-i e^{2 a+2 b x}\right ) \, dx}{4 b}-\frac {(i f) \int \text {Li}_2\left (i e^{2 a+2 b x}\right ) \, dx}{4 b}\\ &=\frac {(e+f x)^2 \cot ^{-1}(\tanh (a+b x))}{2 f}+\frac {(e+f x)^2 \tan ^{-1}\left (e^{2 a+2 b x}\right )}{2 f}-\frac {i (e+f x) \text {Li}_2\left (-i e^{2 a+2 b x}\right )}{4 b}+\frac {i (e+f x) \text {Li}_2\left (i e^{2 a+2 b x}\right )}{4 b}+\frac {(i f) \operatorname {Subst}\left (\int \frac {\text {Li}_2(-i x)}{x} \, dx,x,e^{2 a+2 b x}\right )}{8 b^2}-\frac {(i f) \operatorname {Subst}\left (\int \frac {\text {Li}_2(i x)}{x} \, dx,x,e^{2 a+2 b x}\right )}{8 b^2}\\ &=\frac {(e+f x)^2 \cot ^{-1}(\tanh (a+b x))}{2 f}+\frac {(e+f x)^2 \tan ^{-1}\left (e^{2 a+2 b x}\right )}{2 f}-\frac {i (e+f x) \text {Li}_2\left (-i e^{2 a+2 b x}\right )}{4 b}+\frac {i (e+f x) \text {Li}_2\left (i e^{2 a+2 b x}\right )}{4 b}+\frac {i f \text {Li}_3\left (-i e^{2 a+2 b x}\right )}{8 b^2}-\frac {i f \text {Li}_3\left (i e^{2 a+2 b x}\right )}{8 b^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.24, size = 278, normalized size = 1.75 \[ \frac {i f \left (2 b^2 x^2 \log \left (1-i e^{2 (a+b x)}\right )-2 b^2 x^2 \log \left (1+i e^{2 (a+b x)}\right )-2 b x \text {Li}_2\left (-i e^{2 (a+b x)}\right )+2 b x \text {Li}_2\left (i e^{2 (a+b x)}\right )+\text {Li}_3\left (-i e^{2 (a+b x)}\right )-\text {Li}_3\left (i e^{2 (a+b x)}\right )\right )}{8 b^2}+\frac {e \left (-2 i \left (\text {Li}_2\left (-i e^{2 (a+b x)}\right )-\text {Li}_2\left (i e^{2 (a+b x)}\right )\right )-\left ((-4 i a-4 i b x+\pi ) \left (\log \left (1-i e^{2 (a+b x)}\right )-\log \left (1+i e^{2 (a+b x)}\right )\right )\right )+(\pi -4 i a) \log \left (\cot \left (\frac {1}{4} (4 i a+4 i b x+\pi )\right )\right )\right )}{8 b}+e x \cot ^{-1}(\tanh (a+b x))+\frac {1}{2} f x^2 \cot ^{-1}(\tanh (a+b x)) \]

Antiderivative was successfully verified.

[In]

Integrate[(e + f*x)*ArcCot[Tanh[a + b*x]],x]

[Out]

e*x*ArcCot[Tanh[a + b*x]] + (f*x^2*ArcCot[Tanh[a + b*x]])/2 + (e*(-(((-4*I)*a + Pi - (4*I)*b*x)*(Log[1 - I*E^(
2*(a + b*x))] - Log[1 + I*E^(2*(a + b*x))])) + ((-4*I)*a + Pi)*Log[Cot[((4*I)*a + Pi + (4*I)*b*x)/4]] - (2*I)*
(PolyLog[2, (-I)*E^(2*(a + b*x))] - PolyLog[2, I*E^(2*(a + b*x))])))/(8*b) + ((I/8)*f*(2*b^2*x^2*Log[1 - I*E^(
2*(a + b*x))] - 2*b^2*x^2*Log[1 + I*E^(2*(a + b*x))] - 2*b*x*PolyLog[2, (-I)*E^(2*(a + b*x))] + 2*b*x*PolyLog[
2, I*E^(2*(a + b*x))] + PolyLog[3, (-I)*E^(2*(a + b*x))] - PolyLog[3, I*E^(2*(a + b*x))]))/b^2

________________________________________________________________________________________

fricas [C]  time = 0.84, size = 596, normalized size = 3.75 \[ \frac {2 \, {\left (b^{2} f x^{2} + 2 \, b^{2} e x\right )} \arctan \left (\frac {\cosh \left (b x + a\right )}{\sinh \left (b x + a\right )}\right ) + {\left (2 i \, b f x + 2 i \, b e\right )} {\rm Li}_2\left (\frac {1}{2} \, \sqrt {4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}\right ) + {\left (2 i \, b f x + 2 i \, b e\right )} {\rm Li}_2\left (-\frac {1}{2} \, \sqrt {4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}\right ) + {\left (-2 i \, b f x - 2 i \, b e\right )} {\rm Li}_2\left (\frac {1}{2} \, \sqrt {-4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}\right ) + {\left (-2 i \, b f x - 2 i \, b e\right )} {\rm Li}_2\left (-\frac {1}{2} \, \sqrt {-4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}\right ) + {\left (i \, b^{2} f x^{2} + 2 i \, b^{2} e x + 2 i \, a b e - i \, a^{2} f\right )} \log \left (\frac {1}{2} \, \sqrt {4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )} + 1\right ) + {\left (i \, b^{2} f x^{2} + 2 i \, b^{2} e x + 2 i \, a b e - i \, a^{2} f\right )} \log \left (-\frac {1}{2} \, \sqrt {4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )} + 1\right ) + {\left (-i \, b^{2} f x^{2} - 2 i \, b^{2} e x - 2 i \, a b e + i \, a^{2} f\right )} \log \left (\frac {1}{2} \, \sqrt {-4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )} + 1\right ) + {\left (-i \, b^{2} f x^{2} - 2 i \, b^{2} e x - 2 i \, a b e + i \, a^{2} f\right )} \log \left (-\frac {1}{2} \, \sqrt {-4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )} + 1\right ) + {\left (-2 i \, a b e + i \, a^{2} f\right )} \log \left (i \, \sqrt {4 i} + 2 \, \cosh \left (b x + a\right ) + 2 \, \sinh \left (b x + a\right )\right ) + {\left (-2 i \, a b e + i \, a^{2} f\right )} \log \left (-i \, \sqrt {4 i} + 2 \, \cosh \left (b x + a\right ) + 2 \, \sinh \left (b x + a\right )\right ) + {\left (2 i \, a b e - i \, a^{2} f\right )} \log \left (i \, \sqrt {-4 i} + 2 \, \cosh \left (b x + a\right ) + 2 \, \sinh \left (b x + a\right )\right ) + {\left (2 i \, a b e - i \, a^{2} f\right )} \log \left (-i \, \sqrt {-4 i} + 2 \, \cosh \left (b x + a\right ) + 2 \, \sinh \left (b x + a\right )\right ) - 2 i \, f {\rm polylog}\left (3, \frac {1}{2} \, \sqrt {4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}\right ) - 2 i \, f {\rm polylog}\left (3, -\frac {1}{2} \, \sqrt {4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}\right ) + 2 i \, f {\rm polylog}\left (3, \frac {1}{2} \, \sqrt {-4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}\right ) + 2 i \, f {\rm polylog}\left (3, -\frac {1}{2} \, \sqrt {-4 i} {\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right )}\right )}{4 \, b^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*arccot(tanh(b*x+a)),x, algorithm="fricas")

[Out]

1/4*(2*(b^2*f*x^2 + 2*b^2*e*x)*arctan(cosh(b*x + a)/sinh(b*x + a)) + (2*I*b*f*x + 2*I*b*e)*dilog(1/2*sqrt(4*I)
*(cosh(b*x + a) + sinh(b*x + a))) + (2*I*b*f*x + 2*I*b*e)*dilog(-1/2*sqrt(4*I)*(cosh(b*x + a) + sinh(b*x + a))
) + (-2*I*b*f*x - 2*I*b*e)*dilog(1/2*sqrt(-4*I)*(cosh(b*x + a) + sinh(b*x + a))) + (-2*I*b*f*x - 2*I*b*e)*dilo
g(-1/2*sqrt(-4*I)*(cosh(b*x + a) + sinh(b*x + a))) + (I*b^2*f*x^2 + 2*I*b^2*e*x + 2*I*a*b*e - I*a^2*f)*log(1/2
*sqrt(4*I)*(cosh(b*x + a) + sinh(b*x + a)) + 1) + (I*b^2*f*x^2 + 2*I*b^2*e*x + 2*I*a*b*e - I*a^2*f)*log(-1/2*s
qrt(4*I)*(cosh(b*x + a) + sinh(b*x + a)) + 1) + (-I*b^2*f*x^2 - 2*I*b^2*e*x - 2*I*a*b*e + I*a^2*f)*log(1/2*sqr
t(-4*I)*(cosh(b*x + a) + sinh(b*x + a)) + 1) + (-I*b^2*f*x^2 - 2*I*b^2*e*x - 2*I*a*b*e + I*a^2*f)*log(-1/2*sqr
t(-4*I)*(cosh(b*x + a) + sinh(b*x + a)) + 1) + (-2*I*a*b*e + I*a^2*f)*log(I*sqrt(4*I) + 2*cosh(b*x + a) + 2*si
nh(b*x + a)) + (-2*I*a*b*e + I*a^2*f)*log(-I*sqrt(4*I) + 2*cosh(b*x + a) + 2*sinh(b*x + a)) + (2*I*a*b*e - I*a
^2*f)*log(I*sqrt(-4*I) + 2*cosh(b*x + a) + 2*sinh(b*x + a)) + (2*I*a*b*e - I*a^2*f)*log(-I*sqrt(-4*I) + 2*cosh
(b*x + a) + 2*sinh(b*x + a)) - 2*I*f*polylog(3, 1/2*sqrt(4*I)*(cosh(b*x + a) + sinh(b*x + a))) - 2*I*f*polylog
(3, -1/2*sqrt(4*I)*(cosh(b*x + a) + sinh(b*x + a))) + 2*I*f*polylog(3, 1/2*sqrt(-4*I)*(cosh(b*x + a) + sinh(b*
x + a))) + 2*I*f*polylog(3, -1/2*sqrt(-4*I)*(cosh(b*x + a) + sinh(b*x + a))))/b^2

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*arccot(tanh(b*x+a)),x, algorithm="giac")

[Out]

sage0*x

________________________________________________________________________________________

maple [C]  time = 5.13, size = 2688, normalized size = 16.91 \[ \text {Expression too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x+e)*arccot(tanh(b*x+a)),x)

[Out]

-1/8*Pi*x^2*f*csgn((1+I)*(exp(2*b*x+2*a)+I)/(exp(2*b*x+2*a)+1))^3+1/4*Pi*x*e*csgn(I*(exp(2*b*x+2*a)-I)/(exp(2*
b*x+2*a)+1))^3-1/8*I*f*polylog(3,I*exp(2*b*x+2*a))/b^2-1/8*Pi*x^2*f*csgn(I*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p(2*b*x+2*a)+I)+1/4*I/b^2*f*a^2*ln(exp(2*b*x+2*a)+I)+1/8*I*f*polylog(3,
-I*exp(2*b*x+2*a))/b^2

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{2} \, {\left (f x^{2} + 2 \, e x\right )} \arctan \left (e^{\left (2 \, b x + 2 \, a\right )} + 1, e^{\left (2 \, b x + 2 \, a\right )} - 1\right ) + \int \frac {{\left (b f x^{2} e^{\left (2 \, a\right )} + 2 \, b e x e^{\left (2 \, a\right )}\right )} e^{\left (2 \, b x\right )}}{e^{\left (4 \, b x + 4 \, a\right )} + 1}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*arccot(tanh(b*x+a)),x, algorithm="maxima")

[Out]

1/2*(f*x^2 + 2*e*x)*arctan2(e^(2*b*x + 2*a) + 1, e^(2*b*x + 2*a) - 1) + integrate((b*f*x^2*e^(2*a) + 2*b*e*x*e
^(2*a))*e^(2*b*x)/(e^(4*b*x + 4*a) + 1), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \mathrm {acot}\left (\mathrm {tanh}\left (a+b\,x\right )\right )\,\left (e+f\,x\right ) \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(acot(tanh(a + b*x))*(e + f*x),x)

[Out]

int(acot(tanh(a + b*x))*(e + f*x), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (e + f x\right ) \operatorname {acot}{\left (\tanh {\left (a + b x \right )} \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*acot(tanh(b*x+a)),x)

[Out]

Integral((e + f*x)*acot(tanh(a + b*x)), x)

________________________________________________________________________________________