Optimal. Leaf size=56 \[ -\frac {x}{4 \left (1+x^2\right )}-\frac {\cot ^{-1}(x)}{2 \left (1+x^2\right )}+\frac {x \cot ^{-1}(x)^2}{2 \left (1+x^2\right )}-\frac {1}{6} \cot ^{-1}(x)^3-\frac {\text {ArcTan}(x)}{4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {5013, 5051,
205, 209} \begin {gather*} -\frac {\text {ArcTan}(x)}{4}-\frac {x}{4 \left (x^2+1\right )}+\frac {x \cot ^{-1}(x)^2}{2 \left (x^2+1\right )}-\frac {\cot ^{-1}(x)}{2 \left (x^2+1\right )}-\frac {1}{6} \cot ^{-1}(x)^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 209
Rule 5013
Rule 5051
Rubi steps
\begin {align*} \int \frac {\cot ^{-1}(x)^2}{\left (1+x^2\right )^2} \, dx &=\frac {x \cot ^{-1}(x)^2}{2 \left (1+x^2\right )}-\frac {1}{6} \cot ^{-1}(x)^3+\int \frac {x \cot ^{-1}(x)}{\left (1+x^2\right )^2} \, dx\\ &=-\frac {\cot ^{-1}(x)}{2 \left (1+x^2\right )}+\frac {x \cot ^{-1}(x)^2}{2 \left (1+x^2\right )}-\frac {1}{6} \cot ^{-1}(x)^3-\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 {x \cot ^{-1}(x)^2}{2 \left (1+x^2\right )}-\frac {1}{6} \cot ^{-1}(x)^3-\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 {x \cot ^{-1}(x)^2}{2 \left (1+x^2\right )}-\frac {1}{6} \cot ^{-1}(x)^3-\frac {1}{4} \tan ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 46, normalized size = 0.82 \begin {gather*} -\frac {6 \cot ^{-1}(x)-6 x \cot ^{-1}(x)^2+2 \left (1+x^2\right ) \cot ^{-1}(x)^3+3 \left (x+\left (1+x^2\right ) \text {ArcTan}(x)\right )}{12 \left (1+x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.27, size = 65, normalized size = 1.16
method | result | size |
default | \(\frac {x \mathrm {arccot}\left (x \right )^{2}}{2 x^{2}+2}+\frac {\mathrm {arccot}\left (x \right )^{2} \arctan \left (x \right )}{2}-\frac {\mathrm {arccot}\left (x \right )^{2} \pi }{4}+\frac {\mathrm {arccot}\left (x \right )^{3}}{3}+\frac {x^{2} \mathrm {arccot}\left (x \right )}{2 x^{2}+2}-\frac {x}{4 \left (x^{2}+1\right )}-\frac {\mathrm {arccot}\left (x \right )}{4}\) | \(65\) |
risch | \(\frac {i \ln \left (i x +1\right )^{3}}{48}+\frac {\left (-i \ln \left (-i x +1\right ) x^{2}+\pi \,x^{2}-i \ln \left (-i x +1\right )+\pi -2 x \right ) \ln \left (i x +1\right )^{2}}{16 x^{2}+16}-\frac {\left (-i x^{2} \ln \left (-i x +1\right )^{2}-i \ln \left (-i x +1\right )^{2}-4 \ln \left (-i x +1\right ) x +2 \pi \ln \left (-i x +1\right ) x^{2}+2 \pi \ln \left (-i x +1\right )-4 i \pi x +4 i\right ) \ln \left (i x +1\right )}{16 \left (i+x \right ) \left (x -i\right )}-\frac {i \left (3 \ln \left (x -i\right ) \pi ^{2} x^{2}-3 \ln \left (i+x \right ) \pi ^{2} x^{2}+x^{2} \ln \left (-i x +1\right )^{3}+3 i \pi \,x^{2} \ln \left (-i x +1\right )^{2}+3 \ln \left (x -i\right ) \pi ^{2}-3 \ln \left (i+x \right ) \pi ^{2}+12 \pi \ln \left (-i x +1\right ) x -6 \ln \left (x -i\right ) x^{2}+6 \ln \left (i+x \right ) x^{2}+\ln \left (-i x +1\right )^{3}-6 i \ln \left (-i x +1\right )^{2} x +3 i \pi \ln \left (-i x +1\right )^{2}+6 i \pi ^{2} x -6 \ln \left (x -i\right )+6 \ln \left (i+x \right )-12 \ln \left (-i x +1\right )-12 i x -12 i \pi \right )}{48 \left (i+x \right ) \left (x -i\right )}\) | \(349\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 75, normalized size = 1.34 \begin {gather*} \frac {1}{2} \, {\left (\frac {x}{x^{2} + 1} + \arctan \left (x\right )\right )} \operatorname {arccot}\left (x\right )^{2} + \frac {{\left ({\left (x^{2} + 1\right )} \arctan \left (x\right )^{2} - 1\right )} \operatorname {arccot}\left (x\right )}{2 \, {\left (x^{2} + 1\right )}} + \frac {2 \, {\left (x^{2} + 1\right )} \arctan \left (x\right )^{3} - 3 \, {\left (x^{2} + 1\right )} \arctan \left (x\right ) - 3 \, x}{12 \, {\left (x^{2} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.87, size = 40, normalized size = 0.71 \begin {gather*} -\frac {2 \, {\left (x^{2} + 1\right )} \operatorname {arccot}\left (x\right )^{3} - 6 \, x \operatorname {arccot}\left (x\right )^{2} - 3 \, {\left (x^{2} - 1\right )} \operatorname {arccot}\left (x\right ) + 3 \, x}{12 \, {\left (x^{2} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {acot}^{2}{\left (x \right )}}{\left (x^{2} + 1\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 51, normalized size = 0.91 \begin {gather*} \frac {x\,{\mathrm {acot}\left (x\right )}^2}{2\,\left (x^2+1\right )}-\frac {{\mathrm {acot}\left (x\right )}^3}{6}-\frac {x}{4\,\left (x^2+1\right )}-\frac {\mathrm {acot}\left (x\right )}{2\,\left (x^2+1\right )}-\frac {\mathrm {atan}\left (x\right )}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________