Integrand size = 27, antiderivative size = 118 \[ \int \cos ^3(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x)) \, dx=\frac {3 a \csc (c+d x)}{d}-\frac {a \csc ^2(c+d x)}{2 d}-\frac {a \csc ^3(c+d x)}{3 d}-\frac {3 a \log (\sin (c+d x))}{d}+\frac {3 a \sin (c+d x)}{d}+\frac {3 a \sin ^2(c+d x)}{2 d}-\frac {a \sin ^3(c+d x)}{3 d}-\frac {a \sin ^4(c+d x)}{4 d} \] Output:
3*a*csc(d*x+c)/d-1/2*a*csc(d*x+c)^2/d-1/3*a*csc(d*x+c)^3/d-3*a*ln(sin(d*x+ c))/d+3*a*sin(d*x+c)/d+3/2*a*sin(d*x+c)^2/d-1/3*a*sin(d*x+c)^3/d-1/4*a*sin (d*x+c)^4/d
Time = 0.05 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.00 \[ \int \cos ^3(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x)) \, dx=\frac {3 a \csc (c+d x)}{d}-\frac {a \csc ^2(c+d x)}{2 d}-\frac {a \csc ^3(c+d x)}{3 d}-\frac {3 a \log (\sin (c+d x))}{d}+\frac {3 a \sin (c+d x)}{d}+\frac {3 a \sin ^2(c+d x)}{2 d}-\frac {a \sin ^3(c+d x)}{3 d}-\frac {a \sin ^4(c+d x)}{4 d} \] Input:
Integrate[Cos[c + d*x]^3*Cot[c + d*x]^4*(a + a*Sin[c + d*x]),x]
Output:
(3*a*Csc[c + d*x])/d - (a*Csc[c + d*x]^2)/(2*d) - (a*Csc[c + d*x]^3)/(3*d) - (3*a*Log[Sin[c + d*x]])/d + (3*a*Sin[c + d*x])/d + (3*a*Sin[c + d*x]^2) /(2*d) - (a*Sin[c + d*x]^3)/(3*d) - (a*Sin[c + d*x]^4)/(4*d)
Time = 0.32 (sec) , antiderivative size = 119, normalized size of antiderivative = 1.01, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3042, 3315, 27, 99, 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 \cos ^3(c+d x) \cot ^4(c+d x) (a \sin (c+d x)+a) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^7 (a \sin (c+d x)+a)}{\sin (c+d x)^4}dx\) |
\(\Big \downarrow \) 3315 |
\(\displaystyle \frac {\int \csc ^4(c+d x) (a-a \sin (c+d x))^3 (\sin (c+d x) a+a)^4d(a \sin (c+d x))}{a^7 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int \frac {\csc ^4(c+d x) (a-a \sin (c+d x))^3 (\sin (c+d x) a+a)^4}{a^4}d(a \sin (c+d x))}{a^3 d}\) |
\(\Big \downarrow \) 99 |
\(\displaystyle \frac {\int \left (a^3 \csc ^4(c+d x)+a^3 \csc ^3(c+d x)-3 a^3 \csc ^2(c+d x)-3 a^3 \csc (c+d x)+3 a^3-a^3 \sin ^3(c+d x)-a^3 \sin ^2(c+d x)+3 a^3 \sin (c+d x)\right )d(a \sin (c+d x))}{a^3 d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-\frac {1}{4} a^4 \sin ^4(c+d x)-\frac {1}{3} a^4 \sin ^3(c+d x)+\frac {3}{2} a^4 \sin ^2(c+d x)+3 a^4 \sin (c+d x)-\frac {1}{3} a^4 \csc ^3(c+d x)-\frac {1}{2} a^4 \csc ^2(c+d x)+3 a^4 \csc (c+d x)-3 a^4 \log (a \sin (c+d x))}{a^3 d}\) |
Input:
Int[Cos[c + d*x]^3*Cot[c + d*x]^4*(a + a*Sin[c + d*x]),x]
Output:
(3*a^4*Csc[c + d*x] - (a^4*Csc[c + d*x]^2)/2 - (a^4*Csc[c + d*x]^3)/3 - 3* a^4*Log[a*Sin[c + d*x]] + 3*a^4*Sin[c + d*x] + (3*a^4*Sin[c + d*x]^2)/2 - (a^4*Sin[c + d*x]^3)/3 - (a^4*Sin[c + d*x]^4)/4)/(a^3*d)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_), x_] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, p}, x] && IntegersQ[m, n] && (IntegerQ[p] | | (GtQ[m, 0] && GeQ[n, -1]))
Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_ .)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[1/(b^p* f) Subst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2)*(c + (d/b)*x)^n, x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, c, d, m, n}, x] && Intege rQ[(p - 1)/2] && EqQ[a^2 - b^2, 0]
Time = 5.10 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.21
method | result | size |
derivativedivides | \(\frac {a \left (-\frac {\cos \left (d x +c \right )^{8}}{2 \sin \left (d x +c \right )^{2}}-\frac {\cos \left (d x +c \right )^{6}}{2}-\frac {3 \cos \left (d x +c \right )^{4}}{4}-\frac {3 \cos \left (d x +c \right )^{2}}{2}-3 \ln \left (\sin \left (d x +c \right )\right )\right )+a \left (-\frac {\cos \left (d x +c \right )^{8}}{3 \sin \left (d x +c \right )^{3}}+\frac {5 \cos \left (d x +c \right )^{8}}{3 \sin \left (d x +c \right )}+\frac {5 \left (\frac {16}{5}+\cos \left (d x +c \right )^{6}+\frac {6 \cos \left (d x +c \right )^{4}}{5}+\frac {8 \cos \left (d x +c \right )^{2}}{5}\right ) \sin \left (d x +c \right )}{3}\right )}{d}\) | \(143\) |
default | \(\frac {a \left (-\frac {\cos \left (d x +c \right )^{8}}{2 \sin \left (d x +c \right )^{2}}-\frac {\cos \left (d x +c \right )^{6}}{2}-\frac {3 \cos \left (d x +c \right )^{4}}{4}-\frac {3 \cos \left (d x +c \right )^{2}}{2}-3 \ln \left (\sin \left (d x +c \right )\right )\right )+a \left (-\frac {\cos \left (d x +c \right )^{8}}{3 \sin \left (d x +c \right )^{3}}+\frac {5 \cos \left (d x +c \right )^{8}}{3 \sin \left (d x +c \right )}+\frac {5 \left (\frac {16}{5}+\cos \left (d x +c \right )^{6}+\frac {6 \cos \left (d x +c \right )^{4}}{5}+\frac {8 \cos \left (d x +c \right )^{2}}{5}\right ) \sin \left (d x +c \right )}{3}\right )}{d}\) | \(143\) |
risch | \(3 i a x -\frac {a \,{\mathrm e}^{4 i \left (d x +c \right )}}{64 d}-\frac {i a \,{\mathrm e}^{3 i \left (d x +c \right )}}{24 d}-\frac {5 a \,{\mathrm e}^{2 i \left (d x +c \right )}}{16 d}-\frac {11 i a \,{\mathrm e}^{i \left (d x +c \right )}}{8 d}+\frac {11 i a \,{\mathrm e}^{-i \left (d x +c \right )}}{8 d}-\frac {5 a \,{\mathrm e}^{-2 i \left (d x +c \right )}}{16 d}+\frac {i a \,{\mathrm e}^{-3 i \left (d x +c \right )}}{24 d}-\frac {a \,{\mathrm e}^{-4 i \left (d x +c \right )}}{64 d}+\frac {6 i a c}{d}+\frac {2 i a \left (9 \,{\mathrm e}^{5 i \left (d x +c \right )}-14 \,{\mathrm e}^{3 i \left (d x +c \right )}-3 i {\mathrm e}^{4 i \left (d x +c \right )}+9 \,{\mathrm e}^{i \left (d x +c \right )}+3 i {\mathrm e}^{2 i \left (d x +c \right )}\right )}{3 d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{3}}-\frac {3 a \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d}\) | \(235\) |
Input:
int(cos(d*x+c)^3*cot(d*x+c)^4*(a+a*sin(d*x+c)),x,method=_RETURNVERBOSE)
Output:
1/d*(a*(-1/2/sin(d*x+c)^2*cos(d*x+c)^8-1/2*cos(d*x+c)^6-3/4*cos(d*x+c)^4-3 /2*cos(d*x+c)^2-3*ln(sin(d*x+c)))+a*(-1/3/sin(d*x+c)^3*cos(d*x+c)^8+5/3/si n(d*x+c)*cos(d*x+c)^8+5/3*(16/5+cos(d*x+c)^6+6/5*cos(d*x+c)^4+8/5*cos(d*x+ c)^2)*sin(d*x+c)))
Time = 0.11 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.18 \[ \int \cos ^3(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x)) \, dx=-\frac {32 \, a \cos \left (d x + c\right )^{6} + 192 \, a \cos \left (d x + c\right )^{4} - 768 \, a \cos \left (d x + c\right )^{2} + 288 \, {\left (a \cos \left (d x + c\right )^{2} - a\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) \sin \left (d x + c\right ) + 3 \, {\left (8 \, a \cos \left (d x + c\right )^{6} + 24 \, a \cos \left (d x + c\right )^{4} - 51 \, a \cos \left (d x + c\right )^{2} + 3 \, a\right )} \sin \left (d x + c\right ) + 512 \, a}{96 \, {\left (d \cos \left (d x + c\right )^{2} - d\right )} \sin \left (d x + c\right )} \] Input:
integrate(cos(d*x+c)^3*cot(d*x+c)^4*(a+a*sin(d*x+c)),x, algorithm="fricas" )
Output:
-1/96*(32*a*cos(d*x + c)^6 + 192*a*cos(d*x + c)^4 - 768*a*cos(d*x + c)^2 + 288*(a*cos(d*x + c)^2 - a)*log(1/2*sin(d*x + c))*sin(d*x + c) + 3*(8*a*co s(d*x + c)^6 + 24*a*cos(d*x + c)^4 - 51*a*cos(d*x + c)^2 + 3*a)*sin(d*x + c) + 512*a)/((d*cos(d*x + c)^2 - d)*sin(d*x + c))
\[ \int \cos ^3(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x)) \, dx=a \left (\int \cos ^{3}{\left (c + d x \right )} \cot ^{4}{\left (c + d x \right )}\, dx + \int \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )} \cot ^{4}{\left (c + d x \right )}\, dx\right ) \] Input:
integrate(cos(d*x+c)**3*cot(d*x+c)**4*(a+a*sin(d*x+c)),x)
Output:
a*(Integral(cos(c + d*x)**3*cot(c + d*x)**4, x) + Integral(sin(c + d*x)*co s(c + d*x)**3*cot(c + d*x)**4, x))
Time = 0.03 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.78 \[ \int \cos ^3(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x)) \, dx=-\frac {3 \, a \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 18 \, a \sin \left (d x + c\right )^{2} + 36 \, a \log \left (\sin \left (d x + c\right )\right ) - 36 \, a \sin \left (d x + c\right ) - \frac {2 \, {\left (18 \, a \sin \left (d x + c\right )^{2} - 3 \, a \sin \left (d x + c\right ) - 2 \, a\right )}}{\sin \left (d x + c\right )^{3}}}{12 \, d} \] Input:
integrate(cos(d*x+c)^3*cot(d*x+c)^4*(a+a*sin(d*x+c)),x, algorithm="maxima" )
Output:
-1/12*(3*a*sin(d*x + c)^4 + 4*a*sin(d*x + c)^3 - 18*a*sin(d*x + c)^2 + 36* a*log(sin(d*x + c)) - 36*a*sin(d*x + c) - 2*(18*a*sin(d*x + c)^2 - 3*a*sin (d*x + c) - 2*a)/sin(d*x + c)^3)/d
Time = 0.13 (sec) , antiderivative size = 93, normalized size of antiderivative = 0.79 \[ \int \cos ^3(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x)) \, dx=-\frac {3 \, a \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 18 \, a \sin \left (d x + c\right )^{2} + 36 \, a \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) - 36 \, a \sin \left (d x + c\right ) - \frac {2 \, {\left (18 \, a \sin \left (d x + c\right )^{2} - 3 \, a \sin \left (d x + c\right ) - 2 \, a\right )}}{\sin \left (d x + c\right )^{3}}}{12 \, d} \] Input:
integrate(cos(d*x+c)^3*cot(d*x+c)^4*(a+a*sin(d*x+c)),x, algorithm="giac")
Output:
-1/12*(3*a*sin(d*x + c)^4 + 4*a*sin(d*x + c)^3 - 18*a*sin(d*x + c)^2 + 36* a*log(abs(sin(d*x + c))) - 36*a*sin(d*x + c) - 2*(18*a*sin(d*x + c)^2 - 3* a*sin(d*x + c) - 2*a)/sin(d*x + c)^3)/d
Time = 34.64 (sec) , antiderivative size = 300, normalized size of antiderivative = 2.54 \[ \int \cos ^3(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x)) \, dx=\frac {11\,a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8\,d}+\frac {3\,a\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d}-\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,d}-\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{24\,d}-\frac {3\,a\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}+\frac {59\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+47\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\frac {499\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{3}+60\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\frac {562\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{3}+42\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+90\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-4\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\frac {29\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{3}-a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-\frac {a}{3}}{d\,\left (8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+32\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+48\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+32\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\right )} \] Input:
int(cos(c + d*x)^3*cot(c + d*x)^4*(a + a*sin(c + d*x)),x)
Output:
(11*a*tan(c/2 + (d*x)/2))/(8*d) + (3*a*log(tan(c/2 + (d*x)/2)^2 + 1))/d - (a*tan(c/2 + (d*x)/2)^2)/(8*d) - (a*tan(c/2 + (d*x)/2)^3)/(24*d) - (3*a*lo g(tan(c/2 + (d*x)/2)))/d + ((29*a*tan(c/2 + (d*x)/2)^2)/3 - a*tan(c/2 + (d *x)/2) - a/3 - 4*a*tan(c/2 + (d*x)/2)^3 + 90*a*tan(c/2 + (d*x)/2)^4 + 42*a *tan(c/2 + (d*x)/2)^5 + (562*a*tan(c/2 + (d*x)/2)^6)/3 + 60*a*tan(c/2 + (d *x)/2)^7 + (499*a*tan(c/2 + (d*x)/2)^8)/3 + 47*a*tan(c/2 + (d*x)/2)^9 + 59 *a*tan(c/2 + (d*x)/2)^10)/(d*(8*tan(c/2 + (d*x)/2)^3 + 32*tan(c/2 + (d*x)/ 2)^5 + 48*tan(c/2 + (d*x)/2)^7 + 32*tan(c/2 + (d*x)/2)^9 + 8*tan(c/2 + (d* x)/2)^11))
Time = 0.16 (sec) , antiderivative size = 128, normalized size of antiderivative = 1.08 \[ \int \cos ^3(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x)) \, dx=\frac {a \left (36 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right ) \sin \left (d x +c \right )^{3}-36 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sin \left (d x +c \right )^{3}-3 \sin \left (d x +c \right )^{7}-4 \sin \left (d x +c \right )^{6}+18 \sin \left (d x +c \right )^{5}+36 \sin \left (d x +c \right )^{4}+9 \sin \left (d x +c \right )^{3}+36 \sin \left (d x +c \right )^{2}-6 \sin \left (d x +c \right )-4\right )}{12 \sin \left (d x +c \right )^{3} d} \] Input:
int(cos(d*x+c)^3*cot(d*x+c)^4*(a+a*sin(d*x+c)),x)
Output:
(a*(36*log(tan((c + d*x)/2)**2 + 1)*sin(c + d*x)**3 - 36*log(tan((c + d*x) /2))*sin(c + d*x)**3 - 3*sin(c + d*x)**7 - 4*sin(c + d*x)**6 + 18*sin(c + d*x)**5 + 36*sin(c + d*x)**4 + 9*sin(c + d*x)**3 + 36*sin(c + d*x)**2 - 6* sin(c + d*x) - 4))/(12*sin(c + d*x)**3*d)