\(\int \frac {(d+c d x)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx\) [26]

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

Optimal result

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

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

Mathematica [A] (verified)

Time = 0.09 (sec) , antiderivative size = 165, normalized size of antiderivative = 1.03 \[ \int \frac {(d+c d x)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx=\frac {d^3 \left (-2 a-12 a c x-2 b c x+4 a c^3 x^3-2 b \text {arctanh}(c x)-12 b c x \text {arctanh}(c x)+4 b c^3 x^3 \text {arctanh}(c x)+12 a c^2 x^2 \log (x)+12 b c^2 x^2 \log (c x)-b c^2 x^2 \log (1-c x)+b c^2 x^2 \log (1+c x)-4 b c^2 x^2 \log \left (1-c^2 x^2\right )-6 b c^2 x^2 \operatorname {PolyLog}(2,-c x)+6 b c^2 x^2 \operatorname {PolyLog}(2,c x)\right )}{4 x^2} \] Input:

Integrate[((d + c*d*x)^3*(a + b*ArcTanh[c*x]))/x^3,x]
 

Output:

(d^3*(-2*a - 12*a*c*x - 2*b*c*x + 4*a*c^3*x^3 - 2*b*ArcTanh[c*x] - 12*b*c* 
x*ArcTanh[c*x] + 4*b*c^3*x^3*ArcTanh[c*x] + 12*a*c^2*x^2*Log[x] + 12*b*c^2 
*x^2*Log[c*x] - b*c^2*x^2*Log[1 - c*x] + b*c^2*x^2*Log[1 + c*x] - 4*b*c^2* 
x^2*Log[1 - c^2*x^2] - 6*b*c^2*x^2*PolyLog[2, -(c*x)] + 6*b*c^2*x^2*PolyLo 
g[2, c*x]))/(4*x^2)
 

Rubi [A] (verified)

Time = 0.60 (sec) , antiderivative size = 160, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {6502, 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 \frac {(c d x+d)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx\)

\(\Big \downarrow \) 6502

\(\displaystyle \int \left (c^3 d^3 (a+b \text {arctanh}(c x))+\frac {3 c^2 d^3 (a+b \text {arctanh}(c x))}{x}+\frac {d^3 (a+b \text {arctanh}(c x))}{x^3}+\frac {3 c d^3 (a+b \text {arctanh}(c x))}{x^2}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle -\frac {d^3 (a+b \text {arctanh}(c x))}{2 x^2}-\frac {3 c d^3 (a+b \text {arctanh}(c x))}{x}+a c^3 d^3 x+3 a c^2 d^3 \log (x)+b c^3 d^3 x \text {arctanh}(c x)+\frac {1}{2} b c^2 d^3 \text {arctanh}(c x)-\frac {3}{2} b c^2 d^3 \operatorname {PolyLog}(2,-c x)+\frac {3}{2} b c^2 d^3 \operatorname {PolyLog}(2,c x)-b c^2 d^3 \log \left (1-c^2 x^2\right )+3 b c^2 d^3 \log (x)-\frac {b c d^3}{2 x}\)

Input:

Int[((d + c*d*x)^3*(a + b*ArcTanh[c*x]))/x^3,x]
 

Output:

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

Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 6502
Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e 
_.)*(x_))^(q_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*ArcTanh[c*x])^p, ( 
f*x)^m*(d + e*x)^q, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[p, 0] 
 && IntegerQ[q] && (GtQ[q, 0] || NeQ[a, 0] || IntegerQ[m])
 
Maple [A] (verified)

Time = 0.50 (sec) , antiderivative size = 137, normalized size of antiderivative = 0.86

method result size
parts \(d^{3} a \left (x \,c^{3}+3 c^{2} \ln \left (x \right )-\frac {3 c}{x}-\frac {1}{2 x^{2}}\right )+d^{3} b \,c^{2} \left (\operatorname {arctanh}\left (c x \right ) c x -\frac {\operatorname {arctanh}\left (c x \right )}{2 c^{2} x^{2}}+3 \,\operatorname {arctanh}\left (c x \right ) \ln \left (c x \right )-\frac {3 \,\operatorname {arctanh}\left (c x \right )}{c x}-\frac {3 \operatorname {dilog}\left (c x \right )}{2}-\frac {3 \operatorname {dilog}\left (c x +1\right )}{2}-\frac {3 \ln \left (c x \right ) \ln \left (c x +1\right )}{2}-\frac {5 \ln \left (c x -1\right )}{4}-\frac {1}{2 c x}+3 \ln \left (c x \right )-\frac {3 \ln \left (c x +1\right )}{4}\right )\) \(137\)
derivativedivides \(c^{2} \left (d^{3} a \left (c x -\frac {1}{2 c^{2} x^{2}}+3 \ln \left (c x \right )-\frac {3}{c x}\right )+d^{3} b \left (\operatorname {arctanh}\left (c x \right ) c x -\frac {\operatorname {arctanh}\left (c x \right )}{2 c^{2} x^{2}}+3 \,\operatorname {arctanh}\left (c x \right ) \ln \left (c x \right )-\frac {3 \,\operatorname {arctanh}\left (c x \right )}{c x}-\frac {3 \operatorname {dilog}\left (c x \right )}{2}-\frac {3 \operatorname {dilog}\left (c x +1\right )}{2}-\frac {3 \ln \left (c x \right ) \ln \left (c x +1\right )}{2}-\frac {5 \ln \left (c x -1\right )}{4}-\frac {1}{2 c x}+3 \ln \left (c x \right )-\frac {3 \ln \left (c x +1\right )}{4}\right )\right )\) \(140\)
default \(c^{2} \left (d^{3} a \left (c x -\frac {1}{2 c^{2} x^{2}}+3 \ln \left (c x \right )-\frac {3}{c x}\right )+d^{3} b \left (\operatorname {arctanh}\left (c x \right ) c x -\frac {\operatorname {arctanh}\left (c x \right )}{2 c^{2} x^{2}}+3 \,\operatorname {arctanh}\left (c x \right ) \ln \left (c x \right )-\frac {3 \,\operatorname {arctanh}\left (c x \right )}{c x}-\frac {3 \operatorname {dilog}\left (c x \right )}{2}-\frac {3 \operatorname {dilog}\left (c x +1\right )}{2}-\frac {3 \ln \left (c x \right ) \ln \left (c x +1\right )}{2}-\frac {5 \ln \left (c x -1\right )}{4}-\frac {1}{2 c x}+3 \ln \left (c x \right )-\frac {3 \ln \left (c x +1\right )}{4}\right )\right )\) \(140\)
risch \(-\frac {c^{3} d^{3} b \ln \left (-c x +1\right ) x}{2}-\frac {5 c^{2} d^{3} b \ln \left (-c x +1\right )}{4}-b \,c^{2} d^{3}+\frac {7 c^{2} d^{3} b \ln \left (-c x \right )}{4}-\frac {b c \,d^{3}}{2 x}+\frac {d^{3} b \ln \left (-c x +1\right )}{4 x^{2}}+\frac {3 c^{2} d^{3} b \operatorname {dilog}\left (-c x +1\right )}{2}+\frac {3 c \,d^{3} b \ln \left (-c x +1\right )}{2 x}+a \,c^{3} d^{3} x -c^{2} d^{3} a -\frac {d^{3} a}{2 x^{2}}+3 c^{2} d^{3} a \ln \left (-c x \right )-\frac {3 c \,d^{3} a}{x}+\frac {b \,c^{3} d^{3} \ln \left (c x +1\right ) x}{2}-\frac {3 b \,c^{2} d^{3} \ln \left (c x +1\right )}{4}+\frac {5 b \,c^{2} d^{3} \ln \left (c x \right )}{4}-\frac {b \,d^{3} \ln \left (c x +1\right )}{4 x^{2}}-\frac {3 b \,c^{2} d^{3} \operatorname {dilog}\left (c x +1\right )}{2}-\frac {3 b c \,d^{3} \ln \left (c x +1\right )}{2 x}\) \(258\)

Input:

int((c*d*x+d)^3*(a+b*arctanh(c*x))/x^3,x,method=_RETURNVERBOSE)
 

Output:

d^3*a*(x*c^3+3*c^2*ln(x)-3*c/x-1/2/x^2)+d^3*b*c^2*(arctanh(c*x)*c*x-1/2*ar 
ctanh(c*x)/c^2/x^2+3*arctanh(c*x)*ln(c*x)-3*arctanh(c*x)/c/x-3/2*dilog(c*x 
)-3/2*dilog(c*x+1)-3/2*ln(c*x)*ln(c*x+1)-5/4*ln(c*x-1)-1/2/c/x+3*ln(c*x)-3 
/4*ln(c*x+1))
 

Fricas [F]

\[ \int \frac {(d+c d x)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx=\int { \frac {{\left (c d x + d\right )}^{3} {\left (b \operatorname {artanh}\left (c x\right ) + a\right )}}{x^{3}} \,d x } \] Input:

integrate((c*d*x+d)^3*(a+b*arctanh(c*x))/x^3,x, algorithm="fricas")
 

Output:

integral((a*c^3*d^3*x^3 + 3*a*c^2*d^3*x^2 + 3*a*c*d^3*x + a*d^3 + (b*c^3*d 
^3*x^3 + 3*b*c^2*d^3*x^2 + 3*b*c*d^3*x + b*d^3)*arctanh(c*x))/x^3, x)
 

Sympy [F]

\[ \int \frac {(d+c d x)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx=d^{3} \left (\int a c^{3}\, dx + \int \frac {a}{x^{3}}\, dx + \int \frac {3 a c}{x^{2}}\, dx + \int \frac {3 a c^{2}}{x}\, dx + \int b c^{3} \operatorname {atanh}{\left (c x \right )}\, dx + \int \frac {b \operatorname {atanh}{\left (c x \right )}}{x^{3}}\, dx + \int \frac {3 b c \operatorname {atanh}{\left (c x \right )}}{x^{2}}\, dx + \int \frac {3 b c^{2} \operatorname {atanh}{\left (c x \right )}}{x}\, dx\right ) \] Input:

integrate((c*d*x+d)**3*(a+b*atanh(c*x))/x**3,x)
 

Output:

d**3*(Integral(a*c**3, x) + Integral(a/x**3, x) + Integral(3*a*c/x**2, x) 
+ Integral(3*a*c**2/x, x) + Integral(b*c**3*atanh(c*x), x) + Integral(b*at 
anh(c*x)/x**3, x) + Integral(3*b*c*atanh(c*x)/x**2, x) + Integral(3*b*c**2 
*atanh(c*x)/x, x))
 

Maxima [F]

\[ \int \frac {(d+c d x)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx=\int { \frac {{\left (c d x + d\right )}^{3} {\left (b \operatorname {artanh}\left (c x\right ) + a\right )}}{x^{3}} \,d x } \] Input:

integrate((c*d*x+d)^3*(a+b*arctanh(c*x))/x^3,x, algorithm="maxima")
 

Output:

a*c^3*d^3*x + 1/2*(2*c*x*arctanh(c*x) + log(-c^2*x^2 + 1))*b*c^2*d^3 + 3/2 
*b*c^2*d^3*integrate((log(c*x + 1) - log(-c*x + 1))/x, x) + 3*a*c^2*d^3*lo 
g(x) - 3/2*(c*(log(c^2*x^2 - 1) - log(x^2)) + 2*arctanh(c*x)/x)*b*c*d^3 + 
1/4*((c*log(c*x + 1) - c*log(c*x - 1) - 2/x)*c - 2*arctanh(c*x)/x^2)*b*d^3 
 - 3*a*c*d^3/x - 1/2*a*d^3/x^2
 

Giac [F]

\[ \int \frac {(d+c d x)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx=\int { \frac {{\left (c d x + d\right )}^{3} {\left (b \operatorname {artanh}\left (c x\right ) + a\right )}}{x^{3}} \,d x } \] Input:

integrate((c*d*x+d)^3*(a+b*arctanh(c*x))/x^3,x, algorithm="giac")
 

Output:

integrate((c*d*x + d)^3*(b*arctanh(c*x) + a)/x^3, x)
                                                                                    
                                                                                    
 

Mupad [F(-1)]

Timed out. \[ \int \frac {(d+c d x)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx=\int \frac {\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )\,{\left (d+c\,d\,x\right )}^3}{x^3} \,d x \] Input:

int(((a + b*atanh(c*x))*(d + c*d*x)^3)/x^3,x)
 

Output:

int(((a + b*atanh(c*x))*(d + c*d*x)^3)/x^3, x)
 

Reduce [F]

\[ \int \frac {(d+c d x)^3 (a+b \text {arctanh}(c x))}{x^3} \, dx=\frac {d^{3} \left (2 \mathit {atanh} \left (c x \right ) b \,c^{3} x^{3}-3 \mathit {atanh} \left (c x \right ) b \,c^{2} x^{2}-6 \mathit {atanh} \left (c x \right ) b c x -\mathit {atanh} \left (c x \right ) b +6 \left (\int \frac {\mathit {atanh} \left (c x \right )}{x}d x \right ) b \,c^{2} x^{2}-4 \,\mathrm {log}\left (c^{2} x -c \right ) b \,c^{2} x^{2}+6 \,\mathrm {log}\left (x \right ) a \,c^{2} x^{2}+6 \,\mathrm {log}\left (x \right ) b \,c^{2} x^{2}+2 a \,c^{3} x^{3}-6 a c x -a -b c x \right )}{2 x^{2}} \] Input:

int((c*d*x+d)^3*(a+b*atanh(c*x))/x^3,x)
 

Output:

(d**3*(2*atanh(c*x)*b*c**3*x**3 - 3*atanh(c*x)*b*c**2*x**2 - 6*atanh(c*x)* 
b*c*x - atanh(c*x)*b + 6*int(atanh(c*x)/x,x)*b*c**2*x**2 - 4*log(c**2*x - 
c)*b*c**2*x**2 + 6*log(x)*a*c**2*x**2 + 6*log(x)*b*c**2*x**2 + 2*a*c**3*x* 
*3 - 6*a*c*x - a - b*c*x))/(2*x**2)