\(\int \frac {(a+b \coth ^{-1}(c x)) (d+e \log (1-c^2 x^2))}{x^3} \, dx\) [270]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [F]
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 27, antiderivative size = 247 \[ \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx=-\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-\frac {1}{2} b c^2 e \text {arctanh}(c x)^2-a c^2 e \log (x)+b c^2 e \text {arctanh}(c x) \log \left (\frac {2}{1-c x}\right )+\frac {1}{2} (a+b) c^2 e \log (1-c x)+\frac {1}{2} (a-b) c^2 e \log (1+c x)-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-b c^2 e \coth ^{-1}(c x) \log \left (2-\frac {2}{1+c x}\right )+\frac {1}{2} b c^2 e \operatorname {PolyLog}\left (2,1-\frac {2}{1-c x}\right )+\frac {1}{2} b c^2 e \operatorname {PolyLog}\left (2,-1+\frac {2}{1+c x}\right ) \]

[Out]

-1/2*b*c^2*e*arccoth(c*x)^2-1/2*b*c^2*e*arctanh(c*x)^2-a*c^2*e*ln(x)+b*c^2*e*arctanh(c*x)*ln(2/(-c*x+1))+1/2*(
a+b)*c^2*e*ln(-c*x+1)+1/2*(a-b)*c^2*e*ln(c*x+1)-1/2*b*c*(d+e*ln(-c^2*x^2+1))/x-1/2*(a+b*arccoth(c*x))*(d+e*ln(
-c^2*x^2+1))/x^2+1/2*b*c^2*arctanh(c*x)*(d+e*ln(-c^2*x^2+1))-b*c^2*e*arccoth(c*x)*ln(2-2/(c*x+1))+1/2*b*c^2*e*
polylog(2,1-2/(-c*x+1))+1/2*b*c^2*e*polylog(2,-1+2/(c*x+1))

Rubi [A] (verified)

Time = 0.39 (sec) , antiderivative size = 247, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.481, Rules used = {6038, 331, 212, 6233, 6857, 815, 6136, 6080, 2497, 6131, 6055, 2449, 2352} \[ \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx=-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (e \log \left (1-c^2 x^2\right )+d\right )}{2 x^2}+\frac {1}{2} c^2 e (a+b) \log (1-c x)+\frac {1}{2} c^2 e (a-b) \log (c x+1)-a c^2 e \log (x)+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (e \log \left (1-c^2 x^2\right )+d\right )-\frac {1}{2} b c^2 e \text {arctanh}(c x)^2+b c^2 e \text {arctanh}(c x) \log \left (\frac {2}{1-c x}\right )-\frac {b c \left (e \log \left (1-c^2 x^2\right )+d\right )}{2 x}+\frac {1}{2} b c^2 e \operatorname {PolyLog}\left (2,1-\frac {2}{1-c x}\right )+\frac {1}{2} b c^2 e \operatorname {PolyLog}\left (2,\frac {2}{c x+1}-1\right )-\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-b c^2 e \log \left (2-\frac {2}{c x+1}\right ) \coth ^{-1}(c x) \]

[In]

Int[((a + b*ArcCoth[c*x])*(d + e*Log[1 - c^2*x^2]))/x^3,x]

[Out]

