3.1208 \(\int \cot ^5(c+d x) \csc (c+d x) (a+b \sin (c+d x)) \, dx\)

Optimal. Leaf size=86 \[ -\frac {a \csc ^5(c+d x)}{5 d}+\frac {2 a \csc ^3(c+d x)}{3 d}-\frac {a \csc (c+d x)}{d}-\frac {b \csc ^4(c+d x)}{4 d}+\frac {b \csc ^2(c+d x)}{d}+\frac {b \log (\sin (c+d x))}{d} \]

[Out]

-a*csc(d*x+c)/d+b*csc(d*x+c)^2/d+2/3*a*csc(d*x+c)^3/d-1/4*b*csc(d*x+c)^4/d-1/5*a*csc(d*x+c)^5/d+b*ln(sin(d*x+c
))/d

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2837, 12, 766} \[ -\frac {a \csc ^5(c+d x)}{5 d}+\frac {2 a \csc ^3(c+d x)}{3 d}-\frac {a \csc (c+d x)}{d}-\frac {b \csc ^4(c+d x)}{4 d}+\frac {b \csc ^2(c+d x)}{d}+\frac {b \log (\sin (c+d x))}{d} \]

Antiderivative was successfully verified.

[In]

Int[Cot[c + d*x]^5*Csc[c + d*x]*(a + b*Sin[c + d*x]),x]

[Out]

-((a*Csc[c + d*x])/d) + (b*Csc[c + d*x]^2)/d + (2*a*Csc[c + d*x]^3)/(3*d) - (b*Csc[c + d*x]^4)/(4*d) - (a*Csc[
c + d*x]^5)/(5*d) + (b*Log[Sin[c + d*x]])/d

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 766

