3.582 \(\int \frac{\sqrt{b-\frac{a}{x}} x^2}{\sqrt{a-b x}} \, dx\)

Optimal. Leaf size=29 \[ \frac{2 x^3 \sqrt{b-\frac{a}{x}}}{5 \sqrt{a-b x}} \]

[Out]

(2*Sqrt[b - a/x]*x^3)/(5*Sqrt[a - b*x])

________________________________________________________________________________________

Rubi [A]  time = 0.0342811, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {515, 23, 30} \[ \frac{2 x^3 \sqrt{b-\frac{a}{x}}}{5 \sqrt{a-b x}} \]

Antiderivative was successfully verified.

[In]

Int[(Sqrt[b - a/x]*x^2)/Sqrt[a - b*x],x]

[Out]

(2*Sqrt[b - a/x]*x^3)/(5*Sqrt[a - b*x])

Rule 515

Int[(x_)^(m_.)*((c_) + (d_.)*(x_)^(mn_.))^(q_)*((a_) + (b_.)*(x_)^(n_.))^(p_.), x_Symbol] :> Dist[(x^(n*FracPa
rt[q])*(c + d/x^n)^FracPart[q])/(d + c*x^n)^FracPart[q], Int[x^(m - n*q)*(a + b*x^n)^p*(d + c*x^n)^q, x], x] /
; FreeQ[{a, b, c, d, m, n, p, q}, x] && EqQ[mn, -n] &&  !IntegerQ[q] &&  !IntegerQ[p]

Rule 23

Int[(u_.)*((a_) + (b_.)*(v_))^(m_)*((c_) + (d_.)*(v_))^(n_), x_Symbol] :> Dist[(a + b*v)^m/(c + d*v)^m, Int[u*
(c + d*v)^(m + n), x], x] /; FreeQ[{a, b, c, d, m, n}, x] && EqQ[b*c - a*d, 0] &&  !(IntegerQ[m] || IntegerQ[n
] || GtQ[b/d, 0])

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

\begin{align*} \int \frac{\sqrt{b-\frac{a}{x}} x^2}{\sqrt{a-b x}} \, dx &=\frac{\left (\sqrt{b-\frac{a}{x}} \sqrt{x}\right ) \int \frac{x^{3/2} \sqrt{-a+b x}}{\sqrt{a-b x}} \, dx}{\sqrt{-a+b x}}\\ &=\frac{\left (\sqrt{b-\frac{a}{x}} \sqrt{x}\right ) \int x^{3/2} \, dx}{\sqrt{a-b x}}\\ &=\frac{2 \sqrt{b-\frac{a}{x}} x^3}{5 \sqrt{a-b x}}\\ \end{align*}

Mathematica [A]  time = 0.015002, size = 29, normalized size = 1. \[ \frac{2 x^3 \sqrt{b-\frac{a}{x}}}{5 \sqrt{a-b x}} \]

Antiderivative was successfully verified.

[In]

Integrate[(Sqrt[b - a/x]*x^2)/Sqrt[a - b*x],x]

[Out]

(2*Sqrt[b - a/x]*x^3)/(5*Sqrt[a - b*x])

________________________________________________________________________________________

Maple [A]  time = 0.003, size = 27, normalized size = 0.9 \begin{align*}{\frac{2\,{x}^{3}}{5}\sqrt{-{\frac{-bx+a}{x}}}{\frac{1}{\sqrt{-bx+a}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2/5*x^3*(-(-b*x+a)/x)^(1/2)/(-b*x+a)^(1/2)

________________________________________________________________________________________

Maxima [C]  time = 1.44615, size = 7, normalized size = 0.24 \begin{align*} -\frac{2}{5} i \, x^{\frac{5}{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/5*I*x^(5/2)

________________________________________________________________________________________

Fricas [A]  time = 1.40796, size = 72, normalized size = 2.48 \begin{align*} -\frac{2 \, \sqrt{-b x + a} x^{3} \sqrt{\frac{b x - a}{x}}}{5 \,{\left (b x - a\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/5*sqrt(-b*x + a)*x^3*sqrt((b*x - a)/x)/(b*x - a)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(x**2*sqrt(-a/x + b)/sqrt(a - b*x), x)

________________________________________________________________________________________

Giac [B]  time = 1.17096, size = 170, normalized size = 5.86 \begin{align*} \frac{2 \, \sqrt{-a b} a^{2}{\left | b \right |} \mathrm{sgn}\left (x\right )}{5 \, b^{4}} - \frac{2 \,{\left (3 \, \sqrt{-a b} a^{2} + \frac{5 \,{\left (-{\left (b x - a\right )} b - a b\right )}^{\frac{3}{2}} a - \frac{5 \,{\left (-{\left (b x - a\right )} b - a b\right )}^{\frac{3}{2}} a b + 3 \,{\left ({\left (b x - a\right )} b + a b\right )}^{2} \sqrt{-{\left (b x - a\right )} b - a b}}{b}}{b}\right )}{\left | b \right |} \mathrm{sgn}\left (x\right )}{15 \, b^{4}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2/5*sqrt(-a*b)*a^2*abs(b)*sgn(x)/b^4 - 2/15*(3*sqrt(-a*b)*a^2 + (5*(-(b*x - a)*b - a*b)^(3/2)*a - (5*(-(b*x -
a)*b - a*b)^(3/2)*a*b + 3*((b*x - a)*b + a*b)^2*sqrt(-(b*x - a)*b - a*b))/b)/b)*abs(b)*sgn(x)/b^4