Optimal. Leaf size=12 \[ x-\frac{1}{3} \cot ^3(x)+\cot (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0099821, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 4, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {3473, 8} \[ x-\frac{1}{3} \cot ^3(x)+\cot (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \cot ^4(x) \, dx &=-\frac{1}{3} \cot ^3(x)-\int \cot ^2(x) \, dx\\ &=\cot (x)-\frac{\cot ^3(x)}{3}+\int 1 \, dx\\ &=x+\cot (x)-\frac{\cot ^3(x)}{3}\\ \end{align*}
Mathematica [A] time = 0.0030371, size = 18, normalized size = 1.5 \[ x+\frac{4 \cot (x)}{3}-\frac{1}{3} \cot (x) \csc ^2(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0., size = 14, normalized size = 1.2 \begin{align*} -{\frac{ \left ( \cot \left ( x \right ) \right ) ^{3}}{3}}+\cot \left ( x \right ) -{\frac{\pi }{2}}+x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.41448, size = 22, normalized size = 1.83 \begin{align*} x + \frac{3 \, \tan \left (x\right )^{2} - 1}{3 \, \tan \left (x\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.65477, size = 126, normalized size = 10.5 \begin{align*} \frac{4 \, \cos \left (2 \, x\right )^{2} + 3 \,{\left (x \cos \left (2 \, x\right ) - x\right )} \sin \left (2 \, x\right ) + 2 \, \cos \left (2 \, x\right ) - 2}{3 \,{\left (\cos \left (2 \, x\right ) - 1\right )} \sin \left (2 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.065953, size = 19, normalized size = 1.58 \begin{align*} x + \frac{\cos{\left (x \right )}}{\sin{\left (x \right )}} - \frac{\cos ^{3}{\left (x \right )}}{3 \sin ^{3}{\left (x \right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.06264, size = 46, normalized size = 3.83 \begin{align*} \frac{1}{24} \, \tan \left (\frac{1}{2} \, x\right )^{3} + x + \frac{15 \, \tan \left (\frac{1}{2} \, x\right )^{2} - 1}{24 \, \tan \left (\frac{1}{2} \, x\right )^{3}} - \frac{5}{8} \, \tan \left (\frac{1}{2} \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]