3.369 \(\int \cos (4 x) \sec ^5(x) \, dx\)

Optimal. Leaf size=26 \[ \frac {35}{8} \tanh ^{-1}(\sin (x))+\frac {1}{4} \tan (x) \sec ^3(x)-\frac {29}{8} \tan (x) \sec (x) \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {4364, 1157, 385, 206} \[ \frac {35}{8} \tanh ^{-1}(\sin (x))+\frac {1}{4} \tan (x) \sec ^3(x)-\frac {29}{8} \tan (x) \sec (x) \]

Antiderivative was successfully verified.

[In]

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

[Out]

(35*ArcTanh[Sin[x]])/8 - (29*Sec[x]*Tan[x])/8 + (Sec[x]^3*Tan[x])/4

Rule 206

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

Rule 385

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> -Simp[((b*c - a*d)*x*(a + b*x^n)^(p +
 1))/(a*b*n*(p + 1)), x] - Dist[(a*d - b*c*(n*(p + 1) + 1))/(a*b*n*(p + 1)), Int[(a + b*x^n)^(p + 1), x], x] /
; FreeQ[{a, b, c, d, n, p}, x] && NeQ[b*c - a*d, 0] && (LtQ[p, -1] || ILtQ[1/n + p, 0])

Rule 1157

Int[((d_) + (e_.)*(x_)^2)^(q_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> With[{Qx = PolynomialQ
uotient[(a + b*x^2 + c*x^4)^p, d + e*x^2, x], R = Coeff[PolynomialRemainder[(a + b*x^2 + c*x^4)^p, d + e*x^2,
x], x, 0]}, -Simp[(R*x*(d + e*x^2)^(q + 1))/(2*d*(q + 1)), x] + Dist[1/(2*d*(q + 1)), Int[(d + e*x^2)^(q + 1)*
ExpandToSum[2*d*(q + 1)*Qx + R*(2*q + 3), x], x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && N
eQ[c*d^2 - b*d*e + a*e^2, 0] && IGtQ[p, 0] && LtQ[q, -1]

Rule 4364

Int[(u_)*(F_)[(c_.)*((a_.) + (b_.)*(x_))]^(n_), x_Symbol] :> With[{d = FreeFactors[Sin[c*(a + b*x)], x]}, Dist
[d/(b*c), Subst[Int[SubstFor[(1 - d^2*x^2)^((n - 1)/2), Sin[c*(a + b*x)]/d, u, x], x], x, Sin[c*(a + b*x)]/d],
 x] /; FunctionOfQ[Sin[c*(a + b*x)]/d, u, x]] /; FreeQ[{a, b, c}, x] && IntegerQ[(n - 1)/2] && NonsumQ[u] && (
EqQ[F, Cos] || EqQ[F, cos])

Rubi steps

\begin {align*} \int \cos (4 x) \sec ^5(x) \, dx &=\operatorname {Subst}\left (\int \frac {1-8 x^2+8 x^4}{\left (1-x^2\right )^3} \, dx,x,\sin (x)\right )\\ &=\frac {1}{4} \sec ^3(x) \tan (x)-\frac {1}{4} \operatorname {Subst}\left (\int \frac {-3+32 x^2}{\left (1-x^2\right )^2} \, dx,x,\sin (x)\right )\\ &=-\frac {29}{8} \sec (x) \tan (x)+\frac {1}{4} \sec ^3(x) \tan (x)+\frac {35}{8} \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sin (x)\right )\\ &=\frac {35}{8} \tanh ^{-1}(\sin (x))-\frac {29}{8} \sec (x) \tan (x)+\frac {1}{4} \sec ^3(x) \tan (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 26, normalized size = 1.00 \[ \frac {1}{8} \left (35 \tanh ^{-1}(\sin (x))-27 \tan (x) \sec ^3(x)+29 \tan ^3(x) \sec (x)\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

(35*ArcTanh[Sin[x]] - 27*Sec[x]^3*Tan[x] + 29*Sec[x]*Tan[x]^3)/8

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \cos (4 x) \sec ^5(x) \, dx \]

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[Cos[4*x]*Sec[x]^5,x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [B]  time = 0.91, size = 43, normalized size = 1.65 \[ \frac {35 \, \cos \relax (x)^{4} \log \left (\sin \relax (x) + 1\right ) - 35 \, \cos \relax (x)^{4} \log \left (-\sin \relax (x) + 1\right ) - 2 \, {\left (29 \, \cos \relax (x)^{2} - 2\right )} \sin \relax (x)}{16 \, \cos \relax (x)^{4}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/16*(35*cos(x)^4*log(sin(x) + 1) - 35*cos(x)^4*log(-sin(x) + 1) - 2*(29*cos(x)^2 - 2)*sin(x))/cos(x)^4

________________________________________________________________________________________

giac [A]  time = 0.59, size = 38, normalized size = 1.46 \[ \frac {29 \, \sin \relax (x)^{3} - 27 \, \sin \relax (x)}{8 \, {\left (\sin \relax (x)^{2} - 1\right )}^{2}} + \frac {35}{16} \, \log \left (\sin \relax (x) + 1\right ) - \frac {35}{16} \, \log \left (-\sin \relax (x) + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/8*(29*sin(x)^3 - 27*sin(x))/(sin(x)^2 - 1)^2 + 35/16*log(sin(x) + 1) - 35/16*log(-sin(x) + 1)

________________________________________________________________________________________

maple [A]  time = 0.36, size = 31, normalized size = 1.19




method result size



default \(-\left (-\frac {\left (\sec ^{3}\relax (x )\right )}{4}-\frac {3 \sec \relax (x )}{8}\right ) \tan \relax (x )+\frac {35 \ln \left (\sec \relax (x )+\tan \relax (x )\right )}{8}-4 \sec \relax (x ) \tan \relax (x )\) \(31\)
risch \(\frac {i \left (29 \,{\mathrm e}^{7 i x}+21 \,{\mathrm e}^{5 i x}-21 \,{\mathrm e}^{3 i x}-29 \,{\mathrm e}^{i x}\right )}{4 \left (1+{\mathrm e}^{2 i x}\right )^{4}}+\frac {35 \ln \left ({\mathrm e}^{i x}+i\right )}{8}-\frac {35 \ln \left ({\mathrm e}^{i x}-i\right )}{8}\) \(65\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(-1/4*sec(x)^3-3/8*sec(x))*tan(x)+35/8*ln(sec(x)+tan(x))-4*sec(x)*tan(x)

________________________________________________________________________________________

maxima [B]  time = 0.45, size = 54, normalized size = 2.08 \[ \frac {5 \, \sin \relax (x)^{3} - 3 \, \sin \relax (x)}{8 \, {\left (\sin \relax (x)^{4} - 2 \, \sin \relax (x)^{2} + 1\right )}} + \frac {3 \, \sin \relax (x)}{\sin \relax (x)^{2} - 1} + \frac {35}{16} \, \log \left (\sin \relax (x) + 1\right ) - \frac {35}{16} \, \log \left (\sin \relax (x) - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/8*(5*sin(x)^3 - 3*sin(x))/(sin(x)^4 - 2*sin(x)^2 + 1) + 3*sin(x)/(sin(x)^2 - 1) + 35/16*log(sin(x) + 1) - 35
/16*log(sin(x) - 1)

________________________________________________________________________________________

mupad [B]  time = 0.23, size = 33, normalized size = 1.27 \[ \frac {35\,\mathrm {atanh}\left (\sin \relax (x)\right )}{8}-\frac {\frac {27\,\sin \relax (x)}{8}-\frac {29\,{\sin \relax (x)}^3}{8}}{{\sin \relax (x)}^4-2\,{\sin \relax (x)}^2+1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(35*atanh(sin(x)))/8 - ((27*sin(x))/8 - (29*sin(x)^3)/8)/(sin(x)^4 - 2*sin(x)^2 + 1)

________________________________________________________________________________________

sympy [B]  time = 17.15, size = 75, normalized size = 2.88 \[ - \frac {35 \log {\left (\sin {\relax (x )} - 1 \right )}}{16} + \frac {35 \log {\left (\sin {\relax (x )} + 1 \right )}}{16} - \frac {3 \sin ^{3}{\relax (x )}}{8 \sin ^{4}{\relax (x )} - 16 \sin ^{2}{\relax (x )} + 8} + \frac {5 \sin {\relax (x )}}{8 \sin ^{4}{\relax (x )} - 16 \sin ^{2}{\relax (x )} + 8} + \frac {8 \sin {\relax (x )}}{2 \sin ^{2}{\relax (x )} - 2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-35*log(sin(x) - 1)/16 + 35*log(sin(x) + 1)/16 - 3*sin(x)**3/(8*sin(x)**4 - 16*sin(x)**2 + 8) + 5*sin(x)/(8*si
n(x)**4 - 16*sin(x)**2 + 8) + 8*sin(x)/(2*sin(x)**2 - 2)

________________________________________________________________________________________