Integrand size = 27, antiderivative size = 73 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {x}{a^2}-\frac {\text {arctanh}(\cos (c+d x))}{a^2 d}+\frac {\cos (c+d x)}{a^2 d}-\frac {\cos ^3(c+d x)}{3 a^2 d}-\frac {\cos (c+d x) \sin (c+d x)}{a^2 d} \] Output:
-x/a^2-arctanh(cos(d*x+c))/a^2/d+cos(d*x+c)/a^2/d-1/3*cos(d*x+c)^3/a^2/d-c os(d*x+c)*sin(d*x+c)/a^2/d
Time = 1.35 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.95 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {-9 \cos (c+d x)+\cos (3 (c+d x))+6 \left (2 \left (c+d x+\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )+\sin (2 (c+d x))\right )}{12 a^2 d} \] Input:
Integrate[(Cos[c + d*x]^5*Cot[c + d*x])/(a + a*Sin[c + d*x])^2,x]
Output:
-1/12*(-9*Cos[c + d*x] + Cos[3*(c + d*x)] + 6*(2*(c + d*x + Log[Cos[(c + d *x)/2]] - Log[Sin[(c + d*x)/2]]) + Sin[2*(c + d*x)]))/(a^2*d)
Time = 0.47 (sec) , antiderivative size = 77, normalized size of antiderivative = 1.05, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3042, 3354, 3042, 3352, 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 \frac {\cos ^5(c+d x) \cot (c+d x)}{(a \sin (c+d x)+a)^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^6}{\sin (c+d x) (a \sin (c+d x)+a)^2}dx\) |
\(\Big \downarrow \) 3354 |
\(\displaystyle \frac {\int \cos (c+d x) \cot (c+d x) (a-a \sin (c+d x))^2dx}{a^4}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\cos (c+d x)^2 (a-a \sin (c+d x))^2}{\sin (c+d x)}dx}{a^4}\) |
\(\Big \downarrow \) 3352 |
\(\displaystyle \frac {\int \left (-2 \cos ^2(c+d x) a^2+\cos (c+d x) \cot (c+d x) a^2+\cos ^2(c+d x) \sin (c+d x) a^2\right )dx}{a^4}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-\frac {a^2 \text {arctanh}(\cos (c+d x))}{d}-\frac {a^2 \cos ^3(c+d x)}{3 d}+\frac {a^2 \cos (c+d x)}{d}-\frac {a^2 \sin (c+d x) \cos (c+d x)}{d}-a^2 x}{a^4}\) |
Input:
Int[(Cos[c + d*x]^5*Cot[c + d*x])/(a + a*Sin[c + d*x])^2,x]
Output:
(-(a^2*x) - (a^2*ArcTanh[Cos[c + d*x]])/d + (a^2*Cos[c + d*x])/d - (a^2*Co s[c + d*x]^3)/(3*d) - (a^2*Cos[c + d*x]*Sin[c + d*x])/d)/a^4
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Int[ExpandTrig [(g*cos[e + f*x])^p, (d*sin[e + f*x])^n*(a + b*sin[e + f*x])^m, x], x] /; F reeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && IGtQ[m, 0]
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(a/g)^(2* m) Int[(g*Cos[e + f*x])^(2*m + p)*((d*Sin[e + f*x])^n/(a - b*Sin[e + f*x] )^m), x], x] /; FreeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && ILtQ[m, 0]
Time = 1.19 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.19
method | result | size |
derivativedivides | \(\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {4 \left (-\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{2}-\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}-\frac {1}{3}\right )}{\left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{3}}-2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,a^{2}}\) | \(87\) |
default | \(\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {4 \left (-\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{2}-\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}-\frac {1}{3}\right )}{\left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{3}}-2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,a^{2}}\) | \(87\) |
risch | \(-\frac {x}{a^{2}}+\frac {3 \,{\mathrm e}^{i \left (d x +c \right )}}{8 d \,a^{2}}+\frac {3 \,{\mathrm e}^{-i \left (d x +c \right )}}{8 d \,a^{2}}-\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{d \,a^{2}}+\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{d \,a^{2}}-\frac {\cos \left (3 d x +3 c \right )}{12 d \,a^{2}}-\frac {\sin \left (2 d x +2 c \right )}{2 d \,a^{2}}\) | \(115\) |
Input:
int(cos(d*x+c)^5*cot(d*x+c)/(a+a*sin(d*x+c))^2,x,method=_RETURNVERBOSE)
Output:
1/d/a^2*(ln(tan(1/2*d*x+1/2*c))-4*(-1/2*tan(1/2*d*x+1/2*c)^5-tan(1/2*d*x+1 /2*c)^2+1/2*tan(1/2*d*x+1/2*c)-1/3)/(1+tan(1/2*d*x+1/2*c)^2)^3-2*arctan(ta n(1/2*d*x+1/2*c)))
Time = 0.10 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.97 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {2 \, \cos \left (d x + c\right )^{3} + 6 \, d x + 6 \, \cos \left (d x + c\right ) \sin \left (d x + c\right ) - 6 \, \cos \left (d x + c\right ) + 3 \, \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) - 3 \, \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right )}{6 \, a^{2} d} \] Input:
integrate(cos(d*x+c)^5*cot(d*x+c)/(a+a*sin(d*x+c))^2,x, algorithm="fricas" )
Output:
-1/6*(2*cos(d*x + c)^3 + 6*d*x + 6*cos(d*x + c)*sin(d*x + c) - 6*cos(d*x + c) + 3*log(1/2*cos(d*x + c) + 1/2) - 3*log(-1/2*cos(d*x + c) + 1/2))/(a^2 *d)
Timed out. \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)**5*cot(d*x+c)/(a+a*sin(d*x+c))**2,x)
Output:
Timed out
Leaf count of result is larger than twice the leaf count of optimal. 188 vs. \(2 (71) = 142\).
Time = 0.14 (sec) , antiderivative size = 188, normalized size of antiderivative = 2.58 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\frac {2 \, {\left (\frac {3 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {6 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {3 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - 2\right )}}{a^{2} + \frac {3 \, a^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {3 \, a^{2} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {a^{2} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}}} + \frac {6 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}} - \frac {3 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}}}{3 \, d} \] Input:
integrate(cos(d*x+c)^5*cot(d*x+c)/(a+a*sin(d*x+c))^2,x, algorithm="maxima" )
Output:
-1/3*(2*(3*sin(d*x + c)/(cos(d*x + c) + 1) - 6*sin(d*x + c)^2/(cos(d*x + c ) + 1)^2 - 3*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 - 2)/(a^2 + 3*a^2*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 3*a^2*sin(d*x + c)^4/(cos(d*x + c) + 1)^4 + a^2*sin(d*x + c)^6/(cos(d*x + c) + 1)^6) + 6*arctan(sin(d*x + c)/(cos(d*x + c) + 1))/a^2 - 3*log(sin(d*x + c)/(cos(d*x + c) + 1))/a^2)/d
Time = 0.16 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.25 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\frac {3 \, {\left (d x + c\right )}}{a^{2}} - \frac {3 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{2}} - \frac {2 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 6 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{3} a^{2}}}{3 \, d} \] Input:
integrate(cos(d*x+c)^5*cot(d*x+c)/(a+a*sin(d*x+c))^2,x, algorithm="giac")
Output:
-1/3*(3*(d*x + c)/a^2 - 3*log(abs(tan(1/2*d*x + 1/2*c)))/a^2 - 2*(3*tan(1/ 2*d*x + 1/2*c)^5 + 6*tan(1/2*d*x + 1/2*c)^2 - 3*tan(1/2*d*x + 1/2*c) + 2)/ ((tan(1/2*d*x + 1/2*c)^2 + 1)^3*a^2))/d
Time = 32.88 (sec) , antiderivative size = 167, normalized size of antiderivative = 2.29 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {2\,\mathrm {atan}\left (\frac {4}{4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+4}-\frac {4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+4}\right )}{a^2\,d}+\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^2\,d}+\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+\frac {4}{3}}{d\,\left (a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+a^2\right )} \] Input:
int((cos(c + d*x)^5*cot(c + d*x))/(a + a*sin(c + d*x))^2,x)
Output:
(2*atan(4/(4*tan(c/2 + (d*x)/2) + 4) - (4*tan(c/2 + (d*x)/2))/(4*tan(c/2 + (d*x)/2) + 4)))/(a^2*d) + log(tan(c/2 + (d*x)/2))/(a^2*d) + (4*tan(c/2 + (d*x)/2)^2 - 2*tan(c/2 + (d*x)/2) + 2*tan(c/2 + (d*x)/2)^5 + 4/3)/(d*(3*a^ 2*tan(c/2 + (d*x)/2)^2 + 3*a^2*tan(c/2 + (d*x)/2)^4 + a^2*tan(c/2 + (d*x)/ 2)^6 + a^2))
Time = 16.26 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.90 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )^{2}-3 \cos \left (d x +c \right ) \sin \left (d x +c \right )+2 \cos \left (d x +c \right )+3 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-3 c -3 d x -2}{3 a^{2} d} \] Input:
int(cos(d*x+c)^5*cot(d*x+c)/(a+a*sin(d*x+c))^2,x)
Output:
(cos(c + d*x)*sin(c + d*x)**2 - 3*cos(c + d*x)*sin(c + d*x) + 2*cos(c + d* x) + 3*log(tan((c + d*x)/2)) - 3*c - 3*d*x - 2)/(3*a**2*d)