Optimal. Leaf size=32 \[ -\frac {x}{4 \left (1+x^2\right )}-\frac {\cot ^{-1}(x)}{2 \left (1+x^2\right )}-\frac {\text {ArcTan}(x)}{4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {5051, 205, 209}
\begin {gather*} -\frac {\text {ArcTan}(x)}{4}-\frac {x}{4 \left (x^2+1\right )}-\frac {\cot ^{-1}(x)}{2 \left (x^2+1\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 209
Rule 5051
Rubi steps
\begin {align*} \int \frac {x \cot ^{-1}(x)}{\left (1+x^2\right )^2} \, dx &=-\frac {\cot ^{-1}(x)}{2 \left (1+x^2\right )}-\frac {1}{2} \int \frac {1}{\left (1+x^2\right )^2} \, dx\\ &=-\frac {x}{4 \left (1+x^2\right )}-\frac {\cot ^{-1}(x)}{2 \left (1+x^2\right )}-\frac {1}{4} \int \frac {1}{1+x^2} \, dx\\ &=-\frac {x}{4 \left (1+x^2\right )}-\frac {\cot ^{-1}(x)}{2 \left (1+x^2\right )}-\frac {1}{4} \tan ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 25, normalized size = 0.78 \begin {gather*} -\frac {x+2 \cot ^{-1}(x)+\text {ArcTan}(x)+x^2 \text {ArcTan}(x)}{4+4 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 27, normalized size = 0.84
method | result | size |
default | \(-\frac {x}{4 \left (x^{2}+1\right )}-\frac {\mathrm {arccot}\left (x \right )}{2 \left (x^{2}+1\right )}-\frac {\arctan \left (x \right )}{4}\) | \(27\) |
risch | \(-\frac {i \ln \left (i x +1\right )}{4 \left (x^{2}+1\right )}-\frac {-2 i \ln \left (-i x +1\right )-i \ln \left (x -i\right ) x^{2}-i \ln \left (x -i\right )+i \ln \left (i+x \right ) x^{2}+i \ln \left (i+x \right )+2 \pi +2 x}{8 \left (i+x \right ) \left (x -i\right )}\) | \(88\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 26, normalized size = 0.81 \begin {gather*} -\frac {x}{4 \, {\left (x^{2} + 1\right )}} - \frac {\operatorname {arccot}\left (x\right )}{2 \, {\left (x^{2} + 1\right )}} - \frac {1}{4} \, \arctan \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.37, size = 21, normalized size = 0.66 \begin {gather*} \frac {{\left (x^{2} - 1\right )} \operatorname {arccot}\left (x\right ) - x}{4 \, {\left (x^{2} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.22, size = 31, normalized size = 0.97 \begin {gather*} \frac {x^{2} \operatorname {acot}{\left (x \right )}}{4 x^{2} + 4} - \frac {x}{4 x^{2} + 4} - \frac {\operatorname {acot}{\left (x \right )}}{4 x^{2} + 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 32, normalized size = 1.00 \begin {gather*} -\frac {\arctan \left (\frac {1}{x}\right )}{2 \, {\left (x^{2} + 1\right )}} - \frac {1}{4 \, x {\left (\frac {1}{x^{2}} + 1\right )}} + \frac {1}{4} \, \arctan \left (\frac {1}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 22, normalized size = 0.69 \begin {gather*} \frac {\mathrm {acot}\left (x\right )}{4}-\frac {\frac {x}{4}+\frac {\mathrm {acot}\left (x\right )}{2}}{x^2+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________