3.990 \(\int \frac{1}{\sqrt{\frac{a x^3+b x^4}{x^2}}} \, dx\)

Optimal. Leaf size=28 \[ \frac{2 \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a x+b x^2}}\right )}{\sqrt{b}} \]

[Out]

(2*ArcTanh[(Sqrt[b]*x)/Sqrt[a*x + b*x^2]])/Sqrt[b]

________________________________________________________________________________________

Rubi [A]  time = 0.0129292, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {1979, 620, 206} \[ \frac{2 \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a x+b x^2}}\right )}{\sqrt{b}} \]

Antiderivative was successfully verified.

[In]

Int[1/Sqrt[(a*x^3 + b*x^4)/x^2],x]

[Out]

(2*ArcTanh[(Sqrt[b]*x)/Sqrt[a*x + b*x^2]])/Sqrt[b]

Rule 1979

Int[(u_)^(p_), x_Symbol] :> Int[ExpandToSum[u, x]^p, x] /; FreeQ[p, x] && GeneralizedBinomialQ[u, x] &&  !Gene
ralizedBinomialMatchQ[u, x]

Rule 620

Int[1/Sqrt[(b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(1 - c*x^2), x], x, x/Sqrt[b*x + c*x^2
]], x] /; FreeQ[{b, c}, 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])

Rubi steps

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

Mathematica [B]  time = 0.0037886, size = 57, normalized size = 2.04 \[ \frac{2 \sqrt{a} \sqrt{x} \sqrt{\frac{b x}{a}+1} \sinh ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{\sqrt{b} \sqrt{x (a+b x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[1/Sqrt[(a*x^3 + b*x^4)/x^2],x]

[Out]

(2*Sqrt[a]*Sqrt[x]*Sqrt[1 + (b*x)/a]*ArcSinh[(Sqrt[b]*Sqrt[x])/Sqrt[a]])/(Sqrt[b]*Sqrt[x*(a + b*x)])

________________________________________________________________________________________

Maple [A]  time = 0.004, size = 29, normalized size = 1. \begin{align*}{\ln \left ({ \left ({\frac{a}{2}}+bx \right ){\frac{1}{\sqrt{b}}}}+\sqrt{b{x}^{2}+ax} \right ){\frac{1}{\sqrt{b}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((b*x^4+a*x^3)/x^2)^(1/2),x)

[Out]

ln((1/2*a+b*x)/b^(1/2)+(b*x^2+a*x)^(1/2))/b^(1/2)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.49528, size = 154, normalized size = 5.5 \begin{align*} \left [\frac{\log \left (2 \, b x + a + 2 \, \sqrt{b x^{2} + a x} \sqrt{b}\right )}{\sqrt{b}}, -\frac{2 \, \sqrt{-b} \arctan \left (\frac{\sqrt{b x^{2} + a x} \sqrt{-b}}{b x}\right )}{b}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

[log(2*b*x + a + 2*sqrt(b*x^2 + a*x)*sqrt(b))/sqrt(b), -2*sqrt(-b)*arctan(sqrt(b*x^2 + a*x)*sqrt(-b)/(b*x))/b]

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{\frac{a x^{3} + b x^{4}}{x^{2}}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/((b*x**4+a*x**3)/x**2)**(1/2),x)

[Out]

Integral(1/sqrt((a*x**3 + b*x**4)/x**2), x)

________________________________________________________________________________________

Giac [A]  time = 1.20491, size = 47, normalized size = 1.68 \begin{align*} -\frac{\log \left ({\left | -2 \,{\left (\sqrt{b} x - \sqrt{b x^{2} + a x}\right )} \sqrt{b} - a \right |}\right )}{\sqrt{b}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-log(abs(-2*(sqrt(b)*x - sqrt(b*x^2 + a*x))*sqrt(b) - a))/sqrt(b)