Integrand size = 29, antiderivative size = 73 \[ \int \sec ^6(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx=\frac {(A+B) \sec ^5(c+d x) (a+a \sin (c+d x))}{5 d}+\frac {a (4 A-B) \tan (c+d x)}{5 d}+\frac {a (4 A-B) \tan ^3(c+d x)}{15 d} \] Output:
1/5*(A+B)*sec(d*x+c)^5*(a+a*sin(d*x+c))/d+1/5*a*(4*A-B)*tan(d*x+c)/d+1/15* a*(4*A-B)*tan(d*x+c)^3/d
Time = 1.09 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.11 \[ \int \sec ^6(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx=\frac {a \left (3 (A+B) \sec ^5(c+d x)+15 A \sec ^4(c+d x) \tan (c+d x)-5 (4 A-B) \sec ^2(c+d x) \tan ^3(c+d x)+2 (4 A-B) \tan ^5(c+d x)\right )}{15 d} \] Input:
Integrate[Sec[c + d*x]^6*(a + a*Sin[c + d*x])*(A + B*Sin[c + d*x]),x]
Output:
(a*(3*(A + B)*Sec[c + d*x]^5 + 15*A*Sec[c + d*x]^4*Tan[c + d*x] - 5*(4*A - B)*Sec[c + d*x]^2*Tan[c + d*x]^3 + 2*(4*A - B)*Tan[c + d*x]^5))/(15*d)
Time = 0.35 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.89, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {3042, 3334, 3042, 4254, 2009}
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 \sec ^6(c+d x) (a \sin (c+d x)+a) (A+B \sin (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {(a \sin (c+d x)+a) (A+B \sin (c+d x))}{\cos (c+d x)^6}dx\) |
\(\Big \downarrow \) 3334 |
\(\displaystyle \frac {1}{5} a (4 A-B) \int \sec ^4(c+d x)dx+\frac {(A+B) \sec ^5(c+d x) (a \sin (c+d x)+a)}{5 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{5} a (4 A-B) \int \csc \left (c+d x+\frac {\pi }{2}\right )^4dx+\frac {(A+B) \sec ^5(c+d x) (a \sin (c+d x)+a)}{5 d}\) |
\(\Big \downarrow \) 4254 |
\(\displaystyle \frac {(A+B) \sec ^5(c+d x) (a \sin (c+d x)+a)}{5 d}-\frac {a (4 A-B) \int \left (\tan ^2(c+d x)+1\right )d(-\tan (c+d x))}{5 d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {(A+B) \sec ^5(c+d x) (a \sin (c+d x)+a)}{5 d}-\frac {a (4 A-B) \left (-\frac {1}{3} \tan ^3(c+d x)-\tan (c+d x)\right )}{5 d}\) |
Input:
Int[Sec[c + d*x]^6*(a + a*Sin[c + d*x])*(A + B*Sin[c + d*x]),x]
Output:
((A + B)*Sec[c + d*x]^5*(a + a*Sin[c + d*x]))/(5*d) - (a*(4*A - B)*(-Tan[c + d*x] - Tan[c + d*x]^3/3))/(5*d)
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x _)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-(b* c + a*d))*(g*Cos[e + f*x])^(p + 1)*((a + b*Sin[e + f*x])^m/(a*f*g*(p + 1))) , x] + Simp[b*((a*d*m + b*c*(m + p + 1))/(a*g^2*(p + 1))) Int[(g*Cos[e + f*x])^(p + 2)*(a + b*Sin[e + f*x])^(m - 1), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && EqQ[a^2 - b^2, 0] && GtQ[m, -1] && LtQ[p, -1]
Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp andIntegrand[(1 + x^2)^(n/2 - 1), x], x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]
Time = 0.88 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.40
method | result | size |
derivativedivides | \(\frac {\frac {a A}{5 \cos \left (d x +c \right )^{5}}+a B \left (\frac {\sin \left (d x +c \right )^{3}}{5 \cos \left (d x +c \right )^{5}}+\frac {2 \sin \left (d x +c \right )^{3}}{15 \cos \left (d x +c \right )^{3}}\right )-a A \left (-\frac {8}{15}-\frac {\sec \left (d x +c \right )^{4}}{5}-\frac {4 \sec \left (d x +c \right )^{2}}{15}\right ) \tan \left (d x +c \right )+\frac {a B}{5 \cos \left (d x +c \right )^{5}}}{d}\) | \(102\) |
default | \(\frac {\frac {a A}{5 \cos \left (d x +c \right )^{5}}+a B \left (\frac {\sin \left (d x +c \right )^{3}}{5 \cos \left (d x +c \right )^{5}}+\frac {2 \sin \left (d x +c \right )^{3}}{15 \cos \left (d x +c \right )^{3}}\right )-a A \left (-\frac {8}{15}-\frac {\sec \left (d x +c \right )^{4}}{5}-\frac {4 \sec \left (d x +c \right )^{2}}{15}\right ) \tan \left (d x +c \right )+\frac {a B}{5 \cos \left (d x +c \right )^{5}}}{d}\) | \(102\) |
risch | \(-\frac {4 i a \left (24 i A \,{\mathrm e}^{3 i \left (d x +c \right )}-6 i B \,{\mathrm e}^{3 i \left (d x +c \right )}+15 B \,{\mathrm e}^{4 i \left (d x +c \right )}+8 i A \,{\mathrm e}^{i \left (d x +c \right )}+8 A \,{\mathrm e}^{2 i \left (d x +c \right )}-2 i B \,{\mathrm e}^{i \left (d x +c \right )}-2 B \,{\mathrm e}^{2 i \left (d x +c \right )}+4 A -B \right )}{15 \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )^{3} \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )^{5} d}\) | \(131\) |
parallelrisch | \(-\frac {2 \left (A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}+\left (-A +B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+\frac {\left (-A -2 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{3}+\frac {\left (5 A +B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{3}+\frac {\left (13 A +8 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{15}+\frac {\left (-7 A +3 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{5}+\frac {\left (3 A -2 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{5}+\frac {A}{5}+\frac {B}{5}\right ) a}{d \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{5}}\) | \(166\) |
norman | \(\frac {-\frac {2 a A +2 a B}{5 d}-\frac {\left (2 a A +2 a B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}}{d}-\frac {\left (4 a A +4 a B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{5 d}-\frac {\left (4 a A +4 a B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}}{d}-\frac {\left (6 a A +6 a B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{d}-\frac {\left (8 a A +8 a B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}{d}-\frac {\left (22 a A +22 a B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{5 d}-\frac {2 a A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d}-\frac {2 a A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{13}}{d}-\frac {4 a \left (A +2 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{3 d}-\frac {4 a \left (A +2 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}}{3 d}-\frac {2 a \left (11 A +16 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{5 d}-\frac {2 a \left (11 A +16 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{5 d}-\frac {8 a \left (19 A +14 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{15 d}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{5} \left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{2}}\) | \(347\) |
Input:
int(sec(d*x+c)^6*(a+a*sin(d*x+c))*(A+B*sin(d*x+c)),x,method=_RETURNVERBOSE )
Output:
1/d*(1/5*a*A/cos(d*x+c)^5+a*B*(1/5*sin(d*x+c)^3/cos(d*x+c)^5+2/15*sin(d*x+ c)^3/cos(d*x+c)^3)-a*A*(-8/15-1/5*sec(d*x+c)^4-4/15*sec(d*x+c)^2)*tan(d*x+ c)+1/5*a*B/cos(d*x+c)^5)
Time = 0.11 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.53 \[ \int \sec ^6(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx=-\frac {2 \, {\left (4 \, A - B\right )} a \cos \left (d x + c\right )^{4} - {\left (4 \, A - B\right )} a \cos \left (d x + c\right )^{2} - {\left (A - 4 \, B\right )} a + {\left (2 \, {\left (4 \, A - B\right )} a \cos \left (d x + c\right )^{2} + {\left (4 \, A - B\right )} a\right )} \sin \left (d x + c\right )}{15 \, {\left (d \cos \left (d x + c\right )^{3} \sin \left (d x + c\right ) - d \cos \left (d x + c\right )^{3}\right )}} \] Input:
integrate(sec(d*x+c)^6*(a+a*sin(d*x+c))*(A+B*sin(d*x+c)),x, algorithm="fri cas")
Output:
-1/15*(2*(4*A - B)*a*cos(d*x + c)^4 - (4*A - B)*a*cos(d*x + c)^2 - (A - 4* B)*a + (2*(4*A - B)*a*cos(d*x + c)^2 + (4*A - B)*a)*sin(d*x + c))/(d*cos(d *x + c)^3*sin(d*x + c) - d*cos(d*x + c)^3)
Timed out. \[ \int \sec ^6(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx=\text {Timed out} \] Input:
integrate(sec(d*x+c)**6*(a+a*sin(d*x+c))*(A+B*sin(d*x+c)),x)
Output:
Timed out
Time = 0.04 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.18 \[ \int \sec ^6(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx=\frac {{\left (3 \, \tan \left (d x + c\right )^{5} + 10 \, \tan \left (d x + c\right )^{3} + 15 \, \tan \left (d x + c\right )\right )} A a + {\left (3 \, \tan \left (d x + c\right )^{5} + 5 \, \tan \left (d x + c\right )^{3}\right )} B a + \frac {3 \, A a}{\cos \left (d x + c\right )^{5}} + \frac {3 \, B a}{\cos \left (d x + c\right )^{5}}}{15 \, d} \] Input:
integrate(sec(d*x+c)^6*(a+a*sin(d*x+c))*(A+B*sin(d*x+c)),x, algorithm="max ima")
Output:
1/15*((3*tan(d*x + c)^5 + 10*tan(d*x + c)^3 + 15*tan(d*x + c))*A*a + (3*ta n(d*x + c)^5 + 5*tan(d*x + c)^3)*B*a + 3*A*a/cos(d*x + c)^5 + 3*B*a/cos(d* x + c)^5)/d
Leaf count of result is larger than twice the leaf count of optimal. 225 vs. \(2 (67) = 134\).
Time = 0.20 (sec) , antiderivative size = 225, normalized size of antiderivative = 3.08 \[ \int \sec ^6(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx=-\frac {\frac {5 \, {\left (15 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 9 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 24 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 12 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 13 \, A a - 7 \, B a\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}^{3}} + \frac {165 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 45 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 480 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 60 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 650 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 70 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 400 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 20 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 113 \, A a + 13 \, B a}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}^{5}}}{120 \, d} \] Input:
integrate(sec(d*x+c)^6*(a+a*sin(d*x+c))*(A+B*sin(d*x+c)),x, algorithm="gia c")
Output:
-1/120*(5*(15*A*a*tan(1/2*d*x + 1/2*c)^2 - 9*B*a*tan(1/2*d*x + 1/2*c)^2 + 24*A*a*tan(1/2*d*x + 1/2*c) - 12*B*a*tan(1/2*d*x + 1/2*c) + 13*A*a - 7*B*a )/(tan(1/2*d*x + 1/2*c) + 1)^3 + (165*A*a*tan(1/2*d*x + 1/2*c)^4 + 45*B*a* tan(1/2*d*x + 1/2*c)^4 - 480*A*a*tan(1/2*d*x + 1/2*c)^3 - 60*B*a*tan(1/2*d *x + 1/2*c)^3 + 650*A*a*tan(1/2*d*x + 1/2*c)^2 + 70*B*a*tan(1/2*d*x + 1/2* c)^2 - 400*A*a*tan(1/2*d*x + 1/2*c) - 20*B*a*tan(1/2*d*x + 1/2*c) + 113*A* a + 13*B*a)/(tan(1/2*d*x + 1/2*c) - 1)^5)/d
Time = 36.53 (sec) , antiderivative size = 224, normalized size of antiderivative = 3.07 \[ \int \sec ^6(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx=-\frac {a\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {A\,\cos \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{4}-\frac {9\,A\,\cos \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{4}-A\,\cos \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )-\frac {15\,B\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4}+\frac {3\,B\,\cos \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{2}-B\,\cos \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )+\frac {B\,\cos \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )}{4}-\frac {73\,A\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8}+\frac {25\,A\,\sin \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{8}-\frac {19\,A\,\sin \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{8}+\frac {3\,A\,\sin \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )}{8}+\frac {7\,B\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8}+\frac {5\,B\,\sin \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{8}+\frac {B\,\sin \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{8}+\frac {3\,B\,\sin \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )}{8}\right )}{120\,d\,{\cos \left (\frac {c}{2}-\frac {\pi }{4}+\frac {d\,x}{2}\right )}^3\,{\cos \left (\frac {c}{2}+\frac {\pi }{4}+\frac {d\,x}{2}\right )}^5} \] Input:
int(((A + B*sin(c + d*x))*(a + a*sin(c + d*x)))/cos(c + d*x)^6,x)
Output:
-(a*cos(c/2 + (d*x)/2)*((A*cos((5*c)/2 + (5*d*x)/2))/4 - (9*A*cos((3*c)/2 + (3*d*x)/2))/4 - A*cos((7*c)/2 + (7*d*x)/2) - (15*B*cos(c/2 + (d*x)/2))/4 + (3*B*cos((3*c)/2 + (3*d*x)/2))/2 - B*cos((5*c)/2 + (5*d*x)/2) + (B*cos( (7*c)/2 + (7*d*x)/2))/4 - (73*A*sin(c/2 + (d*x)/2))/8 + (25*A*sin((3*c)/2 + (3*d*x)/2))/8 - (19*A*sin((5*c)/2 + (5*d*x)/2))/8 + (3*A*sin((7*c)/2 + ( 7*d*x)/2))/8 + (7*B*sin(c/2 + (d*x)/2))/8 + (5*B*sin((3*c)/2 + (3*d*x)/2)) /8 + (B*sin((5*c)/2 + (5*d*x)/2))/8 + (3*B*sin((7*c)/2 + (7*d*x)/2))/8))/( 120*d*cos(c/2 - pi/4 + (d*x)/2)^3*cos(c/2 + pi/4 + (d*x)/2)^5)
Time = 0.17 (sec) , antiderivative size = 251, normalized size of antiderivative = 3.44 \[ \int \sec ^6(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx=\frac {a \left (-12 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{3} a +3 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{3} b +12 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{2} a -3 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{2} b +12 \cos \left (d x +c \right ) \sin \left (d x +c \right ) a -3 \cos \left (d x +c \right ) \sin \left (d x +c \right ) b -12 \cos \left (d x +c \right ) a +3 \cos \left (d x +c \right ) b +8 \sin \left (d x +c \right )^{4} a -2 \sin \left (d x +c \right )^{4} b -8 \sin \left (d x +c \right )^{3} a +2 \sin \left (d x +c \right )^{3} b -12 \sin \left (d x +c \right )^{2} a +3 \sin \left (d x +c \right )^{2} b +12 \sin \left (d x +c \right ) a -3 \sin \left (d x +c \right ) b +3 a +3 b \right )}{15 \cos \left (d x +c \right ) d \left (\sin \left (d x +c \right )^{3}-\sin \left (d x +c \right )^{2}-\sin \left (d x +c \right )+1\right )} \] Input:
int(sec(d*x+c)^6*(a+a*sin(d*x+c))*(A+B*sin(d*x+c)),x)
Output:
(a*( - 12*cos(c + d*x)*sin(c + d*x)**3*a + 3*cos(c + d*x)*sin(c + d*x)**3* b + 12*cos(c + d*x)*sin(c + d*x)**2*a - 3*cos(c + d*x)*sin(c + d*x)**2*b + 12*cos(c + d*x)*sin(c + d*x)*a - 3*cos(c + d*x)*sin(c + d*x)*b - 12*cos(c + d*x)*a + 3*cos(c + d*x)*b + 8*sin(c + d*x)**4*a - 2*sin(c + d*x)**4*b - 8*sin(c + d*x)**3*a + 2*sin(c + d*x)**3*b - 12*sin(c + d*x)**2*a + 3*sin( c + d*x)**2*b + 12*sin(c + d*x)*a - 3*sin(c + d*x)*b + 3*a + 3*b))/(15*cos (c + d*x)*d*(sin(c + d*x)**3 - sin(c + d*x)**2 - sin(c + d*x) + 1))