Integrand size = 19, antiderivative size = 54 \[ \int \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {b \csc (c+d x)}{d}-\frac {a \csc ^2(c+d x)}{2 d}-\frac {a \log (\sin (c+d x))}{d}-\frac {b \sin (c+d x)}{d} \] Output:
-b*csc(d*x+c)/d-1/2*a*csc(d*x+c)^2/d-a*ln(sin(d*x+c))/d-b*sin(d*x+c)/d
Time = 0.01 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.00 \[ \int \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {b \csc (c+d x)}{d}-\frac {a \csc ^2(c+d x)}{2 d}-\frac {a \log (\sin (c+d x))}{d}-\frac {b \sin (c+d x)}{d} \] Input:
Integrate[Cot[c + d*x]^3*(a + b*Sin[c + d*x]),x]
Output:
-((b*Csc[c + d*x])/d) - (a*Csc[c + d*x]^2)/(2*d) - (a*Log[Sin[c + d*x]])/d - (b*Sin[c + d*x])/d
Time = 0.23 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.89, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.211, Rules used = {3042, 3200, 522, 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 \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {a+b \sin (c+d x)}{\tan (c+d x)^3}dx\) |
\(\Big \downarrow \) 3200 |
\(\displaystyle \frac {\int \frac {\csc ^3(c+d x) (a+b \sin (c+d x)) \left (b^2-b^2 \sin ^2(c+d x)\right )}{b^3}d(b \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 522 |
\(\displaystyle \frac {\int \left (\frac {a \csc ^3(c+d x)}{b}+\csc ^2(c+d x)-\frac {a \csc (c+d x)}{b}-1\right )d(b \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-a \log (b \sin (c+d x))-\frac {1}{2} a \csc ^2(c+d x)-b \sin (c+d x)-b \csc (c+d x)}{d}\) |
Input:
Int[Cot[c + d*x]^3*(a + b*Sin[c + d*x]),x]
Output:
(-(b*Csc[c + d*x]) - (a*Csc[c + d*x]^2)/2 - a*Log[b*Sin[c + d*x]] - b*Sin[ c + d*x])/d
Int[((e_.)*(x_))^(m_.)*((c_) + (d_.)*(x_))^(n_.)*((a_) + (b_.)*(x_)^2)^(p_. ), x_Symbol] :> Int[ExpandIntegrand[(e*x)^m*(c + d*x)^n*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && IGtQ[p, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*tan[(e_.) + (f_.)*(x_)]^(p _.), x_Symbol] :> Simp[1/f Subst[Int[(x^p*(a + x)^m)/(b^2 - x^2)^((p + 1) /2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x] && NeQ[a^2 - b ^2, 0] && IntegerQ[(p + 1)/2]
Time = 0.64 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.24
method | result | size |
derivativedivides | \(\frac {a \left (-\frac {\cot \left (d x +c \right )^{2}}{2}-\ln \left (\sin \left (d x +c \right )\right )\right )+b \left (-\frac {\cos \left (d x +c \right )^{4}}{\sin \left (d x +c \right )}-\left (2+\cos \left (d x +c \right )^{2}\right ) \sin \left (d x +c \right )\right )}{d}\) | \(67\) |
default | \(\frac {a \left (-\frac {\cot \left (d x +c \right )^{2}}{2}-\ln \left (\sin \left (d x +c \right )\right )\right )+b \left (-\frac {\cos \left (d x +c \right )^{4}}{\sin \left (d x +c \right )}-\left (2+\cos \left (d x +c \right )^{2}\right ) \sin \left (d x +c \right )\right )}{d}\) | \(67\) |
risch | \(i a x +\frac {i b \,{\mathrm e}^{i \left (d x +c \right )}}{2 d}-\frac {i b \,{\mathrm e}^{-i \left (d x +c \right )}}{2 d}+\frac {2 i a c}{d}-\frac {2 i \left (i a \,{\mathrm e}^{2 i \left (d x +c \right )}+b \,{\mathrm e}^{3 i \left (d x +c \right )}-{\mathrm e}^{i \left (d x +c \right )} b \right )}{d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{2}}-\frac {a \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d}\) | \(121\) |
Input:
int(cot(d*x+c)^3*(a+b*sin(d*x+c)),x,method=_RETURNVERBOSE)
Output:
1/d*(a*(-1/2*cot(d*x+c)^2-ln(sin(d*x+c)))+b*(-1/sin(d*x+c)*cos(d*x+c)^4-(2 +cos(d*x+c)^2)*sin(d*x+c)))
Time = 0.09 (sec) , antiderivative size = 69, normalized size of antiderivative = 1.28 \[ \int \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {2 \, {\left (a \cos \left (d x + c\right )^{2} - a\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) + 2 \, {\left (b \cos \left (d x + c\right )^{2} - 2 \, b\right )} \sin \left (d x + c\right ) - a}{2 \, {\left (d \cos \left (d x + c\right )^{2} - d\right )}} \] Input:
integrate(cot(d*x+c)^3*(a+b*sin(d*x+c)),x, algorithm="fricas")
Output:
-1/2*(2*(a*cos(d*x + c)^2 - a)*log(1/2*sin(d*x + c)) + 2*(b*cos(d*x + c)^2 - 2*b)*sin(d*x + c) - a)/(d*cos(d*x + c)^2 - d)
\[ \int \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx=\int \left (a + b \sin {\left (c + d x \right )}\right ) \cot ^{3}{\left (c + d x \right )}\, dx \] Input:
integrate(cot(d*x+c)**3*(a+b*sin(d*x+c)),x)
Output:
Integral((a + b*sin(c + d*x))*cot(c + d*x)**3, x)
Time = 0.03 (sec) , antiderivative size = 45, normalized size of antiderivative = 0.83 \[ \int \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {2 \, a \log \left (\sin \left (d x + c\right )\right ) + 2 \, b \sin \left (d x + c\right ) + \frac {2 \, b \sin \left (d x + c\right ) + a}{\sin \left (d x + c\right )^{2}}}{2 \, d} \] Input:
integrate(cot(d*x+c)^3*(a+b*sin(d*x+c)),x, algorithm="maxima")
Output:
-1/2*(2*a*log(sin(d*x + c)) + 2*b*sin(d*x + c) + (2*b*sin(d*x + c) + a)/si n(d*x + c)^2)/d
Time = 0.13 (sec) , antiderivative size = 46, normalized size of antiderivative = 0.85 \[ \int \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {2 \, a \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) + 2 \, b \sin \left (d x + c\right ) + \frac {2 \, b \sin \left (d x + c\right ) + a}{\sin \left (d x + c\right )^{2}}}{2 \, d} \] Input:
integrate(cot(d*x+c)^3*(a+b*sin(d*x+c)),x, algorithm="giac")
Output:
-1/2*(2*a*log(abs(sin(d*x + c))) + 2*b*sin(d*x + c) + (2*b*sin(d*x + c) + a)/sin(d*x + c)^2)/d
Time = 17.47 (sec) , antiderivative size = 146, normalized size of antiderivative = 2.70 \[ \int \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx=\frac {a\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d}-\frac {b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2\,d}-\frac {10\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{2}+2\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+\frac {a}{2}}{d\,\left (4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\right )}-\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,d}-\frac {a\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d} \] Input:
int(cot(c + d*x)^3*(a + b*sin(c + d*x)),x)
Output:
(a*log(tan(c/2 + (d*x)/2)^2 + 1))/d - (b*tan(c/2 + (d*x)/2))/(2*d) - (a/2 + 2*b*tan(c/2 + (d*x)/2) + (a*tan(c/2 + (d*x)/2)^2)/2 + 10*b*tan(c/2 + (d* x)/2)^3)/(d*(4*tan(c/2 + (d*x)/2)^2 + 4*tan(c/2 + (d*x)/2)^4)) - (a*tan(c/ 2 + (d*x)/2)^2)/(8*d) - (a*log(tan(c/2 + (d*x)/2)))/d
Time = 0.19 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.74 \[ \int \cot ^3(c+d x) (a+b \sin (c+d x)) \, dx=\frac {8 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right ) \sin \left (d x +c \right )^{2} a -8 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sin \left (d x +c \right )^{2} a -8 \sin \left (d x +c \right )^{3} b +3 \sin \left (d x +c \right )^{2} a -8 \sin \left (d x +c \right ) b -4 a}{8 \sin \left (d x +c \right )^{2} d} \] Input:
int(cot(d*x+c)^3*(a+b*sin(d*x+c)),x)
Output:
(8*log(tan((c + d*x)/2)**2 + 1)*sin(c + d*x)**2*a - 8*log(tan((c + d*x)/2) )*sin(c + d*x)**2*a - 8*sin(c + d*x)**3*b + 3*sin(c + d*x)**2*a - 8*sin(c + d*x)*b - 4*a)/(8*sin(c + d*x)**2*d)