Optimal. Leaf size=57 \[ \frac{\left (3 a^2 c+d\right ) \log \left (1-a^2 x^2\right )}{6 a^3}+c x \coth ^{-1}(a x)+\frac{d x^2}{6 a}+\frac{1}{3} d x^3 \coth ^{-1}(a x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0659503, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {5977, 1593, 444, 43} \[ \frac{\left (3 a^2 c+d\right ) \log \left (1-a^2 x^2\right )}{6 a^3}+c x \coth ^{-1}(a x)+\frac{d x^2}{6 a}+\frac{1}{3} d x^3 \coth ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5977
Rule 1593
Rule 444
Rule 43
Rubi steps
\begin{align*} \int \left (c+d x^2\right ) \coth ^{-1}(a x) \, dx &=c x \coth ^{-1}(a x)+\frac{1}{3} d x^3 \coth ^{-1}(a x)-a \int \frac{c x+\frac{d x^3}{3}}{1-a^2 x^2} \, dx\\ &=c x \coth ^{-1}(a x)+\frac{1}{3} d x^3 \coth ^{-1}(a x)-a \int \frac{x \left (c+\frac{d x^2}{3}\right )}{1-a^2 x^2} \, dx\\ &=c x \coth ^{-1}(a x)+\frac{1}{3} d x^3 \coth ^{-1}(a x)-\frac{1}{2} a \operatorname{Subst}\left (\int \frac{c+\frac{d x}{3}}{1-a^2 x} \, dx,x,x^2\right )\\ &=c x \coth ^{-1}(a x)+\frac{1}{3} d x^3 \coth ^{-1}(a x)-\frac{1}{2} a \operatorname{Subst}\left (\int \left (-\frac{d}{3 a^2}+\frac{-3 a^2 c-d}{3 a^2 \left (-1+a^2 x\right )}\right ) \, dx,x,x^2\right )\\ &=\frac{d x^2}{6 a}+c x \coth ^{-1}(a x)+\frac{1}{3} d x^3 \coth ^{-1}(a x)+\frac{\left (3 a^2 c+d\right ) \log \left (1-a^2 x^2\right )}{6 a^3}\\ \end{align*}
Mathematica [A] time = 0.0116903, size = 69, normalized size = 1.21 \[ \frac{c \log \left (1-a^2 x^2\right )}{2 a}+\frac{d \log \left (1-a^2 x^2\right )}{6 a^3}+c x \coth ^{-1}(a x)+\frac{d x^2}{6 a}+\frac{1}{3} d x^3 \coth ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.038, size = 76, normalized size = 1.3 \begin{align*}{\frac{d{x}^{3}{\rm arccoth} \left (ax\right )}{3}}+cx{\rm arccoth} \left (ax\right )+{\frac{d{x}^{2}}{6\,a}}+{\frac{\ln \left ( ax-1 \right ) c}{2\,a}}+{\frac{\ln \left ( ax-1 \right ) d}{6\,{a}^{3}}}+{\frac{\ln \left ( ax+1 \right ) c}{2\,a}}+{\frac{\ln \left ( ax+1 \right ) d}{6\,{a}^{3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.974406, size = 88, normalized size = 1.54 \begin{align*} \frac{1}{6} \, a{\left (\frac{d x^{2}}{a^{2}} + \frac{{\left (3 \, a^{2} c + d\right )} \log \left (a x + 1\right )}{a^{4}} + \frac{{\left (3 \, a^{2} c + d\right )} \log \left (a x - 1\right )}{a^{4}}\right )} + \frac{1}{3} \,{\left (d x^{3} + 3 \, c x\right )} \operatorname{arcoth}\left (a x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.51526, size = 142, normalized size = 2.49 \begin{align*} \frac{a^{2} d x^{2} +{\left (3 \, a^{2} c + d\right )} \log \left (a^{2} x^{2} - 1\right ) +{\left (a^{3} d x^{3} + 3 \, a^{3} c x\right )} \log \left (\frac{a x + 1}{a x - 1}\right )}{6 \, a^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.37328, size = 87, normalized size = 1.53 \begin{align*} \begin{cases} c x \operatorname{acoth}{\left (a x \right )} + \frac{d x^{3} \operatorname{acoth}{\left (a x \right )}}{3} + \frac{c \log{\left (x - \frac{1}{a} \right )}}{a} + \frac{c \operatorname{acoth}{\left (a x \right )}}{a} + \frac{d x^{2}}{6 a} + \frac{d \log{\left (x - \frac{1}{a} \right )}}{3 a^{3}} + \frac{d \operatorname{acoth}{\left (a x \right )}}{3 a^{3}} & \text{for}\: a \neq 0 \\\frac{i \pi \left (c x + \frac{d x^{3}}{3}\right )}{2} & \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{\left (d x^{2} + c\right )} \operatorname{arcoth}\left (a x\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]