Optimal. Leaf size=31 \[ -\frac{\tan ^{-1}(a x)}{2 a^2}+\frac{1}{2} x^2 \cot ^{-1}(a x)+\frac{x}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0115336, 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 = {4853, 321, 203} \[ -\frac{\tan ^{-1}(a x)}{2 a^2}+\frac{1}{2} x^2 \cot ^{-1}(a x)+\frac{x}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4853
Rule 321
Rule 203
Rubi steps
\begin{align*} \int x \cot ^{-1}(a x) \, dx &=\frac{1}{2} x^2 \cot ^{-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 \cot ^{-1}(a x)-\frac{\int \frac{1}{1+a^2 x^2} \, dx}{2 a}\\ &=\frac{x}{2 a}+\frac{1}{2} x^2 \cot ^{-1}(a x)-\frac{\tan ^{-1}(a x)}{2 a^2}\\ \end{align*}
Mathematica [A] time = 0.0017257, size = 31, normalized size = 1. \[ -\frac{\tan ^{-1}(a x)}{2 a^2}+\frac{1}{2} x^2 \cot ^{-1}(a x)+\frac{x}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.039, size = 26, normalized size = 0.8 \begin{align*}{\frac{x}{2\,a}}+{\frac{{x}^{2}{\rm arccot} \left (ax\right )}{2}}-{\frac{\arctan \left ( ax \right ) }{2\,{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48985, size = 38, normalized size = 1.23 \begin{align*} \frac{1}{2} \, x^{2} \operatorname{arccot}\left (a x\right ) + \frac{1}{2} \, a{\left (\frac{x}{a^{2}} - \frac{\arctan \left (a x\right )}{a^{3}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.90484, size = 58, normalized size = 1.87 \begin{align*} \frac{a x +{\left (a^{2} x^{2} + 1\right )} \operatorname{arccot}\left (a x\right )}{2 \, a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.413212, size = 31, normalized size = 1. \begin{align*} \begin{cases} \frac{x^{2} \operatorname{acot}{\left (a x \right )}}{2} + \frac{x}{2 a} + \frac{\operatorname{acot}{\left (a x \right )}}{2 a^{2}} & \text{for}\: a \neq 0 \\\frac{\pi x^{2}}{4} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11481, size = 43, normalized size = 1.39 \begin{align*} \frac{1}{2} \, x^{2} \arctan \left (\frac{1}{a x}\right ) + \frac{1}{2} \, a{\left (\frac{x}{a^{2}} - \frac{\arctan \left (a x\right )}{a^{3}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]