3.338 \(\int \frac {\cot (c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx\)

Optimal. Leaf size=142 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 b^2}{a d \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a-b}}\right )}{d (a-b)^{3/2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )}{d (a+b)^{3/2}} \]

[Out]

2*arctanh((a+b*sec(d*x+c))^(1/2)/a^(1/2))/a^(3/2)/d-arctanh((a+b*sec(d*x+c))^(1/2)/(a-b)^(1/2))/(a-b)^(3/2)/d-
arctanh((a+b*sec(d*x+c))^(1/2)/(a+b)^(1/2))/(a+b)^(3/2)/d+2*b^2/a/(a^2-b^2)/d/(a+b*sec(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.20, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3885, 898, 1287, 206} \[ \frac {2 b^2}{a d \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a-b}}\right )}{d (a-b)^{3/2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )}{d (a+b)^{3/2}} \]

Antiderivative was successfully verified.

[In]

Int[Cot[c + d*x]/(a + b*Sec[c + d*x])^(3/2),x]

[Out]

(2*ArcTanh[Sqrt[a + b*Sec[c + d*x]]/Sqrt[a]])/(a^(3/2)*d) - ArcTanh[Sqrt[a + b*Sec[c + d*x]]/Sqrt[a - b]]/((a
- b)^(3/2)*d) - ArcTanh[Sqrt[a + b*Sec[c + d*x]]/Sqrt[a + b]]/((a + b)^(3/2)*d) + (2*b^2)/(a*(a^2 - b^2)*d*Sqr
t[a + b*Sec[c + d*x]])

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 898

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> With[{q = De
nominator[m]}, Dist[q/e, Subst[Int[x^(q*(m + 1) - 1)*((e*f - d*g)/e + (g*x^q)/e)^n*((c*d^2 + a*e^2)/e^2 - (2*c
*d*x^q)/e^2 + (c*x^(2*q))/e^2)^p, x], x, (d + e*x)^(1/q)], x]] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[e*f - d*
g, 0] && NeQ[c*d^2 + a*e^2, 0] && IntegersQ[n, p] && FractionQ[m]

Rule 1287

