3.283 \(\int \sec (x) \sin (2 x) \, dx\)

Optimal. Leaf size=4 \[ -2 \cos (x) \]

[Out]

-2*cos(x)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 4, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {4287, 2638} \[ -2 \cos (x) \]

Antiderivative was successfully verified.

[In]

Int[Sec[x]*Sin[2*x],x]

[Out]

-2*Cos[x]

Rule 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 4287

Int[(cos[(a_.) + (b_.)*(x_)]*(e_.))^(m_.)*sin[(c_.) + (d_.)*(x_)]^(p_.), x_Symbol] :> Dist[2^p/e^p, Int[(e*Cos
[a + b*x])^(m + p)*Sin[a + b*x]^p, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && EqQ[b*c - a*d, 0] && EqQ[d/b, 2]
&& IntegerQ[p]

Rubi steps

\begin {align*} \int \sec (x) \sin (2 x) \, dx &=2 \int \sin (x) \, dx\\ &=-2 \cos (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 4, normalized size = 1.00 \[ -2 \cos (x) \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[x]*Sin[2*x],x]

[Out]

-2*Cos[x]

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 4, normalized size = 1.00 \[ -2 \, \cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/cos(x),x, algorithm="fricas")

[Out]

-2*cos(x)

________________________________________________________________________________________

giac [A]  time = 1.09, size = 4, normalized size = 1.00 \[ -2 \, \cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/cos(x),x, algorithm="giac")

[Out]

-2*cos(x)

________________________________________________________________________________________

maple [A]  time = 0.03, size = 5, normalized size = 1.25 \[ -2 \cos \relax (x ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(2*x)/cos(x),x)

[Out]

-2*cos(x)

________________________________________________________________________________________

maxima [A]  time = 0.44, size = 4, normalized size = 1.00 \[ -2 \, \cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/cos(x),x, algorithm="maxima")

[Out]

-2*cos(x)

________________________________________________________________________________________

mupad [B]  time = 0.02, size = 4, normalized size = 1.00 \[ -2\,\cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(2*x)/cos(x),x)

[Out]

-2*cos(x)

________________________________________________________________________________________

sympy [A]  time = 0.76, size = 5, normalized size = 1.25 \[ - 2 \cos {\relax (x )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/cos(x),x)

[Out]

-2*cos(x)

________________________________________________________________________________________