Integrand size = 29, antiderivative size = 54 \[ \int \frac {\cos ^2(c+d x) \cot ^2(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {3 \text {arctanh}(\cos (c+d x))}{a^3 d}-\frac {\cot (c+d x)}{a^3 d}-\frac {4 \cos (c+d x)}{a^3 d (1+\sin (c+d x))} \] Output:
3*arctanh(cos(d*x+c))/a^3/d-cot(d*x+c)/a^3/d-4*cos(d*x+c)/a^3/d/(1+sin(d*x +c))
Leaf count is larger than twice the leaf count of optimal. \(156\) vs. \(2(54)=108\).
Time = 1.36 (sec) , antiderivative size = 156, normalized size of antiderivative = 2.89 \[ \int \frac {\cos ^2(c+d x) \cot ^2(c+d x)}{(a+a \sin (c+d x))^3} \, dx=-\frac {\left (\cos \left (\frac {1}{2} (c+d x)\right ) \left (-17+\cot ^2\left (\frac {1}{2} (c+d x)\right )-6 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )+6 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )+\cot \left (\frac {1}{2} (c+d x)\right ) \left (1-6 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )+6 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^5 \tan \left (\frac {1}{2} (c+d x)\right )}{2 a^3 d (1+\sin (c+d x))^3} \] Input:
Integrate[(Cos[c + d*x]^2*Cot[c + d*x]^2)/(a + a*Sin[c + d*x])^3,x]
Output:
-1/2*((Cos[(c + d*x)/2]*(-17 + Cot[(c + d*x)/2]^2 - 6*Log[Cos[(c + d*x)/2] ] + 6*Log[Sin[(c + d*x)/2]] + Cot[(c + d*x)/2]*(1 - 6*Log[Cos[(c + d*x)/2] ] + 6*Log[Sin[(c + d*x)/2]])) - Sin[(c + d*x)/2])*(Cos[(c + d*x)/2] + Sin[ (c + d*x)/2])^5*Tan[(c + d*x)/2])/(a^3*d*(1 + Sin[c + d*x])^3)
Time = 0.48 (sec) , antiderivative size = 52, normalized size of antiderivative = 0.96, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {3042, 3354, 3042, 3351, 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 ^2(c+d x) \cot ^2(c+d x)}{(a \sin (c+d x)+a)^3} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^4}{\sin (c+d x)^2 (a \sin (c+d x)+a)^3}dx\) |
\(\Big \downarrow \) 3354 |
\(\displaystyle \frac {\int \csc ^2(c+d x) \sec ^2(c+d x) (a-a \sin (c+d x))^3dx}{a^6}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {(a-a \sin (c+d x))^3}{\cos (c+d x)^2 \sin (c+d x)^2}dx}{a^6}\) |
\(\Big \downarrow \) 3351 |
\(\displaystyle \frac {\int \left (a \csc ^2(c+d x)-3 a \csc (c+d x)+\frac {4 a}{\sin (c+d x)+1}\right )dx}{a^4}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\frac {3 a \text {arctanh}(\cos (c+d x))}{d}-\frac {a \cot (c+d x)}{d}-\frac {4 a \cos (c+d x)}{d (\sin (c+d x)+1)}}{a^4}\) |
Input:
Int[(Cos[c + d*x]^2*Cot[c + d*x]^2)/(a + a*Sin[c + d*x])^3,x]
Output:
((3*a*ArcTanh[Cos[c + d*x]])/d - (a*Cot[c + d*x])/d - (4*a*Cos[c + d*x])/( d*(1 + Sin[c + d*x])))/a^4
Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[1/a^p Int[Expan dTrig[(d*sin[e + f*x])^n*(a - b*sin[e + f*x])^(p/2)*(a + b*sin[e + f*x])^(m + p/2), x], x], x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && In tegersQ[m, n, p/2] && ((GtQ[m, 0] && GtQ[p, 0] && LtQ[-m - p, n, -1]) || (G tQ[m, 2] && LtQ[p, 0] && GtQ[m + p/2, 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.42 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.09
method | result | size |
derivativedivides | \(\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-6 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {16}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}}{2 d \,a^{3}}\) | \(59\) |
default | \(\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-6 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {16}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}}{2 d \,a^{3}}\) | \(59\) |
risch | \(-\frac {2 \left (-5+i {\mathrm e}^{i \left (d x +c \right )}+4 \,{\mathrm e}^{2 i \left (d x +c \right )}\right )}{\left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right ) \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) a^{3} d}-\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{d \,a^{3}}+\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{d \,a^{3}}\) | \(102\) |
Input:
int(cos(d*x+c)^2*cot(d*x+c)^2/(a+a*sin(d*x+c))^3,x,method=_RETURNVERBOSE)
Output:
1/2/d/a^3*(tan(1/2*d*x+1/2*c)-1/tan(1/2*d*x+1/2*c)-6*ln(tan(1/2*d*x+1/2*c) )-16/(tan(1/2*d*x+1/2*c)+1))
Leaf count of result is larger than twice the leaf count of optimal. 165 vs. \(2 (54) = 108\).
Time = 0.08 (sec) , antiderivative size = 165, normalized size of antiderivative = 3.06 \[ \int \frac {\cos ^2(c+d x) \cot ^2(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {10 \, \cos \left (d x + c\right )^{2} + 3 \, {\left (\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 1\right )} \sin \left (d x + c\right ) - 1\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) - 3 \, {\left (\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 1\right )} \sin \left (d x + c\right ) - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 2 \, {\left (5 \, \cos \left (d x + c\right ) + 4\right )} \sin \left (d x + c\right ) + 2 \, \cos \left (d x + c\right ) - 8}{2 \, {\left (a^{3} d \cos \left (d x + c\right )^{2} - a^{3} d - {\left (a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )} \sin \left (d x + c\right )\right )}} \] Input:
integrate(cos(d*x+c)^2*cot(d*x+c)^2/(a+a*sin(d*x+c))^3,x, algorithm="frica s")
Output:
1/2*(10*cos(d*x + c)^2 + 3*(cos(d*x + c)^2 - (cos(d*x + c) + 1)*sin(d*x + c) - 1)*log(1/2*cos(d*x + c) + 1/2) - 3*(cos(d*x + c)^2 - (cos(d*x + c) + 1)*sin(d*x + c) - 1)*log(-1/2*cos(d*x + c) + 1/2) + 2*(5*cos(d*x + c) + 4) *sin(d*x + c) + 2*cos(d*x + c) - 8)/(a^3*d*cos(d*x + c)^2 - a^3*d - (a^3*d *cos(d*x + c) + a^3*d)*sin(d*x + c))
\[ \int \frac {\cos ^2(c+d x) \cot ^2(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {\int \frac {\cos ^{2}{\left (c + d x \right )} \cot ^{2}{\left (c + d x \right )}}{\sin ^{3}{\left (c + d x \right )} + 3 \sin ^{2}{\left (c + d x \right )} + 3 \sin {\left (c + d x \right )} + 1}\, dx}{a^{3}} \] Input:
integrate(cos(d*x+c)**2*cot(d*x+c)**2/(a+a*sin(d*x+c))**3,x)
Output:
Integral(cos(c + d*x)**2*cot(c + d*x)**2/(sin(c + d*x)**3 + 3*sin(c + d*x) **2 + 3*sin(c + d*x) + 1), x)/a**3
Leaf count of result is larger than twice the leaf count of optimal. 116 vs. \(2 (54) = 108\).
Time = 0.04 (sec) , antiderivative size = 116, normalized size of antiderivative = 2.15 \[ \int \frac {\cos ^2(c+d x) \cot ^2(c+d x)}{(a+a \sin (c+d x))^3} \, dx=-\frac {\frac {\frac {17 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1}{\frac {a^{3} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {a^{3} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}} + \frac {6 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{3}} - \frac {\sin \left (d x + c\right )}{a^{3} {\left (\cos \left (d x + c\right ) + 1\right )}}}{2 \, d} \] Input:
integrate(cos(d*x+c)^2*cot(d*x+c)^2/(a+a*sin(d*x+c))^3,x, algorithm="maxim a")
Output:
-1/2*((17*sin(d*x + c)/(cos(d*x + c) + 1) + 1)/(a^3*sin(d*x + c)/(cos(d*x + c) + 1) + a^3*sin(d*x + c)^2/(cos(d*x + c) + 1)^2) + 6*log(sin(d*x + c)/ (cos(d*x + c) + 1))/a^3 - sin(d*x + c)/(a^3*(cos(d*x + c) + 1)))/d
Time = 0.19 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.67 \[ \int \frac {\cos ^2(c+d x) \cot ^2(c+d x)}{(a+a \sin (c+d x))^3} \, dx=-\frac {\frac {6 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{3}} - \frac {\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{3}} - \frac {3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 14 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} a^{3}}}{2 \, d} \] Input:
integrate(cos(d*x+c)^2*cot(d*x+c)^2/(a+a*sin(d*x+c))^3,x, algorithm="giac" )
Output:
-1/2*(6*log(abs(tan(1/2*d*x + 1/2*c)))/a^3 - tan(1/2*d*x + 1/2*c)/a^3 - (3 *tan(1/2*d*x + 1/2*c)^2 - 14*tan(1/2*d*x + 1/2*c) - 1)/((tan(1/2*d*x + 1/2 *c)^2 + tan(1/2*d*x + 1/2*c))*a^3))/d
Time = 17.59 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.61 \[ \int \frac {\cos ^2(c+d x) \cot ^2(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2\,a^3\,d}-\frac {17\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1}{d\,\left (2\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+2\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}-\frac {3\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^3\,d} \] Input:
int((cos(c + d*x)^2*cot(c + d*x)^2)/(a + a*sin(c + d*x))^3,x)
Output:
tan(c/2 + (d*x)/2)/(2*a^3*d) - (17*tan(c/2 + (d*x)/2) + 1)/(d*(2*a^3*tan(c /2 + (d*x)/2)^2 + 2*a^3*tan(c/2 + (d*x)/2))) - (3*log(tan(c/2 + (d*x)/2))) /(a^3*d)
Time = 0.17 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.89 \[ \int \frac {\cos ^2(c+d x) \cot ^2(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {-6 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-6 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}+18 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right ) a^{3} d \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )} \] Input:
int(cos(d*x+c)^2*cot(d*x+c)^2/(a+a*sin(d*x+c))^3,x)
Output:
( - 6*log(tan((c + d*x)/2))*tan((c + d*x)/2)**2 - 6*log(tan((c + d*x)/2))* tan((c + d*x)/2) + tan((c + d*x)/2)**3 + 18*tan((c + d*x)/2)**2 - 1)/(2*ta n((c + d*x)/2)*a**3*d*(tan((c + d*x)/2) + 1))