3.372 \(\int \csc ^4(x) \sin (4 x) \, dx\)

Optimal. Leaf size=12 \[ -2 \csc ^2(x)-8 \log (\sin (x)) \]

[Out]

-2*Csc[x]^2 - 8*Log[Sin[x]]

_______________________________________________________________________________________

Rubi [A]  time = 0.0360659, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 1, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111 \[ -2 \csc ^2(x)-8 \log (\sin (x)) \]

Antiderivative was successfully verified.

[In]  Int[Csc[x]^4*Sin[4*x],x]

[Out]

-2*Csc[x]^2 - 8*Log[Sin[x]]

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\sin{\left (4 x \right )}}{\sin ^{4}{\left (x \right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(sin(4*x)/sin(x)**4,x)

[Out]

Integral(sin(4*x)/sin(x)**4, x)

_______________________________________________________________________________________

Mathematica [A]  time = 0.0112359, size = 12, normalized size = 1. \[ -2 \csc ^2(x)-8 \log (\sin (x)) \]

Antiderivative was successfully verified.

[In]  Integrate[Csc[x]^4*Sin[4*x],x]

[Out]

-2*Csc[x]^2 - 8*Log[Sin[x]]

_______________________________________________________________________________________

Maple [A]  time = 0.073, size = 19, normalized size = 1.6 \[ 2\, \left ( \sin \left ( x \right ) \right ) ^{-2}-4\, \left ( \cot \left ( x \right ) \right ) ^{2}-8\,\ln \left ( \sin \left ( x \right ) \right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(sin(4*x)/sin(x)^4,x)

[Out]

2/sin(x)^2-4*cot(x)^2-8*ln(sin(x))

_______________________________________________________________________________________

Maxima [A]  time = 1.35628, size = 26, normalized size = 2.17 \[ -\frac{2}{\sin \left (x\right )^{2}} - 2 \, \log \left (\sin \left (x\right )^{2}\right ) - 4 \, \log \left (\sin \left (x\right )\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sin(4*x)/sin(x)^4,x, algorithm="maxima")

[Out]

-2/sin(x)^2 - 2*log(sin(x)^2) - 4*log(sin(x))

_______________________________________________________________________________________

Fricas [A]  time = 0.234589, size = 34, normalized size = 2.83 \[ -\frac{2 \,{\left (4 \,{\left (\cos \left (x\right )^{2} - 1\right )} \log \left (\frac{1}{2} \, \sin \left (x\right )\right ) - 1\right )}}{\cos \left (x\right )^{2} - 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sin(4*x)/sin(x)^4,x, algorithm="fricas")

[Out]

-2*(4*(cos(x)^2 - 1)*log(1/2*sin(x)) - 1)/(cos(x)^2 - 1)

_______________________________________________________________________________________

Sympy [A]  time = 37.1343, size = 14, normalized size = 1.17 \[ - 8 \log{\left (\sin{\left (x \right )} \right )} - \frac{2}{\sin ^{2}{\left (x \right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sin(4*x)/sin(x)**4,x)

[Out]

-8*log(sin(x)) - 2/sin(x)**2

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.206748, size = 96, normalized size = 8. \[ \frac{{\left (\frac{8 \,{\left (\cos \left (x\right ) - 1\right )}}{\cos \left (x\right ) + 1} + 1\right )}{\left (\cos \left (x\right ) + 1\right )}}{2 \,{\left (\cos \left (x\right ) - 1\right )}} + \frac{\cos \left (x\right ) - 1}{2 \,{\left (\cos \left (x\right ) + 1\right )}} + 8 \,{\rm ln}\left (-\frac{\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1} + 1\right ) - 4 \,{\rm ln}\left (-\frac{\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sin(4*x)/sin(x)^4,x, algorithm="giac")

[Out]

1/2*(8*(cos(x) - 1)/(cos(x) + 1) + 1)*(cos(x) + 1)/(cos(x) - 1) + 1/2*(cos(x) -
1)/(cos(x) + 1) + 8*ln(-(cos(x) - 1)/(cos(x) + 1) + 1) - 4*ln(-(cos(x) - 1)/(cos
(x) + 1))