Integrand size = 15, antiderivative size = 60 \[ \int \csc ^5(c+b x) \sin (a+b x) \, dx=-\frac {\cos (a-c) \cot (c+b x)}{b}-\frac {\cos (a-c) \cot ^3(c+b x)}{3 b}-\frac {\csc ^4(c+b x) \sin (a-c)}{4 b} \] Output:
-cos(a-c)*cot(b*x+c)/b-1/3*cos(a-c)*cot(b*x+c)^3/b-1/4*csc(b*x+c)^4*sin(a- c)/b
Time = 0.27 (sec) , antiderivative size = 58, normalized size of antiderivative = 0.97 \[ \int \csc ^5(c+b x) \sin (a+b x) \, dx=\frac {(3 \cos (a)+\cos (a-c) (-4 \cos (c+2 b x)+\cos (3 c+4 b x))) \csc \left (\frac {c}{2}\right ) \csc ^4(c+b x) \sec \left (\frac {c}{2}\right )}{24 b} \] Input:
Integrate[Csc[c + b*x]^5*Sin[a + b*x],x]
Output:
((3*Cos[a] + Cos[a - c]*(-4*Cos[c + 2*b*x] + Cos[3*c + 4*b*x]))*Csc[c/2]*C sc[c + b*x]^4*Sec[c/2])/(24*b)
Time = 0.32 (sec) , antiderivative size = 52, normalized size of antiderivative = 0.87, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.467, Rules used = {5093, 3042, 25, 3086, 15, 4254, 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 \sin (a+b x) \csc ^5(b x+c) \, dx\) |
\(\Big \downarrow \) 5093 |
\(\displaystyle \cos (a-c) \int \csc ^4(c+b x)dx+\sin (a-c) \int \cot (c+b x) \csc ^4(c+b x)dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \cos (a-c) \int \csc (c+b x)^4dx+\sin (a-c) \int -\sec \left (c+b x-\frac {\pi }{2}\right )^4 \tan \left (c+b x-\frac {\pi }{2}\right )dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \cos (a-c) \int \csc (c+b x)^4dx-\sin (a-c) \int \sec \left (\frac {1}{2} (2 c-\pi )+b x\right )^4 \tan \left (\frac {1}{2} (2 c-\pi )+b x\right )dx\) |
\(\Big \downarrow \) 3086 |
\(\displaystyle \cos (a-c) \int \csc (c+b x)^4dx-\frac {\sin (a-c) \int \csc ^3(c+b x)d\csc (c+b x)}{b}\) |
\(\Big \downarrow \) 15 |
\(\displaystyle \cos (a-c) \int \csc (c+b x)^4dx-\frac {\sin (a-c) \csc ^4(b x+c)}{4 b}\) |
\(\Big \downarrow \) 4254 |
\(\displaystyle -\frac {\cos (a-c) \int \left (\cot ^2(c+b x)+1\right )d\cot (c+b x)}{b}-\frac {\sin (a-c) \csc ^4(b x+c)}{4 b}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {\cos (a-c) \left (\frac {1}{3} \cot ^3(b x+c)+\cot (b x+c)\right )}{b}-\frac {\sin (a-c) \csc ^4(b x+c)}{4 b}\) |
Input:
Int[Csc[c + b*x]^5*Sin[a + b*x],x]
Output:
-((Cos[a - c]*(Cot[c + b*x] + Cot[c + b*x]^3/3))/b) - (Csc[c + b*x]^4*Sin[ a - c])/(4*b)
Int[(a_.)*(x_)^(m_.), x_Symbol] :> Simp[a*(x^(m + 1)/(m + 1)), x] /; FreeQ[ {a, m}, x] && NeQ[m, -1]
Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^( n_.), x_Symbol] :> Simp[a/f Subst[Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2 ), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2 ] && !(IntegerQ[m/2] && LtQ[0, m, n + 1])
Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp andIntegrand[(1 + x^2)^(n/2 - 1), x], x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]
Int[Csc[w_]^(n_.)*Sin[v_], x_Symbol] :> Simp[Sin[v - w] Int[Cot[w]*Csc[w] ^(n - 1), x], x] + Simp[Cos[v - w] Int[Csc[w]^(n - 1), x], x] /; GtQ[n, 0 ] && FreeQ[v - w, x] && NeQ[w, v]
Result contains complex when optimal does not.
Time = 5.58 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.62
method | result | size |
risch | \(\frac {2 i \left (6 \,{\mathrm e}^{i \left (4 b x +9 a +3 c \right )}-4 \,{\mathrm e}^{i \left (2 b x +9 a +c \right )}-4 \,{\mathrm e}^{i \left (2 b x +7 a +3 c \right )}+{\mathrm e}^{i \left (9 a -c \right )}+{\mathrm e}^{i \left (7 a +c \right )}\right )}{3 \left (-{\mathrm e}^{2 i \left (b x +a +c \right )}+{\mathrm e}^{2 i a}\right )^{4} b}\) | \(97\) |
parallelrisch | \(\frac {\left (\cot \left (\frac {b x}{2}+\frac {c}{2}\right )^{3}+\tan \left (\frac {b x}{2}+\frac {c}{2}\right )^{3}+19 \cot \left (\frac {b x}{2}+\frac {c}{2}\right )+19 \tan \left (\frac {b x}{2}+\frac {c}{2}\right )\right ) \tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{2}+\left (-3 \cot \left (\frac {b x}{2}+\frac {c}{2}\right )^{4}+3 \tan \left (\frac {b x}{2}+\frac {c}{2}\right )^{4}-22 \cot \left (\frac {b x}{2}+\frac {c}{2}\right )^{2}+22 \tan \left (\frac {b x}{2}+\frac {c}{2}\right )^{2}\right ) \tan \left (\frac {a}{2}+\frac {b x}{2}\right )-\cot \left (\frac {b x}{2}+\frac {c}{2}\right )^{3}-\tan \left (\frac {b x}{2}+\frac {c}{2}\right )^{3}-19 \cot \left (\frac {b x}{2}+\frac {c}{2}\right )-19 \tan \left (\frac {b x}{2}+\frac {c}{2}\right )}{96 \left (1+\tan \left (\frac {a}{2}+\frac {b x}{2}\right )^{2}\right ) b}\) | \(190\) |
default | \(\frac {-\frac {-3 \cos \left (a \right ) \sin \left (c \right )+3 \sin \left (a \right ) \cos \left (c \right )}{2 \left (\cos \left (a \right ) \cos \left (c \right )+\sin \left (a \right ) \sin \left (c \right )\right )^{4} \left (\tan \left (b x +a \right ) \cos \left (a \right ) \cos \left (c \right )+\tan \left (b x +a \right ) \sin \left (a \right ) \sin \left (c \right )-\sin \left (a \right ) \cos \left (c \right )+\cos \left (a \right ) \sin \left (c \right )\right )^{2}}+\frac {\left (-\sin \left (a \right ) \cos \left (c \right )+\cos \left (a \right ) \sin \left (c \right )\right ) \left (\cos \left (a \right )^{2} \cos \left (c \right )^{2}+\sin \left (c \right )^{2} \cos \left (a \right )^{2}+\cos \left (c \right )^{2} \sin \left (a \right )^{2}+\sin \left (a \right )^{2} \sin \left (c \right )^{2}\right )}{4 \left (\cos \left (a \right ) \cos \left (c \right )+\sin \left (a \right ) \sin \left (c \right )\right )^{4} \left (\tan \left (b x +a \right ) \cos \left (a \right ) \cos \left (c \right )+\tan \left (b x +a \right ) \sin \left (a \right ) \sin \left (c \right )-\sin \left (a \right ) \cos \left (c \right )+\cos \left (a \right ) \sin \left (c \right )\right )^{4}}-\frac {\cos \left (a \right )^{2} \cos \left (c \right )^{2}+3 \sin \left (c \right )^{2} \cos \left (a \right )^{2}-4 \cos \left (a \right ) \cos \left (c \right ) \sin \left (a \right ) \sin \left (c \right )+3 \cos \left (c \right )^{2} \sin \left (a \right )^{2}+\sin \left (a \right )^{2} \sin \left (c \right )^{2}}{3 \left (\cos \left (a \right ) \cos \left (c \right )+\sin \left (a \right ) \sin \left (c \right )\right )^{4} \left (\tan \left (b x +a \right ) \cos \left (a \right ) \cos \left (c \right )+\tan \left (b x +a \right ) \sin \left (a \right ) \sin \left (c \right )-\sin \left (a \right ) \cos \left (c \right )+\cos \left (a \right ) \sin \left (c \right )\right )^{3}}-\frac {1}{\left (\cos \left (a \right ) \cos \left (c \right )+\sin \left (a \right ) \sin \left (c \right )\right )^{4} \left (\tan \left (b x +a \right ) \cos \left (a \right ) \cos \left (c \right )+\tan \left (b x +a \right ) \sin \left (a \right ) \sin \left (c \right )-\sin \left (a \right ) \cos \left (c \right )+\cos \left (a \right ) \sin \left (c \right )\right )}}{b}\) | \(321\) |
Input:
int(csc(b*x+c)^5*sin(b*x+a),x,method=_RETURNVERBOSE)
Output:
2/3*I/(-exp(2*I*(b*x+a+c))+exp(2*I*a))^4/b*(6*exp(I*(4*b*x+9*a+3*c))-4*exp (I*(2*b*x+9*a+c))-4*exp(I*(2*b*x+7*a+3*c))+exp(I*(9*a-c))+exp(I*(7*a+c)))
Time = 0.07 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.25 \[ \int \csc ^5(c+b x) \sin (a+b x) \, dx=\frac {4 \, {\left (2 \, \cos \left (b x + c\right )^{3} \cos \left (-a + c\right ) - 3 \, \cos \left (b x + c\right ) \cos \left (-a + c\right )\right )} \sin \left (b x + c\right ) + 3 \, \sin \left (-a + c\right )}{12 \, {\left (b \cos \left (b x + c\right )^{4} - 2 \, b \cos \left (b x + c\right )^{2} + b\right )}} \] Input:
integrate(csc(b*x+c)^5*sin(b*x+a),x, algorithm="fricas")
Output:
1/12*(4*(2*cos(b*x + c)^3*cos(-a + c) - 3*cos(b*x + c)*cos(-a + c))*sin(b* x + c) + 3*sin(-a + c))/(b*cos(b*x + c)^4 - 2*b*cos(b*x + c)^2 + b)
Timed out. \[ \int \csc ^5(c+b x) \sin (a+b x) \, dx=\text {Timed out} \] Input:
integrate(csc(b*x+c)**5*sin(b*x+a),x)
Output:
Timed out
Leaf count of result is larger than twice the leaf count of optimal. 1076 vs. \(2 (56) = 112\).
Time = 0.05 (sec) , antiderivative size = 1076, normalized size of antiderivative = 17.93 \[ \int \csc ^5(c+b x) \sin (a+b x) \, dx=\text {Too large to display} \] Input:
integrate(csc(b*x+c)^5*sin(b*x+a),x, algorithm="maxima")
Output:
-2/3*((6*sin(4*b*x + 2*a + 4*c) - 4*sin(2*b*x + 2*a + 2*c) - 4*sin(2*b*x + 4*c) + sin(2*a) + sin(2*c))*cos(8*b*x + a + 9*c) - 4*(6*sin(4*b*x + 2*a + 4*c) - 4*sin(2*b*x + 2*a + 2*c) - 4*sin(2*b*x + 4*c) + sin(2*a) + sin(2*c ))*cos(6*b*x + a + 7*c) + 6*(4*sin(2*b*x + a + 3*c) - sin(a + c))*cos(4*b* x + 2*a + 4*c) + 6*(6*sin(4*b*x + 2*a + 4*c) - 4*sin(2*b*x + 2*a + 2*c) - 4*sin(2*b*x + 4*c) + sin(2*a) + sin(2*c))*cos(4*b*x + a + 5*c) + 4*(4*sin( 2*b*x + 2*a + 2*c) - sin(2*a) - sin(2*c))*cos(2*b*x + a + 3*c) - 4*(4*sin( 2*b*x + a + 3*c) - sin(a + c))*cos(2*b*x + 4*c) + (sin(2*a) + sin(2*c))*co s(a + c) - (6*cos(4*b*x + 2*a + 4*c) - 4*cos(2*b*x + 2*a + 2*c) - 4*cos(2* b*x + 4*c) + cos(2*a) + cos(2*c))*sin(8*b*x + a + 9*c) + 4*(6*cos(4*b*x + 2*a + 4*c) - 4*cos(2*b*x + 2*a + 2*c) - 4*cos(2*b*x + 4*c) + cos(2*a) + co s(2*c))*sin(6*b*x + a + 7*c) - 6*(4*cos(2*b*x + a + 3*c) - cos(a + c))*sin (4*b*x + 2*a + 4*c) - 6*(6*cos(4*b*x + 2*a + 4*c) - 4*cos(2*b*x + 2*a + 2* c) - 4*cos(2*b*x + 4*c) + cos(2*a) + cos(2*c))*sin(4*b*x + a + 5*c) - 4*co s(a + c)*sin(2*b*x + 2*a + 2*c) - 4*(4*cos(2*b*x + 2*a + 2*c) - cos(2*a) - cos(2*c))*sin(2*b*x + a + 3*c) + 4*(4*cos(2*b*x + a + 3*c) - cos(a + c))* sin(2*b*x + 4*c) - (cos(2*a) + cos(2*c))*sin(a + c) + 4*cos(2*b*x + 2*a + 2*c)*sin(a + c))/(b*cos(8*b*x + a + 9*c)^2 + 16*b*cos(6*b*x + a + 7*c)^2 + 36*b*cos(4*b*x + a + 5*c)^2 + 16*b*cos(2*b*x + a + 3*c)^2 - 8*b*cos(2*b*x + a + 3*c)*cos(a + c) + b*cos(a + c)^2 + b*sin(8*b*x + a + 9*c)^2 + 16...
Leaf count of result is larger than twice the leaf count of optimal. 301 vs. \(2 (56) = 112\).
Time = 0.15 (sec) , antiderivative size = 301, normalized size of antiderivative = 5.02 \[ \int \csc ^5(c+b x) \sin (a+b x) \, dx=-\frac {6 \, \tan \left (b x + c\right )^{3} \tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right )^{2} - 6 \, \tan \left (b x + c\right )^{3} \tan \left (\frac {1}{2} \, a\right )^{2} + 24 \, \tan \left (b x + c\right )^{3} \tan \left (\frac {1}{2} \, a\right ) \tan \left (\frac {1}{2} \, c\right ) + 6 \, \tan \left (b x + c\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right ) - 6 \, \tan \left (b x + c\right )^{3} \tan \left (\frac {1}{2} \, c\right )^{2} - 6 \, \tan \left (b x + c\right )^{2} \tan \left (\frac {1}{2} \, a\right ) \tan \left (\frac {1}{2} \, c\right )^{2} + 2 \, \tan \left (b x + c\right ) \tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right )^{2} + 6 \, \tan \left (b x + c\right )^{3} + 6 \, \tan \left (b x + c\right )^{2} \tan \left (\frac {1}{2} \, a\right ) - 2 \, \tan \left (b x + c\right ) \tan \left (\frac {1}{2} \, a\right )^{2} - 6 \, \tan \left (b x + c\right )^{2} \tan \left (\frac {1}{2} \, c\right ) + 8 \, \tan \left (b x + c\right ) \tan \left (\frac {1}{2} \, a\right ) \tan \left (\frac {1}{2} \, c\right ) + 3 \, \tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right ) - 2 \, \tan \left (b x + c\right ) \tan \left (\frac {1}{2} \, c\right )^{2} - 3 \, \tan \left (\frac {1}{2} \, a\right ) \tan \left (\frac {1}{2} \, c\right )^{2} + 2 \, \tan \left (b x + c\right ) + 3 \, \tan \left (\frac {1}{2} \, a\right ) - 3 \, \tan \left (\frac {1}{2} \, c\right )}{6 \, {\left (\tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right )^{2} + \tan \left (\frac {1}{2} \, a\right )^{2} + \tan \left (\frac {1}{2} \, c\right )^{2} + 1\right )} b \tan \left (b x + c\right )^{4}} \] Input:
integrate(csc(b*x+c)^5*sin(b*x+a),x, algorithm="giac")
Output:
-1/6*(6*tan(b*x + c)^3*tan(1/2*a)^2*tan(1/2*c)^2 - 6*tan(b*x + c)^3*tan(1/ 2*a)^2 + 24*tan(b*x + c)^3*tan(1/2*a)*tan(1/2*c) + 6*tan(b*x + c)^2*tan(1/ 2*a)^2*tan(1/2*c) - 6*tan(b*x + c)^3*tan(1/2*c)^2 - 6*tan(b*x + c)^2*tan(1 /2*a)*tan(1/2*c)^2 + 2*tan(b*x + c)*tan(1/2*a)^2*tan(1/2*c)^2 + 6*tan(b*x + c)^3 + 6*tan(b*x + c)^2*tan(1/2*a) - 2*tan(b*x + c)*tan(1/2*a)^2 - 6*tan (b*x + c)^2*tan(1/2*c) + 8*tan(b*x + c)*tan(1/2*a)*tan(1/2*c) + 3*tan(1/2* a)^2*tan(1/2*c) - 2*tan(b*x + c)*tan(1/2*c)^2 - 3*tan(1/2*a)*tan(1/2*c)^2 + 2*tan(b*x + c) + 3*tan(1/2*a) - 3*tan(1/2*c))/((tan(1/2*a)^2*tan(1/2*c)^ 2 + tan(1/2*a)^2 + tan(1/2*c)^2 + 1)*b*tan(b*x + c)^4)
Timed out. \[ \int \csc ^5(c+b x) \sin (a+b x) \, dx=\text {Hanged} \] Input:
int(sin(a + b*x)/sin(c + b*x)^5,x)
Output:
\text{Hanged}
Time = 0.20 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.33 \[ \int \csc ^5(c+b x) \sin (a+b x) \, dx=\frac {-4 \cos \left (b x +c \right ) \sin \left (b x +c \right )^{2} \sin \left (b x +a \right )-3 \cos \left (b x +c \right ) \sin \left (b x +a \right )-4 \cos \left (b x +a \right ) \sin \left (b x +c \right )^{3}-\cos \left (b x +a \right ) \sin \left (b x +c \right )}{12 \sin \left (b x +c \right )^{4} b} \] Input:
int(csc(b*x+c)^5*sin(b*x+a),x)
Output:
( - 4*cos(b*x + c)*sin(b*x + c)**2*sin(a + b*x) - 3*cos(b*x + c)*sin(a + b *x) - 4*cos(a + b*x)*sin(b*x + c)**3 - cos(a + b*x)*sin(b*x + c))/(12*sin( b*x + c)**4*b)