Integrand size = 23, antiderivative size = 152 \[ \int \frac {\cot ^3(c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx=-\frac {2 \text {arctanh}\left (\frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {a}}\right )}{\sqrt {a} d}+\frac {9 \text {arctanh}\left (\frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{8 \sqrt {2} \sqrt {a} d}-\frac {a}{12 d (a+a \sec (c+d x))^{3/2}}+\frac {a}{2 d (1-\sec (c+d x)) (a+a \sec (c+d x))^{3/2}}+\frac {7}{8 d \sqrt {a+a \sec (c+d x)}} \] Output:
-2*arctanh((a+a*sec(d*x+c))^(1/2)/a^(1/2))/a^(1/2)/d+9/16*arctanh(1/2*(a+a *sec(d*x+c))^(1/2)*2^(1/2)/a^(1/2))*2^(1/2)/a^(1/2)/d-1/12*a/d/(a+a*sec(d* x+c))^(3/2)+1/2*a/d/(1-sec(d*x+c))/(a+a*sec(d*x+c))^(3/2)+7/8/d/(a+a*sec(d *x+c))^(1/2)
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.11 (sec) , antiderivative size = 90, normalized size of antiderivative = 0.59 \[ \int \frac {\cot ^3(c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx=\frac {a \left (-6-9 \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},1,-\frac {1}{2},\frac {1}{2} (1+\sec (c+d x))\right ) (-1+\sec (c+d x))+8 \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},1,-\frac {1}{2},1+\sec (c+d x)\right ) (-1+\sec (c+d x))\right )}{12 d (-1+\sec (c+d x)) (a (1+\sec (c+d x)))^{3/2}} \] Input:
Integrate[Cot[c + d*x]^3/Sqrt[a + a*Sec[c + d*x]],x]
Output:
(a*(-6 - 9*Hypergeometric2F1[-3/2, 1, -1/2, (1 + Sec[c + d*x])/2]*(-1 + Se c[c + d*x]) + 8*Hypergeometric2F1[-3/2, 1, -1/2, 1 + Sec[c + d*x]]*(-1 + S ec[c + d*x])))/(12*d*(-1 + Sec[c + d*x])*(a*(1 + Sec[c + d*x]))^(3/2))
Time = 0.35 (sec) , antiderivative size = 168, normalized size of antiderivative = 1.11, number of steps used = 15, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.609, Rules used = {3042, 25, 4368, 27, 114, 27, 169, 27, 169, 27, 174, 73, 219, 220}
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 \frac {\cot ^3(c+d x)}{\sqrt {a \sec (c+d x)+a}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int -\frac {1}{\cot \left (c+d x+\frac {\pi }{2}\right )^3 \sqrt {a \csc \left (c+d x+\frac {\pi }{2}\right )+a}}dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\int \frac {1}{\cot \left (\frac {1}{2} (2 c+\pi )+d x\right )^3 \sqrt {\csc \left (\frac {1}{2} (2 c+\pi )+d x\right ) a+a}}dx\) |
\(\Big \downarrow \) 4368 |
\(\displaystyle \frac {a^4 \int \frac {\cos (c+d x)}{a^2 (1-\sec (c+d x))^2 (\sec (c+d x) a+a)^{5/2}}d\sec (c+d x)}{d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {a^2 \int \frac {\cos (c+d x)}{(1-\sec (c+d x))^2 (\sec (c+d x) a+a)^{5/2}}d\sec (c+d x)}{d}\) |
\(\Big \downarrow \) 114 |
\(\displaystyle \frac {a^2 \left (\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}-\frac {\int -\frac {a \cos (c+d x) (5 \sec (c+d x)+4)}{2 (1-\sec (c+d x)) (\sec (c+d x) a+a)^{5/2}}d\sec (c+d x)}{2 a}\right )}{d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \int \frac {\cos (c+d x) (5 \sec (c+d x)+4)}{(1-\sec (c+d x)) (\sec (c+d x) a+a)^{5/2}}d\sec (c+d x)+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
\(\Big \downarrow \) 169 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \left (\frac {\int \frac {3 a \cos (c+d x) (\sec (c+d x)+8)}{2 (1-\sec (c+d x)) (\sec (c+d x) a+a)^{3/2}}d\sec (c+d x)}{3 a^2}-\frac {1}{3 a (a \sec (c+d x)+a)^{3/2}}\right )+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \left (\frac {\int \frac {\cos (c+d x) (\sec (c+d x)+8)}{(1-\sec (c+d x)) (\sec (c+d x) a+a)^{3/2}}d\sec (c+d x)}{2 a}-\frac {1}{3 a (a \sec (c+d x)+a)^{3/2}}\right )+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
\(\Big \downarrow \) 169 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \left (\frac {\frac {\int \frac {a \cos (c+d x) (16-7 \sec (c+d x))}{2 (1-\sec (c+d x)) \sqrt {\sec (c+d x) a+a}}d\sec (c+d x)}{a^2}+\frac {7}{a \sqrt {a \sec (c+d x)+a}}}{2 a}-\frac {1}{3 a (a \sec (c+d x)+a)^{3/2}}\right )+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \left (\frac {\frac {\int \frac {\cos (c+d x) (16-7 \sec (c+d x))}{(1-\sec (c+d x)) \sqrt {\sec (c+d x) a+a}}d\sec (c+d x)}{2 a}+\frac {7}{a \sqrt {a \sec (c+d x)+a}}}{2 a}-\frac {1}{3 a (a \sec (c+d x)+a)^{3/2}}\right )+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
\(\Big \downarrow \) 174 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \left (\frac {\frac {9 \int \frac {1}{(1-\sec (c+d x)) \sqrt {\sec (c+d x) a+a}}d\sec (c+d x)+16 \int \frac {\cos (c+d x)}{\sqrt {\sec (c+d x) a+a}}d\sec (c+d x)}{2 a}+\frac {7}{a \sqrt {a \sec (c+d x)+a}}}{2 a}-\frac {1}{3 a (a \sec (c+d x)+a)^{3/2}}\right )+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
\(\Big \downarrow \) 73 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \left (\frac {\frac {\frac {18 \int \frac {1}{2-\frac {\sec (c+d x) a+a}{a}}d\sqrt {\sec (c+d x) a+a}}{a}+\frac {32 \int \frac {1}{\frac {\sec (c+d x) a+a}{a}-1}d\sqrt {\sec (c+d x) a+a}}{a}}{2 a}+\frac {7}{a \sqrt {a \sec (c+d x)+a}}}{2 a}-\frac {1}{3 a (a \sec (c+d x)+a)^{3/2}}\right )+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \left (\frac {\frac {\frac {32 \int \frac {1}{\frac {\sec (c+d x) a+a}{a}-1}d\sqrt {\sec (c+d x) a+a}}{a}+\frac {9 \sqrt {2} \text {arctanh}\left (\frac {\sqrt {a \sec (c+d x)+a}}{\sqrt {2} \sqrt {a}}\right )}{\sqrt {a}}}{2 a}+\frac {7}{a \sqrt {a \sec (c+d x)+a}}}{2 a}-\frac {1}{3 a (a \sec (c+d x)+a)^{3/2}}\right )+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
\(\Big \downarrow \) 220 |
\(\displaystyle \frac {a^2 \left (\frac {1}{4} \left (\frac {\frac {\frac {9 \sqrt {2} \text {arctanh}\left (\frac {\sqrt {a \sec (c+d x)+a}}{\sqrt {2} \sqrt {a}}\right )}{\sqrt {a}}-\frac {32 \text {arctanh}\left (\frac {\sqrt {a \sec (c+d x)+a}}{\sqrt {a}}\right )}{\sqrt {a}}}{2 a}+\frac {7}{a \sqrt {a \sec (c+d x)+a}}}{2 a}-\frac {1}{3 a (a \sec (c+d x)+a)^{3/2}}\right )+\frac {1}{2 a (1-\sec (c+d x)) (a \sec (c+d x)+a)^{3/2}}\right )}{d}\) |
Input:
Int[Cot[c + d*x]^3/Sqrt[a + a*Sec[c + d*x]],x]
Output:
(a^2*(1/(2*a*(1 - Sec[c + d*x])*(a + a*Sec[c + d*x])^(3/2)) + (-1/3*1/(a*( a + a*Sec[c + d*x])^(3/2)) + (((-32*ArcTanh[Sqrt[a + a*Sec[c + d*x]]/Sqrt[ a]])/Sqrt[a] + (9*Sqrt[2]*ArcTanh[Sqrt[a + a*Sec[c + d*x]]/(Sqrt[2]*Sqrt[a ])])/Sqrt[a])/(2*a) + 7/(a*Sqrt[a + a*Sec[c + d*x]]))/(2*a))/4))/d
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_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ {p = Denominator[m]}, Simp[p/b Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL inearQ[a, b, c, d, m, n, x]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_), x_] :> Simp[b*(a + b*x)^(m + 1)*(c + d*x)^(n + 1)*((e + f*x)^(p + 1 )/((m + 1)*(b*c - a*d)*(b*e - a*f))), x] + Simp[1/((m + 1)*(b*c - a*d)*(b*e - a*f)) Int[(a + b*x)^(m + 1)*(c + d*x)^n*(e + f*x)^p*Simp[a*d*f*(m + 1) - b*(d*e*(m + n + 2) + c*f*(m + p + 2)) - b*d*f*(m + n + p + 3)*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && ILtQ[m, -1] && (IntegerQ[n] || IntegersQ[2*n, 2*p] || ILtQ[m + n + p + 3, 0])
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_)*((g_.) + (h_.)*(x_)), x_] :> Simp[(b*g - a*h)*(a + b*x)^(m + 1)*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/((m + 1)*(b*c - a*d)*(b*e - a*f))), x] + S imp[1/((m + 1)*(b*c - a*d)*(b*e - a*f)) Int[(a + b*x)^(m + 1)*(c + d*x)^n *(e + f*x)^p*Simp[(a*d*f*g - b*(d*e + c*f)*g + b*c*e*h)*(m + 1) - (b*g - a* h)*(d*e*(n + 1) + c*f*(p + 1)) - d*f*(b*g - a*h)*(m + n + p + 3)*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, h, n, p}, x] && LtQ[m, -1] && IntegersQ[ 2*m, 2*n, 2*p]
Int[(((e_.) + (f_.)*(x_))^(p_)*((g_.) + (h_.)*(x_)))/(((a_.) + (b_.)*(x_))* ((c_.) + (d_.)*(x_))), x_] :> Simp[(b*g - a*h)/(b*c - a*d) Int[(e + f*x)^ p/(a + b*x), x], x] - Simp[(d*g - c*h)/(b*c - a*d) Int[(e + f*x)^p/(c + d *x), x], x] /; FreeQ[{a, b, c, d, e, f, g, h}, 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[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[b, 2])^(- 1))*ArcTanh[Rt[b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])
Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n _), x_Symbol] :> Simp[-(d*b^(m - 1))^(-1) Subst[Int[(-a + b*x)^((m - 1)/2 )*((a + b*x)^((m - 1)/2 + n)/x), x], x, Csc[c + d*x]], x] /; FreeQ[{a, b, c , d, n}, x] && IntegerQ[(m - 1)/2] && EqQ[a^2 - b^2, 0] && !IntegerQ[n]
Leaf count of result is larger than twice the leaf count of optimal. \(357\) vs. \(2(123)=246\).
Time = 0.76 (sec) , antiderivative size = 358, normalized size of antiderivative = 2.36
method | result | size |
default | \(-\frac {\sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (\left (786 \cos \left (d x +c \right )^{4}+336 \cos \left (d x +c \right )^{3}-1836 \cos \left (d x +c \right )^{2}-2016 \cos \left (d x +c \right )-630\right ) \sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {-\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \cot \left (d x +c \right ) \csc \left (d x +c \right )+\left (-1680 \cos \left (d x +c \right )^{3}-5040 \cos \left (d x +c \right )^{2}-5040 \cos \left (d x +c \right )-1680\right ) \sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{2}\right )+\left (-945 \cos \left (d x +c \right )^{3}-2835 \cos \left (d x +c \right )^{2}-2835 \cos \left (d x +c \right )-945\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\sqrt {2}}{2 \sqrt {-\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right )+\left (3742 \cos \left (d x +c \right )^{4}+3580 \cos \left (d x +c \right )^{3}-1792 \cos \left (d x +c \right )^{2}-4060 \cos \left (d x +c \right )-1470\right ) \cot \left (d x +c \right ) \csc \left (d x +c \right )\right )}{1680 d a \left (1+\cos \left (d x +c \right )\right ) \left (\cos \left (d x +c \right )^{2}+2 \cos \left (d x +c \right )+1\right )}\) | \(358\) |
Input:
int(cot(d*x+c)^3/(a+a*sec(d*x+c))^(1/2),x,method=_RETURNVERBOSE)
Output:
-1/1680/d/a*(a*(1+sec(d*x+c)))^(1/2)/(1+cos(d*x+c))/(cos(d*x+c)^2+2*cos(d* x+c)+1)*((786*cos(d*x+c)^4+336*cos(d*x+c)^3-1836*cos(d*x+c)^2-2016*cos(d*x +c)-630)*2^(1/2)*(-2*cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(-cos(d*x+c)/(1+cos( d*x+c)))^(1/2)*cot(d*x+c)*csc(d*x+c)+(-1680*cos(d*x+c)^3-5040*cos(d*x+c)^2 -5040*cos(d*x+c)-1680)*2^(1/2)*(-2*cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*arctan (1/2*2^(1/2)*(-2*cos(d*x+c)/(1+cos(d*x+c)))^(1/2))+(-945*cos(d*x+c)^3-2835 *cos(d*x+c)^2-2835*cos(d*x+c)-945)*(-2*cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*ar ctan(1/2*2^(1/2)/(-cos(d*x+c)/(1+cos(d*x+c)))^(1/2))+(3742*cos(d*x+c)^4+35 80*cos(d*x+c)^3-1792*cos(d*x+c)^2-4060*cos(d*x+c)-1470)*cot(d*x+c)*csc(d*x +c))
Leaf count of result is larger than twice the leaf count of optimal. 260 vs. \(2 (121) = 242\).
Time = 0.17 (sec) , antiderivative size = 546, normalized size of antiderivative = 3.59 \[ \int \frac {\cot ^3(c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx=\left [\frac {27 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} - \cos \left (d x + c\right ) - 1\right )} \sqrt {a} \log \left (\frac {2 \, \sqrt {2} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) + 3 \, a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right ) - 1}\right ) + 48 \, {\left (\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} - \cos \left (d x + c\right ) - 1\right )} \sqrt {a} \log \left (-8 \, a \cos \left (d x + c\right )^{2} + 4 \, {\left (2 \, \cos \left (d x + c\right )^{2} + \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} - 8 \, a \cos \left (d x + c\right ) - a\right ) + 4 \, {\left (31 \, \cos \left (d x + c\right )^{3} + 2 \, \cos \left (d x + c\right )^{2} - 21 \, \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{96 \, {\left (a d \cos \left (d x + c\right )^{3} + a d \cos \left (d x + c\right )^{2} - a d \cos \left (d x + c\right ) - a d\right )}}, -\frac {27 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} - \cos \left (d x + c\right ) - 1\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{a \cos \left (d x + c\right ) + a}\right ) - 48 \, {\left (\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} - \cos \left (d x + c\right ) - 1\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{2 \, a \cos \left (d x + c\right ) + a}\right ) - 2 \, {\left (31 \, \cos \left (d x + c\right )^{3} + 2 \, \cos \left (d x + c\right )^{2} - 21 \, \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{48 \, {\left (a d \cos \left (d x + c\right )^{3} + a d \cos \left (d x + c\right )^{2} - a d \cos \left (d x + c\right ) - a d\right )}}\right ] \] Input:
integrate(cot(d*x+c)^3/(a+a*sec(d*x+c))^(1/2),x, algorithm="fricas")
Output:
[1/96*(27*sqrt(2)*(cos(d*x + c)^3 + cos(d*x + c)^2 - cos(d*x + c) - 1)*sqr t(a)*log((2*sqrt(2)*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d* x + c) + 3*a*cos(d*x + c) + a)/(cos(d*x + c) - 1)) + 48*(cos(d*x + c)^3 + cos(d*x + c)^2 - cos(d*x + c) - 1)*sqrt(a)*log(-8*a*cos(d*x + c)^2 + 4*(2* cos(d*x + c)^2 + cos(d*x + c))*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c)) - 8*a*cos(d*x + c) - a) + 4*(31*cos(d*x + c)^3 + 2*cos(d*x + c)^2 - 2 1*cos(d*x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c)))/(a*d*cos(d*x + c) ^3 + a*d*cos(d*x + c)^2 - a*d*cos(d*x + c) - a*d), -1/48*(27*sqrt(2)*(cos( d*x + c)^3 + cos(d*x + c)^2 - cos(d*x + c) - 1)*sqrt(-a)*arctan(sqrt(2)*sq rt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)/(a*cos(d*x + c ) + a)) - 48*(cos(d*x + c)^3 + cos(d*x + c)^2 - cos(d*x + c) - 1)*sqrt(-a) *arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)/(2 *a*cos(d*x + c) + a)) - 2*(31*cos(d*x + c)^3 + 2*cos(d*x + c)^2 - 21*cos(d *x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c)))/(a*d*cos(d*x + c)^3 + a* d*cos(d*x + c)^2 - a*d*cos(d*x + c) - a*d)]
\[ \int \frac {\cot ^3(c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx=\int \frac {\cot ^{3}{\left (c + d x \right )}}{\sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )}}\, dx \] Input:
integrate(cot(d*x+c)**3/(a+a*sec(d*x+c))**(1/2),x)
Output:
Integral(cot(c + d*x)**3/sqrt(a*(sec(c + d*x) + 1)), x)
\[ \int \frac {\cot ^3(c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx=\int { \frac {\cot \left (d x + c\right )^{3}}{\sqrt {a \sec \left (d x + c\right ) + a}} \,d x } \] Input:
integrate(cot(d*x+c)^3/(a+a*sec(d*x+c))^(1/2),x, algorithm="maxima")
Output:
integrate(cot(d*x + c)^3/sqrt(a*sec(d*x + c) + a), x)
Time = 0.51 (sec) , antiderivative size = 174, normalized size of antiderivative = 1.14 \[ \int \frac {\cot ^3(c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx=\frac {\sqrt {2} {\left (\frac {48 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}}{2 \, \sqrt {-a}}\right )}{\sqrt {-a}} - \frac {27 \, \arctan \left (\frac {\sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} - \frac {3 \, \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}}{a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}} + \frac {2 \, {\left ({\left (-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a\right )}^{\frac {3}{2}} a^{4} + 12 \, \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} a^{5}\right )}}{a^{6}}\right )}}{48 \, d \mathrm {sgn}\left (\cos \left (d x + c\right )\right )} \] Input:
integrate(cot(d*x+c)^3/(a+a*sec(d*x+c))^(1/2),x, algorithm="giac")
Output:
1/48*sqrt(2)*(48*sqrt(2)*arctan(1/2*sqrt(2)*sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a)/sqrt(-a))/sqrt(-a) - 27*arctan(sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a)/s qrt(-a))/sqrt(-a) - 3*sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a)/(a*tan(1/2*d*x + 1/2*c)^2) + 2*((-a*tan(1/2*d*x + 1/2*c)^2 + a)^(3/2)*a^4 + 12*sqrt(-a*tan (1/2*d*x + 1/2*c)^2 + a)*a^5)/a^6)/(d*sgn(cos(d*x + c)))
Timed out. \[ \int \frac {\cot ^3(c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx=\int \frac {{\mathrm {cot}\left (c+d\,x\right )}^3}{\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}} \,d x \] Input:
int(cot(c + d*x)^3/(a + a/cos(c + d*x))^(1/2),x)
Output:
int(cot(c + d*x)^3/(a + a/cos(c + d*x))^(1/2), x)
\[ \int \frac {\cot ^3(c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx=\frac {\sqrt {a}\, \left (\int \frac {\sqrt {\sec \left (d x +c \right )+1}\, \cot \left (d x +c \right )^{3}}{\sec \left (d x +c \right )+1}d x \right )}{a} \] Input:
int(cot(d*x+c)^3/(a+a*sec(d*x+c))^(1/2),x)
Output:
(sqrt(a)*int((sqrt(sec(c + d*x) + 1)*cot(c + d*x)**3)/(sec(c + d*x) + 1),x ))/a