Optimal. Leaf size=17 \[ x \cot ^{-1}\left (\frac {1}{x}\right )-\frac {1}{2} \log \left (1+x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.750, Rules used = {4931, 269, 266}
\begin {gather*} x \cot ^{-1}\left (\frac {1}{x}\right )-\frac {1}{2} \log \left (x^2+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 269
Rule 4931
Rubi steps
\begin {align*} \int \cot ^{-1}\left (\frac {1}{x}\right ) \, dx &=x \cot ^{-1}\left (\frac {1}{x}\right )-\int \frac {1}{\left (1+\frac {1}{x^2}\right ) x} \, dx\\ &=x \cot ^{-1}\left (\frac {1}{x}\right )-\int \frac {x}{1+x^2} \, dx\\ &=x \cot ^{-1}\left (\frac {1}{x}\right )-\frac {1}{2} \log \left (1+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 17, normalized size = 1.00 \begin {gather*} x \cot ^{-1}\left (\frac {1}{x}\right )-\frac {1}{2} \log \left (1+x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 20, normalized size = 1.18
method | result | size |
derivativedivides | \(x \,\mathrm {arccot}\left (\frac {1}{x}\right )-\frac {\ln \left (\frac {1}{x^{2}}+1\right )}{2}+\ln \left (\frac {1}{x}\right )\) | \(20\) |
default | \(x \,\mathrm {arccot}\left (\frac {1}{x}\right )-\frac {\ln \left (\frac {1}{x^{2}}+1\right )}{2}+\ln \left (\frac {1}{x}\right )\) | \(20\) |
risch | \(\frac {i x \ln \left (i+x \right )}{2}-\frac {i \ln \left (x -i\right ) x}{2}-\frac {\pi \,\mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (i \left (x -\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )\right ) \mathrm {csgn}\left (\frac {i \left (x -\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )}{x}\right ) x}{4}+\frac {\pi \,\mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (i \left (x +\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )\right ) \mathrm {csgn}\left (\frac {i \left (x +\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )}{x}\right ) x}{4}+\frac {\pi \,\mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (\frac {i \left (x -\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )}{x}\right )^{2} x}{4}-\frac {\pi \,\mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (\frac {i \left (x +\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )}{x}\right )^{2} x}{4}+\frac {\pi \,\mathrm {csgn}\left (i \left (x -\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )\right ) \mathrm {csgn}\left (\frac {i \left (x -\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )}{x}\right )^{2} x}{4}-\frac {\pi \,\mathrm {csgn}\left (i \left (x +\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )\right ) \mathrm {csgn}\left (\frac {i \left (x +\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )}{x}\right )^{2} x}{4}-\frac {\pi \mathrm {csgn}\left (\frac {i \left (x -\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )}{x}\right )^{3} x}{4}+\frac {\pi \mathrm {csgn}\left (\frac {i \left (x +\RootOf \left (\textit {\_Z}^{2}+1, \mathit {index} =1\right )\right )}{x}\right )^{3} x}{4}+\frac {\pi x}{2}-\frac {\ln \left (x^{2}+1\right )}{2}\) | \(320\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 15, normalized size = 0.88 \begin {gather*} x \operatorname {arccot}\left (\frac {1}{x}\right ) - \frac {1}{2} \, \log \left (x^{2} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.34, size = 15, normalized size = 0.88 \begin {gather*} x \operatorname {arccot}\left (\frac {1}{x}\right ) - \frac {1}{2} \, \log \left (x^{2} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 14, normalized size = 0.82 \begin {gather*} x \operatorname {acot}{\left (\frac {1}{x} \right )} - \frac {\log {\left (x^{2} + 1 \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 13, normalized size = 0.76 \begin {gather*} x \arctan \left (x\right ) - \frac {1}{2} \, \log \left (x^{2} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 15, normalized size = 0.88 \begin {gather*} x\,\mathrm {acot}\left (\frac {1}{x}\right )-\frac {\ln \left (x^2+1\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________