-1/2*(b*c^2*e*ArcCoth[c*x]^2) - (b*c^2*e*ArcTanh[c*x]^2)/2 - a*c^2*e*Log[x] + b*c^2*e*ArcTanh[c*x]*Log[2/(1 -
c*x)] + ((a + b)*c^2*e*Log[1 - c*x])/2 + ((a - b)*c^2*e*Log[1 + c*x])/2 - (b*c*(d + e*Log[1 - c^2*x^2]))/(2*x)
 - ((a + b*ArcCoth[c*x])*(d + e*Log[1 - c^2*x^2]))/(2*x^2) + (b*c^2*ArcTanh[c*x]*(d + e*Log[1 - c^2*x^2]))/2 -
 b*c^2*e*ArcCoth[c*x]*Log[2 - 2/(1 + c*x)] + (b*c^2*e*PolyLog[2, 1 - 2/(1 - c*x)])/2 + (b*c^2*e*PolyLog[2, -1
+ 2/(1 + c*x)])/2

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 331

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c*x)^(m + 1)*((a + b*x^n)^(p + 1)/(a*c
*(m + 1))), x] - Dist[b*((m + n*(p + 1) + 1)/(a*c^n*(m + 1))), Int[(c*x)^(m + n)*(a + b*x^n)^p, x], x] /; Free
Q[{a, b, c, p}, x] && IGtQ[n, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 815

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Int[ExpandIntegrand[(
d + e*x)^m*((f + g*x)/(a + c*x^2)), x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[c*d^2 + a*e^2, 0] && Integer
Q[m]

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2449

Int[Log[(c_.)/((d_) + (e_.)*(x_))]/((f_) + (g_.)*(x_)^2), x_Symbol] :> Dist[-e/g, Subst[Int[Log[2*d*x]/(1 - 2*
d*x), x], x, 1/(d + e*x)], x] /; FreeQ[{c, d, e, f, g}, x] && EqQ[c, 2*d] && EqQ[e^2*f + d^2*g, 0]

Rule 2497

Int[Log[u_]*(Pq_)^(m_.), x_Symbol] :> With[{C = FullSimplify[Pq^m*((1 - u)/D[u, x])]}, Simp[C*PolyLog[2, 1 - u
], x] /; FreeQ[C, x]] /; IntegerQ[m] && PolyQ[Pq, x] && RationalFunctionQ[u, x] && LeQ[RationalFunctionExponen
ts[u, x][[2]], Expon[Pq, x]]

Rule 6038

Int[((a_.) + ArcCoth[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)*((a + b*ArcCoth[c*
x^n])^p/(m + 1)), x] - Dist[b*c*n*(p/(m + 1)), Int[x^(m + n)*((a + b*ArcCoth[c*x^n])^(p - 1)/(1 - c^2*x^(2*n))
), x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0] && (EqQ[p, 1] || (EqQ[n, 1] && IntegerQ[m])) && NeQ[m, -1
]

Rule 6055

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-(a + b*ArcTanh[c*x])^p)
*(Log[2/(1 + e*(x/d))]/e), x] + Dist[b*c*(p/e), Int[(a + b*ArcTanh[c*x])^(p - 1)*(Log[2/(1 + e*(x/d))]/(1 - c^
2*x^2)), x], x] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[p, 0] && EqQ[c^2*d^2 - e^2, 0]

Rule 6080

Int[((a_.) + ArcCoth[(c_.)*(x_)]*(b_.))^(p_.)/((x_)*((d_) + (e_.)*(x_))), x_Symbol] :> Simp[(a + b*ArcCoth[c*x
])^p*(Log[2 - 2/(1 + e*(x/d))]/d), x] - Dist[b*c*(p/d), Int[(a + b*ArcCoth[c*x])^(p - 1)*(Log[2 - 2/(1 + e*(x/
d))]/(1 - c^2*x^2)), x], x] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[p, 0] && EqQ[c^2*d^2 - e^2, 0]

Rule 6131

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

Rule 6136

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

Rule 6233

Int[((a_.) + ArcCoth[(c_.)*(x_)]*(b_.))*((d_.) + Log[(f_.) + (g_.)*(x_)^2]*(e_.))*(x_)^(m_.), x_Symbol] :> Wit
h[{u = IntHide[x^m*(a + b*ArcCoth[c*x]), x]}, Dist[d + e*Log[f + g*x^2], u, x] - Dist[2*e*g, Int[ExpandIntegra
nd[x*(u/(f + g*x^2)), x], x], x]] /; FreeQ[{a, b, c, d, e, f, g}, x] && IntegerQ[m] && NeQ[m, -1]

Rule 6857

Int[(u_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> With[{v = RationalFunctionExpand[u/(a + b*x^n), x]}, Int[v, x]
 /; SumQ[v]] /; FreeQ[{a, b}, x] && IGtQ[n, 0]

Rubi steps \begin{align*} \text {integral}& = -\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (2 c^2 e\right ) \int \left (\frac {a+b c x+b \coth ^{-1}(c x)}{2 x \left (-1+c^2 x^2\right )}-\frac {b c^2 x \text {arctanh}(c x)}{2 \left (-1+c^2 x^2\right )}\right ) \, dx \\ & = -\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (c^2 e\right ) \int \frac {a+b c x+b \coth ^{-1}(c x)}{x \left (-1+c^2 x^2\right )} \, dx-\left (b c^4 e\right ) \int \frac {x \text {arctanh}(c x)}{-1+c^2 x^2} \, dx \\ & = -\frac {1}{2} b c^2 e \text {arctanh}(c x)^2-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (c^2 e\right ) \int \left (\frac {a+b c x}{x \left (-1+c^2 x^2\right )}+\frac {b \coth ^{-1}(c x)}{x \left (-1+c^2 x^2\right )}\right ) \, dx+\left (b c^3 e\right ) \int \frac {\text {arctanh}(c x)}{1-c x} \, dx \\ & = -\frac {1}{2} b c^2 e \text {arctanh}(c x)^2+b c^2 e \text {arctanh}(c x) \log \left (\frac {2}{1-c x}\right )-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (c^2 e\right ) \int \frac {a+b c x}{x \left (-1+c^2 x^2\right )} \, dx+\left (b c^2 e\right ) \int \frac {\coth ^{-1}(c x)}{x \left (-1+c^2 x^2\right )} \, dx-\left (b c^3 e\right ) \int \frac {\log \left (\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx \\ & = -\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-\frac {1}{2} b c^2 e \text {arctanh}(c x)^2+b c^2 e \text {arctanh}(c x) \log \left (\frac {2}{1-c x}\right )-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (c^2 e\right ) \int \left (-\frac {a}{x}+\frac {(a+b) c}{2 (-1+c x)}+\frac {(a-b) c}{2 (1+c x)}\right ) \, dx-\left (b c^2 e\right ) \int \frac {\coth ^{-1}(c x)}{x (1+c x)} \, dx+\left (b c^2 e\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-c x}\right ) \\ & = -\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-\frac {1}{2} b c^2 e \text {arctanh}(c x)^2-a c^2 e \log (x)+b c^2 e \text {arctanh}(c x) \log \left (\frac {2}{1-c x}\right )+\frac {1}{2} (a+b) c^2 e \log (1-c x)+\frac {1}{2} (a-b) c^2 e \log (1+c x)-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-b c^2 e \coth ^{-1}(c x) \log \left (2-\frac {2}{1+c x}\right )+\frac {1}{2} b c^2 e \operatorname {PolyLog}\left (2,1-\frac {2}{1-c x}\right )+\left (b c^3 e\right ) \int \frac {\log \left (2-\frac {2}{1+c x}\right )}{1-c^2 x^2} \, dx \\ & = -\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-\frac {1}{2} b c^2 e \text {arctanh}(c x)^2-a c^2 e \log (x)+b c^2 e \text {arctanh}(c x) \log \left (\frac {2}{1-c x}\right )+\frac {1}{2} (a+b) c^2 e \log (1-c x)+\frac {1}{2} (a-b) c^2 e \log (1+c x)-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \text {arctanh}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-b c^2 e \coth ^{-1}(c x) \log \left (2-\frac {2}{1+c x}\right )+\frac {1}{2} b c^2 e \operatorname {PolyLog}\left (2,1-\frac {2}{1-c x}\right )+\frac {1}{2} b c^2 e \operatorname {PolyLog}\left (2,-1+\frac {2}{1+c x}\right ) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.09 (sec) , antiderivative size = 161, normalized size of antiderivative = 0.65 \[ \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx=\frac {1}{2} \left (-\frac {a d}{x^2}-2 a c^2 e \log (x)+(a+b) c^2 e \log (1-c x)+(a-b) c^2 e \log (1+c x)-\frac {b d \left (2 \coth ^{-1}(c x)+c x (2+c x \log (1-c x)-c x \log (1+c x))\right )}{2 x^2}-\frac {e \left (a+b c x+\left (b-b c^2 x^2\right ) \coth ^{-1}(c x)\right ) \log \left (1-c^2 x^2\right )}{x^2}-b c^2 e \left (\operatorname {PolyLog}\left (2,-\frac {1}{c x}\right )-\operatorname {PolyLog}\left (2,\frac {1}{c x}\right )\right )\right ) \]

[In]

Integrate[((a + b*ArcCoth[c*x])*(d + e*Log[1 - c^2*x^2]))/x^3,x]

[Out]

(-((a*d)/x^2) - 2*a*c^2*e*Log[x] + (a + b)*c^2*e*Log[1 - c*x] + (a - b)*c^2*e*Log[1 + c*x] - (b*d*(2*ArcCoth[c
*x] + c*x*(2 + c*x*Log[1 - c*x] - c*x*Log[1 + c*x])))/(2*x^2) - (e*(a + b*c*x + (b - b*c^2*x^2)*ArcCoth[c*x])*
Log[1 - c^2*x^2])/x^2 - b*c^2*e*(PolyLog[2, -(1/(c*x))] - PolyLog[2, 1/(c*x)]))/2

Maple [F]

\[\int \frac {\left (a +b \,\operatorname {arccoth}\left (c x \right )\right ) \left (d +e \ln \left (-c^{2} x^{2}+1\right )\right )}{x^{3}}d x\]

[In]

int((a+b*arccoth(c*x))*(d+e*ln(-c^2*x^2+1))/x^3,x)

[Out]

int((a+b*arccoth(c*x))*(d+e*ln(-c^2*x^2+1))/x^3,x)

Fricas [F]

\[ \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx=\int { \frac {{\left (b \operatorname {arcoth}\left (c x\right ) + a\right )} {\left (e \log \left (-c^{2} x^{2} + 1\right ) + d\right )}}{x^{3}} \,d x } \]

[In]

integrate((a+b*arccoth(c*x))*(d+e*log(-c^2*x^2+1))/x^3,x, algorithm="fricas")

[Out]

integral((b*d*arccoth(c*x) + a*d + (b*e*arccoth(c*x) + a*e)*log(-c^2*x^2 + 1))/x^3, x)

Sympy [F]

\[ \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx=\int \frac {\left (a + b \operatorname {acoth}{\left (c x \right )}\right ) \left (d + e \log {\left (- c^{2} x^{2} + 1 \right )}\right )}{x^{3}}\, dx \]

[In]

integrate((a+b*acoth(c*x))*(d+e*ln(-c**2*x**2+1))/x**3,x)

[Out]

Integral((a + b*acoth(c*x))*(d + e*log(-c**2*x**2 + 1))/x**3, x)

Maxima [F]

\[ \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx=\int { \frac {{\left (b \operatorname {arcoth}\left (c x\right ) + a\right )} {\left (e \log \left (-c^{2} x^{2} + 1\right ) + d\right )}}{x^{3}} \,d x } \]

[In]

integrate((a+b*arccoth(c*x))*(d+e*log(-c^2*x^2+1))/x^3,x, algorithm="maxima")

[Out]

1/4*((c*log(c*x + 1) - c*log(c*x - 1) - 2/x)*c - 2*arccoth(c*x)/x^2)*b*d + 1/2*(c^2*(log(c^2*x^2 - 1) - log(x^
2)) - log(-c^2*x^2 + 1)/x^2)*a*e - 1/4*b*e*(log(c*x + 1)^2/x^2 - 2*integrate(-((c*x + 1)*log(c*x - 1)^2 - (I*p
i + (I*pi*c + c)*x)*log(c*x + 1) - (-I*pi - I*pi*c*x)*log(c*x - 1))/(c*x^4 + x^3), x)) - 1/2*a*d/x^2

Giac [F]

\[ \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx=\int { \frac {{\left (b \operatorname {arcoth}\left (c x\right ) + a\right )} {\left (e \log \left (-c^{2} x^{2} + 1\right ) + d\right )}}{x^{3}} \,d x } \]

[In]

integrate((a+b*arccoth(c*x))*(d+e*log(-c^2*x^2+1))/x^3,x, algorithm="giac")

[Out]

integrate((b*arccoth(c*x) + a)*(e*log(-c^2*x^2 + 1) + d)/x^3, x)

Mupad [F(-1)]

Timed out. \[ \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx=\int \frac {\left (a+b\,\mathrm {acoth}\left (c\,x\right )\right )\,\left (d+e\,\ln \left (1-c^2\,x^2\right )\right )}{x^3} \,d x \]

[In]

int(((a + b*acoth(c*x))*(d + e*log(1 - c^2*x^2)))/x^3,x)

[Out]

int(((a + b*acoth(c*x))*(d + e*log(1 - c^2*x^2)))/x^3, x)