3.23.10 \(\int \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}} \sqrt {a x^2+b x \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}}} \, dx\) [2210]

Optimal. Leaf size=163 \[ \frac {\left (-9-2 a x^2\right ) \sqrt {a x^2+b x \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}}}}{24 b}+\frac {5}{12} x \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}} \sqrt {a x^2+b x \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}}}+\frac {3 \tanh ^{-1}\left (\sqrt {2} \sqrt {a x^2+b x \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}}}\right )}{8 \sqrt {2} b} \]

[Out]

1/24*(-2*a*x^2-9)*(a*x^2+b*x*(-a/b^2+a^2*x^2/b^2)^(1/2))^(1/2)/b+5/12*x*(-a/b^2+a^2*x^2/b^2)^(1/2)*(a*x^2+b*x*
(-a/b^2+a^2*x^2/b^2)^(1/2))^(1/2)+3/16*arctanh(2^(1/2)*(a*x^2+b*x*(-a/b^2+a^2*x^2/b^2)^(1/2))^(1/2))*2^(1/2)/b

________________________________________________________________________________________

Rubi [F]
time = 0.27, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}} \sqrt {a x^2+b x \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}}} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

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

[Out]

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

Rubi steps

\begin {align*} \int \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}} \sqrt {a x^2+b x \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}}} \, dx &=\int \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}} \sqrt {a x^2+b x \sqrt {-\frac {a}{b^2}+\frac {a^2 x^2}{b^2}}} \, dx\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 7.45, size = 160, normalized size = 0.98 \begin {gather*} -\frac {\sqrt {x \left (a x+b \sqrt {\frac {a \left (-1+a x^2\right )}{b^2}}\right )} \left (2 \sqrt {a} x \left (9+2 a x^2-10 b x \sqrt {\frac {a \left (-1+a x^2\right )}{b^2}}\right )+9 \sqrt {2} \sqrt {x \left (-a x+b \sqrt {\frac {a \left (-1+a x^2\right )}{b^2}}\right )} \text {ArcTan}\left (\frac {\sqrt {x \left (-a x+b \sqrt {\frac {a \left (-1+a x^2\right )}{b^2}}\right )}}{\sqrt {2} \sqrt {a} x}\right )\right )}{48 \sqrt {a} b x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-1/48*(Sqrt[x*(a*x + b*Sqrt[(a*(-1 + a*x^2))/b^2])]*(2*Sqrt[a]*x*(9 + 2*a*x^2 - 10*b*x*Sqrt[(a*(-1 + a*x^2))/b
^2]) + 9*Sqrt[2]*Sqrt[x*(-(a*x) + b*Sqrt[(a*(-1 + a*x^2))/b^2])]*ArcTan[Sqrt[x*(-(a*x) + b*Sqrt[(a*(-1 + a*x^2
))/b^2])]/(Sqrt[2]*Sqrt[a]*x)]))/(Sqrt[a]*b*x)

________________________________________________________________________________________

Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \sqrt {-\frac {a}{b^{2}}+\frac {a^{2} x^{2}}{b^{2}}}\, \sqrt {a \,x^{2}+b x \sqrt {-\frac {a}{b^{2}}+\frac {a^{2} x^{2}}{b^{2}}}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 11.71, size = 168, normalized size = 1.03 \begin {gather*} -\frac {4 \, {\left (2 \, a x^{2} - 10 \, b x \sqrt {\frac {a^{2} x^{2} - a}{b^{2}}} + 9\right )} \sqrt {a x^{2} + b x \sqrt {\frac {a^{2} x^{2} - a}{b^{2}}}} - 9 \, \sqrt {2} \log \left (4 \, a x^{2} - 4 \, b x \sqrt {\frac {a^{2} x^{2} - a}{b^{2}}} - 2 \, \sqrt {a x^{2} + b x \sqrt {\frac {a^{2} x^{2} - a}{b^{2}}}} {\left (2 \, \sqrt {2} b x \sqrt {\frac {a^{2} x^{2} - a}{b^{2}}} - \sqrt {2} {\left (2 \, a x^{2} - 1\right )}\right )} - 1\right )}{96 \, b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/96*(4*(2*a*x^2 - 10*b*x*sqrt((a^2*x^2 - a)/b^2) + 9)*sqrt(a*x^2 + b*x*sqrt((a^2*x^2 - a)/b^2)) - 9*sqrt(2)*
log(4*a*x^2 - 4*b*x*sqrt((a^2*x^2 - a)/b^2) - 2*sqrt(a*x^2 + b*x*sqrt((a^2*x^2 - a)/b^2))*(2*sqrt(2)*b*x*sqrt(
(a^2*x^2 - a)/b^2) - sqrt(2)*(2*a*x^2 - 1)) - 1))/b

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {x \left (a x + b \sqrt {\frac {a^{2} x^{2}}{b^{2}} - \frac {a}{b^{2}}}\right )} \sqrt {\frac {a \left (a x^{2} - 1\right )}{b^{2}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {a\,x^2+b\,x\,\sqrt {\frac {a^2\,x^2}{b^2}-\frac {a}{b^2}}}\,\sqrt {\frac {a^2\,x^2}{b^2}-\frac {a}{b^2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________