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

Optimal. Leaf size=54 \[ \frac {2}{a d \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} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3885, 51, 63, 207} \[ \frac {2}{a d \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} \]

Antiderivative was successfully verified.

[In]

Int[Tan[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) + 2/(a*d*Sqrt[a + b*Sec[c + d*x]])

Rule 51

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

Rule 63

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[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] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 207

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

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 {\tan (c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1}{x (a+x)^{3/2}} \, dx,x,b \sec (c+d x)\right )}{d}\\ &=\frac {2}{a d \sqrt {a+b \sec (c+d x)}}+\frac {\operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+x}} \, dx,x,b \sec (c+d x)\right )}{a d}\\ &=\frac {2}{a 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 {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2}{a d \sqrt {a+b \sec (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.39, size = 128, normalized size = 2.37 \[ \frac {\sec (c+d x) \left (\sqrt {a \cos (c+d x)} \sqrt {a \cos (c+d x)+b} \left (\log \left (1-\frac {\sqrt {a \cos (c+d x)+b}}{\sqrt {a \cos (c+d x)}}\right )-\log \left (\frac {\sqrt {a \cos (c+d x)+b}}{\sqrt {a \cos (c+d x)}}+1\right )\right )+2 a \cos (c+d x)\right )}{a^2 d \sqrt {a+b \sec (c+d x)}} \]

Antiderivative was successfully verified.

[In]

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

[Out]

((2*a*Cos[c + d*x] + Sqrt[a*Cos[c + d*x]]*Sqrt[b + a*Cos[c + d*x]]*(Log[1 - Sqrt[b + a*Cos[c + d*x]]/Sqrt[a*Co
s[c + d*x]]] - Log[1 + Sqrt[b + a*Cos[c + d*x]]/Sqrt[a*Cos[c + d*x]]]))*Sec[c + d*x])/(a^2*d*Sqrt[a + b*Sec[c
+ d*x]])

________________________________________________________________________________________

fricas [B]  time = 1.04, size = 260, normalized size = 4.81 \[ \left [\frac {4 \, a \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right ) + b\right )} \sqrt {a} \log \left (-8 \, a^{2} \cos \left (d x + c\right )^{2} - 8 \, a b \cos \left (d x + c\right ) - b^{2} + 4 \, {\left (2 \, a \cos \left (d x + c\right )^{2} + b \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}\right )}{2 \, {\left (a^{3} d \cos \left (d x + c\right ) + a^{2} b d\right )}}, \frac {{\left (a \cos \left (d x + c\right ) + b\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{2 \, a \cos \left (d x + c\right ) + b}\right ) + 2 \, a \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{a^{3} d \cos \left (d x + c\right ) + a^{2} b d}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

[1/2*(4*a*sqrt((a*cos(d*x + c) + b)/cos(d*x + c))*cos(d*x + c) + (a*cos(d*x + c) + b)*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^3*d*cos(d*x + c) + a^2*b*d), ((a*cos(d*x + c) + b)*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*co
s(d*x + c) + b)/cos(d*x + c))*cos(d*x + c)/(2*a*cos(d*x + c) + b)) + 2*a*sqrt((a*cos(d*x + c) + b)/cos(d*x + c
))*cos(d*x + c))/(a^3*d*cos(d*x + c) + a^2*b*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(tan(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:Warn
ing, integration of abs or sign assumes constant sign by intervals (correct if the argument is real):Check [ab
s(cos(d*t_nostep+c))]Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_n
ostep/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)Unable to check sig
n: (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 che
ck sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Discontinuities at zeroes of cos(d*t_nostep+c) were not checkedWa
rning, integration of abs or sign assumes constant sign by intervals (correct if the argument is real):Check [
abs(t_nostep^2-1)]Evaluation time: 0.8Unable to divide, perhaps due to rounding error%%%{%%%{4,[2,2]%%%}+%%%{-
4,[1,3]%%%},[2,1]%%%}+%%%{%%{[%%%{8,[2,2]%%%}+%%%{8,[1,3]%%%},0]:[1,0,%%%{-1,[1,0]%%%}+%%%{1,[0,1]%%%}]%%},[1,
1]%%%}+%%%{%%%{4,[3,2]%%%}+%%%{8,[2,3]%%%}+%%%{4,[1,4]%%%},[0,1]%%%} / %%%{%%%{1,[2,0]%%%}+%%%{-2,[1,1]%%%}+%%
%{1,[0,2]%%%},[2,0]%%%}+%%%{%%{[%%%{2,[2,0]%%%}+%%%{-2,[0,2]%%%},0]:[1,0,%%%{-1,[1,0]%%%}+%%%{1,[0,1]%%%}]%%},
[1,0]%%%}+%%%{%%%{1,[3,0]%%%}+%%%{1,[2,1]%%%}+%%%{-1,[1,2]%%%}+%%%{-1,[0,3]%%%},[0,0]%%%} Error: Bad Argument
Value

________________________________________________________________________________________

maple [A]  time = 0.14, size = 45, normalized size = 0.83 \[ \frac {-\frac {2 \arctanh \left (\frac {\sqrt {a +b \sec \left (d x +c \right )}}{\sqrt {a}}\right )}{a^{\frac {3}{2}}}+\frac {2}{a \sqrt {a +b \sec \left (d x +c \right )}}}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 70, normalized size = 1.30 \[ \frac {\frac {\log \left (\frac {\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} - \sqrt {a}}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} + \sqrt {a}}\right )}{a^{\frac {3}{2}}} + \frac {2}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} a}}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(log((sqrt(a + b/cos(d*x + c)) - sqrt(a))/(sqrt(a + b/cos(d*x + c)) + sqrt(a)))/a^(3/2) + 2/(sqrt(a + b/cos(d*
x + c))*a))/d

________________________________________________________________________________________

mupad [B]  time = 1.95, size = 50, normalized size = 0.93 \[ \frac {2}{a\,d\,\sqrt {a+\frac {b}{\cos \left (c+d\,x\right )}}}-\frac {2\,\mathrm {atanh}\left (\frac {\sqrt {a+\frac {b}{\cos \left (c+d\,x\right )}}}{\sqrt {a}}\right )}{a^{3/2}\,d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2/(a*d*(a + b/cos(c + d*x))^(1/2)) - (2*atanh((a + b/cos(c + d*x))^(1/2)/a^(1/2)))/(a^(3/2)*d)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan {\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(tan(d*x+c)/(a+b*sec(d*x+c))**(3/2),x)

[Out]

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

________________________________________________________________________________________