\(\int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx\) [618]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [B] (warning: unable to verify)
Fricas [B] (verification not implemented)
Sympy [F]
Maxima [F]
Giac [F(-2)]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 25, antiderivative size = 152 \[ \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx=-\frac {(i a-b)^{3/2} \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d}+\frac {2 b^{3/2} \text {arctanh}\left (\frac {\sqrt {b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d}-\frac {(i a+b)^{3/2} \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d} \] Output:

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

Mathematica [A] (verified)

Time = 0.51 (sec) , antiderivative size = 203, normalized size of antiderivative = 1.34 \[ \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx=\frac {\sqrt [4]{-1} \left (\sqrt {-a+i b} (i a+b) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {-a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )+\sqrt {a+i b} (-i a+b) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )\right )+\frac {2 \sqrt {a} b^{3/2} \text {arcsinh}\left (\frac {\sqrt {b} \sqrt {\tan (c+d x)}}{\sqrt {a}}\right ) \sqrt {1+\frac {b \tan (c+d x)}{a}}}{\sqrt {a+b \tan (c+d x)}}}{d} \] Input:

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

Output:

((-1)^(1/4)*(Sqrt[-a + I*b]*(I*a + b)*ArcTan[((-1)^(1/4)*Sqrt[-a + I*b]*Sq 
rt[Tan[c + d*x]])/Sqrt[a + b*Tan[c + d*x]]] + Sqrt[a + I*b]*((-I)*a + b)*A 
rcTan[((-1)^(1/4)*Sqrt[a + I*b]*Sqrt[Tan[c + d*x]])/Sqrt[a + b*Tan[c + d*x 
]]]) + (2*Sqrt[a]*b^(3/2)*ArcSinh[(Sqrt[b]*Sqrt[Tan[c + d*x]])/Sqrt[a]]*Sq 
rt[1 + (b*Tan[c + d*x])/a])/Sqrt[a + b*Tan[c + d*x]])/d
 

Rubi [A] (verified)

Time = 0.52 (sec) , antiderivative size = 147, normalized size of antiderivative = 0.97, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3042, 4058, 610, 2009}

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 {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}}dx\)

\(\Big \downarrow \) 4058

\(\displaystyle \frac {\int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)} \left (\tan ^2(c+d x)+1\right )}d\tan (c+d x)}{d}\)

\(\Big \downarrow \) 610

