Integrand size = 29, antiderivative size = 131 \[ \int \cot ^2(c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\frac {a^{3/2} \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{4 d}+\frac {13 a^2 \cos (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {3 a \cot (c+d x) \sqrt {a+a \sin (c+d x)}}{4 d}-\frac {\cot (c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2}}{2 d} \] Output:
1/4*a^(3/2)*arctanh(a^(1/2)*cos(d*x+c)/(a+a*sin(d*x+c))^(1/2))/d+13/4*a^2* cos(d*x+c)/d/(a+a*sin(d*x+c))^(1/2)-3/4*a*cot(d*x+c)*(a+a*sin(d*x+c))^(1/2 )/d-1/2*cot(d*x+c)*csc(d*x+c)*(a+a*sin(d*x+c))^(3/2)/d
Leaf count is larger than twice the leaf count of optimal. \(271\) vs. \(2(131)=262\).
Time = 1.88 (sec) , antiderivative size = 271, normalized size of antiderivative = 2.07 \[ \int \cot ^2(c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx=-\frac {a \csc ^7\left (\frac {1}{2} (c+d x)\right ) \sqrt {a (1+\sin (c+d x))} \left (-22 \cos \left (\frac {1}{2} (c+d x)\right )+22 \cos \left (\frac {3}{2} (c+d x)\right )+8 \cos \left (\frac {5}{2} (c+d x)\right )-\log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+\cos (2 (c+d x)) \log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+\log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )-\cos (2 (c+d x)) \log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )+22 \sin \left (\frac {1}{2} (c+d x)\right )+22 \sin \left (\frac {3}{2} (c+d x)\right )-8 \sin \left (\frac {5}{2} (c+d x)\right )\right )}{4 d \left (1+\cot \left (\frac {1}{2} (c+d x)\right )\right ) \left (\csc ^2\left (\frac {1}{4} (c+d x)\right )-\sec ^2\left (\frac {1}{4} (c+d x)\right )\right )^2} \] Input:
Integrate[Cot[c + d*x]^2*Csc[c + d*x]*(a + a*Sin[c + d*x])^(3/2),x]
Output:
-1/4*(a*Csc[(c + d*x)/2]^7*Sqrt[a*(1 + Sin[c + d*x])]*(-22*Cos[(c + d*x)/2 ] + 22*Cos[(3*(c + d*x))/2] + 8*Cos[(5*(c + d*x))/2] - Log[1 + Cos[(c + d* x)/2] - Sin[(c + d*x)/2]] + Cos[2*(c + d*x)]*Log[1 + Cos[(c + d*x)/2] - Si n[(c + d*x)/2]] + Log[1 - Cos[(c + d*x)/2] + Sin[(c + d*x)/2]] - Cos[2*(c + d*x)]*Log[1 - Cos[(c + d*x)/2] + Sin[(c + d*x)/2]] + 22*Sin[(c + d*x)/2] + 22*Sin[(3*(c + d*x))/2] - 8*Sin[(5*(c + d*x))/2]))/(d*(1 + Cot[(c + d*x )/2])*(Csc[(c + d*x)/4]^2 - Sec[(c + d*x)/4]^2)^2)
Time = 1.04 (sec) , antiderivative size = 144, normalized size of antiderivative = 1.10, number of steps used = 14, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.448, Rules used = {3042, 3353, 3042, 3454, 27, 3042, 3454, 27, 3042, 3460, 3042, 3252, 219}
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 ^2(c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^2 (a \sin (c+d x)+a)^{3/2}}{\sin (c+d x)^3}dx\) |
\(\Big \downarrow \) 3353 |
\(\displaystyle \frac {\int \csc ^3(c+d x) (a-a \sin (c+d x)) (\sin (c+d x) a+a)^{5/2}dx}{a^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {(a-a \sin (c+d x)) (\sin (c+d x) a+a)^{5/2}}{\sin (c+d x)^3}dx}{a^2}\) |
\(\Big \downarrow \) 3454 |
\(\displaystyle \frac {\frac {1}{2} \int \frac {1}{2} \csc ^2(c+d x) (\sin (c+d x) a+a)^{3/2} \left (3 a^2-5 a^2 \sin (c+d x)\right )dx-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {1}{4} \int \csc ^2(c+d x) (\sin (c+d x) a+a)^{3/2} \left (3 a^2-5 a^2 \sin (c+d x)\right )dx-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{4} \int \frac {(\sin (c+d x) a+a)^{3/2} \left (3 a^2-5 a^2 \sin (c+d x)\right )}{\sin (c+d x)^2}dx-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 3454 |
\(\displaystyle \frac {\frac {1}{4} \left (\int -\frac {1}{2} \csc (c+d x) \sqrt {\sin (c+d x) a+a} \left (13 \sin (c+d x) a^3+a^3\right )dx-\frac {3 a^3 \cot (c+d x) \sqrt {a \sin (c+d x)+a}}{d}\right )-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {1}{4} \left (-\frac {1}{2} \int \csc (c+d x) \sqrt {\sin (c+d x) a+a} \left (13 \sin (c+d x) a^3+a^3\right )dx-\frac {3 a^3 \cot (c+d x) \sqrt {a \sin (c+d x)+a}}{d}\right )-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{4} \left (-\frac {1}{2} \int \frac {\sqrt {\sin (c+d x) a+a} \left (13 \sin (c+d x) a^3+a^3\right )}{\sin (c+d x)}dx-\frac {3 a^3 \cot (c+d x) \sqrt {a \sin (c+d x)+a}}{d}\right )-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 3460 |
\(\displaystyle \frac {\frac {1}{4} \left (\frac {1}{2} \left (\frac {26 a^4 \cos (c+d x)}{d \sqrt {a \sin (c+d x)+a}}-a^3 \int \csc (c+d x) \sqrt {\sin (c+d x) a+a}dx\right )-\frac {3 a^3 \cot (c+d x) \sqrt {a \sin (c+d x)+a}}{d}\right )-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{4} \left (\frac {1}{2} \left (\frac {26 a^4 \cos (c+d x)}{d \sqrt {a \sin (c+d x)+a}}-a^3 \int \frac {\sqrt {\sin (c+d x) a+a}}{\sin (c+d x)}dx\right )-\frac {3 a^3 \cot (c+d x) \sqrt {a \sin (c+d x)+a}}{d}\right )-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 3252 |
\(\displaystyle \frac {\frac {1}{4} \left (\frac {1}{2} \left (\frac {2 a^4 \int \frac {1}{a-\frac {a^2 \cos ^2(c+d x)}{\sin (c+d x) a+a}}d\frac {a \cos (c+d x)}{\sqrt {\sin (c+d x) a+a}}}{d}+\frac {26 a^4 \cos (c+d x)}{d \sqrt {a \sin (c+d x)+a}}\right )-\frac {3 a^3 \cot (c+d x) \sqrt {a \sin (c+d x)+a}}{d}\right )-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {1}{4} \left (\frac {1}{2} \left (\frac {2 a^{7/2} \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a \sin (c+d x)+a}}\right )}{d}+\frac {26 a^4 \cos (c+d x)}{d \sqrt {a \sin (c+d x)+a}}\right )-\frac {3 a^3 \cot (c+d x) \sqrt {a \sin (c+d x)+a}}{d}\right )-\frac {a^2 \cot (c+d x) \csc (c+d x) (a \sin (c+d x)+a)^{3/2}}{2 d}}{a^2}\) |
Input:
Int[Cot[c + d*x]^2*Csc[c + d*x]*(a + a*Sin[c + d*x])^(3/2),x]
Output:
(-1/2*(a^2*Cot[c + d*x]*Csc[c + d*x]*(a + a*Sin[c + d*x])^(3/2))/d + ((-3* a^3*Cot[c + d*x]*Sqrt[a + a*Sin[c + d*x]])/d + ((2*a^(7/2)*ArcTanh[(Sqrt[a ]*Cos[c + d*x])/Sqrt[a + a*Sin[c + d*x]]])/d + (26*a^4*Cos[c + d*x])/(d*Sq rt[a + a*Sin[c + d*x]]))/2)/4)/a^2
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/((c_.) + (d_.)*sin[(e_.) + ( f_.)*(x_)]), x_Symbol] :> Simp[-2*(b/f) Subst[Int[1/(b*c + a*d - d*x^2), x], x, b*(Cos[e + f*x]/Sqrt[a + b*Sin[e + f*x]])], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Int[cos[(e_.) + (f_.)*(x_)]^2*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[1/b^2 Int[(d*Sin[e + f*x])^n*(a + b*Sin[e + f*x])^(m + 1)*(a - b*Sin[e + f*x]), x], x] /; Fre eQ[{a, b, d, e, f, m, n}, x] && EqQ[a^2 - b^2, 0] && (ILtQ[m, 0] || !IGtQ[ n, 0])
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim p[(-b^2)*(B*c - A*d)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 1)*((c + d*Sin[ e + f*x])^(n + 1)/(d*f*(n + 1)*(b*c + a*d))), x] - Simp[b/(d*(n + 1)*(b*c + a*d)) Int[(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x])^(n + 1)*Simp [a*A*d*(m - n - 2) - B*(a*c*(m - 1) + b*d*(n + 1)) - (A*b*d*(m + n + 1) - B *(b*c*m - a*d*(n + 1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f , A, B}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m, 1/2] && LtQ[n, -1] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c, 0 ])
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((A_.) + (B_.)*sin[(e_.) + ( f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp [-2*b*B*Cos[e + f*x]*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(2*n + 3)*Sqrt[a + b*Sin[e + f*x]])), x] + Simp[(A*b*d*(2*n + 3) - B*(b*c - 2*a*d*(n + 1)))/(b *d*(2*n + 3)) Int[Sqrt[a + b*Sin[e + f*x]]*(c + d*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && !LtQ[n, -1]
Time = 0.38 (sec) , antiderivative size = 151, normalized size of antiderivative = 1.15
method | result | size |
default | \(\frac {\left (1+\sin \left (d x +c \right )\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, \left (8 \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, a^{\frac {3}{2}} \sin \left (d x +c \right )^{2}+\operatorname {arctanh}\left (\frac {\sqrt {-a \left (\sin \left (d x +c \right )-1\right )}}{\sqrt {a}}\right ) \sin \left (d x +c \right )^{2} a^{2}+7 \left (-a \left (\sin \left (d x +c \right )-1\right )\right )^{\frac {3}{2}} \sqrt {a}-9 \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, a^{\frac {3}{2}}\right )}{4 \sin \left (d x +c \right )^{2} \sqrt {a}\, \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(151\) |
Input:
int(cot(d*x+c)^2*csc(d*x+c)*(a+a*sin(d*x+c))^(3/2),x,method=_RETURNVERBOSE )
Output:
1/4*(1+sin(d*x+c))*(-a*(sin(d*x+c)-1))^(1/2)*(8*(-a*(sin(d*x+c)-1))^(1/2)* a^(3/2)*sin(d*x+c)^2+arctanh((-a*(sin(d*x+c)-1))^(1/2)/a^(1/2))*sin(d*x+c) ^2*a^2+7*(-a*(sin(d*x+c)-1))^(3/2)*a^(1/2)-9*(-a*(sin(d*x+c)-1))^(1/2)*a^( 3/2))/sin(d*x+c)^2/a^(1/2)/cos(d*x+c)/(a+a*sin(d*x+c))^(1/2)/d
Leaf count of result is larger than twice the leaf count of optimal. 359 vs. \(2 (111) = 222\).
Time = 0.09 (sec) , antiderivative size = 359, normalized size of antiderivative = 2.74 \[ \int \cot ^2(c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\frac {{\left (a \cos \left (d x + c\right )^{3} + a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right )^{2} - a\right )} \sin \left (d x + c\right ) - a\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} + 4 \, {\left (\cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} - 9 \, a \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right ) + 4 \, {\left (8 \, a \cos \left (d x + c\right )^{3} + 15 \, a \cos \left (d x + c\right )^{2} - 6 \, a \cos \left (d x + c\right ) - {\left (8 \, a \cos \left (d x + c\right )^{2} - 7 \, a \cos \left (d x + c\right ) - 13 \, a\right )} \sin \left (d x + c\right ) - 13 \, a\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{16 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2} - d \cos \left (d x + c\right ) + {\left (d \cos \left (d x + c\right )^{2} - d\right )} \sin \left (d x + c\right ) - d\right )}} \] Input:
integrate(cot(d*x+c)^2*csc(d*x+c)*(a+a*sin(d*x+c))^(3/2),x, algorithm="fri cas")
Output:
1/16*((a*cos(d*x + c)^3 + a*cos(d*x + c)^2 - a*cos(d*x + c) + (a*cos(d*x + c)^2 - a)*sin(d*x + c) - a)*sqrt(a)*log((a*cos(d*x + c)^3 - 7*a*cos(d*x + c)^2 + 4*(cos(d*x + c)^2 + (cos(d*x + c) + 3)*sin(d*x + c) - 2*cos(d*x + c) - 3)*sqrt(a*sin(d*x + c) + a)*sqrt(a) - 9*a*cos(d*x + c) + (a*cos(d*x + c)^2 + 8*a*cos(d*x + c) - a)*sin(d*x + c) - a)/(cos(d*x + c)^3 + cos(d*x + c)^2 + (cos(d*x + c)^2 - 1)*sin(d*x + c) - cos(d*x + c) - 1)) + 4*(8*a*c os(d*x + c)^3 + 15*a*cos(d*x + c)^2 - 6*a*cos(d*x + c) - (8*a*cos(d*x + c) ^2 - 7*a*cos(d*x + c) - 13*a)*sin(d*x + c) - 13*a)*sqrt(a*sin(d*x + c) + a ))/(d*cos(d*x + c)^3 + d*cos(d*x + c)^2 - d*cos(d*x + c) + (d*cos(d*x + c) ^2 - d)*sin(d*x + c) - d)
Timed out. \[ \int \cot ^2(c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\text {Timed out} \] Input:
integrate(cot(d*x+c)**2*csc(d*x+c)*(a+a*sin(d*x+c))**(3/2),x)
Output:
Timed out
\[ \int \cot ^2(c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\int { {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \cot \left (d x + c\right )^{2} \csc \left (d x + c\right ) \,d x } \] Input:
integrate(cot(d*x+c)^2*csc(d*x+c)*(a+a*sin(d*x+c))^(3/2),x, algorithm="max ima")
Output:
integrate((a*sin(d*x + c) + a)^(3/2)*cot(d*x + c)^2*csc(d*x + c), x)
Time = 0.17 (sec) , antiderivative size = 185, normalized size of antiderivative = 1.41 \[ \int \cot ^2(c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\frac {\sqrt {2} {\left (\sqrt {2} a \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}\right ) \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) - 32 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \frac {4 \, {\left (14 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 9 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (2 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{2}}\right )} \sqrt {a}}{16 \, d} \] Input:
integrate(cot(d*x+c)^2*csc(d*x+c)*(a+a*sin(d*x+c))^(3/2),x, algorithm="gia c")
Output:
1/16*sqrt(2)*(sqrt(2)*a*log(abs(-2*sqrt(2) + 4*sin(-1/4*pi + 1/2*d*x + 1/2 *c))/abs(2*sqrt(2) + 4*sin(-1/4*pi + 1/2*d*x + 1/2*c)))*sgn(cos(-1/4*pi + 1/2*d*x + 1/2*c)) - 32*a*sgn(cos(-1/4*pi + 1/2*d*x + 1/2*c))*sin(-1/4*pi + 1/2*d*x + 1/2*c) - 4*(14*a*sgn(cos(-1/4*pi + 1/2*d*x + 1/2*c))*sin(-1/4*p i + 1/2*d*x + 1/2*c)^3 - 9*a*sgn(cos(-1/4*pi + 1/2*d*x + 1/2*c))*sin(-1/4* pi + 1/2*d*x + 1/2*c))/(2*sin(-1/4*pi + 1/2*d*x + 1/2*c)^2 - 1)^2)*sqrt(a) /d
Timed out. \[ \int \cot ^2(c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\int -\frac {\left ({\sin \left (c+d\,x\right )}^2-1\right )\,{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{3/2}}{{\sin \left (c+d\,x\right )}^3} \,d x \] Input:
int((cot(c + d*x)^2*(a + a*sin(c + d*x))^(3/2))/sin(c + d*x),x)
Output:
int(-((sin(c + d*x)^2 - 1)*(a + a*sin(c + d*x))^(3/2))/sin(c + d*x)^3, x)
\[ \int \cot ^2(c+d x) \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\sqrt {a}\, a \left (\int \sqrt {\sin \left (d x +c \right )+1}\, \cot \left (d x +c \right )^{2} \csc \left (d x +c \right ) \sin \left (d x +c \right )d x +\int \sqrt {\sin \left (d x +c \right )+1}\, \cot \left (d x +c \right )^{2} \csc \left (d x +c \right )d x \right ) \] Input:
int(cot(d*x+c)^2*csc(d*x+c)*(a+a*sin(d*x+c))^(3/2),x)
Output:
sqrt(a)*a*(int(sqrt(sin(c + d*x) + 1)*cot(c + d*x)**2*csc(c + d*x)*sin(c + d*x),x) + int(sqrt(sin(c + d*x) + 1)*cot(c + d*x)**2*csc(c + d*x),x))