Optimal. Leaf size=16 \[ -\frac {1}{2} \tanh ^{-1}(\cos (x))-\frac {1}{2} \cot (x) \csc (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 16, 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 = {3853, 3855}
\begin {gather*} -\frac {1}{2} \tanh ^{-1}(\cos (x))-\frac {1}{2} \cot (x) \csc (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3853
Rule 3855
Rubi steps
\begin {align*} \int \csc ^3(x) \, dx &=-\frac {1}{2} \cot (x) \csc (x)+\frac {1}{2} \int \csc (x) \, dx\\ &=-\frac {1}{2} \tanh ^{-1}(\cos (x))-\frac {1}{2} \cot (x) \csc (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(47\) vs. \(2(16)=32\).
time = 0.00, size = 47, normalized size = 2.94 \begin {gather*} -\frac {1}{8} \csc ^2\left (\frac {x}{2}\right )-\frac {1}{2} \log \left (\cos \left (\frac {x}{2}\right )\right )+\frac {1}{2} \log \left (\sin \left (\frac {x}{2}\right )\right )+\frac {1}{8} \sec ^2\left (\frac {x}{2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 2.07, size = 23, normalized size = 1.44 \begin {gather*} -\frac {\text {Cos}\left [x\right ]}{2 \text {Sin}\left [x\right ]^2}-\frac {\text {Log}\left [1+\text {Cos}\left [x\right ]\right ]}{4}+\frac {\text {Log}\left [-1+\text {Cos}\left [x\right ]\right ]}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 18, normalized size = 1.12
method | result | size |
default | \(-\frac {\cot \left (x \right ) \csc \left (x \right )}{2}+\frac {\ln \left (\csc \left (x \right )-\cot \left (x \right )\right )}{2}\) | \(18\) |
norman | \(\frac {-\frac {1}{8}+\frac {\left (\tan ^{4}\left (\frac {x}{2}\right )\right )}{8}}{\tan \left (\frac {x}{2}\right )^{2}}+\frac {\ln \left (\tan \left (\frac {x}{2}\right )\right )}{2}\) | \(26\) |
risch | \(\frac {{\mathrm e}^{3 i x}+{\mathrm e}^{i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}-\frac {\ln \left (1+{\mathrm e}^{i x}\right )}{2}+\frac {\ln \left ({\mathrm e}^{i x}-1\right )}{2}\) | \(43\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 27 vs.
\(2 (12) = 24\).
time = 0.30, size = 27, normalized size = 1.69 \begin {gather*} \frac {\cos \left (x\right )}{2 \, {\left (\cos \left (x\right )^{2} - 1\right )}} - \frac {1}{4} \, \log \left (\cos \left (x\right ) + 1\right ) + \frac {1}{4} \, \log \left (\cos \left (x\right ) - 1\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. 44 vs.
\(2 (12) = 24\).
time = 0.35, size = 44, normalized size = 2.75 \begin {gather*} -\frac {{\left (\cos \left (x\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right ) - {\left (\cos \left (x\right )^{2} - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right ) - 2 \, \cos \left (x\right )}{4 \, {\left (\cos \left (x\right )^{2} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 27, normalized size = 1.69 \begin {gather*} \frac {\log {\left (\cos {\left (x \right )} - 1 \right )}}{4} - \frac {\log {\left (\cos {\left (x \right )} + 1 \right )}}{4} + \frac {\cos {\left (x \right )}}{2 \cos ^{2}{\left (x \right )} - 2} \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. 54 vs.
\(2 (12) = 24\).
time = 0.00, size = 61, normalized size = 3.81 \begin {gather*} 2 \left (\frac {1-\cos x}{\left (1+\cos x\right )\cdot 16}+\frac {-\frac {2 \left (1-\cos x\right )}{1+\cos x}-1}{\frac {16 \left (1-\cos x\right )}{1+\cos x}}+\frac {\ln \left (\frac {1-\cos x}{1+\cos x}\right )}{8}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.15, size = 16, normalized size = 1.00 \begin {gather*} \frac {\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )}{2}-\frac {\cos \left (x\right )}{2\,{\sin \left (x\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________