Optimal. Leaf size=20 \[ \frac {\cot ^2(x)}{2}-\frac {\cot ^4(x)}{4}+\log (\sin (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3554, 3556}
\begin {gather*} -\frac {1}{4} \cot ^4(x)+\frac {\cot ^2(x)}{2}+\log (\sin (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3554
Rule 3556
Rubi steps
\begin {align*} \int \cot ^5(x) \, dx &=-\frac {1}{4} \cot ^4(x)-\int \cot ^3(x) \, dx\\ &=\frac {\cot ^2(x)}{2}-\frac {\cot ^4(x)}{4}+\int \cot (x) \, dx\\ &=\frac {\cot ^2(x)}{2}-\frac {\cot ^4(x)}{4}+\log (\sin (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 16, normalized size = 0.80 \begin {gather*} \csc ^2(x)-\frac {\csc ^4(x)}{4}+\log (\sin (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 26, normalized size = 1.30
method | result | size |
derivativedivides | \(-\frac {\ln \left (1+\tan ^{2}\left (x \right )\right )}{2}-\frac {1}{4 \tan \left (x \right )^{4}}+\ln \left (\tan \left (x \right )\right )+\frac {1}{2 \tan \left (x \right )^{2}}\) | \(26\) |
default | \(-\frac {\ln \left (1+\tan ^{2}\left (x \right )\right )}{2}-\frac {1}{4 \tan \left (x \right )^{4}}+\ln \left (\tan \left (x \right )\right )+\frac {1}{2 \tan \left (x \right )^{2}}\) | \(26\) |
norman | \(\frac {-\frac {1}{4}+\frac {\left (\tan ^{2}\left (x \right )\right )}{2}}{\tan \left (x \right )^{4}}-\frac {\ln \left (1+\tan ^{2}\left (x \right )\right )}{2}+\ln \left (\tan \left (x \right )\right )\) | \(27\) |
risch | \(-i x -\frac {4 \left ({\mathrm e}^{6 i x}-{\mathrm e}^{4 i x}+{\mathrm e}^{2 i x}\right )}{\left ({\mathrm e}^{2 i x}-1\right )^{4}}+\ln \left ({\mathrm e}^{2 i x}-1\right )\) | \(43\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 5.59, size = 22, normalized size = 1.10 \begin {gather*} \frac {4 \, \sin \left (x\right )^{2} - 1}{4 \, \sin \left (x\right )^{4}} + \frac {1}{2} \, \log \left (\sin \left (x\right )^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 40 vs.
\(2 (16) = 32\).
time = 0.93, size = 40, normalized size = 2.00 \begin {gather*} \frac {2 \, \log \left (\frac {\tan \left (x\right )^{2}}{\tan \left (x\right )^{2} + 1}\right ) \tan \left (x\right )^{4} + 3 \, \tan \left (x\right )^{4} + 2 \, \tan \left (x\right )^{2} - 1}{4 \, \tan \left (x\right )^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 19, normalized size = 0.95 \begin {gather*} \frac {4 \sin ^{2}{\left (x \right )} - 1}{4 \sin ^{4}{\left (x \right )}} + \log {\left (\sin {\left (x \right )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 37 vs.
\(2 (16) = 32\).
time = 1.37, size = 37, normalized size = 1.85 \begin {gather*} -\frac {3 \, \tan \left (x\right )^{4} - 2 \, \tan \left (x\right )^{2} + 1}{4 \, \tan \left (x\right )^{4}} - \frac {1}{2} \, \log \left (\tan \left (x\right )^{2} + 1\right ) + \frac {1}{2} \, \log \left (\tan \left (x\right )^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.27, size = 26, normalized size = 1.30 \begin {gather*} \ln \left (\mathrm {tan}\left (x\right )\right )-\frac {\ln \left ({\mathrm {tan}\left (x\right )}^2+1\right )}{2}+\frac {\frac {{\mathrm {tan}\left (x\right )}^2}{2}-\frac {1}{4}}{{\mathrm {tan}\left (x\right )}^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________