Optimal. Leaf size=11 \[ -\frac{1}{2} \log \left (\csc ^2(x)-4\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0332537, antiderivative size = 17, normalized size of antiderivative = 1.55, number of steps used = 5, number of rules used = 5, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.556, Rules used = {4356, 266, 36, 31, 29} \[ \log (\sin (x))-\frac{1}{2} \log \left (1-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) \cot (x) \sec (3 x) \, dx &=\operatorname{Subst}\left (\int \frac{1}{x \left (1-4 x^2\right )} \, dx,x,\sin (x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{(1-4 x) x} \, dx,x,\sin ^2(x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,\sin ^2(x)\right )+2 \operatorname{Subst}\left (\int \frac{1}{1-4 x} \, dx,x,\sin ^2(x)\right )\\ &=\log (\sin (x))-\frac{1}{2} \log \left (1-4 \sin ^2(x)\right )\\ \end{align*}
Mathematica [A] time = 0.0130305, size = 17, normalized size = 1.55 \[ \log (\sin (x))-\frac{1}{2} \log \left (1-4 \sin ^2(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.044, size = 27, normalized size = 2.5 \begin{align*}{\frac{\ln \left ( \cos \left ( x \right ) +1 \right ) }{2}}+{\frac{\ln \left ( \cos \left ( x \right ) -1 \right ) }{2}}-{\frac{\ln \left ( 4\, \left ( \cos \left ( x \right ) \right ) ^{2}-3 \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.955627, size = 124, normalized size = 11.27 \begin{align*} -\frac{1}{4} \, \log \left (-2 \,{\left (\cos \left (2 \, x\right ) - 1\right )} \cos \left (4 \, x\right ) + \cos \left (4 \, x\right )^{2} + \cos \left (2 \, x\right )^{2} + \sin \left (4 \, x\right )^{2} - 2 \, \sin \left (4 \, x\right ) \sin \left (2 \, x\right ) + \sin \left (2 \, x\right )^{2} - 2 \, \cos \left (2 \, x\right ) + 1\right ) + \frac{1}{2} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \cos \left (x\right ) + 1\right ) + \frac{1}{2} \, \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.21157, size = 59, normalized size = 5.36 \begin{align*} -\frac{1}{2} \, \log \left (4 \, \cos \left (x\right )^{2} - 3\right ) + \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 [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{2}{\left (x \right )}}{\sin{\left (x \right )} \cos{\left (3 x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.11134, size = 32, normalized size = 2.91 \begin{align*} \frac{1}{2} \, \log \left (-\cos \left (x\right )^{2} + 1\right ) - \frac{1}{2} \, \log \left ({\left | 4 \, \cos \left (x\right )^{2} - 3 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]