Integrand size = 29, antiderivative size = 153 \[ \int \cos ^2(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {5 a^2 x}{8}+\frac {5 a^2 \text {arctanh}(\cos (c+d x))}{d}-\frac {4 a^2 \cos (c+d x)}{d}-\frac {2 a^2 \cos ^3(c+d x)}{3 d}+\frac {a^2 \cot (c+d x)}{d}-\frac {a^2 \cot ^3(c+d x)}{3 d}-\frac {a^2 \cot (c+d x) \csc (c+d x)}{d}-\frac {5 a^2 \cos (c+d x) \sin (c+d x)}{8 d}+\frac {a^2 \cos (c+d x) \sin ^3(c+d x)}{4 d} \] Output:
5/8*a^2*x+5*a^2*arctanh(cos(d*x+c))/d-4*a^2*cos(d*x+c)/d-2/3*a^2*cos(d*x+c )^3/d+a^2*cot(d*x+c)/d-1/3*a^2*cot(d*x+c)^3/d-a^2*cot(d*x+c)*csc(d*x+c)/d- 5/8*a^2*cos(d*x+c)*sin(d*x+c)/d+1/4*a^2*cos(d*x+c)*sin(d*x+c)^3/d
Time = 9.83 (sec) , antiderivative size = 209, normalized size of antiderivative = 1.37 \[ \int \cos ^2(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {a^2 (1+\sin (c+d x))^2 \left (60 (c+d x)-432 \cos (c+d x)-16 \cos (3 (c+d x))+64 \cot \left (\frac {1}{2} (c+d x)\right )-24 \csc ^2\left (\frac {1}{2} (c+d x)\right )+480 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )-480 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )+24 \sec ^2\left (\frac {1}{2} (c+d x)\right )+32 \csc ^3(c+d x) \sin ^4\left (\frac {1}{2} (c+d x)\right )-2 \csc ^4\left (\frac {1}{2} (c+d x)\right ) \sin (c+d x)-24 \sin (2 (c+d x))-3 \sin (4 (c+d x))-64 \tan \left (\frac {1}{2} (c+d x)\right )\right )}{96 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^4} \] Input:
Integrate[Cos[c + d*x]^2*Cot[c + d*x]^4*(a + a*Sin[c + d*x])^2,x]
Output:
(a^2*(1 + Sin[c + d*x])^2*(60*(c + d*x) - 432*Cos[c + d*x] - 16*Cos[3*(c + d*x)] + 64*Cot[(c + d*x)/2] - 24*Csc[(c + d*x)/2]^2 + 480*Log[Cos[(c + d* x)/2]] - 480*Log[Sin[(c + d*x)/2]] + 24*Sec[(c + d*x)/2]^2 + 32*Csc[c + d* x]^3*Sin[(c + d*x)/2]^4 - 2*Csc[(c + d*x)/2]^4*Sin[c + d*x] - 24*Sin[2*(c + d*x)] - 3*Sin[4*(c + d*x)] - 64*Tan[(c + d*x)/2]))/(96*d*(Cos[(c + d*x)/ 2] + Sin[(c + d*x)/2])^4)
Time = 0.47 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.03, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {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 \cos ^2(c+d x) \cot ^4(c+d x) (a \sin (c+d x)+a)^2 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^6 (a \sin (c+d x)+a)^2}{\sin (c+d x)^4}dx\) |
\(\Big \downarrow \) 3351 |
\(\displaystyle \frac {\int \left (\csc ^4(c+d x) a^8-\sin ^4(c+d x) a^8+2 \csc ^3(c+d x) a^8-2 \sin ^3(c+d x) a^8-2 \csc ^2(c+d x) a^8+2 \sin ^2(c+d x) a^8-6 \csc (c+d x) a^8+6 \sin (c+d x) a^8\right )dx}{a^6}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\frac {5 a^8 \text {arctanh}(\cos (c+d x))}{d}-\frac {2 a^8 \cos ^3(c+d x)}{3 d}-\frac {4 a^8 \cos (c+d x)}{d}-\frac {a^8 \cot ^3(c+d x)}{3 d}+\frac {a^8 \cot (c+d x)}{d}+\frac {a^8 \sin ^3(c+d x) \cos (c+d x)}{4 d}-\frac {5 a^8 \sin (c+d x) \cos (c+d x)}{8 d}-\frac {a^8 \cot (c+d x) \csc (c+d x)}{d}+\frac {5 a^8 x}{8}}{a^6}\) |
Input:
Int[Cos[c + d*x]^2*Cot[c + d*x]^4*(a + a*Sin[c + d*x])^2,x]
Output:
((5*a^8*x)/8 + (5*a^8*ArcTanh[Cos[c + d*x]])/d - (4*a^8*Cos[c + d*x])/d - (2*a^8*Cos[c + d*x]^3)/(3*d) + (a^8*Cot[c + d*x])/d - (a^8*Cot[c + d*x]^3) /(3*d) - (a^8*Cot[c + d*x]*Csc[c + d*x])/d - (5*a^8*Cos[c + d*x]*Sin[c + d *x])/(8*d) + (a^8*Cos[c + d*x]*Sin[c + d*x]^3)/(4*d))/a^6
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]))
Time = 5.05 (sec) , antiderivative size = 224, normalized size of antiderivative = 1.46
method | result | size |
derivativedivides | \(\frac {a^{2} \left (-\frac {\cos \left (d x +c \right )^{7}}{\sin \left (d x +c \right )}-\left (\cos \left (d x +c \right )^{5}+\frac {5 \cos \left (d x +c \right )^{3}}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )-\frac {15 d x}{8}-\frac {15 c}{8}\right )+2 a^{2} \left (-\frac {\cos \left (d x +c \right )^{7}}{2 \sin \left (d x +c \right )^{2}}-\frac {\cos \left (d x +c \right )^{5}}{2}-\frac {5 \cos \left (d x +c \right )^{3}}{6}-\frac {5 \cos \left (d x +c \right )}{2}-\frac {5 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{2}\right )+a^{2} \left (-\frac {\cos \left (d x +c \right )^{7}}{3 \sin \left (d x +c \right )^{3}}+\frac {4 \cos \left (d x +c \right )^{7}}{3 \sin \left (d x +c \right )}+\frac {4 \left (\cos \left (d x +c \right )^{5}+\frac {5 \cos \left (d x +c \right )^{3}}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{3}+\frac {5 d x}{2}+\frac {5 c}{2}\right )}{d}\) | \(224\) |
default | \(\frac {a^{2} \left (-\frac {\cos \left (d x +c \right )^{7}}{\sin \left (d x +c \right )}-\left (\cos \left (d x +c \right )^{5}+\frac {5 \cos \left (d x +c \right )^{3}}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )-\frac {15 d x}{8}-\frac {15 c}{8}\right )+2 a^{2} \left (-\frac {\cos \left (d x +c \right )^{7}}{2 \sin \left (d x +c \right )^{2}}-\frac {\cos \left (d x +c \right )^{5}}{2}-\frac {5 \cos \left (d x +c \right )^{3}}{6}-\frac {5 \cos \left (d x +c \right )}{2}-\frac {5 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{2}\right )+a^{2} \left (-\frac {\cos \left (d x +c \right )^{7}}{3 \sin \left (d x +c \right )^{3}}+\frac {4 \cos \left (d x +c \right )^{7}}{3 \sin \left (d x +c \right )}+\frac {4 \left (\cos \left (d x +c \right )^{5}+\frac {5 \cos \left (d x +c \right )^{3}}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{3}+\frac {5 d x}{2}+\frac {5 c}{2}\right )}{d}\) | \(224\) |
risch | \(\frac {5 a^{2} x}{8}+\frac {i a^{2} {\mathrm e}^{4 i \left (d x +c \right )}}{64 d}+\frac {i a^{2} {\mathrm e}^{2 i \left (d x +c \right )}}{8 d}-\frac {9 a^{2} {\mathrm e}^{i \left (d x +c \right )}}{4 d}-\frac {9 a^{2} {\mathrm e}^{-i \left (d x +c \right )}}{4 d}-\frac {i a^{2} {\mathrm e}^{-2 i \left (d x +c \right )}}{8 d}-\frac {i a^{2} {\mathrm e}^{-4 i \left (d x +c \right )}}{64 d}+\frac {2 a^{2} \left (6 i {\mathrm e}^{4 i \left (d x +c \right )}+3 \,{\mathrm e}^{5 i \left (d x +c \right )}-6 i {\mathrm e}^{2 i \left (d x +c \right )}+4 i-3 \,{\mathrm e}^{i \left (d x +c \right )}\right )}{3 d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{3}}-\frac {5 a^{2} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{d}+\frac {5 a^{2} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{d}-\frac {a^{2} \cos \left (3 d x +3 c \right )}{6 d}\) | \(241\) |
Input:
int(cos(d*x+c)^2*cot(d*x+c)^4*(a+a*sin(d*x+c))^2,x,method=_RETURNVERBOSE)
Output:
1/d*(a^2*(-1/sin(d*x+c)*cos(d*x+c)^7-(cos(d*x+c)^5+5/4*cos(d*x+c)^3+15/8*c os(d*x+c))*sin(d*x+c)-15/8*d*x-15/8*c)+2*a^2*(-1/2/sin(d*x+c)^2*cos(d*x+c) ^7-1/2*cos(d*x+c)^5-5/6*cos(d*x+c)^3-5/2*cos(d*x+c)-5/2*ln(csc(d*x+c)-cot( d*x+c)))+a^2*(-1/3/sin(d*x+c)^3*cos(d*x+c)^7+4/3/sin(d*x+c)*cos(d*x+c)^7+4 /3*(cos(d*x+c)^5+5/4*cos(d*x+c)^3+15/8*cos(d*x+c))*sin(d*x+c)+5/2*d*x+5/2* c))
Time = 0.10 (sec) , antiderivative size = 219, normalized size of antiderivative = 1.43 \[ \int \cos ^2(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {6 \, a^{2} \cos \left (d x + c\right )^{7} - 3 \, a^{2} \cos \left (d x + c\right )^{5} + 20 \, a^{2} \cos \left (d x + c\right )^{3} - 15 \, a^{2} \cos \left (d x + c\right ) + 60 \, {\left (a^{2} \cos \left (d x + c\right )^{2} - a^{2}\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) - 60 \, {\left (a^{2} \cos \left (d x + c\right )^{2} - a^{2}\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) - {\left (16 \, a^{2} \cos \left (d x + c\right )^{5} - 15 \, a^{2} d x \cos \left (d x + c\right )^{2} + 80 \, a^{2} \cos \left (d x + c\right )^{3} + 15 \, a^{2} d x - 120 \, a^{2} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{24 \, {\left (d \cos \left (d x + c\right )^{2} - d\right )} \sin \left (d x + c\right )} \] Input:
integrate(cos(d*x+c)^2*cot(d*x+c)^4*(a+a*sin(d*x+c))^2,x, algorithm="frica s")
Output:
1/24*(6*a^2*cos(d*x + c)^7 - 3*a^2*cos(d*x + c)^5 + 20*a^2*cos(d*x + c)^3 - 15*a^2*cos(d*x + c) + 60*(a^2*cos(d*x + c)^2 - a^2)*log(1/2*cos(d*x + c) + 1/2)*sin(d*x + c) - 60*(a^2*cos(d*x + c)^2 - a^2)*log(-1/2*cos(d*x + c) + 1/2)*sin(d*x + c) - (16*a^2*cos(d*x + c)^5 - 15*a^2*d*x*cos(d*x + c)^2 + 80*a^2*cos(d*x + c)^3 + 15*a^2*d*x - 120*a^2*cos(d*x + c))*sin(d*x + c)) /((d*cos(d*x + c)^2 - d)*sin(d*x + c))
\[ \int \cos ^2(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^2 \, dx=a^{2} \left (\int \cos ^{2}{\left (c + d x \right )} \cot ^{4}{\left (c + d x \right )}\, dx + \int 2 \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )} \cot ^{4}{\left (c + d x \right )}\, dx + \int \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )} \cot ^{4}{\left (c + d x \right )}\, dx\right ) \] Input:
integrate(cos(d*x+c)**2*cot(d*x+c)**4*(a+a*sin(d*x+c))**2,x)
Output:
a**2*(Integral(cos(c + d*x)**2*cot(c + d*x)**4, x) + Integral(2*sin(c + d* x)*cos(c + d*x)**2*cot(c + d*x)**4, x) + Integral(sin(c + d*x)**2*cos(c + d*x)**2*cot(c + d*x)**4, x))
Time = 0.12 (sec) , antiderivative size = 190, normalized size of antiderivative = 1.24 \[ \int \cos ^2(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^2 \, dx=-\frac {4 \, {\left (4 \, \cos \left (d x + c\right )^{3} - \frac {6 \, \cos \left (d x + c\right )}{\cos \left (d x + c\right )^{2} - 1} + 24 \, \cos \left (d x + c\right ) - 15 \, \log \left (\cos \left (d x + c\right ) + 1\right ) + 15 \, \log \left (\cos \left (d x + c\right ) - 1\right )\right )} a^{2} + 3 \, {\left (15 \, d x + 15 \, c + \frac {15 \, \tan \left (d x + c\right )^{4} + 25 \, \tan \left (d x + c\right )^{2} + 8}{\tan \left (d x + c\right )^{5} + 2 \, \tan \left (d x + c\right )^{3} + \tan \left (d x + c\right )}\right )} a^{2} - 4 \, {\left (15 \, d x + 15 \, c + \frac {15 \, \tan \left (d x + c\right )^{4} + 10 \, \tan \left (d x + c\right )^{2} - 2}{\tan \left (d x + c\right )^{5} + \tan \left (d x + c\right )^{3}}\right )} a^{2}}{24 \, d} \] Input:
integrate(cos(d*x+c)^2*cot(d*x+c)^4*(a+a*sin(d*x+c))^2,x, algorithm="maxim a")
Output:
-1/24*(4*(4*cos(d*x + c)^3 - 6*cos(d*x + c)/(cos(d*x + c)^2 - 1) + 24*cos( d*x + c) - 15*log(cos(d*x + c) + 1) + 15*log(cos(d*x + c) - 1))*a^2 + 3*(1 5*d*x + 15*c + (15*tan(d*x + c)^4 + 25*tan(d*x + c)^2 + 8)/(tan(d*x + c)^5 + 2*tan(d*x + c)^3 + tan(d*x + c)))*a^2 - 4*(15*d*x + 15*c + (15*tan(d*x + c)^4 + 10*tan(d*x + c)^2 - 2)/(tan(d*x + c)^5 + tan(d*x + c)^3))*a^2)/d
Time = 0.25 (sec) , antiderivative size = 274, normalized size of antiderivative = 1.79 \[ \int \cos ^2(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 6 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 15 \, {\left (d x + c\right )} a^{2} - 120 \, a^{2} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right ) - 15 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \frac {220 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 15 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 6 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - a^{2}}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3}} + \frac {2 \, {\left (15 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 144 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 9 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 336 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 9 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 304 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 15 \, a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 112 \, a^{2}\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{4}}}{24 \, d} \] Input:
integrate(cos(d*x+c)^2*cot(d*x+c)^4*(a+a*sin(d*x+c))^2,x, algorithm="giac" )
Output:
1/24*(a^2*tan(1/2*d*x + 1/2*c)^3 + 6*a^2*tan(1/2*d*x + 1/2*c)^2 + 15*(d*x + c)*a^2 - 120*a^2*log(abs(tan(1/2*d*x + 1/2*c))) - 15*a^2*tan(1/2*d*x + 1 /2*c) + (220*a^2*tan(1/2*d*x + 1/2*c)^3 + 15*a^2*tan(1/2*d*x + 1/2*c)^2 - 6*a^2*tan(1/2*d*x + 1/2*c) - a^2)/tan(1/2*d*x + 1/2*c)^3 + 2*(15*a^2*tan(1 /2*d*x + 1/2*c)^7 - 144*a^2*tan(1/2*d*x + 1/2*c)^6 - 9*a^2*tan(1/2*d*x + 1 /2*c)^5 - 336*a^2*tan(1/2*d*x + 1/2*c)^4 + 9*a^2*tan(1/2*d*x + 1/2*c)^3 - 304*a^2*tan(1/2*d*x + 1/2*c)^2 - 15*a^2*tan(1/2*d*x + 1/2*c) - 112*a^2)/(t an(1/2*d*x + 1/2*c)^2 + 1)^4)/d
Time = 33.03 (sec) , antiderivative size = 384, normalized size of antiderivative = 2.51 \[ \int \cos ^2(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{4\,d}+\frac {a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{24\,d}-\frac {5\,a^2\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}-\frac {5\,a^2\,\mathrm {atan}\left (\frac {25\,a^4}{16\,\left (\frac {25\,a^4}{2}+\frac {25\,a^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16}\right )}-\frac {25\,a^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2\,\left (\frac {25\,a^4}{2}+\frac {25\,a^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16}\right )}\right )}{4\,d}-\frac {5\,a^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8\,d}-\frac {-15\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+98\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9-\frac {41\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{3}+232\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7-\frac {104\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{3}+\frac {644\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{3}-8\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+\frac {248\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{3}-\frac {11\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{3}+2\,a^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+\frac {a^2}{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)^2*cot(c + d*x)^4*(a + a*sin(c + d*x))^2,x)
Output:
(a^2*tan(c/2 + (d*x)/2)^2)/(4*d) + (a^2*tan(c/2 + (d*x)/2)^3)/(24*d) - (5* a^2*log(tan(c/2 + (d*x)/2)))/d - (5*a^2*atan((25*a^4)/(16*((25*a^4)/2 + (2 5*a^4*tan(c/2 + (d*x)/2))/16)) - (25*a^4*tan(c/2 + (d*x)/2))/(2*((25*a^4)/ 2 + (25*a^4*tan(c/2 + (d*x)/2))/16))))/(4*d) - (5*a^2*tan(c/2 + (d*x)/2))/ (8*d) - ((248*a^2*tan(c/2 + (d*x)/2)^3)/3 - (11*a^2*tan(c/2 + (d*x)/2)^2)/ 3 - 8*a^2*tan(c/2 + (d*x)/2)^4 + (644*a^2*tan(c/2 + (d*x)/2)^5)/3 - (104*a ^2*tan(c/2 + (d*x)/2)^6)/3 + 232*a^2*tan(c/2 + (d*x)/2)^7 - (41*a^2*tan(c/ 2 + (d*x)/2)^8)/3 + 98*a^2*tan(c/2 + (d*x)/2)^9 - 15*a^2*tan(c/2 + (d*x)/2 )^10 + a^2/3 + 2*a^2*tan(c/2 + (d*x)/2))/(d*(8*tan(c/2 + (d*x)/2)^3 + 32*t an(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.18 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.05 \[ \int \cos ^2(c+d x) \cot ^4(c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {a^{2} \left (6 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{6}+16 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{5}-15 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{4}-112 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{3}+32 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{2}-24 \cos \left (d x +c \right ) \sin \left (d x +c \right )-8 \cos \left (d x +c \right )-120 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sin \left (d x +c \right )^{3}+15 \sin \left (d x +c \right )^{3} d x +136 \sin \left (d x +c \right )^{3}\right )}{24 \sin \left (d x +c \right )^{3} d} \] Input:
int(cos(d*x+c)^2*cot(d*x+c)^4*(a+a*sin(d*x+c))^2,x)
Output:
(a**2*(6*cos(c + d*x)*sin(c + d*x)**6 + 16*cos(c + d*x)*sin(c + d*x)**5 - 15*cos(c + d*x)*sin(c + d*x)**4 - 112*cos(c + d*x)*sin(c + d*x)**3 + 32*co s(c + d*x)*sin(c + d*x)**2 - 24*cos(c + d*x)*sin(c + d*x) - 8*cos(c + d*x) - 120*log(tan((c + d*x)/2))*sin(c + d*x)**3 + 15*sin(c + d*x)**3*d*x + 13 6*sin(c + d*x)**3))/(24*sin(c + d*x)**3*d)