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.01, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, 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 203
Rule 321
Rule 4853
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.00, size = 31, normalized size = 1.00 \[ -\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]
________________________________________________________________________________________
fricas [A] time = 0.68, size = 23, normalized size = 0.74 \[ \frac {a x + {\left (a^{2} x^{2} + 1\right )} \operatorname {arccot}\left (a x\right )}{2 \, a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 36, normalized size = 1.16 \[ \frac {1}{2} \, {\left (\frac {x^{2} \arctan \left (\frac {1}{a x}\right )}{a} + \frac {x}{a^{2}} + \frac {\arctan \left (\frac {1}{a x}\right )}{a^{3}}\right )} a \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 26, normalized size = 0.84 \[ \frac {x}{2 a}+\frac {x^{2} \mathrm {arccot}\left (a x \right )}{2}-\frac {\arctan \left (a x \right )}{2 a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 28, normalized size = 0.90 \[ \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 )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.76, size = 39, normalized size = 1.26 \[ \left \{\begin {array}{cl} \frac {\pi \,x^2}{4} & \text {\ if\ \ }a=0\\ \frac {x-\frac {\mathrm {atan}\left (a\,x\right )}{a}}{2\,a}+\frac {x^2\,\mathrm {acot}\left (a\,x\right )}{2} & \text {\ if\ \ }a\neq 0 \end {array}\right . \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.34, size = 31, normalized size = 1.00 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________