Integrand size = 9, antiderivative size = 11 \[ \int \cos (x) \cot (x) \sec (3 x) \, dx=-\frac {1}{2} \log \left (-4+\csc ^2(x)\right ) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.55, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.556, Rules used = {4441, 272, 36, 31, 29} \[ \int \cos (x) \cot (x) \sec (3 x) \, dx=\log (\sin (x))-\frac {1}{2} \log \left (1-4 \sin ^2(x)\right ) \]
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 272
Rule 4441
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {1}{x \left (1-4 x^2\right )} \, dx,x,\sin (x)\right ) \\ & = \frac {1}{2} \text {Subst}\left (\int \frac {1}{(1-4 x) x} \, dx,x,\sin ^2(x)\right ) \\ & = \frac {1}{2} \text {Subst}\left (\int \frac {1}{x} \, dx,x,\sin ^2(x)\right )+2 \text {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*}
Time = 0.02 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.55 \[ \int \cos (x) \cot (x) \sec (3 x) \, dx=\log (\sin (x))-\frac {1}{2} \log \left (1-4 \sin ^2(x)\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(26\) vs. \(2(9)=18\).
Time = 0.88 (sec) , antiderivative size = 27, normalized size of antiderivative = 2.45
method | result | size |
default | \(-\frac {\ln \left (4 \left (\cos ^{2}\left (x \right )\right )-3\right )}{2}+\frac {\ln \left (-1+\cos \left (x \right )\right )}{2}+\frac {\ln \left (\cos \left (x \right )+1\right )}{2}\) | \(27\) |
risch | \(\ln \left ({\mathrm e}^{2 i x}-1\right )-\frac {\ln \left ({\mathrm e}^{4 i x}-{\mathrm e}^{2 i x}+1\right )}{2}\) | \(27\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.55 \[ \int \cos (x) \cot (x) \sec (3 x) \, dx=-\frac {1}{2} \, \log \left (4 \, \cos \left (x\right )^{2} - 3\right ) + \log \left (\frac {1}{2} \, \sin \left (x\right )\right ) \]
[In]
[Out]
\[ \int \cos (x) \cot (x) \sec (3 x) \, dx=\int \frac {\cos ^{2}{\left (x \right )}}{\sin {\left (x \right )} \cos {\left (3 x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 92 vs. \(2 (9) = 18\).
Time = 0.18 (sec) , antiderivative size = 92, normalized size of antiderivative = 8.36 \[ \int \cos (x) \cot (x) \sec (3 x) \, dx=-\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 ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 24 vs. \(2 (9) = 18\).
Time = 0.28 (sec) , antiderivative size = 24, normalized size of antiderivative = 2.18 \[ \int \cos (x) \cot (x) \sec (3 x) \, dx=\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 ) \]
[In]
[Out]
Time = 0.72 (sec) , antiderivative size = 25, normalized size of antiderivative = 2.27 \[ \int \cos (x) \cot (x) \sec (3 x) \, dx=\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )-\frac {\ln \left ({\mathrm {tan}\left (\frac {x}{2}\right )}^4-14\,{\mathrm {tan}\left (\frac {x}{2}\right )}^2+1\right )}{2} \]
[In]
[Out]