Int[(((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^2)^(q_.))/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> Int[Ex
pandIntegrand[((f*x)^m*(d + e*x^2)^q)/(a + b*x^2 + c*x^4), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b^
2 - 4*a*c, 0] && IntegerQ[q] && IntegerQ[m]

Rule 3885

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_), x_Symbol] :> -Dist[(-1)^((m - 1
)/2)/(d*b^(m - 1)), Subst[Int[((b^2 - x^2)^((m - 1)/2)*(a + x)^n)/x, x], x, b*Csc[c + d*x]], x] /; FreeQ[{a, b
, c, d, n}, x] && IntegerQ[(m - 1)/2] && NeQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int \frac {\cot (c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx &=-\frac {b^2 \operatorname {Subst}\left (\int \frac {1}{x (a+x)^{3/2} \left (b^2-x^2\right )} \, dx,x,b \sec (c+d x)\right )}{d}\\ &=-\frac {\left (2 b^2\right ) \operatorname {Subst}\left (\int \frac {1}{x^2 \left (-a+x^2\right ) \left (-a^2+b^2+2 a x^2-x^4\right )} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{d}\\ &=-\frac {\left (2 b^2\right ) \operatorname {Subst}\left (\int \left (\frac {1}{a \left (a^2-b^2\right ) x^2}-\frac {1}{a b^2 \left (a-x^2\right )}+\frac {1}{2 (a-b) b^2 \left (a-b-x^2\right )}+\frac {1}{2 b^2 (a+b) \left (a+b-x^2\right )}\right ) \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{d}\\ &=\frac {2 b^2}{a \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{a d}-\frac {\operatorname {Subst}\left (\int \frac {1}{a-b-x^2} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{(a-b) d}-\frac {\operatorname {Subst}\left (\int \frac {1}{a+b-x^2} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{(a+b) d}\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a-b}}\right )}{(a-b)^{3/2} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )}{(a+b)^{3/2} d}+\frac {2 b^2}{a \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 6.94, size = 1020, normalized size = 7.18 \[ \frac {(b+a \cos (c+d x))^2 \left (-\frac {2 b^3}{a^2 \left (a^2-b^2\right ) (b+a \cos (c+d x))}-\frac {2 b^2}{a^2 \left (b^2-a^2\right )}\right ) \sec ^2(c+d x)}{d (a+b \sec (c+d x))^{3/2}}-\frac {(b+a \cos (c+d x))^{3/2} \left (\frac {b \left (-\sqrt {-a^2} \sqrt {a+b} \log \left (\sqrt {b+a \cos (c+d x)}-\sqrt {b-a}\right )+\sqrt {-a^2} \sqrt {a+b} \log \left (\sqrt {b-a}+\sqrt {b+a \cos (c+d x)}\right )-a \sqrt {b-a} \log \left (\sqrt {b+a \cos (c+d x)}-\sqrt {a+b}\right )+a \sqrt {b-a} \log \left (\sqrt {a+b}+\sqrt {b+a \cos (c+d x)}\right )+\sqrt {-a^2} \sqrt {a+b} \log \left (b+\sqrt {a} \sqrt {-a \cos (c+d x)}-\sqrt {b-a} \sqrt {b+a \cos (c+d x)}\right )-\sqrt {-a^2} \sqrt {a+b} \log \left (b+\sqrt {a} \sqrt {-a \cos (c+d x)}+\sqrt {b-a} \sqrt {b+a \cos (c+d x)}\right )+a \sqrt {b-a} \log \left (b+\sqrt {-a} \sqrt {-a \cos (c+d x)}-\sqrt {a+b} \sqrt {b+a \cos (c+d x)}\right )-a \sqrt {b-a} \log \left (b+\sqrt {-a} \sqrt {-a \cos (c+d x)}+\sqrt {a+b} \sqrt {b+a \cos (c+d x)}\right )\right ) a^2}{(-a)^{3/2} \sqrt {b-a} \sqrt {a+b} \sqrt {-a \cos (c+d x)} \sqrt {\sec (c+d x)}}-\frac {\left (a^2-b^2\right ) \left (4 \sqrt {a-b} \sqrt {a+b} \tan ^{-1}\left (\frac {\sqrt {b+a \cos (c+d x)}}{\sqrt {-a \cos (c+d x)}}\right )-\sqrt {a} \left (\sqrt {a+b} \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {b+a \cos (c+d x)}}{\sqrt {a-b} \sqrt {-a \cos (c+d x)}}\right )+\sqrt {a-b} \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {b+a \cos (c+d x)}}{\sqrt {a+b} \sqrt {-a \cos (c+d x)}}\right )\right )\right ) \sqrt {-a \cos (c+d x)} \cos (2 (c+d x)) \sqrt {\sec (c+d x)} a}{\sqrt {a-b} \sqrt {a+b} \left (a^2-2 b^2-2 (b+a \cos (c+d x))^2+4 b (b+a \cos (c+d x))\right )}-\frac {\left (a^2+b^2\right ) \left (\sqrt {a-b} (a+b) \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {b+a \cos (c+d x)}}{\sqrt {a-b} \sqrt {-a \cos (c+d x)}}\right )+(a-b) \sqrt {a+b} \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {b+a \cos (c+d x)}}{\sqrt {a+b} \sqrt {-a \cos (c+d x)}}\right )\right ) \sqrt {-a \cos (c+d x)} \sqrt {\sec (c+d x)}}{(a-b) (a+b) \sqrt {a}}\right ) \sec ^{\frac {3}{2}}(c+d x)}{2 a (b-a) (a+b) d (a+b \sec (c+d x))^{3/2}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Cot[c + d*x]/(a + b*Sec[c + d*x])^(3/2),x]

[Out]

-1/2*((b + a*Cos[c + d*x])^(3/2)*((a^2*b*(-(Sqrt[-a^2]*Sqrt[a + b]*Log[-Sqrt[-a + b] + Sqrt[b + a*Cos[c + d*x]
]]) + Sqrt[-a^2]*Sqrt[a + b]*Log[Sqrt[-a + b] + Sqrt[b + a*Cos[c + d*x]]] - a*Sqrt[-a + b]*Log[-Sqrt[a + b] +
Sqrt[b + a*Cos[c + d*x]]] + a*Sqrt[-a + b]*Log[Sqrt[a + b] + Sqrt[b + a*Cos[c + d*x]]] + Sqrt[-a^2]*Sqrt[a + b
]*Log[b + Sqrt[a]*Sqrt[-(a*Cos[c + d*x])] - Sqrt[-a + b]*Sqrt[b + a*Cos[c + d*x]]] - Sqrt[-a^2]*Sqrt[a + b]*Lo
g[b + Sqrt[a]*Sqrt[-(a*Cos[c + d*x])] + Sqrt[-a + b]*Sqrt[b + a*Cos[c + d*x]]] + a*Sqrt[-a + b]*Log[b + Sqrt[-
a]*Sqrt[-(a*Cos[c + d*x])] - Sqrt[a + b]*Sqrt[b + a*Cos[c + d*x]]] - a*Sqrt[-a + b]*Log[b + Sqrt[-a]*Sqrt[-(a*
Cos[c + d*x])] + Sqrt[a + b]*Sqrt[b + a*Cos[c + d*x]]]))/((-a)^(3/2)*Sqrt[-a + b]*Sqrt[a + b]*Sqrt[-(a*Cos[c +
 d*x])]*Sqrt[Sec[c + d*x]]) - ((a^2 + b^2)*(Sqrt[a - b]*(a + b)*ArcTan[(Sqrt[a]*Sqrt[b + a*Cos[c + d*x]])/(Sqr
t[a - b]*Sqrt[-(a*Cos[c + d*x])])] + (a - b)*Sqrt[a + b]*ArcTan[(Sqrt[a]*Sqrt[b + a*Cos[c + d*x]])/(Sqrt[a + b
]*Sqrt[-(a*Cos[c + d*x])])])*Sqrt[-(a*Cos[c + d*x])]*Sqrt[Sec[c + d*x]])/(Sqrt[a]*(a - b)*(a + b)) - (a*(a^2 -
 b^2)*(4*Sqrt[a - b]*Sqrt[a + b]*ArcTan[Sqrt[b + a*Cos[c + d*x]]/Sqrt[-(a*Cos[c + d*x])]] - Sqrt[a]*(Sqrt[a +
b]*ArcTan[(Sqrt[a]*Sqrt[b + a*Cos[c + d*x]])/(Sqrt[a - b]*Sqrt[-(a*Cos[c + d*x])])] + Sqrt[a - b]*ArcTan[(Sqrt
[a]*Sqrt[b + a*Cos[c + d*x]])/(Sqrt[a + b]*Sqrt[-(a*Cos[c + d*x])])]))*Sqrt[-(a*Cos[c + d*x])]*Cos[2*(c + d*x)
]*Sqrt[Sec[c + d*x]])/(Sqrt[a - b]*Sqrt[a + b]*(a^2 - 2*b^2 + 4*b*(b + a*Cos[c + d*x]) - 2*(b + a*Cos[c + d*x]
)^2)))*Sec[c + d*x]^(3/2))/(a*(-a + b)*(a + b)*d*(a + b*Sec[c + d*x])^(3/2)) + ((b + a*Cos[c + d*x])^2*((-2*b^
2)/(a^2*(-a^2 + b^2)) - (2*b^3)/(a^2*(a^2 - b^2)*(b + a*Cos[c + d*x])))*Sec[c + d*x]^2)/(d*(a + b*Sec[c + d*x]
)^(3/2))

________________________________________________________________________________________

fricas [B]  time = 38.67, size = 3924, normalized size = 27.63 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)/(a+b*sec(d*x+c))^(3/2),x, algorithm="fricas")

