Optimal. Leaf size=21 \[ \frac{1}{3} \log (\sin (x))-\frac{1}{6} \log \left (3-4 \sin ^2(x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0257293, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.714, Rules used = {4356, 266, 36, 31, 29} \[ \frac{1}{3} \log (\sin (x))-\frac{1}{6} \log \left (3-4 \sin ^2(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4356
Rule 266
Rule 36
Rule 31
Rule 29
Rubi steps
\begin{align*} \int \cos (x) \csc (3 x) \, dx &=\operatorname{Subst}\left (\int \frac{1}{x \left (3-4 x^2\right )} \, dx,x,\sin (x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{(3-4 x) x} \, dx,x,\sin ^2(x)\right )\\ &=\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,\sin ^2(x)\right )+\frac{2}{3} \operatorname{Subst}\left (\int \frac{1}{3-4 x} \, dx,x,\sin ^2(x)\right )\\ &=\frac{1}{3} \log (\sin (x))-\frac{1}{6} \log \left (3-4 \sin ^2(x)\right )\\ \end{align*}
Mathematica [A] time = 0.0084318, size = 21, normalized size = 1. \[ \frac{1}{3} \log (\sin (x))-\frac{1}{6} \log \left (3-4 \sin ^2(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 180., size = 0, normalized size = 0. \begin{align*} \text{hanged} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.52045, size = 174, normalized size = 8.29 \begin{align*} -\frac{1}{12} \, \log \left (2 \,{\left (\cos \left (x\right ) + 1\right )} \cos \left (2 \, x\right ) + \cos \left (2 \, x\right )^{2} + \cos \left (x\right )^{2} + \sin \left (2 \, x\right )^{2} + 2 \, \sin \left (2 \, x\right ) \sin \left (x\right ) + \sin \left (x\right )^{2} + 2 \, \cos \left (x\right ) + 1\right ) - \frac{1}{12} \, \log \left (-2 \,{\left (\cos \left (x\right ) - 1\right )} \cos \left (2 \, x\right ) + \cos \left (2 \, x\right )^{2} + \cos \left (x\right )^{2} + \sin \left (2 \, x\right )^{2} - 2 \, \sin \left (2 \, x\right ) \sin \left (x\right ) + \sin \left (x\right )^{2} - 2 \, \cos \left (x\right ) + 1\right ) + \frac{1}{6} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \cos \left (x\right ) + 1\right ) + \frac{1}{6} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} - 2 \, \cos \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.53787, size = 65, normalized size = 3.1 \begin{align*} -\frac{1}{6} \, \log \left (4 \, \cos \left (x\right )^{2} - 1\right ) + \frac{1}{3} \, \log \left (\frac{1}{2} \, \sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.88602, size = 17, normalized size = 0.81 \begin{align*} - \frac{\log{\left (4 \sin ^{2}{\left (x \right )} - 3 \right )}}{6} + \frac{\log{\left (\sin{\left (x \right )} \right )}}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11439, size = 41, normalized size = 1.95 \begin{align*} -\frac{1}{6} \, \log \left ({\left | -\frac{3 \,{\left (\cos \left (x\right ) + 1\right )}}{\cos \left (x\right ) - 1} - \frac{3 \,{\left (\cos \left (x\right ) - 1\right )}}{\cos \left (x\right ) + 1} - 10 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]