Integrand size = 13, antiderivative size = 194 \[ \int \log ^2(a+b \coth (c+d x)) \, dx=-\frac {\log \left (\frac {b (1-\coth (c+d x))}{a+b}\right ) \log ^2(a+b \coth (c+d x))}{2 d}+\frac {\log \left (-\frac {b (1+\coth (c+d x))}{a-b}\right ) \log ^2(a+b \coth (c+d x))}{2 d}+\frac {\log (a+b \coth (c+d x)) \operatorname {PolyLog}\left (2,\frac {a+b \coth (c+d x)}{a-b}\right )}{d}-\frac {\log (a+b \coth (c+d x)) \operatorname {PolyLog}\left (2,\frac {a+b \coth (c+d x)}{a+b}\right )}{d}-\frac {\operatorname {PolyLog}\left (3,\frac {a+b \coth (c+d x)}{a-b}\right )}{d}+\frac {\operatorname {PolyLog}\left (3,\frac {a+b \coth (c+d x)}{a+b}\right )}{d} \] Output:
-1/2*ln(b*(1-coth(d*x+c))/(a+b))*ln(a+b*coth(d*x+c))^2/d+1/2*ln(-b*(1+coth (d*x+c))/(a-b))*ln(a+b*coth(d*x+c))^2/d+ln(a+b*coth(d*x+c))*polylog(2,(a+b *coth(d*x+c))/(a-b))/d-ln(a+b*coth(d*x+c))*polylog(2,(a+b*coth(d*x+c))/(a+ b))/d-polylog(3,(a+b*coth(d*x+c))/(a-b))/d+polylog(3,(a+b*coth(d*x+c))/(a+ b))/d
Time = 1.29 (sec) , antiderivative size = 199, normalized size of antiderivative = 1.03 \[ \int \log ^2(a+b \coth (c+d x)) \, dx=\frac {\log ^2(a+b \coth (c+d x)) \log \left (1-\frac {a+b \coth (c+d x)}{a-b}\right )}{2 d}-\frac {\log ^2(a+b \coth (c+d x)) \log \left (1-\frac {a+b \coth (c+d x)}{a+b}\right )}{2 d}+\frac {\log (a+b \coth (c+d x)) \operatorname {PolyLog}\left (2,\frac {a+b \coth (c+d x)}{a-b}\right )}{d}-\frac {\log (a+b \coth (c+d x)) \operatorname {PolyLog}\left (2,\frac {a+b \coth (c+d x)}{a+b}\right )}{d}-\frac {\operatorname {PolyLog}\left (3,\frac {a+b \coth (c+d x)}{a-b}\right )}{d}+\frac {\operatorname {PolyLog}\left (3,\frac {a+b \coth (c+d x)}{a+b}\right )}{d} \] Input:
Integrate[Log[a + b*Coth[c + d*x]]^2,x]
Output:
(Log[a + b*Coth[c + d*x]]^2*Log[1 - (a + b*Coth[c + d*x])/(a - b)])/(2*d) - (Log[a + b*Coth[c + d*x]]^2*Log[1 - (a + b*Coth[c + d*x])/(a + b)])/(2*d ) + (Log[a + b*Coth[c + d*x]]*PolyLog[2, (a + b*Coth[c + d*x])/(a - b)])/d - (Log[a + b*Coth[c + d*x]]*PolyLog[2, (a + b*Coth[c + d*x])/(a + b)])/d - PolyLog[3, (a + b*Coth[c + d*x])/(a - b)]/d + PolyLog[3, (a + b*Coth[c + d*x])/(a + b)]/d
Time = 0.74 (sec) , antiderivative size = 179, normalized size of antiderivative = 0.92, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {4852, 2856, 2009}
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 \log ^2(a+b \coth (c+d x)) \, dx\) |
\(\Big \downarrow \) 4852 |
\(\displaystyle \frac {\int \frac {\log ^2(a+b \coth (c+d x))}{1-\coth ^2(c+d x)}d\coth (c+d x)}{d}\) |
\(\Big \downarrow \) 2856 |
\(\displaystyle \frac {\int \left (\frac {\log ^2(a+b \coth (c+d x))}{2 (1-\coth (c+d x))}+\frac {\log ^2(a+b \coth (c+d x))}{2 (\coth (c+d x)+1)}\right )d\coth (c+d x)}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-\operatorname {PolyLog}\left (3,\frac {a+b \coth (c+d x)}{a-b}\right )+\operatorname {PolyLog}\left (3,\frac {a+b \coth (c+d x)}{a+b}\right )+\operatorname {PolyLog}\left (2,\frac {a+b \coth (c+d x)}{a-b}\right ) \log (a+b \coth (c+d x))-\operatorname {PolyLog}\left (2,\frac {a+b \coth (c+d x)}{a+b}\right ) \log (a+b \coth (c+d x))-\frac {1}{2} \log \left (\frac {b (1-\coth (c+d x))}{a+b}\right ) \log ^2(a+b \coth (c+d x))+\frac {1}{2} \log \left (-\frac {b (\coth (c+d x)+1)}{a-b}\right ) \log ^2(a+b \coth (c+d x))}{d}\) |
Input:
Int[Log[a + b*Coth[c + d*x]]^2,x]
Output:
(-1/2*(Log[(b*(1 - Coth[c + d*x]))/(a + b)]*Log[a + b*Coth[c + d*x]]^2) + (Log[-((b*(1 + Coth[c + d*x]))/(a - b))]*Log[a + b*Coth[c + d*x]]^2)/2 + L og[a + b*Coth[c + d*x]]*PolyLog[2, (a + b*Coth[c + d*x])/(a - b)] - Log[a + b*Coth[c + d*x]]*PolyLog[2, (a + b*Coth[c + d*x])/(a + b)] - PolyLog[3, (a + b*Coth[c + d*x])/(a - b)] + PolyLog[3, (a + b*Coth[c + d*x])/(a + b)] )/d
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_. )*(x_)^(r_))^(q_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x) ^n])^p, (f + g*x^r)^q, x], x] /; FreeQ[{a, b, c, d, e, f, g, n, r}, x] && I GtQ[p, 0] && IntegerQ[q] && (GtQ[q, 0] || (IntegerQ[r] && NeQ[r, 1]))
Int[u_, x_Symbol] :> With[{v = FunctionOfTrig[u, x]}, Simp[With[{d = FreeFa ctors[Cot[v], x]}, -d/Coefficient[v, x, 1] Subst[Int[SubstFor[1/(1 + d^2* x^2), Cot[v]/d, u, x], x], x, Cot[v]/d]], x] /; !FalseQ[v] && FunctionOfQ[ NonfreeFactors[Cot[v], x], u, x, True] && TryPureTanSubst[ActivateTrig[u], x]]
Time = 9.12 (sec) , antiderivative size = 210, normalized size of antiderivative = 1.08
method | result | size |
derivativedivides | \(-\frac {b \left (-\frac {\ln \left (a +b \coth \left (d x +c \right )\right )^{2} \ln \left (1+\frac {a +b \coth \left (d x +c \right )}{-a +b}\right )+2 \ln \left (a +b \coth \left (d x +c \right )\right ) \operatorname {polylog}\left (2, -\frac {a +b \coth \left (d x +c \right )}{-a +b}\right )-2 \operatorname {polylog}\left (3, -\frac {a +b \coth \left (d x +c \right )}{-a +b}\right )}{2 b}+\frac {\ln \left (a +b \coth \left (d x +c \right )\right )^{2} \ln \left (1+\frac {a +b \coth \left (d x +c \right )}{-a -b}\right )+2 \ln \left (a +b \coth \left (d x +c \right )\right ) \operatorname {polylog}\left (2, -\frac {a +b \coth \left (d x +c \right )}{-a -b}\right )-2 \operatorname {polylog}\left (3, -\frac {a +b \coth \left (d x +c \right )}{-a -b}\right )}{2 b}\right )}{d}\) | \(210\) |
default | \(-\frac {b \left (-\frac {\ln \left (a +b \coth \left (d x +c \right )\right )^{2} \ln \left (1+\frac {a +b \coth \left (d x +c \right )}{-a +b}\right )+2 \ln \left (a +b \coth \left (d x +c \right )\right ) \operatorname {polylog}\left (2, -\frac {a +b \coth \left (d x +c \right )}{-a +b}\right )-2 \operatorname {polylog}\left (3, -\frac {a +b \coth \left (d x +c \right )}{-a +b}\right )}{2 b}+\frac {\ln \left (a +b \coth \left (d x +c \right )\right )^{2} \ln \left (1+\frac {a +b \coth \left (d x +c \right )}{-a -b}\right )+2 \ln \left (a +b \coth \left (d x +c \right )\right ) \operatorname {polylog}\left (2, -\frac {a +b \coth \left (d x +c \right )}{-a -b}\right )-2 \operatorname {polylog}\left (3, -\frac {a +b \coth \left (d x +c \right )}{-a -b}\right )}{2 b}\right )}{d}\) | \(210\) |
Input:
int(ln(a+b*coth(d*x+c))^2,x,method=_RETURNVERBOSE)
Output:
-1/d*b*(-1/2/b*(ln(a+b*coth(d*x+c))^2*ln(1+1/(-a+b)*(a+b*coth(d*x+c)))+2*l n(a+b*coth(d*x+c))*polylog(2,-1/(-a+b)*(a+b*coth(d*x+c)))-2*polylog(3,-1/( -a+b)*(a+b*coth(d*x+c))))+1/2/b*(ln(a+b*coth(d*x+c))^2*ln(1+1/(-a-b)*(a+b* coth(d*x+c)))+2*ln(a+b*coth(d*x+c))*polylog(2,-1/(-a-b)*(a+b*coth(d*x+c))) -2*polylog(3,-1/(-a-b)*(a+b*coth(d*x+c)))))
\[ \int \log ^2(a+b \coth (c+d x)) \, dx=\int { \log \left (b \coth \left (d x + c\right ) + a\right )^{2} \,d x } \] Input:
integrate(log(a+b*coth(d*x+c))^2,x, algorithm="fricas")
Output:
integral(log(b*coth(d*x + c) + a)^2, x)
\[ \int \log ^2(a+b \coth (c+d x)) \, dx=\int \log {\left (a + b \coth {\left (c + d x \right )} \right )}^{2}\, dx \] Input:
integrate(ln(a+b*coth(d*x+c))**2,x)
Output:
Integral(log(a + b*coth(c + d*x))**2, x)
\[ \int \log ^2(a+b \coth (c+d x)) \, dx=\int { \log \left (b \coth \left (d x + c\right ) + a\right )^{2} \,d x } \] Input:
integrate(log(a+b*coth(d*x+c))^2,x, algorithm="maxima")
Output:
x*log((a + b)*e^(2*d*x + 2*c) - a + b)^2 - integrate(-(((a*e^(2*c) + b*e^( 2*c))*e^(2*d*x) - a + b)*log(e^(d*x + c) + 1)^2 + 2*((a*e^(2*c) + b*e^(2*c ))*e^(2*d*x) - a + b)*log(e^(d*x + c) + 1)*log(e^(d*x + c) - 1) + ((a*e^(2 *c) + b*e^(2*c))*e^(2*d*x) - a + b)*log(e^(d*x + c) - 1)^2 - 2*(2*(a*d*e^( 2*c) + b*d*e^(2*c))*x*e^(2*d*x) + ((a*e^(2*c) + b*e^(2*c))*e^(2*d*x) - a + b)*log(e^(d*x + c) + 1) + ((a*e^(2*c) + b*e^(2*c))*e^(2*d*x) - a + b)*log (e^(d*x + c) - 1))*log((a + b)*e^(2*d*x + 2*c) - a + b))/((a*e^(2*c) + b*e ^(2*c))*e^(2*d*x) - a + b), x)
\[ \int \log ^2(a+b \coth (c+d x)) \, dx=\int { \log \left (b \coth \left (d x + c\right ) + a\right )^{2} \,d x } \] Input:
integrate(log(a+b*coth(d*x+c))^2,x, algorithm="giac")
Output:
integrate(log(b*coth(d*x + c) + a)^2, x)
Timed out. \[ \int \log ^2(a+b \coth (c+d x)) \, dx=\int {\ln \left (a+b\,\mathrm {coth}\left (c+d\,x\right )\right )}^2 \,d x \] Input:
int(log(a + b*coth(c + d*x))^2,x)
Output:
int(log(a + b*coth(c + d*x))^2, x)
\[ \int \log ^2(a+b \coth (c+d x)) \, dx=\int \mathrm {log}\left (\coth \left (d x +c \right ) b +a \right )^{2}d x \] Input:
int(log(a+b*coth(d*x+c))^2,x)
Output:
int(log(coth(c + d*x)*b + a)**2,x)