[Out]

[1/4*(8*(a^3*b^2 - a*b^4)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c) + 2*(a^4*b - 2*a^2*b^3 + b^5 +
(a^5 - 2*a^3*b^2 + a*b^4)*cos(d*x + c))*sqrt(a)*log(-8*a^2*cos(d*x + c)^2 - 8*a*b*cos(d*x + c) - b^2 - 4*(2*a*
cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))) - (a^4*b + 2*a^3*b^2 + a^2*b
^3 + (a^5 + 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(a - b)*log(-((8*a^2 - 8*a*b + b^2)*cos(d*x + c)^2 + b^2 + 4*
((2*a - b)*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a - b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c)) + 2*(4*a*b - 3
*b^2)*cos(d*x + c))/(cos(d*x + c)^2 + 2*cos(d*x + c) + 1)) + (a^4*b - 2*a^3*b^2 + a^2*b^3 + (a^5 - 2*a^4*b + a
^3*b^2)*cos(d*x + c))*sqrt(a + b)*log(-((8*a^2 + 8*a*b + b^2)*cos(d*x + c)^2 + b^2 - 4*((2*a + b)*cos(d*x + c)
^2 + b*cos(d*x + c))*sqrt(a + b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c)) + 2*(4*a*b + 3*b^2)*cos(d*x + c))/(co
s(d*x + c)^2 - 2*cos(d*x + c) + 1)))/((a^7 - 2*a^5*b^2 + a^3*b^4)*d*cos(d*x + c) + (a^6*b - 2*a^4*b^3 + a^2*b^
5)*d), -1/4*(4*(a^4*b - 2*a^2*b^3 + b^5 + (a^5 - 2*a^3*b^2 + a*b^4)*cos(d*x + c))*sqrt(-a)*arctan(2*sqrt(-a)*s
qrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/(2*a*cos(d*x + c) + b)) - 8*(a^3*b^2 - a*b^4)*sqrt((a*cos(
d*x + c) + b)/cos(d*x + c))*cos(d*x + c) + (a^4*b + 2*a^3*b^2 + a^2*b^3 + (a^5 + 2*a^4*b + a^3*b^2)*cos(d*x +
c))*sqrt(a - b)*log(-((8*a^2 - 8*a*b + b^2)*cos(d*x + c)^2 + b^2 + 4*((2*a - b)*cos(d*x + c)^2 + b*cos(d*x + c
))*sqrt(a - b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c)) + 2*(4*a*b - 3*b^2)*cos(d*x + c))/(cos(d*x + c)^2 + 2*c
os(d*x + c) + 1)) - (a^4*b - 2*a^3*b^2 + a^2*b^3 + (a^5 - 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(a + b)*log(-((
8*a^2 + 8*a*b + b^2)*cos(d*x + c)^2 + b^2 - 4*((2*a + b)*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a + b)*sqrt((a*
cos(d*x + c) + b)/cos(d*x + c)) + 2*(4*a*b + 3*b^2)*cos(d*x + c))/(cos(d*x + c)^2 - 2*cos(d*x + c) + 1)))/((a^
7 - 2*a^5*b^2 + a^3*b^4)*d*cos(d*x + c) + (a^6*b - 2*a^4*b^3 + a^2*b^5)*d), -1/4*(2*(a^4*b + 2*a^3*b^2 + a^2*b
^3 + (a^5 + 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(-a + b)*arctan(-2*sqrt(-a + b)*sqrt((a*cos(d*x + c) + b)/cos
(d*x + c))*cos(d*x + c)/((2*a - b)*cos(d*x + c) + b)) - 8*(a^3*b^2 - a*b^4)*sqrt((a*cos(d*x + c) + b)/cos(d*x
+ c))*cos(d*x + c) - 2*(a^4*b - 2*a^2*b^3 + b^5 + (a^5 - 2*a^3*b^2 + a*b^4)*cos(d*x + c))*sqrt(a)*log(-8*a^2*c
os(d*x + c)^2 - 8*a*b*cos(d*x + c) - b^2 - 4*(2*a*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a)*sqrt((a*cos(d*x + c
) + b)/cos(d*x + c))) - (a^4*b - 2*a^3*b^2 + a^2*b^3 + (a^5 - 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(a + b)*log
(-((8*a^2 + 8*a*b + b^2)*cos(d*x + c)^2 + b^2 - 4*((2*a + b)*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a + b)*sqrt
((a*cos(d*x + c) + b)/cos(d*x + c)) + 2*(4*a*b + 3*b^2)*cos(d*x + c))/(cos(d*x + c)^2 - 2*cos(d*x + c) + 1)))/
((a^7 - 2*a^5*b^2 + a^3*b^4)*d*cos(d*x + c) + (a^6*b - 2*a^4*b^3 + a^2*b^5)*d), -1/4*(4*(a^4*b - 2*a^2*b^3 + b
^5 + (a^5 - 2*a^3*b^2 + a*b^4)*cos(d*x + c))*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c)
)*cos(d*x + c)/(2*a*cos(d*x + c) + b)) + 2*(a^4*b + 2*a^3*b^2 + a^2*b^3 + (a^5 + 2*a^4*b + a^3*b^2)*cos(d*x +
c))*sqrt(-a + b)*arctan(-2*sqrt(-a + b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/((2*a - b)*cos(d*
x + c) + b)) - 8*(a^3*b^2 - a*b^4)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c) - (a^4*b - 2*a^3*b^2 +
 a^2*b^3 + (a^5 - 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(a + b)*log(-((8*a^2 + 8*a*b + b^2)*cos(d*x + c)^2 + b^
2 - 4*((2*a + b)*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a + b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c)) + 2*(4*a
*b + 3*b^2)*cos(d*x + c))/(cos(d*x + c)^2 - 2*cos(d*x + c) + 1)))/((a^7 - 2*a^5*b^2 + a^3*b^4)*d*cos(d*x + c)
+ (a^6*b - 2*a^4*b^3 + a^2*b^5)*d), 1/4*(2*(a^4*b - 2*a^3*b^2 + a^2*b^3 + (a^5 - 2*a^4*b + a^3*b^2)*cos(d*x +
c))*sqrt(-a - b)*arctan(2*sqrt(-a - b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/((2*a + b)*cos(d*x
 + c) + b)) + 8*(a^3*b^2 - a*b^4)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c) + 2*(a^4*b - 2*a^2*b^3
+ b^5 + (a^5 - 2*a^3*b^2 + a*b^4)*cos(d*x + c))*sqrt(a)*log(-8*a^2*cos(d*x + c)^2 - 8*a*b*cos(d*x + c) - b^2 -
 4*(2*a*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))) - (a^4*b + 2*a^3*b^2
 + a^2*b^3 + (a^5 + 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(a - b)*log(-((8*a^2 - 8*a*b + b^2)*cos(d*x + c)^2 +
b^2 + 4*((2*a - b)*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a - b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c)) + 2*(4
*a*b - 3*b^2)*cos(d*x + c))/(cos(d*x + c)^2 + 2*cos(d*x + c) + 1)))/((a^7 - 2*a^5*b^2 + a^3*b^4)*d*cos(d*x + c
) + (a^6*b - 2*a^4*b^3 + a^2*b^5)*d), -1/4*(4*(a^4*b - 2*a^2*b^3 + b^5 + (a^5 - 2*a^3*b^2 + a*b^4)*cos(d*x + c
))*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/(2*a*cos(d*x + c) + b)) - 2
*(a^4*b - 2*a^3*b^2 + a^2*b^3 + (a^5 - 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(-a - b)*arctan(2*sqrt(-a - b)*sqr
t((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/((2*a + b)*cos(d*x + c) + b)) - 8*(a^3*b^2 - a*b^4)*sqrt((a*
cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c) + (a^4*b + 2*a^3*b^2 + a^2*b^3 + (a^5 + 2*a^4*b + a^3*b^2)*cos(d*
x + c))*sqrt(a - b)*log(-((8*a^2 - 8*a*b + b^2)*cos(d*x + c)^2 + b^2 + 4*((2*a - b)*cos(d*x + c)^2 + b*cos(d*x
 + c))*sqrt(a - b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c)) + 2*(4*a*b - 3*b^2)*cos(d*x + c))/(cos(d*x + c)^2 +
 2*cos(d*x + c) + 1)))/((a^7 - 2*a^5*b^2 + a^3*b^4)*d*cos(d*x + c) + (a^6*b - 2*a^4*b^3 + a^2*b^5)*d), -1/2*((
a^4*b + 2*a^3*b^2 + a^2*b^3 + (a^5 + 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(-a + b)*arctan(-2*sqrt(-a + b)*sqrt
((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/((2*a - b)*cos(d*x + c) + b)) - (a^4*b - 2*a^3*b^2 + a^2*b^3
+ (a^5 - 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(-a - b)*arctan(2*sqrt(-a - b)*sqrt((a*cos(d*x + c) + b)/cos(d*x
 + c))*cos(d*x + c)/((2*a + b)*cos(d*x + c) + b)) - 4*(a^3*b^2 - a*b^4)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c)
)*cos(d*x + c) - (a^4*b - 2*a^2*b^3 + b^5 + (a^5 - 2*a^3*b^2 + a*b^4)*cos(d*x + c))*sqrt(a)*log(-8*a^2*cos(d*x
 + c)^2 - 8*a*b*cos(d*x + c) - b^2 - 4*(2*a*cos(d*x + c)^2 + b*cos(d*x + c))*sqrt(a)*sqrt((a*cos(d*x + c) + b)
/cos(d*x + c))))/((a^7 - 2*a^5*b^2 + a^3*b^4)*d*cos(d*x + c) + (a^6*b - 2*a^4*b^3 + a^2*b^5)*d), -1/2*(2*(a^4*
b - 2*a^2*b^3 + b^5 + (a^5 - 2*a^3*b^2 + a*b^4)*cos(d*x + c))*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c)
+ b)/cos(d*x + c))*cos(d*x + c)/(2*a*cos(d*x + c) + b)) + (a^4*b + 2*a^3*b^2 + a^2*b^3 + (a^5 + 2*a^4*b + a^3*
b^2)*cos(d*x + c))*sqrt(-a + b)*arctan(-2*sqrt(-a + b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/((
2*a - b)*cos(d*x + c) + b)) - (a^4*b - 2*a^3*b^2 + a^2*b^3 + (a^5 - 2*a^4*b + a^3*b^2)*cos(d*x + c))*sqrt(-a -
 b)*arctan(2*sqrt(-a - b)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/((2*a + b)*cos(d*x + c) + b)) -
 4*(a^3*b^2 - a*b^4)*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c))/((a^7 - 2*a^5*b^2 + a^3*b^4)*d*cos(
d*x + c) + (a^6*b - 2*a^4*b^3 + a^2*b^5)*d)]

________________________________________________________________________________________

giac [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)/(a+b*sec(d*x+c))^(3/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,x):;OUTPUT:Unab
le to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*p
i/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unab
le to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*p
i/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unab
le to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*p
i/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unab
le to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*p
i/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unab
le to check sign: (2*pi/x/2)>(-2*pi/x/2)Warning, integration of abs or sign assumes constant sign by intervals
 (correct if the argument is real):Check [abs(cos(d*t_nostep+c))]Unable to check sign: (2*pi/t_nostep/2)>(-2*p
i/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)
>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_nos
tep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi
/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Discontinuities at ze
roes of cos(d*t_nostep+c) were not checkedWarning, integration of abs or sign assumes constant sign by interva
ls (correct if the argument is real):Check [abs(t_nostep^2-1)]Evaluation time: 0.88Error: Bad Argument Type

________________________________________________________________________________________

maple [B]  time = 1.32, size = 2766, normalized size = 19.48 \[ \text {Expression too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(d*x+c)/(a+b*sec(d*x+c))^(3/2),x)

[Out]

1/4/d*(-1+cos(d*x+c))*(-2*a^(9/2)*cos(d*x+c)*(a-b)^(3/2)*ln(4*a^(1/2)*cos(d*x+c)*((b+a*cos(d*x+c))*cos(d*x+c)/
(1+cos(d*x+c))^2)^(1/2)+4*a^(1/2)*((b+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)+4*a*cos(d*x+c)+2*b)-2*a
^(7/2)*cos(d*x+c)*(a-b)^(3/2)*ln(4*a^(1/2)*cos(d*x+c)*((b+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)+4*a
^(1/2)*((b+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)+4*a*cos(d*x+c)+2*b)*b-2*a^(7/2)*(a-b)^(3/2)*ln(4*a
^(1/2)*cos(d*x+c)*((b+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)+4*a^(1/2)*((b+a*cos(d*x+c))*cos(d*x+c)/
(1+cos(d*x+c))^2)^(1/2)+4*a*cos(d*x+c)+2*b)*b+2*a^(5/2)*cos(d*x+c)*(a-b)^(3/2)*ln(4*a^(1/2)*cos(d*x+c)*((b+a*c
os(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)+4*a^(1/2)*((b+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)+4
*a*cos(d*x+c)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x+c))^2)^(1/2)-2*a*cos(d*x+c)+b*cos(d*x+c)+2*((b+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)
*(a-b)^(1/2)-b)/sin(d*x+c)^2/(a-b)^(1/2))*a^4*b^2+ln(-(-1+cos(d*x+c))*(2*cos(d*x+c)*(a-b)^(1/2)*((b+a*cos(d*x+
c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)-2*a*cos(d*x+c)+b*cos(d*x+c)+2*((b+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c
))^2)^(1/2)*(a-b)^(1/2)-b)/sin(d*x+c)^2/(a-b)^(1/2))*a^3*b^3+ln(-(-1+cos(d*x+c))*(2*cos(d*x+c)*(a-b)^(1/2)*((b
+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)-2*a*cos(d*x+c)+b*cos(d*x+c)+2*((b+a*cos(d*x+c))*cos(d*x+c)/(
1+cos(d*x+c))^2)^(1/2)*(a-b)^(1/2)-b)/sin(d*x+c)^2/(a-b)^(1/2))*a^2*b^4)*cos(d*x+c)*((b+a*cos(d*x+c))/cos(d*x+
c))^(1/2)*4^(1/2)/((b+a*cos(d*x+c))*cos(d*x+c)/(1+cos(d*x+c))^2)^(1/2)/(b+a*cos(d*x+c))/sin(d*x+c)^2/(a-b)^(5/
2)/(a+b)^2/a^2

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot \left (d x + c\right )}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)/(a+b*sec(d*x+c))^(3/2),x, algorithm="maxima")

[Out]

integrate(cot(d*x + c)/(b*sec(d*x + c) + a)^(3/2), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\mathrm {cot}\left (c+d\,x\right )}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(c + d*x)/(a + b/cos(c + d*x))^(3/2),x)

[Out]

int(cot(c + d*x)/(a + b/cos(c + d*x))^(3/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot {\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)/(a+b*sec(d*x+c))**(3/2),x)

[Out]

Integral(cot(c + d*x)/(a + b*sec(c + d*x))**(3/2), x)

________________________________________________________________________________________