Optimal. Leaf size=14 \[ -\sin (x)+\tanh ^{-1}(\sin (x))+\sin (x) \log (\cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 5, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.833, Rules used = {2637, 2554, 2592, 321, 206} \[ -\sin (x)+\tanh ^{-1}(\sin (x))+\sin (x) \log (\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 321
Rule 2554
Rule 2592
Rule 2637
Rubi steps
\begin {align*} \int \cos (x) \log (\cos (x)) \, dx &=\log (\cos (x)) \sin (x)+\int \sin (x) \tan (x) \, dx\\ &=\log (\cos (x)) \sin (x)+\operatorname {Subst}\left (\int \frac {x^2}{1-x^2} \, dx,x,\sin (x)\right )\\ &=-\sin (x)+\log (\cos (x)) \sin (x)+\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sin (x)\right )\\ &=\tanh ^{-1}(\sin (x))-\sin (x)+\log (\cos (x)) \sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.02, size = 43, normalized size = 3.07 \[ -\sin (x)-\log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+\log \left (\sin \left (\frac {x}{2}\right )+\cos \left (\frac {x}{2}\right )\right )+\sin (x) \log (\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 27, normalized size = 1.93 \[ \log \left (\cos \relax (x)\right ) \sin \relax (x) + \frac {1}{2} \, \log \left (\sin \relax (x) + 1\right ) - \frac {1}{2} \, \log \left (-\sin \relax (x) + 1\right ) - \sin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 27, normalized size = 1.93 \[ \log \left (\cos \relax (x)\right ) \sin \relax (x) + \frac {1}{2} \, \log \left (\sin \relax (x) + 1\right ) - \frac {1}{2} \, \log \left (-\sin \relax (x) + 1\right ) - \sin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.31, size = 73, normalized size = 5.21 \[ \frac {i {\mathrm e}^{-i x} \ln \left (2 \cos \relax (x )\right )}{2}-\frac {i {\mathrm e}^{i x} \ln \left (2 \cos \relax (x )\right )}{2}-2 i \arctan \left ({\mathrm e}^{i x}\right )-\frac {i \ln \relax (2) {\mathrm e}^{-i x}}{2}-\frac {i {\mathrm e}^{-i x}}{2}+\frac {i \ln \relax (2) {\mathrm e}^{i x}}{2}+\frac {i {\mathrm e}^{i x}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.45, size = 108, normalized size = 7.71 \[ \frac {2 \, \log \left (-\frac {\frac {\sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}} - 1}{\frac {\sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}} + 1}\right ) \sin \relax (x)}{{\left (\frac {\sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}} + 1\right )} {\left (\cos \relax (x) + 1\right )}} - \frac {2 \, \sin \relax (x)}{{\left (\frac {\sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}} + 1\right )} {\left (\cos \relax (x) + 1\right )}} + \log \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1} + 1\right ) - \log \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.07 \[ \int \ln \left (\cos \relax (x)\right )\,\cos \relax (x) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 2.36, size = 223, normalized size = 15.93 \[ - \frac {\log {\left (- \frac {\tan ^{2}{\left (\frac {x}{2} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} + \frac {1}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} \right )} \tan ^{2}{\left (\frac {x}{2} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} + \frac {2 \log {\left (- \frac {\tan ^{2}{\left (\frac {x}{2} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} + \frac {1}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} \right )} \tan {\left (\frac {x}{2} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} - \frac {\log {\left (- \frac {\tan ^{2}{\left (\frac {x}{2} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} + \frac {1}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} + \frac {2 \log {\left (\tan {\left (\frac {x}{2} \right )} + 1 \right )} \tan ^{2}{\left (\frac {x}{2} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} + \frac {2 \log {\left (\tan {\left (\frac {x}{2} \right )} + 1 \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} - \frac {\log {\left (\tan ^{2}{\left (\frac {x}{2} \right )} + 1 \right )} \tan ^{2}{\left (\frac {x}{2} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} - \frac {\log {\left (\tan ^{2}{\left (\frac {x}{2} \right )} + 1 \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} - \frac {2 \tan {\left (\frac {x}{2} \right )}}{\tan ^{2}{\left (\frac {x}{2} \right )} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________