Int[((e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(e*x
)^m*(f + g*x)*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, e, f, g, m}, x] && IGtQ[p, 0]

Rule 2837

Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)
*(x_)])^(n_.), x_Symbol] :> Dist[1/(b^p*f), Subst[Int[(a + x)^m*(c + (d*x)/b)^n*(b^2 - x^2)^((p - 1)/2), x], x
, b*Sin[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IntegerQ[(p - 1)/2] && NeQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int \cot ^5(c+d x) \csc (c+d x) (a+b \sin (c+d x)) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {b^6 (a+x) \left (b^2-x^2\right )^2}{x^6} \, dx,x,b \sin (c+d x)\right )}{b^5 d}\\ &=\frac {b \operatorname {Subst}\left (\int \frac {(a+x) \left (b^2-x^2\right )^2}{x^6} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=\frac {b \operatorname {Subst}\left (\int \left (\frac {a b^4}{x^6}+\frac {b^4}{x^5}-\frac {2 a b^2}{x^4}-\frac {2 b^2}{x^3}+\frac {a}{x^2}+\frac {1}{x}\right ) \, dx,x,b \sin (c+d x)\right )}{d}\\ &=-\frac {a \csc (c+d x)}{d}+\frac {b \csc ^2(c+d x)}{d}+\frac {2 a \csc ^3(c+d x)}{3 d}-\frac {b \csc ^4(c+d x)}{4 d}-\frac {a \csc ^5(c+d x)}{5 d}+\frac {b \log (\sin (c+d x))}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.18, size = 92, normalized size = 1.07 \[ -\frac {a \csc ^5(c+d x)}{5 d}+\frac {2 a \csc ^3(c+d x)}{3 d}-\frac {a \csc (c+d x)}{d}+\frac {b \left (-\cot ^4(c+d x)+2 \cot ^2(c+d x)+4 \log (\tan (c+d x))+4 \log (\cos (c+d x))\right )}{4 d} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[c + d*x]^5*Csc[c + d*x]*(a + b*Sin[c + d*x]),x]

[Out]

-((a*Csc[c + d*x])/d) + (2*a*Csc[c + d*x]^3)/(3*d) - (a*Csc[c + d*x]^5)/(5*d) + (b*(2*Cot[c + d*x]^2 - Cot[c +
 d*x]^4 + 4*Log[Cos[c + d*x]] + 4*Log[Tan[c + d*x]]))/(4*d)

________________________________________________________________________________________

fricas [A]  time = 0.80, size = 124, normalized size = 1.44 \[ -\frac {60 \, a \cos \left (d x + c\right )^{4} - 80 \, a \cos \left (d x + c\right )^{2} - 60 \, {\left (b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + b\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) \sin \left (d x + c\right ) + 15 \, {\left (4 \, b \cos \left (d x + c\right )^{2} - 3 \, b\right )} \sin \left (d x + c\right ) + 32 \, a}{60 \, {\left (d \cos \left (d x + c\right )^{4} - 2 \, d \cos \left (d x + c\right )^{2} + d\right )} \sin \left (d x + c\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^5*csc(d*x+c)^6*(a+b*sin(d*x+c)),x, algorithm="fricas")

[Out]

-1/60*(60*a*cos(d*x + c)^4 - 80*a*cos(d*x + c)^2 - 60*(b*cos(d*x + c)^4 - 2*b*cos(d*x + c)^2 + b)*log(1/2*sin(
d*x + c))*sin(d*x + c) + 15*(4*b*cos(d*x + c)^2 - 3*b)*sin(d*x + c) + 32*a)/((d*cos(d*x + c)^4 - 2*d*cos(d*x +
 c)^2 + d)*sin(d*x + c))

________________________________________________________________________________________

giac [A]  time = 0.22, size = 84, normalized size = 0.98 \[ \frac {60 \, b \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) - \frac {137 \, b \sin \left (d x + c\right )^{5} + 60 \, a \sin \left (d x + c\right )^{4} - 60 \, b \sin \left (d x + c\right )^{3} - 40 \, a \sin \left (d x + c\right )^{2} + 15 \, b \sin \left (d x + c\right ) + 12 \, a}{\sin \left (d x + c\right )^{5}}}{60 \, d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^5*csc(d*x+c)^6*(a+b*sin(d*x+c)),x, algorithm="giac")

[Out]

1/60*(60*b*log(abs(sin(d*x + c))) - (137*b*sin(d*x + c)^5 + 60*a*sin(d*x + c)^4 - 60*b*sin(d*x + c)^3 - 40*a*s
in(d*x + c)^2 + 15*b*sin(d*x + c) + 12*a)/sin(d*x + c)^5)/d

________________________________________________________________________________________

maple [A]  time = 0.40, size = 160, normalized size = 1.86 \[ -\frac {a \left (\cos ^{6}\left (d x +c \right )\right )}{5 d \sin \left (d x +c \right )^{5}}+\frac {a \left (\cos ^{6}\left (d x +c \right )\right )}{15 d \sin \left (d x +c \right )^{3}}-\frac {a \left (\cos ^{6}\left (d x +c \right )\right )}{5 d \sin \left (d x +c \right )}-\frac {8 a \sin \left (d x +c \right )}{15 d}-\frac {\left (\cos ^{4}\left (d x +c \right )\right ) \sin \left (d x +c \right ) a}{5 d}-\frac {4 a \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )}{15 d}-\frac {b \left (\cot ^{4}\left (d x +c \right )\right )}{4 d}+\frac {b \left (\cot ^{2}\left (d x +c \right )\right )}{2 d}+\frac {b \ln \left (\sin \left (d x +c \right )\right )}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^5*csc(d*x+c)^6*(a+b*sin(d*x+c)),x)

[Out]

-1/5/d*a/sin(d*x+c)^5*cos(d*x+c)^6+1/15/d*a/sin(d*x+c)^3*cos(d*x+c)^6-1/5/d*a/sin(d*x+c)*cos(d*x+c)^6-8/15*a*s
in(d*x+c)/d-1/5/d*cos(d*x+c)^4*sin(d*x+c)*a-4/15/d*a*sin(d*x+c)*cos(d*x+c)^2-1/4/d*b*cot(d*x+c)^4+1/2*b*cot(d*
x+c)^2/d+b*ln(sin(d*x+c))/d

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 72, normalized size = 0.84 \[ \frac {60 \, b \log \left (\sin \left (d x + c\right )\right ) - \frac {60 \, a \sin \left (d x + c\right )^{4} - 60 \, b \sin \left (d x + c\right )^{3} - 40 \, a \sin \left (d x + c\right )^{2} + 15 \, b \sin \left (d x + c\right ) + 12 \, a}{\sin \left (d x + c\right )^{5}}}{60 \, d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^5*csc(d*x+c)^6*(a+b*sin(d*x+c)),x, algorithm="maxima")

[Out]

1/60*(60*b*log(sin(d*x + c)) - (60*a*sin(d*x + c)^4 - 60*b*sin(d*x + c)^3 - 40*a*sin(d*x + c)^2 + 15*b*sin(d*x
 + c) + 12*a)/sin(d*x + c)^5)/d

________________________________________________________________________________________

mupad [B]  time = 11.80, size = 193, normalized size = 2.24 \[ \frac {5\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{96\,d}-\frac {b\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d}-\frac {5\,a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16\,d}-\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{160\,d}+\frac {3\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{16\,d}-\frac {b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{64\,d}+\frac {b\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}-\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (10\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-6\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-\frac {5\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{3}+\frac {b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}+\frac {a}{5}\right )}{32\,d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((cos(c + d*x)^5*(a + b*sin(c + d*x)))/sin(c + d*x)^6,x)

[Out]

(5*a*tan(c/2 + (d*x)/2)^3)/(96*d) - (b*log(tan(c/2 + (d*x)/2)^2 + 1))/d - (5*a*tan(c/2 + (d*x)/2))/(16*d) - (a
*tan(c/2 + (d*x)/2)^5)/(160*d) + (3*b*tan(c/2 + (d*x)/2)^2)/(16*d) - (b*tan(c/2 + (d*x)/2)^4)/(64*d) + (b*log(
tan(c/2 + (d*x)/2)))/d - (cot(c/2 + (d*x)/2)^5*(a/5 + (b*tan(c/2 + (d*x)/2))/2 - (5*a*tan(c/2 + (d*x)/2)^2)/3
+ 10*a*tan(c/2 + (d*x)/2)^4 - 6*b*tan(c/2 + (d*x)/2)^3))/(32*d)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**5*csc(d*x+c)**6*(a+b*sin(d*x+c)),x)

[Out]

Timed out

________________________________________________________________________________________