Integrand size = 7, antiderivative size = 28 \[ \int \cot (4 x) \sin (x) \, dx=-\frac {1}{4} \text {arctanh}(\sin (x))-\frac {\text {arctanh}\left (\sqrt {2} \sin (x)\right )}{2 \sqrt {2}}+\sin (x) \]
[Out]
Time = 0.06 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {1690, 1180, 213} \[ \int \cot (4 x) \sin (x) \, dx=-\frac {1}{4} \text {arctanh}(\sin (x))-\frac {\text {arctanh}\left (\sqrt {2} \sin (x)\right )}{2 \sqrt {2}}+\sin (x) \]
[In]
[Out]
Rule 213
Rule 1180
Rule 1690
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {1-8 x^2+8 x^4}{4-12 x^2+8 x^4} \, dx,x,\sin (x)\right ) \\ & = \text {Subst}\left (\int \left (1-\frac {3-4 x^2}{4-12 x^2+8 x^4}\right ) \, dx,x,\sin (x)\right ) \\ & = \sin (x)-\text {Subst}\left (\int \frac {3-4 x^2}{4-12 x^2+8 x^4} \, dx,x,\sin (x)\right ) \\ & = \sin (x)+2 \text {Subst}\left (\int \frac {1}{-8+8 x^2} \, dx,x,\sin (x)\right )+2 \text {Subst}\left (\int \frac {1}{-4+8 x^2} \, dx,x,\sin (x)\right ) \\ & = -\frac {1}{4} \text {arctanh}(\sin (x))-\frac {\text {arctanh}\left (\sqrt {2} \sin (x)\right )}{2 \sqrt {2}}+\sin (x) \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00 \[ \int \cot (4 x) \sin (x) \, dx=-\frac {1}{4} \text {arctanh}(\sin (x))-\frac {\text {arctanh}\left (\sqrt {2} \sin (x)\right )}{2 \sqrt {2}}+\sin (x) \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.38 (sec) , antiderivative size = 88, normalized size of antiderivative = 3.14
method | result | size |
risch | \(-\frac {i {\mathrm e}^{i x}}{2}+\frac {i {\mathrm e}^{-i x}}{2}+\frac {\ln \left ({\mathrm e}^{i x}-i\right )}{4}-\frac {\ln \left (i+{\mathrm e}^{i x}\right )}{4}+\frac {\sqrt {2}\, \ln \left ({\mathrm e}^{2 i x}-i \sqrt {2}\, {\mathrm e}^{i x}-1\right )}{8}-\frac {\sqrt {2}\, \ln \left ({\mathrm e}^{2 i x}+i \sqrt {2}\, {\mathrm e}^{i x}-1\right )}{8}\) | \(88\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 52 vs. \(2 (20) = 40\).
Time = 0.25 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.86 \[ \int \cot (4 x) \sin (x) \, dx=\frac {1}{8} \, \sqrt {2} \log \left (-\frac {2 \, \cos \left (x\right )^{2} + 2 \, \sqrt {2} \sin \left (x\right ) - 3}{2 \, \cos \left (x\right )^{2} - 1}\right ) - \frac {1}{8} \, \log \left (\sin \left (x\right ) + 1\right ) + \frac {1}{8} \, \log \left (-\sin \left (x\right ) + 1\right ) + \sin \left (x\right ) \]
[In]
[Out]
\[ \int \cot (4 x) \sin (x) \, dx=\int \sin {\left (x \right )} \cot {\left (4 x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 173 vs. \(2 (20) = 40\).
Time = 0.29 (sec) , antiderivative size = 173, normalized size of antiderivative = 6.18 \[ \int \cot (4 x) \sin (x) \, dx=-\frac {1}{16} \, \sqrt {2} \log \left (2 \, \cos \left (x\right )^{2} + 2 \, \sin \left (x\right )^{2} + 2 \, \sqrt {2} \cos \left (x\right ) + 2 \, \sqrt {2} \sin \left (x\right ) + 2\right ) + \frac {1}{16} \, \sqrt {2} \log \left (2 \, \cos \left (x\right )^{2} + 2 \, \sin \left (x\right )^{2} + 2 \, \sqrt {2} \cos \left (x\right ) - 2 \, \sqrt {2} \sin \left (x\right ) + 2\right ) - \frac {1}{16} \, \sqrt {2} \log \left (2 \, \cos \left (x\right )^{2} + 2 \, \sin \left (x\right )^{2} - 2 \, \sqrt {2} \cos \left (x\right ) + 2 \, \sqrt {2} \sin \left (x\right ) + 2\right ) + \frac {1}{16} \, \sqrt {2} \log \left (2 \, \cos \left (x\right )^{2} + 2 \, \sin \left (x\right )^{2} - 2 \, \sqrt {2} \cos \left (x\right ) - 2 \, \sqrt {2} \sin \left (x\right ) + 2\right ) - \frac {1}{8} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \sin \left (x\right ) + 1\right ) + \frac {1}{8} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} - 2 \, \sin \left (x\right ) + 1\right ) + \sin \left (x\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 50 vs. \(2 (20) = 40\).
Time = 0.26 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.79 \[ \int \cot (4 x) \sin (x) \, dx=\frac {1}{8} \, \sqrt {2} \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (x\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (x\right ) \right |}}\right ) - \frac {1}{8} \, \log \left (\sin \left (x\right ) + 1\right ) + \frac {1}{8} \, \log \left (-\sin \left (x\right ) + 1\right ) + \sin \left (x\right ) \]
[In]
[Out]
Time = 25.32 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.04 \[ \int \cot (4 x) \sin (x) \, dx=\sin \left (x\right )-\frac {\mathrm {atanh}\left (\frac {\sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )}\right )}{2}-\frac {\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \left (x\right )\right )}{4} \]
[In]
[Out]