Integrand size = 22, antiderivative size = 109 \[ \int (c+d x) \cos ^2(a+b x) \sin ^3(a+b x) \, dx=-\frac {(c+d x) \cos (a+b x)}{8 b}-\frac {(c+d x) \cos (3 a+3 b x)}{48 b}+\frac {(c+d x) \cos (5 a+5 b x)}{80 b}+\frac {d \sin (a+b x)}{8 b^2}+\frac {d \sin (3 a+3 b x)}{144 b^2}-\frac {d \sin (5 a+5 b x)}{400 b^2} \] Output:
-1/8*(d*x+c)*cos(b*x+a)/b-1/48*(d*x+c)*cos(3*b*x+3*a)/b+1/80*(d*x+c)*cos(5 *b*x+5*a)/b+1/8*d*sin(b*x+a)/b^2+1/144*d*sin(3*b*x+3*a)/b^2-1/400*d*sin(5* b*x+5*a)/b^2
Time = 0.18 (sec) , antiderivative size = 94, normalized size of antiderivative = 0.86 \[ \int (c+d x) \cos ^2(a+b x) \sin ^3(a+b x) \, dx=\frac {-450 b (c+d x) \cos (a+b x)-75 b (c+d x) \cos (3 (a+b x))+45 b c \cos (5 (a+b x))+45 b d x \cos (5 (a+b x))+450 d \sin (a+b x)+25 d \sin (3 (a+b x))-9 d \sin (5 (a+b x))}{3600 b^2} \] Input:
Integrate[(c + d*x)*Cos[a + b*x]^2*Sin[a + b*x]^3,x]
Output:
(-450*b*(c + d*x)*Cos[a + b*x] - 75*b*(c + d*x)*Cos[3*(a + b*x)] + 45*b*c* Cos[5*(a + b*x)] + 45*b*d*x*Cos[5*(a + b*x)] + 450*d*Sin[a + b*x] + 25*d*S in[3*(a + b*x)] - 9*d*Sin[5*(a + b*x)])/(3600*b^2)
Time = 0.31 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {4906, 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 (c+d x) \sin ^3(a+b x) \cos ^2(a+b x) \, dx\) |
\(\Big \downarrow \) 4906 |
\(\displaystyle \int \left (\frac {1}{8} (c+d x) \sin (a+b x)+\frac {1}{16} (c+d x) \sin (3 a+3 b x)-\frac {1}{16} (c+d x) \sin (5 a+5 b x)\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {d \sin (a+b x)}{8 b^2}+\frac {d \sin (3 a+3 b x)}{144 b^2}-\frac {d \sin (5 a+5 b x)}{400 b^2}-\frac {(c+d x) \cos (a+b x)}{8 b}-\frac {(c+d x) \cos (3 a+3 b x)}{48 b}+\frac {(c+d x) \cos (5 a+5 b x)}{80 b}\) |
Input:
Int[(c + d*x)*Cos[a + b*x]^2*Sin[a + b*x]^3,x]
Output:
-1/8*((c + d*x)*Cos[a + b*x])/b - ((c + d*x)*Cos[3*a + 3*b*x])/(48*b) + (( c + d*x)*Cos[5*a + 5*b*x])/(80*b) + (d*Sin[a + b*x])/(8*b^2) + (d*Sin[3*a + 3*b*x])/(144*b^2) - (d*Sin[5*a + 5*b*x])/(400*b^2)
Int[Cos[(a_.) + (b_.)*(x_)]^(p_.)*((c_.) + (d_.)*(x_))^(m_.)*Sin[(a_.) + (b _.)*(x_)]^(n_.), x_Symbol] :> Int[ExpandTrigReduce[(c + d*x)^m, Sin[a + b*x ]^n*Cos[a + b*x]^p, x], x] /; FreeQ[{a, b, c, d, m}, x] && IGtQ[n, 0] && IG tQ[p, 0]
Time = 2.48 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.84
method | result | size |
parallelrisch | \(\frac {-75 b \left (d x +c \right ) \cos \left (3 b x +3 a \right )+45 b \left (d x +c \right ) \cos \left (5 b x +5 a \right )+25 d \sin \left (3 b x +3 a \right )-9 \sin \left (5 b x +5 a \right ) d -450 b \left (d x +c \right ) \cos \left (b x +a \right )-480 c b +450 \sin \left (b x +a \right ) d}{3600 b^{2}}\) | \(92\) |
risch | \(-\frac {\left (d x +c \right ) \cos \left (b x +a \right )}{8 b}-\frac {\left (d x +c \right ) \cos \left (3 b x +3 a \right )}{48 b}+\frac {\left (d x +c \right ) \cos \left (5 b x +5 a \right )}{80 b}+\frac {d \sin \left (b x +a \right )}{8 b^{2}}+\frac {d \sin \left (3 b x +3 a \right )}{144 b^{2}}-\frac {d \sin \left (5 b x +5 a \right )}{400 b^{2}}\) | \(98\) |
derivativedivides | \(\frac {-\frac {d a \left (-\frac {\sin \left (b x +a \right )^{2} \cos \left (b x +a \right )^{3}}{5}-\frac {2 \cos \left (b x +a \right )^{3}}{15}\right )}{b}+c \left (-\frac {\sin \left (b x +a \right )^{2} \cos \left (b x +a \right )^{3}}{5}-\frac {2 \cos \left (b x +a \right )^{3}}{15}\right )+\frac {d \left (-\frac {\left (b x +a \right ) \left (2+\sin \left (b x +a \right )^{2}\right ) \cos \left (b x +a \right )}{3}+\frac {\sin \left (b x +a \right )^{3}}{45}+\frac {2 \sin \left (b x +a \right )}{15}+\frac {\left (b x +a \right ) \left (\frac {8}{3}+\sin \left (b x +a \right )^{4}+\frac {4 \sin \left (b x +a \right )^{2}}{3}\right ) \cos \left (b x +a \right )}{5}-\frac {\sin \left (b x +a \right )^{5}}{25}\right )}{b}}{b}\) | \(163\) |
default | \(\frac {-\frac {d a \left (-\frac {\sin \left (b x +a \right )^{2} \cos \left (b x +a \right )^{3}}{5}-\frac {2 \cos \left (b x +a \right )^{3}}{15}\right )}{b}+c \left (-\frac {\sin \left (b x +a \right )^{2} \cos \left (b x +a \right )^{3}}{5}-\frac {2 \cos \left (b x +a \right )^{3}}{15}\right )+\frac {d \left (-\frac {\left (b x +a \right ) \left (2+\sin \left (b x +a \right )^{2}\right ) \cos \left (b x +a \right )}{3}+\frac {\sin \left (b x +a \right )^{3}}{45}+\frac {2 \sin \left (b x +a \right )}{15}+\frac {\left (b x +a \right ) \left (\frac {8}{3}+\sin \left (b x +a \right )^{4}+\frac {4 \sin \left (b x +a \right )^{2}}{3}\right ) \cos \left (b x +a \right )}{5}-\frac {\sin \left (b x +a \right )^{5}}{25}\right )}{b}}{b}\) | \(163\) |
norman | \(\frac {-\frac {4 c}{15 b}+\frac {4 d \tan \left (\frac {a}{2}+\frac {b x}{2}\right )}{15 b^{2}}+\frac {56 d \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{3}}{45 b^{2}}+\frac {152 d \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{5}}{225 b^{2}}+\frac {56 d \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{7}}{45 b^{2}}+\frac {4 d \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{9}}{15 b^{2}}-\frac {2 d x}{15 b}-\frac {4 c \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{6}}{b}-\frac {4 c \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{2}}{3 b}+\frac {4 c \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{4}}{3 b}-\frac {2 d x \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{2}}{3 b}+\frac {8 d x \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{4}}{3 b}-\frac {8 d x \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{6}}{3 b}+\frac {2 d x \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{8}}{3 b}+\frac {2 d x \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{10}}{15 b}}{\left (1+\tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{2}\right )^{5}}\) | \(255\) |
orering | \(\frac {2 d \left (259 d^{4} x^{4} b^{4}+1036 b^{4} c \,d^{3} x^{3}+1554 b^{4} c^{2} d^{2} x^{2}+1036 b^{4} c^{3} d x +259 b^{4} c^{4}+140 b^{2} d^{4} x^{2}+280 b^{2} c \,d^{3} x +140 b^{2} c^{2} d^{2}+72 d^{4}\right ) \cos \left (b x +a \right )^{2} \sin \left (b x +a \right )^{3}}{225 b^{6} \left (d x +c \right )^{4}}-\frac {\left (259 d^{4} x^{4} b^{4}+1036 b^{4} c \,d^{3} x^{3}+1554 b^{4} c^{2} d^{2} x^{2}+1036 b^{4} c^{3} d x +259 b^{4} c^{4}+280 b^{2} d^{4} x^{2}+560 b^{2} c \,d^{3} x +280 b^{2} c^{2} d^{2}+144 d^{4}\right ) \left (d \cos \left (b x +a \right )^{2} \sin \left (b x +a \right )^{3}-2 \left (d x +c \right ) \cos \left (b x +a \right ) \sin \left (b x +a \right )^{4} b +3 \left (d x +c \right ) \cos \left (b x +a \right )^{3} \sin \left (b x +a \right )^{2} b \right )}{225 b^{6} \left (d x +c \right )^{4}}+\frac {4 d \left (35 x^{2} d^{2} b^{2}+70 b^{2} c d x +35 b^{2} c^{2}+18 d^{2}\right ) \left (-4 d \cos \left (b x +a \right ) \sin \left (b x +a \right )^{4} b +6 d \cos \left (b x +a \right )^{3} \sin \left (b x +a \right )^{2} b +2 \left (d x +c \right ) b^{2} \sin \left (b x +a \right )^{5}-17 \left (d x +c \right ) \cos \left (b x +a \right )^{2} \sin \left (b x +a \right )^{3} b^{2}+6 \left (d x +c \right ) \cos \left (b x +a \right )^{4} \sin \left (b x +a \right ) b^{2}\right )}{225 b^{6} \left (d x +c \right )^{3}}-\frac {\left (35 x^{2} d^{2} b^{2}+70 b^{2} c d x +35 b^{2} c^{2}+24 d^{2}\right ) \left (6 d \,b^{2} \sin \left (b x +a \right )^{5}-51 d \cos \left (b x +a \right )^{2} \sin \left (b x +a \right )^{3} b^{2}+18 d \cos \left (b x +a \right )^{4} \sin \left (b x +a \right ) b^{2}+44 \left (d x +c \right ) b^{3} \sin \left (b x +a \right )^{4} \cos \left (b x +a \right )-75 \left (d x +c \right ) \cos \left (b x +a \right )^{3} \sin \left (b x +a \right )^{2} b^{3}+6 \left (d x +c \right ) \cos \left (b x +a \right )^{5} b^{3}\right )}{225 b^{6} \left (d x +c \right )^{2}}+\frac {2 d \left (176 d \,b^{3} \sin \left (b x +a \right )^{4} \cos \left (b x +a \right )-300 d \cos \left (b x +a \right )^{3} \sin \left (b x +a \right )^{2} b^{3}+24 d \cos \left (b x +a \right )^{5} b^{3}+401 \left (d x +c \right ) b^{4} \sin \left (b x +a \right )^{3} \cos \left (b x +a \right )^{2}-44 \left (d x +c \right ) b^{4} \sin \left (b x +a \right )^{5}-180 \left (d x +c \right ) \cos \left (b x +a \right )^{4} \sin \left (b x +a \right ) b^{4}\right )}{75 b^{6} \left (d x +c \right )}-\frac {2005 d \,b^{4} \sin \left (b x +a \right )^{3} \cos \left (b x +a \right )^{2}-220 d \,b^{4} \sin \left (b x +a \right )^{5}-900 d \cos \left (b x +a \right )^{4} \sin \left (b x +a \right ) b^{4}+1923 \left (d x +c \right ) b^{5} \sin \left (b x +a \right )^{2} \cos \left (b x +a \right )^{3}-1022 \left (d x +c \right ) b^{5} \sin \left (b x +a \right )^{4} \cos \left (b x +a \right )-180 \left (d x +c \right ) \cos \left (b x +a \right )^{5} b^{5}}{225 b^{6}}\) | \(885\) |
Input:
int((d*x+c)*cos(b*x+a)^2*sin(b*x+a)^3,x,method=_RETURNVERBOSE)
Output:
1/3600*(-75*b*(d*x+c)*cos(3*b*x+3*a)+45*b*(d*x+c)*cos(5*b*x+5*a)+25*d*sin( 3*b*x+3*a)-9*sin(5*b*x+5*a)*d-450*b*(d*x+c)*cos(b*x+a)-480*c*b+450*sin(b*x +a)*d)/b^2
Time = 0.07 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.70 \[ \int (c+d x) \cos ^2(a+b x) \sin ^3(a+b x) \, dx=\frac {45 \, {\left (b d x + b c\right )} \cos \left (b x + a\right )^{5} - 75 \, {\left (b d x + b c\right )} \cos \left (b x + a\right )^{3} - {\left (9 \, d \cos \left (b x + a\right )^{4} - 13 \, d \cos \left (b x + a\right )^{2} - 26 \, d\right )} \sin \left (b x + a\right )}{225 \, b^{2}} \] Input:
integrate((d*x+c)*cos(b*x+a)^2*sin(b*x+a)^3,x, algorithm="fricas")
Output:
1/225*(45*(b*d*x + b*c)*cos(b*x + a)^5 - 75*(b*d*x + b*c)*cos(b*x + a)^3 - (9*d*cos(b*x + a)^4 - 13*d*cos(b*x + a)^2 - 26*d)*sin(b*x + a))/b^2
Time = 0.41 (sec) , antiderivative size = 163, normalized size of antiderivative = 1.50 \[ \int (c+d x) \cos ^2(a+b x) \sin ^3(a+b x) \, dx=\begin {cases} - \frac {c \sin ^{2}{\left (a + b x \right )} \cos ^{3}{\left (a + b x \right )}}{3 b} - \frac {2 c \cos ^{5}{\left (a + b x \right )}}{15 b} - \frac {d x \sin ^{2}{\left (a + b x \right )} \cos ^{3}{\left (a + b x \right )}}{3 b} - \frac {2 d x \cos ^{5}{\left (a + b x \right )}}{15 b} + \frac {26 d \sin ^{5}{\left (a + b x \right )}}{225 b^{2}} + \frac {13 d \sin ^{3}{\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}}{45 b^{2}} + \frac {2 d \sin {\left (a + b x \right )} \cos ^{4}{\left (a + b x \right )}}{15 b^{2}} & \text {for}\: b \neq 0 \\\left (c x + \frac {d x^{2}}{2}\right ) \sin ^{3}{\left (a \right )} \cos ^{2}{\left (a \right )} & \text {otherwise} \end {cases} \] Input:
integrate((d*x+c)*cos(b*x+a)**2*sin(b*x+a)**3,x)
Output:
Piecewise((-c*sin(a + b*x)**2*cos(a + b*x)**3/(3*b) - 2*c*cos(a + b*x)**5/ (15*b) - d*x*sin(a + b*x)**2*cos(a + b*x)**3/(3*b) - 2*d*x*cos(a + b*x)**5 /(15*b) + 26*d*sin(a + b*x)**5/(225*b**2) + 13*d*sin(a + b*x)**3*cos(a + b *x)**2/(45*b**2) + 2*d*sin(a + b*x)*cos(a + b*x)**4/(15*b**2), Ne(b, 0)), ((c*x + d*x**2/2)*sin(a)**3*cos(a)**2, True))
Time = 0.03 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.28 \[ \int (c+d x) \cos ^2(a+b x) \sin ^3(a+b x) \, dx=\frac {240 \, {\left (3 \, \cos \left (b x + a\right )^{5} - 5 \, \cos \left (b x + a\right )^{3}\right )} c - \frac {240 \, {\left (3 \, \cos \left (b x + a\right )^{5} - 5 \, \cos \left (b x + a\right )^{3}\right )} a d}{b} + \frac {{\left (45 \, {\left (b x + a\right )} \cos \left (5 \, b x + 5 \, a\right ) - 75 \, {\left (b x + a\right )} \cos \left (3 \, b x + 3 \, a\right ) - 450 \, {\left (b x + a\right )} \cos \left (b x + a\right ) - 9 \, \sin \left (5 \, b x + 5 \, a\right ) + 25 \, \sin \left (3 \, b x + 3 \, a\right ) + 450 \, \sin \left (b x + a\right )\right )} d}{b}}{3600 \, b} \] Input:
integrate((d*x+c)*cos(b*x+a)^2*sin(b*x+a)^3,x, algorithm="maxima")
Output:
1/3600*(240*(3*cos(b*x + a)^5 - 5*cos(b*x + a)^3)*c - 240*(3*cos(b*x + a)^ 5 - 5*cos(b*x + a)^3)*a*d/b + (45*(b*x + a)*cos(5*b*x + 5*a) - 75*(b*x + a )*cos(3*b*x + 3*a) - 450*(b*x + a)*cos(b*x + a) - 9*sin(5*b*x + 5*a) + 25* sin(3*b*x + 3*a) + 450*sin(b*x + a))*d/b)/b
Time = 0.12 (sec) , antiderivative size = 106, normalized size of antiderivative = 0.97 \[ \int (c+d x) \cos ^2(a+b x) \sin ^3(a+b x) \, dx=\frac {{\left (b d x + b c\right )} \cos \left (5 \, b x + 5 \, a\right )}{80 \, b^{2}} - \frac {{\left (b d x + b c\right )} \cos \left (3 \, b x + 3 \, a\right )}{48 \, b^{2}} - \frac {{\left (b d x + b c\right )} \cos \left (b x + a\right )}{8 \, b^{2}} - \frac {d \sin \left (5 \, b x + 5 \, a\right )}{400 \, b^{2}} + \frac {d \sin \left (3 \, b x + 3 \, a\right )}{144 \, b^{2}} + \frac {d \sin \left (b x + a\right )}{8 \, b^{2}} \] Input:
integrate((d*x+c)*cos(b*x+a)^2*sin(b*x+a)^3,x, algorithm="giac")
Output:
1/80*(b*d*x + b*c)*cos(5*b*x + 5*a)/b^2 - 1/48*(b*d*x + b*c)*cos(3*b*x + 3 *a)/b^2 - 1/8*(b*d*x + b*c)*cos(b*x + a)/b^2 - 1/400*d*sin(5*b*x + 5*a)/b^ 2 + 1/144*d*sin(3*b*x + 3*a)/b^2 + 1/8*d*sin(b*x + a)/b^2
Time = 19.53 (sec) , antiderivative size = 99, normalized size of antiderivative = 0.91 \[ \int (c+d x) \cos ^2(a+b x) \sin ^3(a+b x) \, dx=\frac {26\,d\,\sin \left (a+b\,x\right )-75\,b\,c\,{\cos \left (a+b\,x\right )}^3+45\,b\,c\,{\cos \left (a+b\,x\right )}^5+13\,d\,{\cos \left (a+b\,x\right )}^2\,\sin \left (a+b\,x\right )-9\,d\,{\cos \left (a+b\,x\right )}^4\,\sin \left (a+b\,x\right )-75\,b\,d\,x\,{\cos \left (a+b\,x\right )}^3+45\,b\,d\,x\,{\cos \left (a+b\,x\right )}^5}{225\,b^2} \] Input:
int(cos(a + b*x)^2*sin(a + b*x)^3*(c + d*x),x)
Output:
(26*d*sin(a + b*x) - 75*b*c*cos(a + b*x)^3 + 45*b*c*cos(a + b*x)^5 + 13*d* cos(a + b*x)^2*sin(a + b*x) - 9*d*cos(a + b*x)^4*sin(a + b*x) - 75*b*d*x*c os(a + b*x)^3 + 45*b*d*x*cos(a + b*x)^5)/(225*b^2)
Time = 0.16 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.28 \[ \int (c+d x) \cos ^2(a+b x) \sin ^3(a+b x) \, dx=\frac {45 \cos \left (b x +a \right ) \sin \left (b x +a \right )^{4} b c +45 \cos \left (b x +a \right ) \sin \left (b x +a \right )^{4} b d x -15 \cos \left (b x +a \right ) \sin \left (b x +a \right )^{2} b c -15 \cos \left (b x +a \right ) \sin \left (b x +a \right )^{2} b d x -30 \cos \left (b x +a \right ) b c -30 \cos \left (b x +a \right ) b d x -9 \sin \left (b x +a \right )^{5} d +5 \sin \left (b x +a \right )^{3} d +30 \sin \left (b x +a \right ) d -30 a d +60 b c}{225 b^{2}} \] Input:
int((d*x+c)*cos(b*x+a)^2*sin(b*x+a)^3,x)
Output:
(45*cos(a + b*x)*sin(a + b*x)**4*b*c + 45*cos(a + b*x)*sin(a + b*x)**4*b*d *x - 15*cos(a + b*x)*sin(a + b*x)**2*b*c - 15*cos(a + b*x)*sin(a + b*x)**2 *b*d*x - 30*cos(a + b*x)*b*c - 30*cos(a + b*x)*b*d*x - 9*sin(a + b*x)**5*d + 5*sin(a + b*x)**3*d + 30*sin(a + b*x)*d - 30*a*d + 60*b*c)/(225*b**2)