Optimal. Leaf size=6 \[ x-\cot (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0470889, antiderivative size = 6, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {14, 203} \[ x-\cot (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 203
Rubi steps
\begin{align*} \int \left (1+\frac{1}{1+\cot ^2(x)}\right ) \csc ^2(x) \, dx &=\operatorname{Subst}\left (\int \frac{1+\frac{1}{1+\frac{1}{x^2}}}{x^2} \, dx,x,\tan (x)\right )\\ &=\operatorname{Subst}\left (\int \left (\frac{1}{x^2}+\frac{1}{1+x^2}\right ) \, dx,x,\tan (x)\right )\\ &=-\cot (x)+\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\tan (x)\right )\\ &=x-\cot (x)\\ \end{align*}
Mathematica [A] time = 0.0053662, size = 6, normalized size = 1. \[ x-\cot (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.025, size = 7, normalized size = 1.2 \begin{align*} x-\cot \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.4416, size = 11, normalized size = 1.83 \begin{align*} x - \frac{1}{\tan \left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.31265, size = 38, normalized size = 6.33 \begin{align*} \frac{x \sin \left (x\right ) - \cos \left (x\right )}{\sin \left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.938944, size = 27, normalized size = 4.5 \begin{align*} \frac{x \csc ^{2}{\left (x \right )}}{\cot ^{2}{\left (x \right )} + 1} - \frac{\cot{\left (x \right )} \csc ^{2}{\left (x \right )}}{\cot ^{2}{\left (x \right )} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.11885, size = 22, normalized size = 3.67 \begin{align*} x - \frac{1}{2 \, \tan \left (\frac{1}{2} \, x\right )} + \frac{1}{2} \, \tan \left (\frac{1}{2} \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]