3.97 \(\int (a+b x)^2 \coth ^{-1}(a+b x) \, dx\)

Optimal. Leaf size=54 \[ \frac {(a+b x)^2}{6 b}+\frac {\log \left (1-(a+b x)^2\right )}{6 b}+\frac {(a+b x)^3 \coth ^{-1}(a+b x)}{3 b} \]

[Out]

1/6*(b*x+a)^2/b+1/3*(b*x+a)^3*arccoth(b*x+a)/b+1/6*ln(1-(b*x+a)^2)/b

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {6108, 5917, 266, 43} \[ \frac {(a+b x)^2}{6 b}+\frac {\log \left (1-(a+b x)^2\right )}{6 b}+\frac {(a+b x)^3 \coth ^{-1}(a+b x)}{3 b} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*x)^2*ArcCoth[a + b*x],x]

[Out]

(a + b*x)^2/(6*b) + ((a + b*x)^3*ArcCoth[a + b*x])/(3*b) + Log[1 - (a + b*x)^2]/(6*b)

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 266

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 5917

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

Rule 6108

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

Rubi steps

\begin {align*} \int (a+b x)^2 \coth ^{-1}(a+b x) \, dx &=\frac {\operatorname {Subst}\left (\int x^2 \coth ^{-1}(x) \, dx,x,a+b x\right )}{b}\\ &=\frac {(a+b x)^3 \coth ^{-1}(a+b x)}{3 b}-\frac {\operatorname {Subst}\left (\int \frac {x^3}{1-x^2} \, dx,x,a+b x\right )}{3 b}\\ &=\frac {(a+b x)^3 \coth ^{-1}(a+b x)}{3 b}-\frac {\operatorname {Subst}\left (\int \frac {x}{1-x} \, dx,x,(a+b x)^2\right )}{6 b}\\ &=\frac {(a+b x)^3 \coth ^{-1}(a+b x)}{3 b}-\frac {\operatorname {Subst}\left (\int \left (-1+\frac {1}{1-x}\right ) \, dx,x,(a+b x)^2\right )}{6 b}\\ &=\frac {(a+b x)^2}{6 b}+\frac {(a+b x)^3 \coth ^{-1}(a+b x)}{3 b}+\frac {\log \left (1-(a+b x)^2\right )}{6 b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 42, normalized size = 0.78 \[ \frac {(a+b x)^2+\log \left (1-(a+b x)^2\right )+2 (a+b x)^3 \coth ^{-1}(a+b x)}{6 b} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)^2*ArcCoth[a + b*x],x]

[Out]

((a + b*x)^2 + 2*(a + b*x)^3*ArcCoth[a + b*x] + Log[1 - (a + b*x)^2])/(6*b)

________________________________________________________________________________________

fricas [A]  time = 0.58, size = 86, normalized size = 1.59 \[ \frac {b^{2} x^{2} + 2 \, a b x + {\left (a^{3} + 1\right )} \log \left (b x + a + 1\right ) - {\left (a^{3} - 1\right )} \log \left (b x + a - 1\right ) + {\left (b^{3} x^{3} + 3 \, a b^{2} x^{2} + 3 \, a^{2} b x\right )} \log \left (\frac {b x + a + 1}{b x + a - 1}\right )}{6 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^2*arccoth(b*x+a),x, algorithm="fricas")

[Out]

1/6*(b^2*x^2 + 2*a*b*x + (a^3 + 1)*log(b*x + a + 1) - (a^3 - 1)*log(b*x + a - 1) + (b^3*x^3 + 3*a*b^2*x^2 + 3*
a^2*b*x)*log((b*x + a + 1)/(b*x + a - 1)))/b

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b x + a\right )}^{2} \operatorname {arcoth}\left (b x + a\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^2*arccoth(b*x+a),x, algorithm="giac")

[Out]

integrate((b*x + a)^2*arccoth(b*x + a), x)

________________________________________________________________________________________

