3.4.37 \(\int \frac {\sin (2 x)}{\sqrt {9-\cos ^4(x)}} \, dx\) [337]

Optimal. Leaf size=11 \[ -\sin ^{-1}\left (\frac {\cos ^2(x)}{3}\right ) \]

[Out]

-arcsin(1/3*cos(x)^2)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {12, 1121, 633, 222} \begin {gather*} -\sin ^{-1}\left (\frac {\cos ^2(x)}{3}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sin[2*x]/Sqrt[9 - Cos[x]^4],x]

[Out]

-ArcSin[Cos[x]^2/3]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 222

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[Rt[-b, 2]*(x/Sqrt[a])]/Rt[-b, 2], x] /; FreeQ[{a, b}
, x] && GtQ[a, 0] && NegQ[b]

Rule 633

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Dist[1/(2*c*(-4*(c/(b^2 - 4*a*c)))^p), Subst[Int[Si
mp[1 - x^2/(b^2 - 4*a*c), x]^p, x], x, b + 2*c*x], x] /; FreeQ[{a, b, c, p}, x] && GtQ[4*a - b^2/c, 0]

Rule 1121

Int[(x_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Dist[1/2, Subst[Int[(a + b*x + c*x^2)^p, x],
 x, x^2], x] /; FreeQ[{a, b, c, p}, x]

Rubi steps

\begin {align*} \int \frac {\sin (2 x)}{\sqrt {9-\cos ^4(x)}} \, dx &=\text {Subst}\left (\int \frac {2 x}{\sqrt {8+2 x^2-x^4}} \, dx,x,\sin (x)\right )\\ &=2 \text {Subst}\left (\int \frac {x}{\sqrt {8+2 x^2-x^4}} \, dx,x,\sin (x)\right )\\ &=\text {Subst}\left (\int \frac {1}{\sqrt {8+2 x-x^2}} \, dx,x,\sin ^2(x)\right )\\ &=-\left (\frac {1}{6} \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{36}}} \, dx,x,2 \cos ^2(x)\right )\right )\\ &=-\sin ^{-1}\left (\frac {\cos ^2(x)}{3}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 11, normalized size = 1.00 \begin {gather*} -\sin ^{-1}\left (\frac {\cos ^2(x)}{3}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sin[2*x]/Sqrt[9 - Cos[x]^4],x]

[Out]

-ArcSin[Cos[x]^2/3]

________________________________________________________________________________________

Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

mathics('Integrate[Sin[2*x]/Sqrt[9 - Cos[x]^4],x]')

[Out]

Exception raised: SystemError >> excessive stack use: stack is 3062 deep

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 10, normalized size = 0.91

method result size
derivativedivides \(-\arcsin \left (\frac {\left (\cos ^{2}\left (x \right )\right )}{3}\right )\) \(10\)
default \(-\arcsin \left (\frac {\left (\cos ^{2}\left (x \right )\right )}{3}\right )\) \(10\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(2*x)/(9-cos(x)^4)^(1/2),x,method=_RETURNVERBOSE)

[Out]

-arcsin(1/3*cos(x)^2)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/(9-cos(x)^4)^(1/2),x, algorithm="maxima")

[Out]

integrate(sin(2*x)/sqrt(-cos(x)^4 + 9), x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 24 vs. \(2 (9) = 18\).
time = 0.39, size = 24, normalized size = 2.18 \begin {gather*} \arctan \left (\frac {\sqrt {-\cos \left (x\right )^{4} + 9} \cos \left (x\right )^{2}}{\cos \left (x\right )^{4} - 9}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/(9-cos(x)^4)^(1/2),x, algorithm="fricas")

[Out]

arctan(sqrt(-cos(x)^4 + 9)*cos(x)^2/(cos(x)^4 - 9))

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/(9-cos(x)**4)**(1/2),x)

[Out]

Exception raised: SystemError

________________________________________________________________________________________

Giac [A]
time = 0.01, size = 9, normalized size = 0.82 \begin {gather*} -\arcsin \left (\frac {\cos ^{2}x}{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/(9-cos(x)^4)^(1/2),x)

[Out]

-arcsin(1/3*cos(x)^2)

________________________________________________________________________________________

Mupad [B]
time = 0.43, size = 18, normalized size = 1.64 \begin {gather*} -\mathrm {atan}\left (\frac {{\cos \left (x\right )}^2}{\sqrt {9-{\cos \left (x\right )}^4}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(2*x)/(9 - cos(x)^4)^(1/2),x)

[Out]

-atan(cos(x)^2/(9 - cos(x)^4)^(1/2))

________________________________________________________________________________________