Integrand size = 28, antiderivative size = 76 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3 B x}{8}+\frac {C \sin (c+d x)}{d}+\frac {3 B \cos (c+d x) \sin (c+d x)}{8 d}+\frac {B \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {C \sin ^3(c+d x)}{3 d} \] Output:
3/8*B*x+C*sin(d*x+c)/d+3/8*B*cos(d*x+c)*sin(d*x+c)/d+1/4*B*cos(d*x+c)^3*si n(d*x+c)/d-1/3*C*sin(d*x+c)^3/d
Time = 0.10 (sec) , antiderivative size = 73, normalized size of antiderivative = 0.96 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3 B (c+d x)}{8 d}+\frac {C \sin (c+d x)}{d}-\frac {C \sin ^3(c+d x)}{3 d}+\frac {B \sin (2 (c+d x))}{4 d}+\frac {B \sin (4 (c+d x))}{32 d} \] Input:
Integrate[Cos[c + d*x]^5*(B*Sec[c + d*x] + C*Sec[c + d*x]^2),x]
Output:
(3*B*(c + d*x))/(8*d) + (C*Sin[c + d*x])/d - (C*Sin[c + d*x]^3)/(3*d) + (B *Sin[2*(c + d*x)])/(4*d) + (B*Sin[4*(c + d*x)])/(32*d)
Time = 0.39 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.07, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {3042, 4535, 27, 3042, 3113, 2009, 3115, 3042, 3115, 24}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {B \csc \left (c+d x+\frac {\pi }{2}\right )+C \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^5}dx\) |
\(\Big \downarrow \) 4535 |
\(\displaystyle B \int \cos ^4(c+d x)dx+\int C \cos ^3(c+d x)dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle B \int \cos ^4(c+d x)dx+C \int \cos ^3(c+d x)dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle B \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx+C \int \sin \left (c+d x+\frac {\pi }{2}\right )^3dx\) |
\(\Big \downarrow \) 3113 |
\(\displaystyle B \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx-\frac {C \int \left (1-\sin ^2(c+d x)\right )d(-\sin (c+d x))}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle B \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle B \left (\frac {3}{4} \int \cos ^2(c+d x)dx+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle B \left (\frac {3}{4} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle B \left (\frac {3}{4} \left (\frac {\int 1dx}{2}+\frac {\sin (c+d x) \cos (c+d x)}{2 d}\right )+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle B \left (\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3}{4} \left (\frac {\sin (c+d x) \cos (c+d x)}{2 d}+\frac {x}{2}\right )\right )-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
Input:
Int[Cos[c + d*x]^5*(B*Sec[c + d*x] + C*Sec[c + d*x]^2),x]
Output:
-((C*(-Sin[c + d*x] + Sin[c + d*x]^3/3))/d) + B*((Cos[c + d*x]^3*Sin[c + d *x])/(4*d) + (3*(x/2 + (Cos[c + d*x]*Sin[c + d*x])/(2*d)))/4)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp and[(1 - x^2)^((n - 1)/2), x], x], x, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*((A_.) + csc[(e_.) + (f_.)*(x_)]* (B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.)), x_Symbol] :> Simp[B/b Int[(b*Cs c[e + f*x])^(m + 1), x], x] + Int[(b*Csc[e + f*x])^m*(A + C*Csc[e + f*x]^2) , x] /; FreeQ[{b, e, f, A, B, C, m}, x]
Time = 0.41 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.75
method | result | size |
parallelrisch | \(\frac {36 B x d +3 B \sin \left (4 d x +4 c \right )+24 B \sin \left (2 d x +2 c \right )+72 C \sin \left (d x +c \right )+8 C \sin \left (3 d x +3 c \right )}{96 d}\) | \(57\) |
derivativedivides | \(\frac {B \left (\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {C \left (2+\cos \left (d x +c \right )^{2}\right ) \sin \left (d x +c \right )}{3}}{d}\) | \(60\) |
default | \(\frac {B \left (\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {C \left (2+\cos \left (d x +c \right )^{2}\right ) \sin \left (d x +c \right )}{3}}{d}\) | \(60\) |
risch | \(\frac {3 B x}{8}+\frac {3 C \sin \left (d x +c \right )}{4 d}+\frac {B \sin \left (4 d x +4 c \right )}{32 d}+\frac {\sin \left (3 d x +3 c \right ) C}{12 d}+\frac {B \sin \left (2 d x +2 c \right )}{4 d}\) | \(63\) |
norman | \(\frac {-\frac {3 B x}{8}-\frac {3 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{2}-\frac {15 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{8}+\frac {15 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{8}+\frac {3 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}}{2}+\frac {3 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}}{8}+\frac {\left (3 B -8 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{6 d}+\frac {\left (3 B +8 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{6 d}-\frac {\left (5 B -8 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}}{4 d}-\frac {\left (5 B +8 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 d}+\frac {\left (9 B -40 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{12 d}+\frac {\left (9 B +40 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{12 d}}{\left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{5} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )}\) | \(248\) |
Input:
int(cos(d*x+c)^5*(B*sec(d*x+c)+C*sec(d*x+c)^2),x,method=_RETURNVERBOSE)
Output:
1/96*(36*B*x*d+3*B*sin(4*d*x+4*c)+24*B*sin(2*d*x+2*c)+72*C*sin(d*x+c)+8*C* sin(3*d*x+3*c))/d
Time = 0.08 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.70 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {9 \, B d x + {\left (6 \, B \cos \left (d x + c\right )^{3} + 8 \, C \cos \left (d x + c\right )^{2} + 9 \, B \cos \left (d x + c\right ) + 16 \, C\right )} \sin \left (d x + c\right )}{24 \, d} \] Input:
integrate(cos(d*x+c)^5*(B*sec(d*x+c)+C*sec(d*x+c)^2),x, algorithm="fricas" )
Output:
1/24*(9*B*d*x + (6*B*cos(d*x + c)^3 + 8*C*cos(d*x + c)^2 + 9*B*cos(d*x + c ) + 16*C)*sin(d*x + c))/d
\[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int \left (B + C \sec {\left (c + d x \right )}\right ) \cos ^{5}{\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx \] Input:
integrate(cos(d*x+c)**5*(B*sec(d*x+c)+C*sec(d*x+c)**2),x)
Output:
Integral((B + C*sec(c + d*x))*cos(c + d*x)**5*sec(c + d*x), x)
Time = 0.03 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.75 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} B - 32 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} C}{96 \, d} \] Input:
integrate(cos(d*x+c)^5*(B*sec(d*x+c)+C*sec(d*x+c)^2),x, algorithm="maxima" )
Output:
1/96*(3*(12*d*x + 12*c + sin(4*d*x + 4*c) + 8*sin(2*d*x + 2*c))*B - 32*(si n(d*x + c)^3 - 3*sin(d*x + c))*C)/d
Leaf count of result is larger than twice the leaf count of optimal. 140 vs. \(2 (68) = 136\).
Time = 0.29 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.84 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {9 \, {\left (d x + c\right )} B - \frac {2 \, {\left (15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 24 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 9 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 40 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 9 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 40 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 24 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{4}}}{24 \, d} \] Input:
integrate(cos(d*x+c)^5*(B*sec(d*x+c)+C*sec(d*x+c)^2),x, algorithm="giac")
Output:
1/24*(9*(d*x + c)*B - 2*(15*B*tan(1/2*d*x + 1/2*c)^7 - 24*C*tan(1/2*d*x + 1/2*c)^7 - 9*B*tan(1/2*d*x + 1/2*c)^5 - 40*C*tan(1/2*d*x + 1/2*c)^5 + 9*B* tan(1/2*d*x + 1/2*c)^3 - 40*C*tan(1/2*d*x + 1/2*c)^3 - 15*B*tan(1/2*d*x + 1/2*c) - 24*C*tan(1/2*d*x + 1/2*c))/(tan(1/2*d*x + 1/2*c)^2 + 1)^4)/d
Time = 12.07 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.99 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3\,B\,x}{8}+\frac {2\,C\,\sin \left (c+d\,x\right )}{3\,d}+\frac {3\,B\,\cos \left (c+d\,x\right )\,\sin \left (c+d\,x\right )}{8\,d}+\frac {B\,{\cos \left (c+d\,x\right )}^3\,\sin \left (c+d\,x\right )}{4\,d}+\frac {C\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{3\,d} \] Input:
int(cos(c + d*x)^5*(B/cos(c + d*x) + C/cos(c + d*x)^2),x)
Output:
(3*B*x)/8 + (2*C*sin(c + d*x))/(3*d) + (3*B*cos(c + d*x)*sin(c + d*x))/(8* d) + (B*cos(c + d*x)^3*sin(c + d*x))/(4*d) + (C*cos(c + d*x)^2*sin(c + d*x ))/(3*d)
Time = 0.15 (sec) , antiderivative size = 63, normalized size of antiderivative = 0.83 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {-6 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{3} b +15 \cos \left (d x +c \right ) \sin \left (d x +c \right ) b -8 \sin \left (d x +c \right )^{3} c +24 \sin \left (d x +c \right ) c +9 b d x}{24 d} \] Input:
int(cos(d*x+c)^5*(B*sec(d*x+c)+C*sec(d*x+c)^2),x)
Output:
( - 6*cos(c + d*x)*sin(c + d*x)**3*b + 15*cos(c + d*x)*sin(c + d*x)*b - 8* sin(c + d*x)**3*c + 24*sin(c + d*x)*c + 9*b*d*x)/(24*d)