Optimal. Leaf size=14 \[ -\frac {1}{2} \cot ^2(x)-\log (\sin (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 2, 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}{2} \cot ^2(x)-\log (\sin (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3554
Rule 3556
Rubi steps
\begin {align*} \int \cot ^3(x) \, dx &=-\frac {1}{2} \cot ^2(x)-\int \cot (x) \, dx\\ &=-\frac {1}{2} \cot ^2(x)-\log (\sin (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 14, normalized size = 1.00 \begin {gather*} -\frac {1}{2} \csc ^2(x)-\log (\sin (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.80, size = 12, normalized size = 0.86 \begin {gather*} -\text {Log}\left [\text {Sin}\left [x\right ]\right ]-\frac {1}{2 \text {Sin}\left [x\right ]^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 17, normalized size = 1.21
method | result | size |
derivativedivides | \(-\frac {\left (\cot ^{2}\left (x \right )\right )}{2}+\frac {\ln \left (\cot ^{2}\left (x \right )+1\right )}{2}\) | \(17\) |
default | \(-\frac {\left (\cot ^{2}\left (x \right )\right )}{2}+\frac {\ln \left (\cot ^{2}\left (x \right )+1\right )}{2}\) | \(17\) |
norman | \(-\frac {1}{2 \tan \left (x \right )^{2}}-\ln \left (\tan \left (x \right )\right )+\frac {\ln \left (1+\tan ^{2}\left (x \right )\right )}{2}\) | \(22\) |
risch | \(i x +\frac {2 \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}-\ln \left ({\mathrm e}^{2 i x}-1\right )\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 14, normalized size = 1.00 \begin {gather*} -\frac {1}{2 \, \sin \left (x\right )^{2}} - \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. 28 vs.
\(2 (12) = 24\).
time = 0.35, size = 28, normalized size = 2.00 \begin {gather*} -\frac {{\left (\cos \left (2 \, x\right ) - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (2 \, x\right ) + \frac {1}{2}\right ) - 2}{2 \, {\left (\cos \left (2 \, x\right ) - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 14, normalized size = 1.00 \begin {gather*} - \log {\left (\sin {\left (x \right )} \right )} - \frac {1}{2 \sin ^{2}{\left (x \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 23, normalized size = 1.64 \begin {gather*} \frac {1}{2 \left (\cos ^{2}x-1\right )}-\frac {\ln \left (-\cos ^{2}x+1\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 18, normalized size = 1.29 \begin {gather*} \frac {{\sin \left (x\right )}^2-1}{2\,{\sin \left (x\right )}^2}-\ln \left (\sin \left (x\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________