Integrand size = 17, antiderivative size = 72 \[ \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx=\frac {35 x}{8}+\frac {3 \cot (a+b x)}{b}-\frac {\cot ^3(a+b x)}{3 b}+\frac {13 \cos (a+b x) \sin (a+b x)}{8 b}-\frac {\cos (a+b x) \sin ^3(a+b x)}{4 b} \] Output:
35/8*x+3*cot(b*x+a)/b-1/3*cot(b*x+a)^3/b+13/8*cos(b*x+a)*sin(b*x+a)/b-1/4* cos(b*x+a)*sin(b*x+a)^3/b
Time = 0.46 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.74 \[ \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx=\frac {420 (a+b x)-32 \cot (a+b x) \left (-10+\csc ^2(a+b x)\right )+72 \sin (2 (a+b x))+3 \sin (4 (a+b x))}{96 b} \] Input:
Integrate[Cos[a + b*x]^4*Cot[a + b*x]^4,x]
Output:
(420*(a + b*x) - 32*Cot[a + b*x]*(-10 + Csc[a + b*x]^2) + 72*Sin[2*(a + b* x)] + 3*Sin[4*(a + b*x)])/(96*b)
Time = 0.43 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.26, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.353, Rules used = {3042, 3071, 252, 252, 254, 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 ^4(a+b x) \cot ^4(a+b x) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (a+b x+\frac {\pi }{2}\right )^4 \tan \left (a+b x+\frac {\pi }{2}\right )^4dx\) |
\(\Big \downarrow \) 3071 |
\(\displaystyle -\frac {\int \frac {\cot ^8(a+b x)}{\left (\cot ^2(a+b x)+1\right )^3}d\cot (a+b x)}{b}\) |
\(\Big \downarrow \) 252 |
\(\displaystyle -\frac {\frac {7}{4} \int \frac {\cot ^6(a+b x)}{\left (\cot ^2(a+b x)+1\right )^2}d\cot (a+b x)-\frac {\cot ^7(a+b x)}{4 \left (\cot ^2(a+b x)+1\right )^2}}{b}\) |
\(\Big \downarrow \) 252 |
\(\displaystyle -\frac {\frac {7}{4} \left (\frac {5}{2} \int \frac {\cot ^4(a+b x)}{\cot ^2(a+b x)+1}d\cot (a+b x)-\frac {\cot ^5(a+b x)}{2 \left (\cot ^2(a+b x)+1\right )}\right )-\frac {\cot ^7(a+b x)}{4 \left (\cot ^2(a+b x)+1\right )^2}}{b}\) |
\(\Big \downarrow \) 254 |
\(\displaystyle -\frac {\frac {7}{4} \left (\frac {5}{2} \int \left (\cot ^2(a+b x)+\frac {1}{\cot ^2(a+b x)+1}-1\right )d\cot (a+b x)-\frac {\cot ^5(a+b x)}{2 \left (\cot ^2(a+b x)+1\right )}\right )-\frac {\cot ^7(a+b x)}{4 \left (\cot ^2(a+b x)+1\right )^2}}{b}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {\frac {7}{4} \left (\frac {5}{2} \left (\arctan (\cot (a+b x))+\frac {1}{3} \cot ^3(a+b x)-\cot (a+b x)\right )-\frac {\cot ^5(a+b x)}{2 \left (\cot ^2(a+b x)+1\right )}\right )-\frac {\cot ^7(a+b x)}{4 \left (\cot ^2(a+b x)+1\right )^2}}{b}\) |
Input:
Int[Cos[a + b*x]^4*Cot[a + b*x]^4,x]
Output:
-((-1/4*Cot[a + b*x]^7/(1 + Cot[a + b*x]^2)^2 + (7*(-1/2*Cot[a + b*x]^5/(1 + Cot[a + b*x]^2) + (5*(ArcTan[Cot[a + b*x]] - Cot[a + b*x] + Cot[a + b*x ]^3/3))/2))/4)/b)
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[c*(c*x )^(m - 1)*((a + b*x^2)^(p + 1)/(2*b*(p + 1))), x] - Simp[c^2*((m - 1)/(2*b* (p + 1))) Int[(c*x)^(m - 2)*(a + b*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c }, x] && LtQ[p, -1] && GtQ[m, 1] && !ILtQ[(m + 2*p + 3)/2, 0] && IntBinomi alQ[a, b, c, 2, m, p, x]
Int[(x_)^(m_)/((a_) + (b_.)*(x_)^2), x_Symbol] :> Int[PolynomialDivide[x^m, a + b*x^2, x], x] /; FreeQ[{a, b}, x] && IGtQ[m, 3]
Int[sin[(e_.) + (f_.)*(x_)]^(m_)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_S ymbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Simp[b*(ff/f) Subst[I nt[(ff*x)^(m + n)/(b^2 + ff^2*x^2)^(m/2 + 1), x], x, b*(Tan[e + f*x]/ff)], x]] /; FreeQ[{b, e, f, n}, x] && IntegerQ[m/2]
Time = 7.71 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.31
method | result | size |
derivativedivides | \(\frac {-\frac {\cos \left (b x +a \right )^{9}}{3 \sin \left (b x +a \right )^{3}}+\frac {2 \cos \left (b x +a \right )^{9}}{\sin \left (b x +a \right )}+2 \left (\cos \left (b x +a \right )^{7}+\frac {7 \cos \left (b x +a \right )^{5}}{6}+\frac {35 \cos \left (b x +a \right )^{3}}{24}+\frac {35 \cos \left (b x +a \right )}{16}\right ) \sin \left (b x +a \right )+\frac {35 b x}{8}+\frac {35 a}{8}}{b}\) | \(94\) |
default | \(\frac {-\frac {\cos \left (b x +a \right )^{9}}{3 \sin \left (b x +a \right )^{3}}+\frac {2 \cos \left (b x +a \right )^{9}}{\sin \left (b x +a \right )}+2 \left (\cos \left (b x +a \right )^{7}+\frac {7 \cos \left (b x +a \right )^{5}}{6}+\frac {35 \cos \left (b x +a \right )^{3}}{24}+\frac {35 \cos \left (b x +a \right )}{16}\right ) \sin \left (b x +a \right )+\frac {35 b x}{8}+\frac {35 a}{8}}{b}\) | \(94\) |
risch | \(\frac {35 x}{8}-\frac {i {\mathrm e}^{4 i \left (b x +a \right )}}{64 b}-\frac {3 i {\mathrm e}^{2 i \left (b x +a \right )}}{8 b}+\frac {3 i {\mathrm e}^{-2 i \left (b x +a \right )}}{8 b}+\frac {i {\mathrm e}^{-4 i \left (b x +a \right )}}{64 b}+\frac {4 i \left (6 \,{\mathrm e}^{4 i \left (b x +a \right )}-9 \,{\mathrm e}^{2 i \left (b x +a \right )}+5\right )}{3 b \left ({\mathrm e}^{2 i \left (b x +a \right )}-1\right )^{3}}\) | \(108\) |
Input:
int(cos(b*x+a)^4*cot(b*x+a)^4,x,method=_RETURNVERBOSE)
Output:
1/b*(-1/3/sin(b*x+a)^3*cos(b*x+a)^9+2/sin(b*x+a)*cos(b*x+a)^9+2*(cos(b*x+a )^7+7/6*cos(b*x+a)^5+35/24*cos(b*x+a)^3+35/16*cos(b*x+a))*sin(b*x+a)+35/8* b*x+35/8*a)
Time = 0.09 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.24 \[ \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx=-\frac {6 \, \cos \left (b x + a\right )^{7} + 21 \, \cos \left (b x + a\right )^{5} - 140 \, \cos \left (b x + a\right )^{3} - 105 \, {\left (b x \cos \left (b x + a\right )^{2} - b x\right )} \sin \left (b x + a\right ) + 105 \, \cos \left (b x + a\right )}{24 \, {\left (b \cos \left (b x + a\right )^{2} - b\right )} \sin \left (b x + a\right )} \] Input:
integrate(cos(b*x+a)^4*cot(b*x+a)^4,x, algorithm="fricas")
Output:
-1/24*(6*cos(b*x + a)^7 + 21*cos(b*x + a)^5 - 140*cos(b*x + a)^3 - 105*(b* x*cos(b*x + a)^2 - b*x)*sin(b*x + a) + 105*cos(b*x + a))/((b*cos(b*x + a)^ 2 - b)*sin(b*x + a))
Timed out. \[ \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx=\text {Timed out} \] Input:
integrate(cos(b*x+a)**4*cot(b*x+a)**4,x)
Output:
Timed out
Time = 0.11 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.04 \[ \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx=\frac {105 \, b x + 105 \, a + \frac {105 \, \tan \left (b x + a\right )^{6} + 175 \, \tan \left (b x + a\right )^{4} + 56 \, \tan \left (b x + a\right )^{2} - 8}{\tan \left (b x + a\right )^{7} + 2 \, \tan \left (b x + a\right )^{5} + \tan \left (b x + a\right )^{3}}}{24 \, b} \] Input:
integrate(cos(b*x+a)^4*cot(b*x+a)^4,x, algorithm="maxima")
Output:
1/24*(105*b*x + 105*a + (105*tan(b*x + a)^6 + 175*tan(b*x + a)^4 + 56*tan( b*x + a)^2 - 8)/(tan(b*x + a)^7 + 2*tan(b*x + a)^5 + tan(b*x + a)^3))/b
Time = 0.15 (sec) , antiderivative size = 68, normalized size of antiderivative = 0.94 \[ \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx=\frac {105 \, b x + 105 \, a + \frac {3 \, {\left (11 \, \tan \left (b x + a\right )^{3} + 13 \, \tan \left (b x + a\right )\right )}}{{\left (\tan \left (b x + a\right )^{2} + 1\right )}^{2}} + \frac {8 \, {\left (9 \, \tan \left (b x + a\right )^{2} - 1\right )}}{\tan \left (b x + a\right )^{3}}}{24 \, b} \] Input:
integrate(cos(b*x+a)^4*cot(b*x+a)^4,x, algorithm="giac")
Output:
1/24*(105*b*x + 105*a + 3*(11*tan(b*x + a)^3 + 13*tan(b*x + a))/(tan(b*x + a)^2 + 1)^2 + 8*(9*tan(b*x + a)^2 - 1)/tan(b*x + a)^3)/b
Time = 26.77 (sec) , antiderivative size = 56, normalized size of antiderivative = 0.78 \[ \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx=\frac {35\,x}{8}+\frac {{\cos \left (a+b\,x\right )}^4\,\left (\frac {35\,{\mathrm {tan}\left (a+b\,x\right )}^6}{8}+\frac {175\,{\mathrm {tan}\left (a+b\,x\right )}^4}{24}+\frac {7\,{\mathrm {tan}\left (a+b\,x\right )}^2}{3}-\frac {1}{3}\right )}{b\,{\mathrm {tan}\left (a+b\,x\right )}^3} \] Input:
int(cos(a + b*x)^4*cot(a + b*x)^4,x)
Output:
(35*x)/8 + (cos(a + b*x)^4*((7*tan(a + b*x)^2)/3 + (175*tan(a + b*x)^4)/24 + (35*tan(a + b*x)^6)/8 - 1/3))/(b*tan(a + b*x)^3)
Time = 0.17 (sec) , antiderivative size = 82, normalized size of antiderivative = 1.14 \[ \int \cos ^4(a+b x) \cot ^4(a+b x) \, dx=\frac {-6 \cos \left (b x +a \right ) \sin \left (b x +a \right )^{6}+39 \cos \left (b x +a \right ) \sin \left (b x +a \right )^{4}+80 \cos \left (b x +a \right ) \sin \left (b x +a \right )^{2}-8 \cos \left (b x +a \right )+105 \sin \left (b x +a \right )^{3} b x}{24 \sin \left (b x +a \right )^{3} b} \] Input:
int(cos(b*x+a)^4*cot(b*x+a)^4,x)
Output:
( - 6*cos(a + b*x)*sin(a + b*x)**6 + 39*cos(a + b*x)*sin(a + b*x)**4 + 80* cos(a + b*x)*sin(a + b*x)**2 - 8*cos(a + b*x) + 105*sin(a + b*x)**3*b*x)/( 24*sin(a + b*x)**3*b)