Integrand size = 7, antiderivative size = 74 \[ \int \cot ^{-1}(\coth (a+b x)) \, dx=x \cot ^{-1}(\coth (a+b x))-x \arctan \left (e^{2 a+2 b x}\right )+\frac {i \operatorname {PolyLog}\left (2,-i e^{2 a+2 b x}\right )}{4 b}-\frac {i \operatorname {PolyLog}\left (2,i e^{2 a+2 b x}\right )}{4 b} \]
x*arccot(coth(b*x+a))-x*arctan(exp(2*b*x+2*a))+1/4*I*polylog(2,-I*exp(2*b* x+2*a))/b-1/4*I*polylog(2,I*exp(2*b*x+2*a))/b
Time = 0.02 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.23 \[ \int \cot ^{-1}(\coth (a+b x)) \, dx=x \cot ^{-1}(\coth (a+b x))-\frac {i \left (2 b x \left (\log \left (1-i e^{2 (a+b x)}\right )-\log \left (1+i e^{2 (a+b x)}\right )\right )-\operatorname {PolyLog}\left (2,-i e^{2 (a+b x)}\right )+\operatorname {PolyLog}\left (2,i e^{2 (a+b x)}\right )\right )}{4 b} \]
x*ArcCot[Coth[a + b*x]] - ((I/4)*(2*b*x*(Log[1 - I*E^(2*(a + b*x))] - Log[ 1 + I*E^(2*(a + b*x))]) - PolyLog[2, (-I)*E^(2*(a + b*x))] + PolyLog[2, I* E^(2*(a + b*x))]))/b
Time = 0.35 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.08, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.714, Rules used = {5705, 3042, 4668, 2715, 2838}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cot ^{-1}(\coth (a+b x)) \, dx\) |
\(\Big \downarrow \) 5705 |
\(\displaystyle x \cot ^{-1}(\coth (a+b x))-b \int x \text {sech}(2 a+2 b x)dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle x \cot ^{-1}(\coth (a+b x))-b \int x \csc \left (2 i a+2 i b x+\frac {\pi }{2}\right )dx\) |
\(\Big \downarrow \) 4668 |
\(\displaystyle x \cot ^{-1}(\coth (a+b x))-b \left (-\frac {i \int \log \left (1-i e^{2 a+2 b x}\right )dx}{2 b}+\frac {i \int \log \left (1+i e^{2 a+2 b x}\right )dx}{2 b}+\frac {x \arctan \left (e^{2 a+2 b x}\right )}{b}\right )\) |
\(\Big \downarrow \) 2715 |
\(\displaystyle x \cot ^{-1}(\coth (a+b x))-b \left (-\frac {i \int e^{-2 a-2 b x} \log \left (1-i e^{2 a+2 b x}\right )de^{2 a+2 b x}}{4 b^2}+\frac {i \int e^{-2 a-2 b x} \log \left (1+i e^{2 a+2 b x}\right )de^{2 a+2 b x}}{4 b^2}+\frac {x \arctan \left (e^{2 a+2 b x}\right )}{b}\right )\) |
\(\Big \downarrow \) 2838 |
\(\displaystyle x \cot ^{-1}(\coth (a+b x))-b \left (\frac {x \arctan \left (e^{2 a+2 b x}\right )}{b}-\frac {i \operatorname {PolyLog}\left (2,-i e^{2 a+2 b x}\right )}{4 b^2}+\frac {i \operatorname {PolyLog}\left (2,i e^{2 a+2 b x}\right )}{4 b^2}\right )\) |
x*ArcCot[Coth[a + b*x]] - b*((x*ArcTan[E^(2*a + 2*b*x)])/b - ((I/4)*PolyLo g[2, (-I)*E^(2*a + 2*b*x)])/b^2 + ((I/4)*PolyLog[2, I*E^(2*a + 2*b*x)])/b^ 2)
3.3.3.3.1 Defintions of rubi rules used
Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Simp[1/(d*e*n*Log[F]) Subst[Int[Log[a + b*x]/x, x], x, (F^(e*(c + d*x) ))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]
Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2 , (-c)*e*x^n]/n, x] /; FreeQ[{c, d, e, n}, x] && EqQ[c*d, 1]
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] + (-Simp[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] + Simp[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]
Int[ArcCot[Coth[(a_.) + (b_.)*(x_)]], x_Symbol] :> Simp[x*ArcCot[Coth[a + b *x]], x] - Simp[b Int[x*Sech[2*a + 2*b*x], x], x] /; FreeQ[{a, b}, x]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 183 vs. \(2 (63 ) = 126\).
Time = 1.51 (sec) , antiderivative size = 184, normalized size of antiderivative = 2.49
method | result | size |
derivativedivides | \(\frac {\operatorname {arctanh}\left (\coth \left (b x +a \right )\right ) \operatorname {arccot}\left (\coth \left (b x +a \right )\right )+\arctan \left (\coth \left (b x +a \right )\right ) \operatorname {arctanh}\left (\coth \left (b x +a \right )\right )+\frac {\arctan \left (\coth \left (b x +a \right )\right ) \ln \left (1+\frac {i \left (1+i \coth \left (b x +a \right )\right )^{2}}{\coth \left (b x +a \right )^{2}+1}\right )}{2}-\frac {\arctan \left (\coth \left (b x +a \right )\right ) \ln \left (1-\frac {i \left (1+i \coth \left (b x +a \right )\right )^{2}}{\coth \left (b x +a \right )^{2}+1}\right )}{2}-\frac {i \operatorname {dilog}\left (1+\frac {i \left (1+i \coth \left (b x +a \right )\right )^{2}}{\coth \left (b x +a \right )^{2}+1}\right )}{4}+\frac {i \operatorname {dilog}\left (1-\frac {i \left (1+i \coth \left (b x +a \right )\right )^{2}}{\coth \left (b x +a \right )^{2}+1}\right )}{4}}{b}\) | \(184\) |
default | \(\frac {\operatorname {arctanh}\left (\coth \left (b x +a \right )\right ) \operatorname {arccot}\left (\coth \left (b x +a \right )\right )+\arctan \left (\coth \left (b x +a \right )\right ) \operatorname {arctanh}\left (\coth \left (b x +a \right )\right )+\frac {\arctan \left (\coth \left (b x +a \right )\right ) \ln \left (1+\frac {i \left (1+i \coth \left (b x +a \right )\right )^{2}}{\coth \left (b x +a \right )^{2}+1}\right )}{2}-\frac {\arctan \left (\coth \left (b x +a \right )\right ) \ln \left (1-\frac {i \left (1+i \coth \left (b x +a \right )\right )^{2}}{\coth \left (b x +a \right )^{2}+1}\right )}{2}-\frac {i \operatorname {dilog}\left (1+\frac {i \left (1+i \coth \left (b x +a \right )\right )^{2}}{\coth \left (b x +a \right )^{2}+1}\right )}{4}+\frac {i \operatorname {dilog}\left (1-\frac {i \left (1+i \coth \left (b x +a \right )\right )^{2}}{\coth \left (b x +a \right )^{2}+1}\right )}{4}}{b}\) | \(184\) |
risch | \(\text {Expression too large to display}\) | \(1111\) |
1/b*(arctanh(coth(b*x+a))*arccot(coth(b*x+a))+arctan(coth(b*x+a))*arctanh( coth(b*x+a))+1/2*arctan(coth(b*x+a))*ln(1+I*(1+I*coth(b*x+a))^2/(coth(b*x+ a)^2+1))-1/2*arctan(coth(b*x+a))*ln(1-I*(1+I*coth(b*x+a))^2/(coth(b*x+a)^2 +1))-1/4*I*dilog(1+I*(1+I*coth(b*x+a))^2/(coth(b*x+a)^2+1))+1/4*I*dilog(1- I*(1+I*coth(b*x+a))^2/(coth(b*x+a)^2+1)))
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 334 vs. \(2 (57) = 114\).
Time = 0.28 (sec) , antiderivative size = 334, normalized size of antiderivative = 4.51 \[ \int \cot ^{-1}(\coth (a+b x)) \, dx=\frac {2 \, b x \arctan \left (\frac {\sinh \left (b x + a\right )}{\cosh \left (b x + a\right )}\right ) + {\left (-i \, b x - i \, a\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 x - i \, a\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 x + i \, a\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 x + i \, a\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 ) + i \, a \log \left (i \, \sqrt {4 i} + 2 \, \cosh \left (b x + a\right ) + 2 \, \sinh \left (b x + a\right )\right ) + i \, a \log \left (-i \, \sqrt {4 i} + 2 \, \cosh \left (b x + a\right ) + 2 \, \sinh \left (b x + a\right )\right ) - i \, a \log \left (i \, \sqrt {-4 i} + 2 \, \cosh \left (b x + a\right ) + 2 \, \sinh \left (b x + a\right )\right ) - i \, a \log \left (-i \, \sqrt {-4 i} + 2 \, \cosh \left (b x + a\right ) + 2 \, \sinh \left (b x + a\right )\right ) - i \, {\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 ) - i \, {\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 ) + i \, {\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 ) + i \, {\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 )}{2 \, b} \]
1/2*(2*b*x*arctan(sinh(b*x + a)/cosh(b*x + a)) + (-I*b*x - I*a)*log(1/2*sq rt(4*I)*(cosh(b*x + a) + sinh(b*x + a)) + 1) + (-I*b*x - I*a)*log(-1/2*sqr t(4*I)*(cosh(b*x + a) + sinh(b*x + a)) + 1) + (I*b*x + I*a)*log(1/2*sqrt(- 4*I)*(cosh(b*x + a) + sinh(b*x + a)) + 1) + (I*b*x + I*a)*log(-1/2*sqrt(-4 *I)*(cosh(b*x + a) + sinh(b*x + a)) + 1) + I*a*log(I*sqrt(4*I) + 2*cosh(b* x + a) + 2*sinh(b*x + a)) + I*a*log(-I*sqrt(4*I) + 2*cosh(b*x + a) + 2*sin h(b*x + a)) - I*a*log(I*sqrt(-4*I) + 2*cosh(b*x + a) + 2*sinh(b*x + a)) - I*a*log(-I*sqrt(-4*I) + 2*cosh(b*x + a) + 2*sinh(b*x + a)) - I*dilog(1/2*s qrt(4*I)*(cosh(b*x + a) + sinh(b*x + a))) - I*dilog(-1/2*sqrt(4*I)*(cosh(b *x + a) + sinh(b*x + a))) + I*dilog(1/2*sqrt(-4*I)*(cosh(b*x + a) + sinh(b *x + a))) + I*dilog(-1/2*sqrt(-4*I)*(cosh(b*x + a) + sinh(b*x + a))))/b
\[ \int \cot ^{-1}(\coth (a+b x)) \, dx=\int \operatorname {acot}{\left (\coth {\left (a + b x \right )} \right )}\, dx \]
\[ \int \cot ^{-1}(\coth (a+b x)) \, dx=\int { \operatorname {arccot}\left (\coth \left (b x + a\right )\right ) \,d x } \]
x*arctan((e^(2*b*x + 2*a) - 1)/(e^(2*b*x + 2*a) + 1)) - 2*b*integrate(x*e^ (2*b*x + 2*a)/(e^(4*b*x + 4*a) + 1), x)
\[ \int \cot ^{-1}(\coth (a+b x)) \, dx=\int { \operatorname {arccot}\left (\coth \left (b x + a\right )\right ) \,d x } \]
Timed out. \[ \int \cot ^{-1}(\coth (a+b x)) \, dx=\int \mathrm {acot}\left (\mathrm {coth}\left (a+b\,x\right )\right ) \,d x \]