Optimal. Leaf size=32 \[ -\frac{15 x}{8}-\frac{15 \cot (x)}{8}+\frac{1}{4} \cos ^4(x) \cot (x)+\frac{5}{8} \cos ^2(x) \cot (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0336789, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.444, Rules used = {2591, 288, 321, 203} \[ -\frac{15 x}{8}-\frac{15 \cot (x)}{8}+\frac{1}{4} \cos ^4(x) \cot (x)+\frac{5}{8} \cos ^2(x) \cot (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2591
Rule 288
Rule 321
Rule 203
Rubi steps
\begin{align*} \int \cos ^4(x) \cot ^2(x) \, dx &=-\operatorname{Subst}\left (\int \frac{x^6}{\left (1+x^2\right )^3} \, dx,x,\cot (x)\right )\\ &=\frac{1}{4} \cos ^4(x) \cot (x)-\frac{5}{4} \operatorname{Subst}\left (\int \frac{x^4}{\left (1+x^2\right )^2} \, dx,x,\cot (x)\right )\\ &=\frac{5}{8} \cos ^2(x) \cot (x)+\frac{1}{4} \cos ^4(x) \cot (x)-\frac{15}{8} \operatorname{Subst}\left (\int \frac{x^2}{1+x^2} \, dx,x,\cot (x)\right )\\ &=-\frac{15 \cot (x)}{8}+\frac{5}{8} \cos ^2(x) \cot (x)+\frac{1}{4} \cos ^4(x) \cot (x)+\frac{15}{8} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\cot (x)\right )\\ &=-\frac{15 x}{8}-\frac{15 \cot (x)}{8}+\frac{5}{8} \cos ^2(x) \cot (x)+\frac{1}{4} \cos ^4(x) \cot (x)\\ \end{align*}
Mathematica [A] time = 0.0219386, size = 26, normalized size = 0.81 \[ -\frac{15 x}{8}-\frac{1}{2} \sin (2 x)-\frac{1}{32} \sin (4 x)-\cot (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 34, normalized size = 1.1 \begin{align*} -{\frac{ \left ( \cos \left ( x \right ) \right ) ^{7}}{\sin \left ( x \right ) }}- \left ( \left ( \cos \left ( x \right ) \right ) ^{5}+{\frac{5\, \left ( \cos \left ( x \right ) \right ) ^{3}}{4}}+{\frac{15\,\cos \left ( x \right ) }{8}} \right ) \sin \left ( x \right ) -{\frac{15\,x}{8}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.44403, size = 47, normalized size = 1.47 \begin{align*} -\frac{15}{8} \, x - \frac{15 \, \tan \left (x\right )^{4} + 25 \, \tan \left (x\right )^{2} + 8}{8 \,{\left (\tan \left (x\right )^{5} + 2 \, \tan \left (x\right )^{3} + \tan \left (x\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.46964, size = 86, normalized size = 2.69 \begin{align*} \frac{2 \, \cos \left (x\right )^{5} + 5 \, \cos \left (x\right )^{3} - 15 \, x \sin \left (x\right ) - 15 \, \cos \left (x\right )}{8 \, \sin \left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.066273, size = 36, normalized size = 1.12 \begin{align*} - \frac{15 x}{8} - \frac{5 \sin{\left (x \right )} \cos ^{3}{\left (x \right )}}{4} - \frac{15 \sin{\left (x \right )} \cos{\left (x \right )}}{8} - \frac{\cos ^{5}{\left (x \right )}}{\sin{\left (x \right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1096, size = 42, normalized size = 1.31 \begin{align*} -\frac{15}{8} \, x - \frac{7 \, \tan \left (x\right )^{3} + 9 \, \tan \left (x\right )}{8 \,{\left (\tan \left (x\right )^{2} + 1\right )}^{2}} - \frac{1}{\tan \left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]