Optimal. Leaf size=26 \[ \frac{\tanh ^{-1}\left (\sqrt{2} \sin (x)\right )}{2 \sqrt{2}}-\frac{1}{4} \tanh ^{-1}(\sin (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0244572, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 2, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {1093, 207} \[ \frac{\tanh ^{-1}\left (\sqrt{2} \sin (x)\right )}{2 \sqrt{2}}-\frac{1}{4} \tanh ^{-1}(\sin (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1093
Rule 207
Rubi steps
\begin{align*} \int \csc (4 x) \sin (x) \, dx &=\operatorname{Subst}\left (\int \frac{1}{4-12 x^2+8 x^4} \, dx,x,\sin (x)\right )\\ &=2 \operatorname{Subst}\left (\int \frac{1}{-8+8 x^2} \, dx,x,\sin (x)\right )-2 \operatorname{Subst}\left (\int \frac{1}{-4+8 x^2} \, dx,x,\sin (x)\right )\\ &=-\frac{1}{4} \tanh ^{-1}(\sin (x))+\frac{\tanh ^{-1}\left (\sqrt{2} \sin (x)\right )}{2 \sqrt{2}}\\ \end{align*}
Mathematica [A] time = 0.022535, size = 26, normalized size = 1. \[ \frac{\tanh ^{-1}\left (\sqrt{2} \sin (x)\right )}{2 \sqrt{2}}-\frac{1}{4} \tanh ^{-1}(\sin (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.056, size = 28, normalized size = 1.1 \begin{align*}{\frac{{\it Artanh} \left ( \sin \left ( x \right ) \sqrt{2} \right ) \sqrt{2}}{4}}-{\frac{\ln \left ( 1+\sin \left ( x \right ) \right ) }{8}}+{\frac{\ln \left ( -1+\sin \left ( x \right ) \right ) }{8}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.48325, size = 231, normalized size = 8.88 \begin{align*} \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 ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.0654, size = 158, normalized size = 6.08 \begin{align*} \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 ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.11601, size = 65, normalized size = 2.5 \begin{align*} -\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 ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]