Optimal. Leaf size=20 \[ \sin (x)-\frac {\tanh ^{-1}\left (\frac {2 \sin (x)}{\sqrt {3}}\right )}{\sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 20, 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 = {388, 206} \[ \sin (x)-\frac {\tanh ^{-1}\left (\frac {2 \sin (x)}{\sqrt {3}}\right )}{\sqrt {3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 388
Rubi steps
\begin {align*} \int \cot (3 x) \sin (x) \, dx &=\operatorname {Subst}\left (\int \frac {1-4 x^2}{3-4 x^2} \, dx,x,\sin (x)\right )\\ &=\sin (x)-2 \operatorname {Subst}\left (\int \frac {1}{3-4 x^2} \, dx,x,\sin (x)\right )\\ &=-\frac {\tanh ^{-1}\left (\frac {2 \sin (x)}{\sqrt {3}}\right )}{\sqrt {3}}+\sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 20, normalized size = 1.00 \[ \sin (x)-\frac {\tanh ^{-1}\left (\frac {2 \sin (x)}{\sqrt {3}}\right )}{\sqrt {3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.98, size = 36, normalized size = 1.80 \[ \frac {1}{6} \, \sqrt {3} \log \left (-\frac {4 \, \cos \relax (x)^{2} + 4 \, \sqrt {3} \sin \relax (x) - 7}{4 \, \cos \relax (x)^{2} - 1}\right ) + \sin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 34, normalized size = 1.70 \[ \frac {1}{6} \, \sqrt {3} \log \left (\frac {{\left | -4 \, \sqrt {3} + 8 \, \sin \relax (x) \right |}}{{\left | 4 \, \sqrt {3} + 8 \, \sin \relax (x) \right |}}\right ) + \sin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.12, size = 17, normalized size = 0.85 \[ \sin \relax (x )-\frac {\arctanh \left (\frac {2 \sin \relax (x ) \sqrt {3}}{3}\right ) \sqrt {3}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.44, size = 127, normalized size = 6.35 \[ -\frac {1}{12} \, \sqrt {3} \log \left (\frac {4}{3} \, \cos \relax (x)^{2} + \frac {4}{3} \, \sin \relax (x)^{2} + \frac {4}{3} \, \sqrt {3} \sin \relax (x) + \frac {4}{3} \, \cos \relax (x) + \frac {4}{3}\right ) - \frac {1}{12} \, \sqrt {3} \log \left (\frac {4}{3} \, \cos \relax (x)^{2} + \frac {4}{3} \, \sin \relax (x)^{2} + \frac {4}{3} \, \sqrt {3} \sin \relax (x) - \frac {4}{3} \, \cos \relax (x) + \frac {4}{3}\right ) + \frac {1}{12} \, \sqrt {3} \log \left (\frac {4}{3} \, \cos \relax (x)^{2} + \frac {4}{3} \, \sin \relax (x)^{2} - \frac {4}{3} \, \sqrt {3} \sin \relax (x) + \frac {4}{3} \, \cos \relax (x) + \frac {4}{3}\right ) + \frac {1}{12} \, \sqrt {3} \log \left (\frac {4}{3} \, \cos \relax (x)^{2} + \frac {4}{3} \, \sin \relax (x)^{2} - \frac {4}{3} \, \sqrt {3} \sin \relax (x) - \frac {4}{3} \, \cos \relax (x) + \frac {4}{3}\right ) + \sin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.37, size = 16, normalized size = 0.80 \[ \sin \relax (x)-\frac {\sqrt {3}\,\mathrm {atanh}\left (\frac {2\,\sqrt {3}\,\sin \relax (x)}{3}\right )}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sin {\relax (x )} \cot {\left (3 x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________