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.03, antiderivative size = 32, normalized size of antiderivative = 1.00, 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 203
Rule 288
Rule 321
Rule 2591
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.02, 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]
________________________________________________________________________________________
fricas [A] time = 1.63, size = 28, normalized size = 0.88 \[ \frac {2 \, \cos \relax (x)^{5} + 5 \, \cos \relax (x)^{3} - 15 \, x \sin \relax (x) - 15 \, \cos \relax (x)}{8 \, \sin \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 31, normalized size = 0.97 \[ -\frac {15}{8} \, x - \frac {7 \, \tan \relax (x)^{3} + 9 \, \tan \relax (x)}{8 \, {\left (\tan \relax (x)^{2} + 1\right )}^{2}} - \frac {1}{\tan \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 34, normalized size = 1.06 \[ -\frac {\cos ^{7}\relax (x )}{\sin \relax (x )}-\left (\cos ^{5}\relax (x )+\frac {5 \left (\cos ^{3}\relax (x )\right )}{4}+\frac {15 \cos \relax (x )}{8}\right ) \sin \relax (x )-\frac {15 x}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 35, normalized size = 1.09 \[ -\frac {15}{8} \, x - \frac {15 \, \tan \relax (x)^{4} + 25 \, \tan \relax (x)^{2} + 8}{8 \, {\left (\tan \relax (x)^{5} + 2 \, \tan \relax (x)^{3} + \tan \relax (x)\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.00, size = 26, normalized size = 0.81 \[ \frac {\frac {{\cos \relax (x)}^5}{4}+\frac {5\,{\cos \relax (x)}^3}{8}-\frac {15\,\cos \relax (x)}{8}}{\sin \relax (x)}-\frac {15\,x}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.06, size = 36, normalized size = 1.12 \[ - \frac {15 x}{8} - \frac {5 \sin {\relax (x )} \cos ^{3}{\relax (x )}}{4} - \frac {15 \sin {\relax (x )} \cos {\relax (x )}}{8} - \frac {\cos ^{5}{\relax (x )}}{\sin {\relax (x )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________