maple [A]  time = 0.03, size = 95, normalized size = 1.76 \[ \frac {b^{2} \mathrm {arccoth}\left (b x +a \right ) x^{3}}{3}+b \,\mathrm {arccoth}\left (b x +a \right ) x^{2} a +\mathrm {arccoth}\left (b x +a \right ) x \,a^{2}+\frac {\mathrm {arccoth}\left (b x +a \right ) a^{3}}{3 b}+\frac {b \,x^{2}}{6}+\frac {a x}{3}+\frac {a^{2}}{6 b}+\frac {\ln \left (b x +a -1\right )}{6 b}+\frac {\ln \left (b x +a +1\right )}{6 b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^2*arccoth(b*x+a),x)

[Out]

1/3*b^2*arccoth(b*x+a)*x^3+b*arccoth(b*x+a)*x^2*a+arccoth(b*x+a)*x*a^2+1/3/b*arccoth(b*x+a)*a^3+1/6*b*x^2+1/3*
a*x+1/6/b*a^2+1/6/b*ln(b*x+a-1)+1/6*ln(b*x+a+1)/b

________________________________________________________________________________________

maxima [A]  time = 0.31, size = 81, normalized size = 1.50 \[ \frac {1}{6} \, b {\left (\frac {b x^{2} + 2 \, a x}{b} + \frac {{\left (a^{3} + 1\right )} \log \left (b x + a + 1\right )}{b^{2}} - \frac {{\left (a^{3} - 1\right )} \log \left (b x + a - 1\right )}{b^{2}}\right )} + \frac {1}{3} \, {\left (b^{2} x^{3} + 3 \, a b x^{2} + 3 \, a^{2} x\right )} \operatorname {arcoth}\left (b x + a\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^2*arccoth(b*x+a),x, algorithm="maxima")

[Out]

1/6*b*((b*x^2 + 2*a*x)/b + (a^3 + 1)*log(b*x + a + 1)/b^2 - (a^3 - 1)*log(b*x + a - 1)/b^2) + 1/3*(b^2*x^3 + 3
*a*b*x^2 + 3*a^2*x)*arccoth(b*x + a)

________________________________________________________________________________________

mupad [B]  time = 1.54, size = 114, normalized size = 2.11 \[ \frac {a\,x}{3}+\ln \left (\frac {1}{a+b\,x}+1\right )\,\left (\frac {a^2\,x}{2}+\frac {a\,b\,x^2}{2}+\frac {b^2\,x^3}{6}\right )+\frac {b\,x^2}{6}-\ln \left (1-\frac {1}{a+b\,x}\right )\,\left (\frac {a^2\,x}{2}+\frac {a\,b\,x^2}{2}+\frac {b^2\,x^3}{6}\right )-\frac {\ln \left (a+b\,x-1\right )\,\left (a^3-1\right )}{6\,b}+\frac {\ln \left (a+b\,x+1\right )\,\left (a^3+1\right )}{6\,b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(acoth(a + b*x)*(a + b*x)^2,x)

[Out]

(a*x)/3 + log(1/(a + b*x) + 1)*((a^2*x)/2 + (b^2*x^3)/6 + (a*b*x^2)/2) + (b*x^2)/6 - log(1 - 1/(a + b*x))*((a^
2*x)/2 + (b^2*x^3)/6 + (a*b*x^2)/2) - (log(a + b*x - 1)*(a^3 - 1))/(6*b) + (log(a + b*x + 1)*(a^3 + 1))/(6*b)

________________________________________________________________________________________

sympy [A]  time = 1.22, size = 97, normalized size = 1.80 \[ \begin {cases} \frac {a^{3} \operatorname {acoth}{\left (a + b x \right )}}{3 b} + a^{2} x \operatorname {acoth}{\left (a + b x \right )} + a b x^{2} \operatorname {acoth}{\left (a + b x \right )} + \frac {a x}{3} + \frac {b^{2} x^{3} \operatorname {acoth}{\left (a + b x \right )}}{3} + \frac {b x^{2}}{6} + \frac {\log {\left (\frac {a}{b} + x + \frac {1}{b} \right )}}{3 b} - \frac {\operatorname {acoth}{\left (a + b x \right )}}{3 b} & \text {for}\: b \neq 0 \\a^{2} x \operatorname {acoth}{\relax (a )} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**2*acoth(b*x+a),x)

[Out]

Piecewise((a**3*acoth(a + b*x)/(3*b) + a**2*x*acoth(a + b*x) + a*b*x**2*acoth(a + b*x) + a*x/3 + b**2*x**3*aco
th(a + b*x)/3 + b*x**2/6 + log(a/b + x + 1/b)/(3*b) - acoth(a + b*x)/(3*b), Ne(b, 0)), (a**2*x*acoth(a), True)
)

________________________________________________________________________________________