3.4.66 \(\int \cos (5 x) \sec ^5(x) \, dx\) [366]

Optimal. Leaf size=16 \[ 16 x-15 \tan (x)+\frac {5 \tan ^3(x)}{3} \]

[Out]

16*x-15*tan(x)+5/3*tan(x)^3

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {1167, 209} \begin {gather*} 16 x+\frac {5 \tan ^3(x)}{3}-15 \tan (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cos[5*x]*Sec[x]^5,x]

[Out]

16*x - 15*Tan[x] + (5*Tan[x]^3)/3

Rule 209

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

Rule 1167

Int[((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(
d + e*x^2)^q*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 -
b*d*e + a*e^2, 0] && IGtQ[p, 0] && IGtQ[q, -2]

Rubi steps

\begin {align*} \int \cos (5 x) \sec ^5(x) \, dx &=\text {Subst}\left (\int \frac {1-10 x^2+5 x^4}{1+x^2} \, dx,x,\tan (x)\right )\\ &=\text {Subst}\left (\int \left (-15+5 x^2+\frac {16}{1+x^2}\right ) \, dx,x,\tan (x)\right )\\ &=-15 \tan (x)+\frac {5 \tan ^3(x)}{3}+16 \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\tan (x)\right )\\ &=16 x-15 \tan (x)+\frac {5 \tan ^3(x)}{3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 20, normalized size = 1.25 \begin {gather*} 16 x-\frac {50 \tan (x)}{3}+\frac {5}{3} \sec ^2(x) \tan (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cos[5*x]*Sec[x]^5,x]

[Out]

16*x - (50*Tan[x])/3 + (5*Sec[x]^2*Tan[x])/3

________________________________________________________________________________________

Maple [A]
time = 0.12, size = 21, normalized size = 1.31

method result size
default \(16 x -5 \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (x \right )\right )}{3}\right ) \tan \left (x \right )-20 \tan \left (x \right )\) \(21\)
risch \(16 x -\frac {20 i \left (6 \,{\mathrm e}^{4 i x}+9 \,{\mathrm e}^{2 i x}+5\right )}{3 \left ({\mathrm e}^{2 i x}+1\right )^{3}}\) \(33\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(5*x)/cos(x)^5,x,method=_RETURNVERBOSE)

[Out]

16*x-5*(-2/3-1/3*sec(x)^2)*tan(x)-20*tan(x)

________________________________________________________________________________________

Maxima [A]
time = 2.70, size = 14, normalized size = 0.88 \begin {gather*} \frac {5}{3} \, \tan \left (x\right )^{3} + 16 \, x - 15 \, \tan \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(5*x)/cos(x)^5,x, algorithm="maxima")

[Out]

5/3*tan(x)^3 + 16*x - 15*tan(x)

________________________________________________________________________________________

Fricas [A]
time = 1.03, size = 26, normalized size = 1.62 \begin {gather*} \frac {48 \, x \cos \left (x\right )^{3} - 5 \, {\left (10 \, \cos \left (x\right )^{2} - 1\right )} \sin \left (x\right )}{3 \, \cos \left (x\right )^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(5*x)/cos(x)^5,x, algorithm="fricas")

[Out]

1/3*(48*x*cos(x)^3 - 5*(10*cos(x)^2 - 1)*sin(x))/cos(x)^3

________________________________________________________________________________________

Sympy [A]
time = 10.28, size = 24, normalized size = 1.50 \begin {gather*} 16 x - \frac {20 \sin {\left (x \right )}}{\cos {\left (x \right )}} + \frac {5 \tan ^{3}{\left (x \right )}}{3} + 5 \tan {\left (x \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(5*x)/cos(x)**5,x)

[Out]

16*x - 20*sin(x)/cos(x) + 5*tan(x)**3/3 + 5*tan(x)

________________________________________________________________________________________

Giac [A]
time = 0.93, size = 14, normalized size = 0.88 \begin {gather*} \frac {5}{3} \, \tan \left (x\right )^{3} + 16 \, x - 15 \, \tan \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(5*x)/cos(x)^5,x, algorithm="giac")

[Out]

5/3*tan(x)^3 + 16*x - 15*tan(x)

________________________________________________________________________________________

Mupad [B]
time = 0.31, size = 26, normalized size = 1.62 \begin {gather*} \frac {48\,x\,{\cos \left (x\right )}^3-50\,\sin \left (x\right )\,{\cos \left (x\right )}^2+5\,\sin \left (x\right )}{3\,{\cos \left (x\right )}^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(5*x)/cos(x)^5,x)

[Out]

(5*sin(x) + 48*x*cos(x)^3 - 50*cos(x)^2*sin(x))/(3*cos(x)^3)

________________________________________________________________________________________