Integrand size = 9, antiderivative size = 22 \[ \int \cos ^2(x) \cot ^3(x) \, dx=-\frac {1}{2} \csc ^2(x)-2 \log (\sin (x))+\frac {\sin ^2(x)}{2} \]
Time = 0.03 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.91 \[ \int \cos ^2(x) \cot ^3(x) \, dx=\frac {1}{2} \left (-\csc ^2(x)-4 \log (\sin (x))+\sin ^2(x)\right ) \]
Time = 0.20 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.82, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.667, Rules used = {3042, 25, 3070, 243, 49, 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(x) \cot ^3(x) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int -\sin \left (x+\frac {\pi }{2}\right )^2 \tan \left (x+\frac {\pi }{2}\right )^3dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\int \sin \left (x+\frac {\pi }{2}\right )^2 \tan \left (x+\frac {\pi }{2}\right )^3dx\) |
\(\Big \downarrow \) 3070 |
\(\displaystyle \int \left (1-\sin ^2(x)\right )^2 \left (-\csc ^3(x)\right )d(-\sin (x))\) |
\(\Big \downarrow \) 243 |
\(\displaystyle \frac {1}{2} \int \csc ^2(x) (\sin (x)+1)^2d\sin ^2(x)\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \frac {1}{2} \int \left (\csc ^2(x)+2 \csc (x)+1\right )d\sin ^2(x)\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{2} \left (\sin ^2(x)+\csc (x)-2 \log \left (\sin ^2(x)\right )\right )\) |
3.1.79.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 0] && IGtQ[m + n + 2, 0]
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[1/2 Subst[In t[x^((m - 1)/2)*(a + b*x)^p, x], x, x^2], x] /; FreeQ[{a, b, m, p}, x] && I ntegerQ[(m - 1)/2]
Int[sin[(e_.) + (f_.)*(x_)]^(m_.)*tan[(e_.) + (f_.)*(x_)]^(n_.), x_Symbol] :> Simp[-f^(-1) Subst[Int[(1 - x^2)^((m + n - 1)/2)/x^n, x], x, Cos[e + f *x]], x] /; FreeQ[{e, f}, x] && IntegersQ[m, n, (m + n - 1)/2]
Time = 3.38 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.32
method | result | size |
default | \(-\frac {\cos ^{6}\left (x \right )}{2 \sin \left (x \right )^{2}}-\frac {\left (\cos ^{4}\left (x \right )\right )}{2}-\left (\cos ^{2}\left (x \right )\right )-2 \ln \left (\sin \left (x \right )\right )\) | \(29\) |
risch | \(2 i x -\frac {{\mathrm e}^{2 i x}}{8}-\frac {{\mathrm e}^{-2 i x}}{8}+\frac {2 \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}-2 \ln \left ({\mathrm e}^{2 i x}-1\right )\) | \(46\) |
Leaf count of result is larger than twice the leaf count of optimal. 37 vs. \(2 (18) = 36\).
Time = 0.26 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.68 \[ \int \cos ^2(x) \cot ^3(x) \, dx=-\frac {2 \, \cos \left (x\right )^{4} - 3 \, \cos \left (x\right )^{2} + 8 \, {\left (\cos \left (x\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \sin \left (x\right )\right ) - 1}{4 \, {\left (\cos \left (x\right )^{2} - 1\right )}} \]
Time = 0.04 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.91 \[ \int \cos ^2(x) \cot ^3(x) \, dx=- 2 \log {\left (\sin {\left (x \right )} \right )} + \frac {\sin ^{2}{\left (x \right )}}{2} - \frac {1}{2 \sin ^{2}{\left (x \right )}} \]
Time = 0.19 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.91 \[ \int \cos ^2(x) \cot ^3(x) \, dx=\frac {1}{2} \, \sin \left (x\right )^{2} - \frac {1}{2 \, \sin \left (x\right )^{2}} - \log \left (\sin \left (x\right )^{2}\right ) \]
Time = 0.28 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.27 \[ \int \cos ^2(x) \cot ^3(x) \, dx=-\frac {1}{2} \, \cos \left (x\right )^{2} + \frac {1}{2 \, {\left (\cos \left (x\right )^{2} - 1\right )}} - \log \left (-\cos \left (x\right )^{2} + 1\right ) \]
Time = 0.26 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.45 \[ \int \cos ^2(x) \cot ^3(x) \, dx=\ln \left ({\mathrm {tan}\left (x\right )}^2+1\right )-2\,\ln \left (\mathrm {tan}\left (x\right )\right )-\frac {{\mathrm {tan}\left (x\right )}^2+\frac {1}{2}}{{\mathrm {tan}\left (x\right )}^4+{\mathrm {tan}\left (x\right )}^2} \]