Optimal. Leaf size=8 \[ \cos (x)-\tanh ^{-1}(\cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 8, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3770, 2638} \[ \cos (x)-\tanh ^{-1}(\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2638
Rule 3770
Rubi steps
\begin {align*} \int (\csc (x)-\sin (x)) \, dx &=\int \csc (x) \, dx-\int \sin (x) \, dx\\ &=-\tanh ^{-1}(\cos (x))+\cos (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.00, size = 19, normalized size = 2.38 \[ \cos (x)+\log \left (\sin \left (\frac {x}{2}\right )\right )-\log \left (\cos \left (\frac {x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.94, size = 21, normalized size = 2.62 \[ \cos \relax (x) - \frac {1}{2} \, \log \left (\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right ) + \frac {1}{2} \, \log \left (-\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 9, normalized size = 1.12 \[ \cos \relax (x) + \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 12, normalized size = 1.50 \[ \cos \relax (x )-\ln \left (\cot \relax (x )+\csc \relax (x )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 11, normalized size = 1.38 \[ \cos \relax (x) - \log \left (\cot \relax (x) + \csc \relax (x)\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.02, size = 8, normalized size = 1.00 \[ \ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )+\cos \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.09, size = 19, normalized size = 2.38 \[ \frac {\log {\left (\cos {\relax (x )} - 1 \right )}}{2} - \frac {\log {\left (\cos {\relax (x )} + 1 \right )}}{2} + \cos {\relax (x )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________