\(\displaystyle \frac {\int \left (\frac {b^2}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {a^2+2 b \tan (c+d x) a-b^2}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)} \left (\tan ^2(c+d x)+1\right )}\right )d\tan (c+d x)}{d}\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {(-b+i a)^{3/2} \left (-\arctan \left (\frac {\sqrt {-b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )\right )+2 b^{3/2} \text {arctanh}\left (\frac {\sqrt {b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )-(b+i a)^{3/2} \text {arctanh}\left (\frac {\sqrt {b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d}\)

Input:

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

Output:

(-((I*a - b)^(3/2)*ArcTan[(Sqrt[I*a - b]*Sqrt[Tan[c + d*x]])/Sqrt[a + b*Ta 
n[c + d*x]]]) + 2*b^(3/2)*ArcTanh[(Sqrt[b]*Sqrt[Tan[c + d*x]])/Sqrt[a + b* 
Tan[c + d*x]]] - (I*a + b)^(3/2)*ArcTanh[(Sqrt[I*a + b]*Sqrt[Tan[c + d*x]] 
)/Sqrt[a + b*Tan[c + d*x]]])/d
 

Defintions of rubi rules used

rule 610
Int[(((e_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_))/((a_) + (b_.)*(x_)^2), x_S 
ymbol] :> Simp[e^(m + 1/2)   Int[ExpandIntegrand[1/(Sqrt[e*x]*Sqrt[c + d*x] 
), x^(m + 1/2)*((c + d*x)^(n + 1/2)/(a + b*x^2)), x], x], x] /; FreeQ[{a, b 
, c, d, e}, x] && IGtQ[n + 1/2, 0] && ILtQ[m - 1/2, 0]
 

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 4058
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + 
(f_.)*(x_)])^(n_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, S 
imp[ff/f   Subst[Int[(a + b*ff*x)^m*((c + d*ff*x)^n/(1 + ff^2*x^2)), x], x, 
 Tan[e + f*x]/ff], x]] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && NeQ[b*c - a 
*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0]
 
Maple [B] (warning: unable to verify)

result has leaf size over 500,000. Avoiding possible recursion issues.

Time = 0.71 (sec) , antiderivative size = 1342398, normalized size of antiderivative = 8831.57

\[\text {output too large to display}\]

Input:

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

Output:

result too large to display
 

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 3601 vs. \(2 (120) = 240\).

Time = 0.50 (sec) , antiderivative size = 7203, normalized size of antiderivative = 47.39 \[ \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx=\text {Too large to display} \] Input:

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

Output:

Too large to include
 

Sympy [F]

\[ \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx=\int \frac {\left (a + b \tan {\left (c + d x \right )}\right )^{\frac {3}{2}}}{\sqrt {\tan {\left (c + d x \right )}}}\, dx \] Input:

integrate((a+b*tan(d*x+c))**(3/2)/tan(d*x+c)**(1/2),x)
 

Output:

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

Maxima [F]

\[ \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx=\int { \frac {{\left (b \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}{\sqrt {\tan \left (d x + c\right )}} \,d x } \] Input:

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

Output:

integrate((b*tan(d*x + c) + a)^(3/2)/sqrt(tan(d*x + c)), x)
 

Giac [F(-2)]

Exception generated. \[ \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx=\text {Exception raised: TypeError} \] Input:

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

Output:

Exception raised: TypeError >> an error occurred running a Giac command:IN 
PUT:sage2:=int(sage0,sageVARx):;OUTPUT:sym2poly/r2sym(const gen & e,const 
index_m & i,const vecteur & l) Error: Bad Argument Value
 

Mupad [F(-1)]

Timed out. \[ \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx=\int \frac {{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{3/2}}{\sqrt {\mathrm {tan}\left (c+d\,x\right )}} \,d x \] Input:

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

Output:

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

Reduce [F]

\[ \int \frac {(a+b \tan (c+d x))^{3/2}}{\sqrt {\tan (c+d x)}} \, dx=\frac {2 \sqrt {\tan \left (d x +c \right )}\, \sqrt {a +\tan \left (d x +c \right ) b}\, a -2 \left (\int \frac {\sqrt {\tan \left (d x +c \right )}\, \sqrt {a +\tan \left (d x +c \right ) b}\, \tan \left (d x +c \right )^{2}}{a +\tan \left (d x +c \right ) b}d x \right ) a b d -\left (\int \frac {\sqrt {\tan \left (d x +c \right )}\, \sqrt {a +\tan \left (d x +c \right ) b}\, \tan \left (d x +c \right )}{a +\tan \left (d x +c \right ) b}d x \right ) a^{2} d +\left (\int \frac {\sqrt {\tan \left (d x +c \right )}\, \sqrt {a +\tan \left (d x +c \right ) b}}{\tan \left (d x +c \right )^{2} b +\tan \left (d x +c \right ) a}d x \right ) a^{2} d +2 \left (\int \sqrt {\tan \left (d x +c \right )}\, \sqrt {a +\tan \left (d x +c \right ) b}d x \right ) b d}{2 d} \] Input:

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

Output:

(2*sqrt(tan(c + d*x))*sqrt(tan(c + d*x)*b + a)*a - 2*int((sqrt(tan(c + d*x 
))*sqrt(tan(c + d*x)*b + a)*tan(c + d*x)**2)/(tan(c + d*x)*b + a),x)*a*b*d 
 - int((sqrt(tan(c + d*x))*sqrt(tan(c + d*x)*b + a)*tan(c + d*x))/(tan(c + 
 d*x)*b + a),x)*a**2*d + int((sqrt(tan(c + d*x))*sqrt(tan(c + d*x)*b + a)) 
/(tan(c + d*x)**2*b + tan(c + d*x)*a),x)*a**2*d + 2*int(sqrt(tan(c + d*x)) 
*sqrt(tan(c + d*x)*b + a),x)*b*d)/(2*d)