Optimal. Leaf size=31 \[ -\frac{\tanh ^{-1}(a x)}{2 a^2}+\frac{1}{2} x^2 \coth ^{-1}(a x)+\frac{x}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0132059, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {5917, 321, 206} \[ -\frac{\tanh ^{-1}(a x)}{2 a^2}+\frac{1}{2} x^2 \coth ^{-1}(a x)+\frac{x}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5917
Rule 321
Rule 206
Rubi steps
\begin{align*} \int x \coth ^{-1}(a x) \, dx &=\frac{1}{2} x^2 \coth ^{-1}(a x)-\frac{1}{2} a \int \frac{x^2}{1-a^2 x^2} \, dx\\ &=\frac{x}{2 a}+\frac{1}{2} x^2 \coth ^{-1}(a x)-\frac{\int \frac{1}{1-a^2 x^2} \, dx}{2 a}\\ &=\frac{x}{2 a}+\frac{1}{2} x^2 \coth ^{-1}(a x)-\frac{\tanh ^{-1}(a x)}{2 a^2}\\ \end{align*}
Mathematica [A] time = 0.0069993, size = 47, normalized size = 1.52 \[ \frac{\log (1-a x)}{4 a^2}-\frac{\log (a x+1)}{4 a^2}+\frac{1}{2} x^2 \coth ^{-1}(a x)+\frac{x}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 39, normalized size = 1.3 \begin{align*}{\frac{{x}^{2}{\rm arccoth} \left (ax\right )}{2}}+{\frac{x}{2\,a}}+{\frac{\ln \left ( ax-1 \right ) }{4\,{a}^{2}}}-{\frac{\ln \left ( ax+1 \right ) }{4\,{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.973175, size = 55, normalized size = 1.77 \begin{align*} \frac{1}{2} \, x^{2} \operatorname{arcoth}\left (a x\right ) + \frac{1}{4} \, a{\left (\frac{2 \, x}{a^{2}} - \frac{\log \left (a x + 1\right )}{a^{3}} + \frac{\log \left (a x - 1\right )}{a^{3}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.61763, size = 78, normalized size = 2.52 \begin{align*} \frac{2 \, a x +{\left (a^{2} x^{2} - 1\right )} \log \left (\frac{a x + 1}{a x - 1}\right )}{4 \, a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.918862, size = 32, normalized size = 1.03 \begin{align*} \begin{cases} \frac{x^{2} \operatorname{acoth}{\left (a x \right )}}{2} + \frac{x}{2 a} - \frac{\operatorname{acoth}{\left (a x \right )}}{2 a^{2}} & \text{for}\: a \neq 0 \\\frac{i \pi x^{2}}{4} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \operatorname{arcoth}\left (a x\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]