Integrand size = 27, antiderivative size = 143 \[ \int \cos ^4(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {3 a x}{128}-\frac {b \cos ^5(c+d x)}{5 d}+\frac {2 b \cos ^7(c+d x)}{7 d}-\frac {b \cos ^9(c+d x)}{9 d}+\frac {3 a \cos (c+d x) \sin (c+d x)}{128 d}+\frac {a \cos ^3(c+d x) \sin (c+d x)}{64 d}-\frac {a \cos ^5(c+d x) \sin (c+d x)}{16 d}-\frac {a \cos ^5(c+d x) \sin ^3(c+d x)}{8 d} \] Output:
3/128*a*x-1/5*b*cos(d*x+c)^5/d+2/7*b*cos(d*x+c)^7/d-1/9*b*cos(d*x+c)^9/d+3 /128*a*cos(d*x+c)*sin(d*x+c)/d+1/64*a*cos(d*x+c)^3*sin(d*x+c)/d-1/16*a*cos (d*x+c)^5*sin(d*x+c)/d-1/8*a*cos(d*x+c)^5*sin(d*x+c)^3/d
Time = 0.28 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.64 \[ \int \cos ^4(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {7560 a c+7560 a d x-7560 b \cos (c+d x)-1680 b \cos (3 (c+d x))+1008 b \cos (5 (c+d x))+180 b \cos (7 (c+d x))-140 b \cos (9 (c+d x))-2520 a \sin (4 (c+d x))+315 a \sin (8 (c+d x))}{322560 d} \] Input:
Integrate[Cos[c + d*x]^4*Sin[c + d*x]^4*(a + b*Sin[c + d*x]),x]
Output:
(7560*a*c + 7560*a*d*x - 7560*b*Cos[c + d*x] - 1680*b*Cos[3*(c + d*x)] + 1 008*b*Cos[5*(c + d*x)] + 180*b*Cos[7*(c + d*x)] - 140*b*Cos[9*(c + d*x)] - 2520*a*Sin[4*(c + d*x)] + 315*a*Sin[8*(c + d*x)])/(322560*d)
Time = 0.70 (sec) , antiderivative size = 151, normalized size of antiderivative = 1.06, number of steps used = 15, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.519, Rules used = {3042, 3317, 3042, 3045, 244, 2009, 3048, 3042, 3048, 3042, 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 \sin ^4(c+d x) \cos ^4(c+d x) (a+b \sin (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin (c+d x)^4 \cos (c+d x)^4 (a+b \sin (c+d x))dx\) |
\(\Big \downarrow \) 3317 |
\(\displaystyle a \int \cos ^4(c+d x) \sin ^4(c+d x)dx+b \int \cos ^4(c+d x) \sin ^5(c+d x)dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle a \int \cos (c+d x)^4 \sin (c+d x)^4dx+b \int \cos (c+d x)^4 \sin (c+d x)^5dx\) |
\(\Big \downarrow \) 3045 |
\(\displaystyle a \int \cos (c+d x)^4 \sin (c+d x)^4dx-\frac {b \int \cos ^4(c+d x) \left (1-\cos ^2(c+d x)\right )^2d\cos (c+d x)}{d}\) |
\(\Big \downarrow \) 244 |
\(\displaystyle a \int \cos (c+d x)^4 \sin (c+d x)^4dx-\frac {b \int \left (\cos ^8(c+d x)-2 \cos ^6(c+d x)+\cos ^4(c+d x)\right )d\cos (c+d x)}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle a \int \cos (c+d x)^4 \sin (c+d x)^4dx-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3048 |
\(\displaystyle a \left (\frac {3}{8} \int \cos ^4(c+d x) \sin ^2(c+d x)dx-\frac {\sin ^3(c+d x) \cos ^5(c+d x)}{8 d}\right )-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle a \left (\frac {3}{8} \int \cos (c+d x)^4 \sin (c+d x)^2dx-\frac {\sin ^3(c+d x) \cos ^5(c+d x)}{8 d}\right )-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3048 |
\(\displaystyle a \left (\frac {3}{8} \left (\frac {1}{6} \int \cos ^4(c+d x)dx-\frac {\sin (c+d x) \cos ^5(c+d x)}{6 d}\right )-\frac {\sin ^3(c+d x) \cos ^5(c+d x)}{8 d}\right )-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle a \left (\frac {3}{8} \left (\frac {1}{6} \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx-\frac {\sin (c+d x) \cos ^5(c+d x)}{6 d}\right )-\frac {\sin ^3(c+d x) \cos ^5(c+d x)}{8 d}\right )-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle a \left (\frac {3}{8} \left (\frac {1}{6} \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 {\sin (c+d x) \cos ^5(c+d x)}{6 d}\right )-\frac {\sin ^3(c+d x) \cos ^5(c+d x)}{8 d}\right )-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle a \left (\frac {3}{8} \left (\frac {1}{6} \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 {\sin (c+d x) \cos ^5(c+d x)}{6 d}\right )-\frac {\sin ^3(c+d x) \cos ^5(c+d x)}{8 d}\right )-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle a \left (\frac {3}{8} \left (\frac {1}{6} \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 {\sin (c+d x) \cos ^5(c+d x)}{6 d}\right )-\frac {\sin ^3(c+d x) \cos ^5(c+d x)}{8 d}\right )-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle a \left (\frac {3}{8} \left (\frac {1}{6} \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 {\sin (c+d x) \cos ^5(c+d x)}{6 d}\right )-\frac {\sin ^3(c+d x) \cos ^5(c+d x)}{8 d}\right )-\frac {b \left (\frac {1}{9} \cos ^9(c+d x)-\frac {2}{7} \cos ^7(c+d x)+\frac {1}{5} \cos ^5(c+d x)\right )}{d}\) |
Input:
Int[Cos[c + d*x]^4*Sin[c + d*x]^4*(a + b*Sin[c + d*x]),x]
Output:
-((b*(Cos[c + d*x]^5/5 - (2*Cos[c + d*x]^7)/7 + Cos[c + d*x]^9/9))/d) + a* (-1/8*(Cos[c + d*x]^5*Sin[c + d*x]^3)/d + (3*(-1/6*(Cos[c + d*x]^5*Sin[c + d*x])/d + ((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)/6))/8)
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Int[Expand Integrand[(c*x)^m*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, m}, x] && IGtQ[p , 0]
Int[(cos[(e_.) + (f_.)*(x_)]*(a_.))^(m_.)*sin[(e_.) + (f_.)*(x_)]^(n_.), x_ Symbol] :> Simp[-(a*f)^(-1) Subst[Int[x^m*(1 - x^2/a^2)^((n - 1)/2), x], x, a*Cos[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2] && !(IntegerQ[(m - 1)/2] && GtQ[m, 0] && LeQ[m, n])
Int[(cos[(e_.) + (f_.)*(x_)]*(b_.))^(n_)*((a_.)*sin[(e_.) + (f_.)*(x_)])^(m _), x_Symbol] :> Simp[(-a)*(b*Cos[e + f*x])^(n + 1)*((a*Sin[e + f*x])^(m - 1)/(b*f*(m + n))), x] + Simp[a^2*((m - 1)/(m + n)) Int[(b*Cos[e + f*x])^n *(a*Sin[e + f*x])^(m - 2), x], x] /; FreeQ[{a, b, e, f, n}, x] && GtQ[m, 1] && NeQ[m + n, 0] && IntegersQ[2*m, 2*n]
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[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[a Int[(g*Co s[e + f*x])^p*(d*Sin[e + f*x])^n, x], x] + Simp[b/d Int[(g*Cos[e + f*x])^ p*(d*Sin[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f, g, n, p}, x]
Time = 81.79 (sec) , antiderivative size = 96, normalized size of antiderivative = 0.67
method | result | size |
parallelrisch | \(\frac {7560 a x d -1680 b \cos \left (3 d x +3 c \right )-7560 b \cos \left (d x +c \right )-140 b \cos \left (9 d x +9 c \right )+315 a \sin \left (8 d x +8 c \right )+180 b \cos \left (7 d x +7 c \right )+1008 b \cos \left (5 d x +5 c \right )-2520 a \sin \left (4 d x +4 c \right )-8192 b}{322560 d}\) | \(96\) |
risch | \(\frac {3 a x}{128}-\frac {3 b \cos \left (d x +c \right )}{128 d}-\frac {b \cos \left (9 d x +9 c \right )}{2304 d}+\frac {a \sin \left (8 d x +8 c \right )}{1024 d}+\frac {b \cos \left (7 d x +7 c \right )}{1792 d}+\frac {b \cos \left (5 d x +5 c \right )}{320 d}-\frac {a \sin \left (4 d x +4 c \right )}{128 d}-\frac {b \cos \left (3 d x +3 c \right )}{192 d}\) | \(108\) |
derivativedivides | \(\frac {a \left (-\frac {\sin \left (d x +c \right )^{3} \cos \left (d x +c \right )^{5}}{8}-\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )^{5}}{16}+\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 )}{64}+\frac {3 d x}{128}+\frac {3 c}{128}\right )+b \left (-\frac {\sin \left (d x +c \right )^{4} \cos \left (d x +c \right )^{5}}{9}-\frac {4 \sin \left (d x +c \right )^{2} \cos \left (d x +c \right )^{5}}{63}-\frac {8 \cos \left (d x +c \right )^{5}}{315}\right )}{d}\) | \(124\) |
default | \(\frac {a \left (-\frac {\sin \left (d x +c \right )^{3} \cos \left (d x +c \right )^{5}}{8}-\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )^{5}}{16}+\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 )}{64}+\frac {3 d x}{128}+\frac {3 c}{128}\right )+b \left (-\frac {\sin \left (d x +c \right )^{4} \cos \left (d x +c \right )^{5}}{9}-\frac {4 \sin \left (d x +c \right )^{2} \cos \left (d x +c \right )^{5}}{63}-\frac {8 \cos \left (d x +c \right )^{5}}{315}\right )}{d}\) | \(124\) |
norman | \(\frac {\frac {189 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{64}+\frac {3 a x}{128}-\frac {16 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{35 d}+\frac {189 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}}{64}+\frac {32 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}{5 d}-\frac {3 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{64 d}+\frac {63 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}{32}-\frac {64 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{35 d}-\frac {169 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{32 d}+\frac {27 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{32}+\frac {63 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}}{32}-\frac {13 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{32 d}+\frac {27 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{128}+\frac {3 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{17}}{64 d}+\frac {27 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{14}}{32}+\frac {27 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{16}}{128}+\frac {3 a x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{18}}{128}-\frac {155 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{13}}{32 d}+\frac {16 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}}{d}-\frac {16 b}{315 d}-\frac {112 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{5 d}-\frac {32 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}}{3 d}+\frac {155 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{32 d}+\frac {13 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{15}}{32 d}+\frac {169 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}}{32 d}}{\left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{9}}\) | \(399\) |
orering | \(\text {Expression too large to display}\) | \(3041\) |
Input:
int(cos(d*x+c)^4*sin(d*x+c)^4*(a+b*sin(d*x+c)),x,method=_RETURNVERBOSE)
Output:
1/322560*(7560*a*x*d-1680*b*cos(3*d*x+3*c)-7560*b*cos(d*x+c)-140*b*cos(9*d *x+9*c)+315*a*sin(8*d*x+8*c)+180*b*cos(7*d*x+7*c)+1008*b*cos(5*d*x+5*c)-25 20*a*sin(4*d*x+4*c)-8192*b)/d
Time = 0.10 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.66 \[ \int \cos ^4(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {4480 \, b \cos \left (d x + c\right )^{9} - 11520 \, b \cos \left (d x + c\right )^{7} + 8064 \, b \cos \left (d x + c\right )^{5} - 945 \, a d x - 315 \, {\left (16 \, a \cos \left (d x + c\right )^{7} - 24 \, a \cos \left (d x + c\right )^{5} + 2 \, a \cos \left (d x + c\right )^{3} + 3 \, a \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{40320 \, d} \] Input:
integrate(cos(d*x+c)^4*sin(d*x+c)^4*(a+b*sin(d*x+c)),x, algorithm="fricas" )
Output:
-1/40320*(4480*b*cos(d*x + c)^9 - 11520*b*cos(d*x + c)^7 + 8064*b*cos(d*x + c)^5 - 945*a*d*x - 315*(16*a*cos(d*x + c)^7 - 24*a*cos(d*x + c)^5 + 2*a* cos(d*x + c)^3 + 3*a*cos(d*x + c))*sin(d*x + c))/d
Leaf count of result is larger than twice the leaf count of optimal. 272 vs. \(2 (131) = 262\).
Time = 0.98 (sec) , antiderivative size = 272, normalized size of antiderivative = 1.90 \[ \int \cos ^4(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx=\begin {cases} \frac {3 a x \sin ^{8}{\left (c + d x \right )}}{128} + \frac {3 a x \sin ^{6}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{32} + \frac {9 a x \sin ^{4}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{64} + \frac {3 a x \sin ^{2}{\left (c + d x \right )} \cos ^{6}{\left (c + d x \right )}}{32} + \frac {3 a x \cos ^{8}{\left (c + d x \right )}}{128} + \frac {3 a \sin ^{7}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{128 d} + \frac {11 a \sin ^{5}{\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{128 d} - \frac {11 a \sin ^{3}{\left (c + d x \right )} \cos ^{5}{\left (c + d x \right )}}{128 d} - \frac {3 a \sin {\left (c + d x \right )} \cos ^{7}{\left (c + d x \right )}}{128 d} - \frac {b \sin ^{4}{\left (c + d x \right )} \cos ^{5}{\left (c + d x \right )}}{5 d} - \frac {4 b \sin ^{2}{\left (c + d x \right )} \cos ^{7}{\left (c + d x \right )}}{35 d} - \frac {8 b \cos ^{9}{\left (c + d x \right )}}{315 d} & \text {for}\: d \neq 0 \\x \left (a + b \sin {\left (c \right )}\right ) \sin ^{4}{\left (c \right )} \cos ^{4}{\left (c \right )} & \text {otherwise} \end {cases} \] Input:
integrate(cos(d*x+c)**4*sin(d*x+c)**4*(a+b*sin(d*x+c)),x)
Output:
Piecewise((3*a*x*sin(c + d*x)**8/128 + 3*a*x*sin(c + d*x)**6*cos(c + d*x)* *2/32 + 9*a*x*sin(c + d*x)**4*cos(c + d*x)**4/64 + 3*a*x*sin(c + d*x)**2*c os(c + d*x)**6/32 + 3*a*x*cos(c + d*x)**8/128 + 3*a*sin(c + d*x)**7*cos(c + d*x)/(128*d) + 11*a*sin(c + d*x)**5*cos(c + d*x)**3/(128*d) - 11*a*sin(c + d*x)**3*cos(c + d*x)**5/(128*d) - 3*a*sin(c + d*x)*cos(c + d*x)**7/(128 *d) - b*sin(c + d*x)**4*cos(c + d*x)**5/(5*d) - 4*b*sin(c + d*x)**2*cos(c + d*x)**7/(35*d) - 8*b*cos(c + d*x)**9/(315*d), Ne(d, 0)), (x*(a + b*sin(c ))*sin(c)**4*cos(c)**4, True))
Time = 0.04 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.50 \[ \int \cos ^4(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {315 \, {\left (24 \, d x + 24 \, c + \sin \left (8 \, d x + 8 \, c\right ) - 8 \, \sin \left (4 \, d x + 4 \, c\right )\right )} a - 1024 \, {\left (35 \, \cos \left (d x + c\right )^{9} - 90 \, \cos \left (d x + c\right )^{7} + 63 \, \cos \left (d x + c\right )^{5}\right )} b}{322560 \, d} \] Input:
integrate(cos(d*x+c)^4*sin(d*x+c)^4*(a+b*sin(d*x+c)),x, algorithm="maxima" )
Output:
1/322560*(315*(24*d*x + 24*c + sin(8*d*x + 8*c) - 8*sin(4*d*x + 4*c))*a - 1024*(35*cos(d*x + c)^9 - 90*cos(d*x + c)^7 + 63*cos(d*x + c)^5)*b)/d
Time = 0.17 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.75 \[ \int \cos ^4(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {3}{128} \, a x - \frac {b \cos \left (9 \, d x + 9 \, c\right )}{2304 \, d} + \frac {b \cos \left (7 \, d x + 7 \, c\right )}{1792 \, d} + \frac {b \cos \left (5 \, d x + 5 \, c\right )}{320 \, d} - \frac {b \cos \left (3 \, d x + 3 \, c\right )}{192 \, d} - \frac {3 \, b \cos \left (d x + c\right )}{128 \, d} + \frac {a \sin \left (8 \, d x + 8 \, c\right )}{1024 \, d} - \frac {a \sin \left (4 \, d x + 4 \, c\right )}{128 \, d} \] Input:
integrate(cos(d*x+c)^4*sin(d*x+c)^4*(a+b*sin(d*x+c)),x, algorithm="giac")
Output:
3/128*a*x - 1/2304*b*cos(9*d*x + 9*c)/d + 1/1792*b*cos(7*d*x + 7*c)/d + 1/ 320*b*cos(5*d*x + 5*c)/d - 1/192*b*cos(3*d*x + 3*c)/d - 3/128*b*cos(d*x + c)/d + 1/1024*a*sin(8*d*x + 8*c)/d - 1/128*a*sin(4*d*x + 4*c)/d
Time = 37.94 (sec) , antiderivative size = 223, normalized size of antiderivative = 1.56 \[ \int \cos ^4(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {3\,a\,x}{128}-\frac {-\frac {3\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{17}}{64}-\frac {13\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{15}}{32}+\frac {155\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}}{32}+\frac {32\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}}{3}-\frac {169\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}}{32}-16\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+\frac {112\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{5}+\frac {169\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{32}-\frac {32\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{5}-\frac {155\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{32}+\frac {64\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{35}+\frac {13\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{32}+\frac {16\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{35}+\frac {3\,a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{64}+\frac {16\,b}{315}}{d\,{\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}^9} \] Input:
int(cos(c + d*x)^4*sin(c + d*x)^4*(a + b*sin(c + d*x)),x)
Output:
(3*a*x)/128 - ((16*b)/315 + (3*a*tan(c/2 + (d*x)/2))/64 + (13*a*tan(c/2 + (d*x)/2)^3)/32 - (155*a*tan(c/2 + (d*x)/2)^5)/32 + (169*a*tan(c/2 + (d*x)/ 2)^7)/32 - (169*a*tan(c/2 + (d*x)/2)^11)/32 + (155*a*tan(c/2 + (d*x)/2)^13 )/32 - (13*a*tan(c/2 + (d*x)/2)^15)/32 - (3*a*tan(c/2 + (d*x)/2)^17)/64 + (16*b*tan(c/2 + (d*x)/2)^2)/35 + (64*b*tan(c/2 + (d*x)/2)^4)/35 - (32*b*ta n(c/2 + (d*x)/2)^6)/5 + (112*b*tan(c/2 + (d*x)/2)^8)/5 - 16*b*tan(c/2 + (d *x)/2)^10 + (32*b*tan(c/2 + (d*x)/2)^12)/3)/(d*(tan(c/2 + (d*x)/2)^2 + 1)^ 9)
Time = 0.19 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.10 \[ \int \cos ^4(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx=\frac {-4480 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{8} b -5040 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{7} a +6400 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{6} b +7560 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{5} a -384 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{4} b -630 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{3} a -512 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{2} b -945 \cos \left (d x +c \right ) \sin \left (d x +c \right ) a -1024 \cos \left (d x +c \right ) b +945 a d x +1024 b}{40320 d} \] Input:
int(cos(d*x+c)^4*sin(d*x+c)^4*(a+b*sin(d*x+c)),x)
Output:
( - 4480*cos(c + d*x)*sin(c + d*x)**8*b - 5040*cos(c + d*x)*sin(c + d*x)** 7*a + 6400*cos(c + d*x)*sin(c + d*x)**6*b + 7560*cos(c + d*x)*sin(c + d*x) **5*a - 384*cos(c + d*x)*sin(c + d*x)**4*b - 630*cos(c + d*x)*sin(c + d*x) **3*a - 512*cos(c + d*x)*sin(c + d*x)**2*b - 945*cos(c + d*x)*sin(c + d*x) *a - 1024*cos(c + d*x)*b + 945*a*d*x + 1024*b)/(40320*d)