3.1.80 \(\int \frac {\sqrt [3]{a}-\sqrt [3]{b} x}{(2 \sqrt [3]{a}+\sqrt [3]{b} x) \sqrt {-a+b x^3}} \, dx\) [80]

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

[Out]

-2/3*arctan(1/3*(a^(1/3)-b^(1/3)*x)^2/a^(1/6)/(b*x^3-a)^(1/2))/a^(1/6)/b^(1/3)

________________________________________________________________________________________

Rubi [A]
time = 0.09, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.044, Rules used = {2163, 209} \begin {gather*} -\frac {2 \text {ArcTan}\left (\frac {\left (\sqrt [3]{a}-\sqrt [3]{b} x\right )^2}{3 \sqrt [6]{a} \sqrt {b x^3-a}}\right )}{3 \sqrt [6]{a} \sqrt [3]{b}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(-2*ArcTan[(a^(1/3) - b^(1/3)*x)^2/(3*a^(1/6)*Sqrt[-a + b*x^3])])/(3*a^(1/6)*b^(1/3))

Rule 209

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

Rule 2163

Int[((e_) + (f_.)*(x_))/(((c_) + (d_.)*(x_))*Sqrt[(a_) + (b_.)*(x_)^3]), x_Symbol] :> Dist[-2*(e/d), Subst[Int
[1/(9 - a*x^2), x], x, (1 + f*(x/e))^2/Sqrt[a + b*x^3]], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[d*e - c*f,
0] && EqQ[b*c^3 + 8*a*d^3, 0] && EqQ[2*d*e + c*f, 0]

Rubi steps

\begin {align*} \int \frac {\sqrt [3]{a}-\sqrt [3]{b} x}{\left (2 \sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {-a+b x^3}} \, dx &=-\frac {\left (2 \sqrt [3]{a}\right ) \text {Subst}\left (\int \frac {1}{9+a x^2} \, dx,x,\frac {\left (1-\frac {\sqrt [3]{b} x}{\sqrt [3]{a}}\right )^2}{\sqrt {-a+b x^3}}\right )}{\sqrt [3]{b}}\\ &=-\frac {2 \tan ^{-1}\left (\frac {\left (\sqrt [3]{a}-\sqrt [3]{b} x\right )^2}{3 \sqrt [6]{a} \sqrt {-a+b x^3}}\right )}{3 \sqrt [6]{a} \sqrt [3]{b}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 3.66, size = 51, normalized size = 0.96 \begin {gather*} \frac {2 \tan ^{-1}\left (\frac {3 \sqrt [6]{a} \sqrt {-a+b x^3}}{\left (\sqrt [3]{a}-\sqrt [3]{b} x\right )^2}\right )}{3 \sqrt [6]{a} \sqrt [3]{b}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(2*ArcTan[(3*a^(1/6)*Sqrt[-a + b*x^3])/(a^(1/3) - b^(1/3)*x)^2])/(3*a^(1/6)*b^(1/3))

________________________________________________________________________________________

Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \frac {a^{\frac {1}{3}}-b^{\frac {1}{3}} x}{\left (2 a^{\frac {1}{3}}+b^{\frac {1}{3}} x \right ) \sqrt {b \,x^{3}-a}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

int((a^(1/3)-b^(1/3)*x)/(2*a^(1/3)+b^(1/3)*x)/(b*x^3-a)^(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^(1/3)-b^(1/3)*x)/(2*a^(1/3)+b^(1/3)*x)/(b*x^3-a)^(1/2),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 113 vs. \(2 (38) = 76\).
time = 0.81, size = 592, normalized size = 11.17 \begin {gather*} \left [\frac {1}{6} \, a^{\frac {1}{3}} \sqrt {-\frac {1}{a b^{\frac {2}{3}}}} \log \left (\frac {b^{6} x^{18} - 7800 \, a b^{5} x^{15} + 535272 \, a^{2} b^{4} x^{12} - 5147264 \, a^{3} b^{3} x^{9} + 10516992 \, a^{4} b^{2} x^{6} - 5922816 \, a^{5} b x^{3} + 557056 \, a^{6} + 144 \, {\left (7 \, b^{5} x^{16} - 1169 \, a b^{4} x^{13} + 20266 \, a^{2} b^{3} x^{10} - 66976 \, a^{3} b^{2} x^{7} + 58112 \, a^{4} b x^{4} - 10240 \, a^{5} x\right )} a^{\frac {2}{3}} b^{\frac {1}{3}} - 72 \, {\left (b^{5} x^{17} - 581 \, a b^{4} x^{14} + 19108 \, a^{2} b^{3} x^{11} - 106336 \, a^{3} b^{2} x^{8} + 137984 \, a^{4} b x^{5} - 50176 \, a^{5} x^{2}\right )} a^{\frac {1}{3}} b^{\frac {2}{3}} - 12 \, \sqrt {b x^{3} - a} {\left ({\left (b^{5} x^{16} - 1568 \, a b^{4} x^{13} + 72520 \, a^{2} b^{3} x^{10} - 498304 \, a^{3} b^{2} x^{7} + 625664 \, a^{4} b x^{4} - 139264 \, a^{5} x\right )} a^{\frac {2}{3}} b^{\frac {2}{3}} + 6 \, {\left (41 \, a b^{5} x^{14} - 4268 \, a^{2} b^{4} x^{11} + 52896 \, a^{3} b^{3} x^{8} - 116480 \, a^{4} b^{2} x^{5} + 48128 \, a^{5} b x^{2}\right )} a^{\frac {1}{3}} - {\left (25 \, a b^{5} x^{15} - 7202 \, a^{2} b^{4} x^{12} + 167392 \, a^{3} b^{3} x^{9} - 647296 \, a^{4} b^{2} x^{6} + 468992 \, a^{5} b x^{3} - 40960 \, a^{6}\right )} b^{\frac {1}{3}}\right )} \sqrt {-\frac {1}{a b^{\frac {2}{3}}}}}{b^{6} x^{18} + 48 \, a b^{5} x^{15} + 960 \, a^{2} b^{4} x^{12} + 10240 \, a^{3} b^{3} x^{9} + 61440 \, a^{4} b^{2} x^{6} + 196608 \, a^{5} b x^{3} + 262144 \, a^{6}}\right ), \frac {1}{3} \, a^{\frac {1}{3}} \sqrt {\frac {1}{a b^{\frac {2}{3}}}} \arctan \left (\frac {\sqrt {b x^{3} - a} {\left ({\left (11 \, b x^{4} + 16 \, a x\right )} a^{\frac {2}{3}} b^{\frac {2}{3}} - {\left (b^{2} x^{5} - 28 \, a b x^{2}\right )} a^{\frac {1}{3}} + {\left (17 \, a b x^{3} + 10 \, a^{2}\right )} b^{\frac {1}{3}}\right )} \sqrt {\frac {1}{a b^{\frac {2}{3}}}}}{6 \, {\left (b^{2} x^{6} - 2 \, a b x^{3} + a^{2}\right )}}\right )\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

[1/6*a^(1/3)*sqrt(-1/(a*b^(2/3)))*log((b^6*x^18 - 7800*a*b^5*x^15 + 535272*a^2*b^4*x^12 - 5147264*a^3*b^3*x^9
+ 10516992*a^4*b^2*x^6 - 5922816*a^5*b*x^3 + 557056*a^6 + 144*(7*b^5*x^16 - 1169*a*b^4*x^13 + 20266*a^2*b^3*x^
10 - 66976*a^3*b^2*x^7 + 58112*a^4*b*x^4 - 10240*a^5*x)*a^(2/3)*b^(1/3) - 72*(b^5*x^17 - 581*a*b^4*x^14 + 1910
8*a^2*b^3*x^11 - 106336*a^3*b^2*x^8 + 137984*a^4*b*x^5 - 50176*a^5*x^2)*a^(1/3)*b^(2/3) - 12*sqrt(b*x^3 - a)*(
(b^5*x^16 - 1568*a*b^4*x^13 + 72520*a^2*b^3*x^10 - 498304*a^3*b^2*x^7 + 625664*a^4*b*x^4 - 139264*a^5*x)*a^(2/
3)*b^(2/3) + 6*(41*a*b^5*x^14 - 4268*a^2*b^4*x^11 + 52896*a^3*b^3*x^8 - 116480*a^4*b^2*x^5 + 48128*a^5*b*x^2)*
a^(1/3) - (25*a*b^5*x^15 - 7202*a^2*b^4*x^12 + 167392*a^3*b^3*x^9 - 647296*a^4*b^2*x^6 + 468992*a^5*b*x^3 - 40
960*a^6)*b^(1/3))*sqrt(-1/(a*b^(2/3))))/(b^6*x^18 + 48*a*b^5*x^15 + 960*a^2*b^4*x^12 + 10240*a^3*b^3*x^9 + 614
40*a^4*b^2*x^6 + 196608*a^5*b*x^3 + 262144*a^6)), 1/3*a^(1/3)*sqrt(1/(a*b^(2/3)))*arctan(1/6*sqrt(b*x^3 - a)*(
(11*b*x^4 + 16*a*x)*a^(2/3)*b^(2/3) - (b^2*x^5 - 28*a*b*x^2)*a^(1/3) + (17*a*b*x^3 + 10*a^2)*b^(1/3))*sqrt(1/(
a*b^(2/3)))/(b^2*x^6 - 2*a*b*x^3 + a^2))]

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Timed out

________________________________________________________________________________________

Mupad [B]
time = 5.45, size = 74, normalized size = 1.40 \begin {gather*} \frac {\ln \left (\frac {\left (\sqrt {b\,x^3-a}+\sqrt {a}\,1{}\mathrm {i}\right )\,{\left (\sqrt {a}+2\,a^{1/6}\,b^{1/3}\,x+\sqrt {b\,x^3-a}\,1{}\mathrm {i}\right )}^3}{x^3\,{\left (b^{1/3}\,x+2\,a^{1/3}\right )}^3}\right )\,1{}\mathrm {i}}{3\,a^{1/6}\,b^{1/3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(log((((b*x^3 - a)^(1/2) + a^(1/2)*1i)*((b*x^3 - a)^(1/2)*1i + a^(1/2) + 2*a^(1/6)*b^(1/3)*x)^3)/(x^3*(b^(1/3)
*x + 2*a^(1/3))^3))*1i)/(3*a^(1/6)*b^(1/3))

________________________________________________________________________________________