Integrand size = 23, antiderivative size = 163 \[ \int \cot ^4(e+f x) \sqrt {a+a \sin (e+f x)} \, dx=\frac {11 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{8 f}-\frac {2 a \cos (e+f x)}{f \sqrt {a+a \sin (e+f x)}}+\frac {11 a \cot (e+f x)}{8 f \sqrt {a+a \sin (e+f x)}}-\frac {a \cot (e+f x) \csc (e+f x)}{12 f \sqrt {a+a \sin (e+f x)}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{3 f} \] Output:
11/8*a^(1/2)*arctanh(a^(1/2)*cos(f*x+e)/(a+a*sin(f*x+e))^(1/2))/f-2*a*cos( f*x+e)/f/(a+a*sin(f*x+e))^(1/2)+11/8*a*cot(f*x+e)/f/(a+a*sin(f*x+e))^(1/2) -1/12*a*cot(f*x+e)*csc(f*x+e)/f/(a+a*sin(f*x+e))^(1/2)-1/3*cot(f*x+e)*csc( f*x+e)^2*(a+a*sin(f*x+e))^(1/2)/f
Time = 2.19 (sec) , antiderivative size = 309, normalized size of antiderivative = 1.90 \[ \int \cot ^4(e+f x) \sqrt {a+a \sin (e+f x)} \, dx=\frac {\csc ^{10}\left (\frac {1}{2} (e+f x)\right ) \sqrt {a (1+\sin (e+f x))} \left (252 \cos \left (\frac {1}{2} (e+f x)\right )-250 \cos \left (\frac {3}{2} (e+f x)\right )-114 \cos \left (\frac {5}{2} (e+f x)\right )+48 \cos \left (\frac {7}{2} (e+f x)\right )-252 \sin \left (\frac {1}{2} (e+f x)\right )+99 \log \left (1+\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sin (e+f x)-99 \log \left (1-\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sin (e+f x)-250 \sin \left (\frac {3}{2} (e+f x)\right )+114 \sin \left (\frac {5}{2} (e+f x)\right )-33 \log \left (1+\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sin (3 (e+f x))+33 \log \left (1-\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sin (3 (e+f x))+48 \sin \left (\frac {7}{2} (e+f x)\right )\right )}{24 f \left (1+\cot \left (\frac {1}{2} (e+f x)\right )\right ) \left (\csc ^2\left (\frac {1}{4} (e+f x)\right )-\sec ^2\left (\frac {1}{4} (e+f x)\right )\right )^3} \] Input:
Integrate[Cot[e + f*x]^4*Sqrt[a + a*Sin[e + f*x]],x]
Output:
(Csc[(e + f*x)/2]^10*Sqrt[a*(1 + Sin[e + f*x])]*(252*Cos[(e + f*x)/2] - 25 0*Cos[(3*(e + f*x))/2] - 114*Cos[(5*(e + f*x))/2] + 48*Cos[(7*(e + f*x))/2 ] - 252*Sin[(e + f*x)/2] + 99*Log[1 + Cos[(e + f*x)/2] - Sin[(e + f*x)/2]] *Sin[e + f*x] - 99*Log[1 - Cos[(e + f*x)/2] + Sin[(e + f*x)/2]]*Sin[e + f* x] - 250*Sin[(3*(e + f*x))/2] + 114*Sin[(5*(e + f*x))/2] - 33*Log[1 + Cos[ (e + f*x)/2] - Sin[(e + f*x)/2]]*Sin[3*(e + f*x)] + 33*Log[1 - Cos[(e + f* x)/2] + Sin[(e + f*x)/2]]*Sin[3*(e + f*x)] + 48*Sin[(7*(e + f*x))/2]))/(24 *f*(1 + Cot[(e + f*x)/2])*(Csc[(e + f*x)/4]^2 - Sec[(e + f*x)/4]^2)^3)
Time = 1.03 (sec) , antiderivative size = 175, normalized size of antiderivative = 1.07, number of steps used = 14, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.565, Rules used = {3042, 3197, 3042, 3125, 3523, 27, 3042, 3459, 3042, 3251, 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 ^4(e+f x) \sqrt {a \sin (e+f x)+a} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sqrt {a \sin (e+f x)+a}}{\tan (e+f x)^4}dx\) |
\(\Big \downarrow \) 3197 |
\(\displaystyle \int \sqrt {\sin (e+f x) a+a}dx+\int \csc ^4(e+f x) \sqrt {\sin (e+f x) a+a} \left (1-2 \sin ^2(e+f x)\right )dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sqrt {\sin (e+f x) a+a}dx+\int \frac {\sqrt {\sin (e+f x) a+a} \left (1-2 \sin (e+f x)^2\right )}{\sin (e+f x)^4}dx\) |
\(\Big \downarrow \) 3125 |
\(\displaystyle \int \frac {\sqrt {\sin (e+f x) a+a} \left (1-2 \sin (e+f x)^2\right )}{\sin (e+f x)^4}dx-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}\) |
\(\Big \downarrow \) 3523 |
\(\displaystyle \frac {\int \frac {1}{2} \csc ^3(e+f x) (a-9 a \sin (e+f x)) \sqrt {\sin (e+f x) a+a}dx}{3 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int \csc ^3(e+f x) (a-9 a \sin (e+f x)) \sqrt {\sin (e+f x) a+a}dx}{6 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {(a-9 a \sin (e+f x)) \sqrt {\sin (e+f x) a+a}}{\sin (e+f x)^3}dx}{6 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
\(\Big \downarrow \) 3459 |
\(\displaystyle \frac {-\frac {33}{4} a \int \csc ^2(e+f x) \sqrt {\sin (e+f x) a+a}dx-\frac {a^2 \cot (e+f x) \csc (e+f x)}{2 f \sqrt {a \sin (e+f x)+a}}}{6 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {-\frac {33}{4} a \int \frac {\sqrt {\sin (e+f x) a+a}}{\sin (e+f x)^2}dx-\frac {a^2 \cot (e+f x) \csc (e+f x)}{2 f \sqrt {a \sin (e+f x)+a}}}{6 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
\(\Big \downarrow \) 3251 |
\(\displaystyle \frac {-\frac {33}{4} a \left (\frac {1}{2} \int \csc (e+f x) \sqrt {\sin (e+f x) a+a}dx-\frac {a \cot (e+f x)}{f \sqrt {a \sin (e+f x)+a}}\right )-\frac {a^2 \cot (e+f x) \csc (e+f x)}{2 f \sqrt {a \sin (e+f x)+a}}}{6 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {-\frac {33}{4} a \left (\frac {1}{2} \int \frac {\sqrt {\sin (e+f x) a+a}}{\sin (e+f x)}dx-\frac {a \cot (e+f x)}{f \sqrt {a \sin (e+f x)+a}}\right )-\frac {a^2 \cot (e+f x) \csc (e+f x)}{2 f \sqrt {a \sin (e+f x)+a}}}{6 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
\(\Big \downarrow \) 3252 |
\(\displaystyle \frac {-\frac {33}{4} a \left (-\frac {a \int \frac {1}{a-\frac {a^2 \cos ^2(e+f x)}{\sin (e+f x) a+a}}d\frac {a \cos (e+f x)}{\sqrt {\sin (e+f x) a+a}}}{f}-\frac {a \cot (e+f x)}{f \sqrt {a \sin (e+f x)+a}}\right )-\frac {a^2 \cot (e+f x) \csc (e+f x)}{2 f \sqrt {a \sin (e+f x)+a}}}{6 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {-\frac {a^2 \cot (e+f x) \csc (e+f x)}{2 f \sqrt {a \sin (e+f x)+a}}-\frac {33}{4} a \left (-\frac {\sqrt {a} \text {arctanh}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {a \sin (e+f x)+a}}\right )}{f}-\frac {a \cot (e+f x)}{f \sqrt {a \sin (e+f x)+a}}\right )}{6 a}-\frac {2 a \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a}}-\frac {\cot (e+f x) \csc ^2(e+f x) \sqrt {a \sin (e+f x)+a}}{3 f}\) |
Input:
Int[Cot[e + f*x]^4*Sqrt[a + a*Sin[e + f*x]],x]
Output:
(-2*a*Cos[e + f*x])/(f*Sqrt[a + a*Sin[e + f*x]]) - (Cot[e + f*x]*Csc[e + f *x]^2*Sqrt[a + a*Sin[e + f*x]])/(3*f) + (-1/2*(a^2*Cot[e + f*x]*Csc[e + f* x])/(f*Sqrt[a + a*Sin[e + f*x]]) - (33*a*(-((Sqrt[a]*ArcTanh[(Sqrt[a]*Cos[ e + f*x])/Sqrt[a + a*Sin[e + f*x]]])/f) - (a*Cot[e + f*x])/(f*Sqrt[a + a*S in[e + f*x]])))/4)/(6*a)
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[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[-2*b*(Cos [c + d*x]/(d*Sqrt[a + b*Sin[c + d*x]])), x] /; FreeQ[{a, b, c, d}, x] && Eq Q[a^2 - b^2, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)/tan[(e_.) + (f_.)*(x_)]^4, x_Symbol] :> Int[(a + b*Sin[e + f*x])^m, x] + Int[(a + b*Sin[e + f*x])^m*(( 1 - 2*Sin[e + f*x]^2)/Sin[e + f*x]^4), x] /; FreeQ[{a, b, e, f, m}, x] && E qQ[a^2 - b^2, 0] && IntegerQ[m - 1/2] && !LtQ[m, -1]
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_.) + (d_.)*sin[(e_.) + ( f_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*c - a*d)*Cos[e + f*x]*((c + d*Sin[e + f*x])^(n + 1)/(f*(n + 1)*(c^2 - d^2)*Sqrt[a + b*Sin[e + f*x]])), x] + Sim p[(2*n + 3)*((b*c - a*d)/(2*b*(n + 1)*(c^2 - d^2))) Int[Sqrt[a + b*Sin[e + f*x]]*(c + d*Sin[e + f*x])^(n + 1), 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] && LtQ[n, -1] && NeQ[2*n + 3, 0] && IntegerQ[2*n]
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[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((A_.) + (B_.)*sin[(e_.) + ( f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp [(-b^2)*(B*c - A*d)*Cos[e + f*x]*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(n + 1) *(b*c + a*d)*Sqrt[a + b*Sin[e + f*x]])), x] + Simp[(A*b*d*(2*n + 3) - B*(b* c - 2*a*d*(n + 1)))/(2*d*(n + 1)*(b*c + a*d)) Int[Sqrt[a + b*Sin[e + f*x] ]*(c + d*Sin[e + f*x])^(n + 1), 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] && LtQ[n, -1]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-(c^2*C + A*d^2))*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(n + 1)*(c^2 - d^2))), x] + Simp[1/(b*d*(n + 1)*(c^2 - d^2)) Int[(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*x])^(n + 1)*Simp[A*d*(a *d*m + b*c*(n + 1)) + c*C*(a*c*m + b*d*(n + 1)) - b*(A*d^2*(m + n + 2) + C* (c^2*(m + 1) + d^2*(n + 1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, C, m}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && !LtQ[m, -2^(-1)] && (LtQ[n, -1] || EqQ[m + n + 2, 0])
Time = 0.34 (sec) , antiderivative size = 170, normalized size of antiderivative = 1.04
method | result | size |
default | \(-\frac {\left (1+\sin \left (f x +e \right )\right ) \sqrt {-a \left (-1+\sin \left (f x +e \right )\right )}\, \left (48 \sqrt {-a \left (-1+\sin \left (f x +e \right )\right )}\, a^{\frac {7}{2}} \sin \left (f x +e \right )^{3}-15 \sqrt {-a \left (-1+\sin \left (f x +e \right )\right )}\, a^{\frac {7}{2}}+56 \left (-a \left (-1+\sin \left (f x +e \right )\right )\right )^{\frac {3}{2}} a^{\frac {5}{2}}-33 \left (-a \left (-1+\sin \left (f x +e \right )\right )\right )^{\frac {5}{2}} a^{\frac {3}{2}}-33 \,\operatorname {arctanh}\left (\frac {\sqrt {-a \left (-1+\sin \left (f x +e \right )\right )}}{\sqrt {a}}\right ) a^{4} \sin \left (f x +e \right )^{3}\right )}{24 a^{\frac {7}{2}} \sin \left (f x +e \right )^{3} \cos \left (f x +e \right ) \sqrt {a +\sin \left (f x +e \right ) a}\, f}\) | \(170\) |
Input:
int(cot(f*x+e)^4*(a+sin(f*x+e)*a)^(1/2),x,method=_RETURNVERBOSE)
Output:
-1/24*(1+sin(f*x+e))*(-a*(-1+sin(f*x+e)))^(1/2)*(48*(-a*(-1+sin(f*x+e)))^( 1/2)*a^(7/2)*sin(f*x+e)^3-15*(-a*(-1+sin(f*x+e)))^(1/2)*a^(7/2)+56*(-a*(-1 +sin(f*x+e)))^(3/2)*a^(5/2)-33*(-a*(-1+sin(f*x+e)))^(5/2)*a^(3/2)-33*arcta nh((-a*(-1+sin(f*x+e)))^(1/2)/a^(1/2))*a^4*sin(f*x+e)^3)/a^(7/2)/sin(f*x+e )^3/cos(f*x+e)/(a+sin(f*x+e)*a)^(1/2)/f
Leaf count of result is larger than twice the leaf count of optimal. 380 vs. \(2 (141) = 282\).
Time = 0.14 (sec) , antiderivative size = 380, normalized size of antiderivative = 2.33 \[ \int \cot ^4(e+f x) \sqrt {a+a \sin (e+f x)} \, dx=\frac {33 \, {\left (\cos \left (f x + e\right )^{4} - 2 \, \cos \left (f x + e\right )^{2} - {\left (\cos \left (f x + e\right )^{3} + \cos \left (f x + e\right )^{2} - \cos \left (f x + e\right ) - 1\right )} \sin \left (f x + e\right ) + 1\right )} \sqrt {a} \log \left (\frac {a \cos \left (f x + e\right )^{3} - 7 \, a \cos \left (f x + e\right )^{2} + 4 \, {\left (\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 3\right )} \sin \left (f x + e\right ) - 2 \, \cos \left (f x + e\right ) - 3\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {a} - 9 \, a \cos \left (f x + e\right ) + {\left (a \cos \left (f x + e\right )^{2} + 8 \, a \cos \left (f x + e\right ) - a\right )} \sin \left (f x + e\right ) - a}{\cos \left (f x + e\right )^{3} + \cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right )^{2} - 1\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 1}\right ) + 4 \, {\left (48 \, \cos \left (f x + e\right )^{4} - 33 \, \cos \left (f x + e\right )^{3} - 139 \, \cos \left (f x + e\right )^{2} + {\left (48 \, \cos \left (f x + e\right )^{3} + 81 \, \cos \left (f x + e\right )^{2} - 58 \, \cos \left (f x + e\right ) - 83\right )} \sin \left (f x + e\right ) + 25 \, \cos \left (f x + e\right ) + 83\right )} \sqrt {a \sin \left (f x + e\right ) + a}}{96 \, {\left (f \cos \left (f x + e\right )^{4} - 2 \, f \cos \left (f x + e\right )^{2} - {\left (f \cos \left (f x + e\right )^{3} + f \cos \left (f x + e\right )^{2} - f \cos \left (f x + e\right ) - f\right )} \sin \left (f x + e\right ) + f\right )}} \] Input:
integrate(cot(f*x+e)^4*(a+a*sin(f*x+e))^(1/2),x, algorithm="fricas")
Output:
1/96*(33*(cos(f*x + e)^4 - 2*cos(f*x + e)^2 - (cos(f*x + e)^3 + cos(f*x + e)^2 - cos(f*x + e) - 1)*sin(f*x + e) + 1)*sqrt(a)*log((a*cos(f*x + e)^3 - 7*a*cos(f*x + e)^2 + 4*(cos(f*x + e)^2 + (cos(f*x + e) + 3)*sin(f*x + e) - 2*cos(f*x + e) - 3)*sqrt(a*sin(f*x + e) + a)*sqrt(a) - 9*a*cos(f*x + e) + (a*cos(f*x + e)^2 + 8*a*cos(f*x + e) - a)*sin(f*x + e) - a)/(cos(f*x + e )^3 + cos(f*x + e)^2 + (cos(f*x + e)^2 - 1)*sin(f*x + e) - cos(f*x + e) - 1)) + 4*(48*cos(f*x + e)^4 - 33*cos(f*x + e)^3 - 139*cos(f*x + e)^2 + (48* cos(f*x + e)^3 + 81*cos(f*x + e)^2 - 58*cos(f*x + e) - 83)*sin(f*x + e) + 25*cos(f*x + e) + 83)*sqrt(a*sin(f*x + e) + a))/(f*cos(f*x + e)^4 - 2*f*co s(f*x + e)^2 - (f*cos(f*x + e)^3 + f*cos(f*x + e)^2 - f*cos(f*x + e) - f)* sin(f*x + e) + f)
\[ \int \cot ^4(e+f x) \sqrt {a+a \sin (e+f x)} \, dx=\int \sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \cot ^{4}{\left (e + f x \right )}\, dx \] Input:
integrate(cot(f*x+e)**4*(a+a*sin(f*x+e))**(1/2),x)
Output:
Integral(sqrt(a*(sin(e + f*x) + 1))*cot(e + f*x)**4, x)
\[ \int \cot ^4(e+f x) \sqrt {a+a \sin (e+f x)} \, dx=\int { \sqrt {a \sin \left (f x + e\right ) + a} \cot \left (f x + e\right )^{4} \,d x } \] Input:
integrate(cot(f*x+e)^4*(a+a*sin(f*x+e))^(1/2),x, algorithm="maxima")
Output:
integrate(sqrt(a*sin(f*x + e) + a)*cot(f*x + e)^4, x)
Time = 0.17 (sec) , antiderivative size = 211, normalized size of antiderivative = 1.29 \[ \int \cot ^4(e+f x) \sqrt {a+a \sin (e+f x)} \, dx=\frac {\sqrt {2} {\left (33 \, \sqrt {2} \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) \right |}}\right ) \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 192 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + \frac {4 \, {\left (132 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 112 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 15 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{{\left (2 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 1\right )}^{3}}\right )} \sqrt {a}}{96 \, f} \] Input:
integrate(cot(f*x+e)^4*(a+a*sin(f*x+e))^(1/2),x, algorithm="giac")
Output:
1/96*sqrt(2)*(33*sqrt(2)*log(abs(-2*sqrt(2) + 4*sin(-1/4*pi + 1/2*f*x + 1/ 2*e))/abs(2*sqrt(2) + 4*sin(-1/4*pi + 1/2*f*x + 1/2*e)))*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e)) + 192*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*x + 1/2*e) + 4*(132*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*x + 1/2*e)^5 - 112*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*p i + 1/2*f*x + 1/2*e)^3 + 15*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*p i + 1/2*f*x + 1/2*e))/(2*sin(-1/4*pi + 1/2*f*x + 1/2*e)^2 - 1)^3)*sqrt(a)/ f
Timed out. \[ \int \cot ^4(e+f x) \sqrt {a+a \sin (e+f x)} \, dx=\int {\mathrm {cot}\left (e+f\,x\right )}^4\,\sqrt {a+a\,\sin \left (e+f\,x\right )} \,d x \] Input:
int(cot(e + f*x)^4*(a + a*sin(e + f*x))^(1/2),x)
Output:
int(cot(e + f*x)^4*(a + a*sin(e + f*x))^(1/2), x)
\[ \int \cot ^4(e+f x) \sqrt {a+a \sin (e+f x)} \, dx=\sqrt {a}\, \left (\int \sqrt {\sin \left (f x +e \right )+1}\, \cot \left (f x +e \right )^{4}d x \right ) \] Input:
int(cot(f*x+e)^4*(a+a*sin(f*x+e))^(1/2),x)
Output:
sqrt(a)*int(sqrt(sin(e + f*x) + 1)*cot(e + f*x)**4,x)