Optimal. Leaf size=11 \[ -\sin (x)+\log (\sin (x)) \sin (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2717, 2634}
\begin {gather*} \sin (x) \log (\sin (x))-\sin (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2634
Rule 2717
Rubi steps
\begin {align*} \int \cos (x) \log (\sin (x)) \, dx &=\log (\sin (x)) \sin (x)-\int \cos (x) \, dx\\ &=-\sin (x)+\log (\sin (x)) \sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 11, normalized size = 1.00 \begin {gather*} -\sin (x)+\log (\sin (x)) \sin (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 12, normalized size = 1.09
method | result | size |
derivativedivides | \(-\sin \left (x \right )+\ln \left (\sin \left (x \right )\right ) \sin \left (x \right )\) | \(12\) |
default | \(-\sin \left (x \right )+\ln \left (\sin \left (x \right )\right ) \sin \left (x \right )\) | \(12\) |
norman | \(\frac {2 \tan \left (\frac {x}{2}\right ) \ln \left (\frac {2 \tan \left (\frac {x}{2}\right )}{1+\tan ^{2}\left (\frac {x}{2}\right )}\right )-2 \tan \left (\frac {x}{2}\right )}{1+\tan ^{2}\left (\frac {x}{2}\right )}\) | \(42\) |
risch | \(-\frac {{\mathrm e}^{-i x} \pi \mathrm {csgn}\left (\sin \left (x \right )\right )^{3}}{4}+\frac {{\mathrm e}^{i x} \pi \mathrm {csgn}\left (\sin \left (x \right )\right )^{3}}{4}+\frac {{\mathrm e}^{-i x} \pi \mathrm {csgn}\left (i \sin \left (x \right )\right )^{3}}{4}+\frac {{\mathrm e}^{i x} \pi \mathrm {csgn}\left (i \sin \left (x \right )\right )^{2}}{4}-\frac {{\mathrm e}^{-i x} \pi \mathrm {csgn}\left (i \sin \left (x \right )\right )^{2}}{4}-\frac {{\mathrm e}^{i x} \pi \mathrm {csgn}\left (i \sin \left (x \right )\right )^{3}}{4}+\frac {{\mathrm e}^{-i x} \pi \,\mathrm {csgn}\left (\sin \left (x \right )\right ) \mathrm {csgn}\left (i \sin \left (x \right )\right )^{2}}{4}-\frac {{\mathrm e}^{-i x} \pi \,\mathrm {csgn}\left (i {\mathrm e}^{-i x}\right ) \mathrm {csgn}\left (\sin \left (x \right )\right )^{2}}{4}+\frac {{\mathrm e}^{i x} \pi \,\mathrm {csgn}\left (\sin \left (x \right )\right ) \mathrm {csgn}\left (i \sin \left (x \right )\right )}{4}+\frac {{\mathrm e}^{i x} \pi \,\mathrm {csgn}\left (i {\mathrm e}^{-i x}\right ) \mathrm {csgn}\left (\sin \left (x \right )\right )^{2}}{4}-\frac {{\mathrm e}^{i x} \pi \,\mathrm {csgn}\left (\sin \left (x \right )\right ) \mathrm {csgn}\left (i \sin \left (x \right )\right )^{2}}{4}+\frac {{\mathrm e}^{i x} \pi \,\mathrm {csgn}\left (i {\mathrm e}^{2 i x}-i\right ) \mathrm {csgn}\left (\sin \left (x \right )\right )^{2}}{4}-\frac {{\mathrm e}^{-i x} \pi \,\mathrm {csgn}\left (i {\mathrm e}^{2 i x}-i\right ) \mathrm {csgn}\left (\sin \left (x \right )\right )^{2}}{4}-\frac {{\mathrm e}^{-i x} \pi \,\mathrm {csgn}\left (\sin \left (x \right )\right ) \mathrm {csgn}\left (i \sin \left (x \right )\right )}{4}-\frac {{\mathrm e}^{-i x} \pi \,\mathrm {csgn}\left (i {\mathrm e}^{2 i x}-i\right ) \mathrm {csgn}\left (i {\mathrm e}^{-i x}\right ) \mathrm {csgn}\left (\sin \left (x \right )\right )}{4}+\frac {{\mathrm e}^{i x} \pi \,\mathrm {csgn}\left (i {\mathrm e}^{2 i x}-i\right ) \mathrm {csgn}\left (i {\mathrm e}^{-i x}\right ) \mathrm {csgn}\left (\sin \left (x \right )\right )}{4}+\frac {i {\mathrm e}^{i x}}{2}-\frac {i {\mathrm e}^{i x} \ln \left ({\mathrm e}^{2 i x}-1\right )}{2}+\frac {i {\mathrm e}^{i x} \ln \left (2\right )}{2}+\frac {i {\mathrm e}^{-i x} \ln \left ({\mathrm e}^{2 i x}-1\right )}{2}-\frac {i {\mathrm e}^{-i x} \ln \left (2\right )}{2}+\frac {{\mathrm e}^{-i x} \pi }{4}-\ln \left ({\mathrm e}^{i x}\right ) \sin \left (x \right )-\frac {{\mathrm e}^{i x} \pi }{4}-\frac {i {\mathrm e}^{-i x}}{2}\) | \(416\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 11, normalized size = 1.00 \begin {gather*} \log \left (\sin \left (x\right )\right ) \sin \left (x\right ) - \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 11, normalized size = 1.00 \begin {gather*} \log \left (\sin \left (x\right )\right ) \sin \left (x\right ) - \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.19, size = 10, normalized size = 0.91 \begin {gather*} \log {\left (\sin {\left (x \right )} \right )} \sin {\left (x \right )} - \sin {\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.56, size = 11, normalized size = 1.00 \begin {gather*} \log \left (\sin \left (x\right )\right ) \sin \left (x\right ) - \sin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.41, size = 8, normalized size = 0.73 \begin {gather*} \sin \left (x\right )\,\left (\ln \left (\sin \left (x\right )\right )-1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________