3.2.11 \(\int (a-b x^2)^{2/3} (3 a+b x^2) \, dx\) [111]

Optimal. Leaf size=588 \[ \frac {18}{13} a x \left (a-b x^2\right )^{2/3}-\frac {3}{13} x \left (a-b x^2\right )^{5/3}-\frac {72 a^2 x}{13 \left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}-\frac {36 \sqrt [4]{3} \sqrt {2+\sqrt {3}} a^{7/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} E\left (\sin ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{13 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}+\frac {24 \sqrt {2} 3^{3/4} a^{7/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} F\left (\sin ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{13 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}} \]

[Out]

18/13*a*x*(-b*x^2+a)^(2/3)-3/13*x*(-b*x^2+a)^(5/3)-72/13*a^2*x/(-(-b*x^2+a)^(1/3)+a^(1/3)*(1-3^(1/2)))+24/13*3
^(3/4)*a^(7/3)*(a^(1/3)-(-b*x^2+a)^(1/3))*EllipticF((-(-b*x^2+a)^(1/3)+a^(1/3)*(1+3^(1/2)))/(-(-b*x^2+a)^(1/3)
+a^(1/3)*(1-3^(1/2))),2*I-I*3^(1/2))*2^(1/2)*((a^(2/3)+a^(1/3)*(-b*x^2+a)^(1/3)+(-b*x^2+a)^(2/3))/(-(-b*x^2+a)
^(1/3)+a^(1/3)*(1-3^(1/2)))^2)^(1/2)/b/x/(-a^(1/3)*(a^(1/3)-(-b*x^2+a)^(1/3))/(-(-b*x^2+a)^(1/3)+a^(1/3)*(1-3^
(1/2)))^2)^(1/2)-36/13*3^(1/4)*a^(7/3)*(a^(1/3)-(-b*x^2+a)^(1/3))*EllipticE((-(-b*x^2+a)^(1/3)+a^(1/3)*(1+3^(1
/2)))/(-(-b*x^2+a)^(1/3)+a^(1/3)*(1-3^(1/2))),2*I-I*3^(1/2))*((a^(2/3)+a^(1/3)*(-b*x^2+a)^(1/3)+(-b*x^2+a)^(2/
3))/(-(-b*x^2+a)^(1/3)+a^(1/3)*(1-3^(1/2)))^2)^(1/2)*(1/2*6^(1/2)+1/2*2^(1/2))/b/x/(-a^(1/3)*(a^(1/3)-(-b*x^2+
a)^(1/3))/(-(-b*x^2+a)^(1/3)+a^(1/3)*(1-3^(1/2)))^2)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.31, antiderivative size = 588, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {396, 201, 241, 310, 225, 1893} \begin {gather*} \frac {24 \sqrt {2} 3^{3/4} a^{7/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} F\left (\text {ArcSin}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{13 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}-\frac {36 \sqrt [4]{3} \sqrt {2+\sqrt {3}} a^{7/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} E\left (\text {ArcSin}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{13 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}-\frac {72 a^2 x}{13 \left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}+\frac {18}{13} a x \left (a-b x^2\right )^{2/3}-\frac {3}{13} x \left (a-b x^2\right )^{5/3} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(18*a*x*(a - b*x^2)^(2/3))/13 - (3*x*(a - b*x^2)^(5/3))/13 - (72*a^2*x)/(13*((1 - Sqrt[3])*a^(1/3) - (a - b*x^
2)^(1/3))) - (36*3^(1/4)*Sqrt[2 + Sqrt[3]]*a^(7/3)*(a^(1/3) - (a - b*x^2)^(1/3))*Sqrt[(a^(2/3) + a^(1/3)*(a -
b*x^2)^(1/3) + (a - b*x^2)^(2/3))/((1 - Sqrt[3])*a^(1/3) - (a - b*x^2)^(1/3))^2]*EllipticE[ArcSin[((1 + Sqrt[3
])*a^(1/3) - (a - b*x^2)^(1/3))/((1 - Sqrt[3])*a^(1/3) - (a - b*x^2)^(1/3))], -7 + 4*Sqrt[3]])/(13*b*x*Sqrt[-(
(a^(1/3)*(a^(1/3) - (a - b*x^2)^(1/3)))/((1 - Sqrt[3])*a^(1/3) - (a - b*x^2)^(1/3))^2)]) + (24*Sqrt[2]*3^(3/4)
*a^(7/3)*(a^(1/3) - (a - b*x^2)^(1/3))*Sqrt[(a^(2/3) + a^(1/3)*(a - b*x^2)^(1/3) + (a - b*x^2)^(2/3))/((1 - Sq
rt[3])*a^(1/3) - (a - b*x^2)^(1/3))^2]*EllipticF[ArcSin[((1 + Sqrt[3])*a^(1/3) - (a - b*x^2)^(1/3))/((1 - Sqrt
[3])*a^(1/3) - (a - b*x^2)^(1/3))], -7 + 4*Sqrt[3]])/(13*b*x*Sqrt[-((a^(1/3)*(a^(1/3) - (a - b*x^2)^(1/3)))/((
1 - Sqrt[3])*a^(1/3) - (a - b*x^2)^(1/3))^2)])

Rule 201

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[x*((a + b*x^n)^p/(n*p + 1)), x] + Dist[a*n*(p/(n*p + 1)),
 Int[(a + b*x^n)^(p - 1), x], x] /; FreeQ[{a, b}, x] && IGtQ[n, 0] && GtQ[p, 0] && (IntegerQ[2*p] || (EqQ[n, 2
] && IntegerQ[4*p]) || (EqQ[n, 2] && IntegerQ[3*p]) || LtQ[Denominator[p + 1/n], Denominator[p]])

Rule 225

Int[1/Sqrt[(a_) + (b_.)*(x_)^3], x_Symbol] :> With[{r = Numer[Rt[b/a, 3]], s = Denom[Rt[b/a, 3]]}, Simp[2*Sqrt
[2 - Sqrt[3]]*(s + r*x)*(Sqrt[(s^2 - r*s*x + r^2*x^2)/((1 - Sqrt[3])*s + r*x)^2]/(3^(1/4)*r*Sqrt[a + b*x^3]*Sq
rt[(-s)*((s + r*x)/((1 - Sqrt[3])*s + r*x)^2)]))*EllipticF[ArcSin[((1 + Sqrt[3])*s + r*x)/((1 - Sqrt[3])*s + r
*x)], -7 + 4*Sqrt[3]], x]] /; FreeQ[{a, b}, x] && NegQ[a]

Rule 241

Int[((a_) + (b_.)*(x_)^2)^(-1/3), x_Symbol] :> Dist[3*(Sqrt[b*x^2]/(2*b*x)), Subst[Int[x/Sqrt[-a + x^3], x], x
, (a + b*x^2)^(1/3)], x] /; FreeQ[{a, b}, x]

Rule 310

Int[(x_)/Sqrt[(a_) + (b_.)*(x_)^3], x_Symbol] :> With[{r = Numer[Rt[b/a, 3]], s = Denom[Rt[b/a, 3]]}, Dist[(-(
1 + Sqrt[3]))*(s/r), Int[1/Sqrt[a + b*x^3], x], x] + Dist[1/r, Int[((1 + Sqrt[3])*s + r*x)/Sqrt[a + b*x^3], x]
, x]] /; FreeQ[{a, b}, x] && NegQ[a]

Rule 396

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Simp[d*x*((a + b*x^n)^(p + 1)/(b*(n*(
p + 1) + 1))), x] - Dist[(a*d - b*c*(n*(p + 1) + 1))/(b*(n*(p + 1) + 1)), Int[(a + b*x^n)^p, x], x] /; FreeQ[{
a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && NeQ[n*(p + 1) + 1, 0]

Rule 1893

Int[((c_) + (d_.)*(x_))/Sqrt[(a_) + (b_.)*(x_)^3], x_Symbol] :> With[{r = Numer[Simplify[(1 + Sqrt[3])*(d/c)]]
, s = Denom[Simplify[(1 + Sqrt[3])*(d/c)]]}, Simp[2*d*s^3*(Sqrt[a + b*x^3]/(a*r^2*((1 - Sqrt[3])*s + r*x))), x
] + Simp[3^(1/4)*Sqrt[2 + Sqrt[3]]*d*s*(s + r*x)*(Sqrt[(s^2 - r*s*x + r^2*x^2)/((1 - Sqrt[3])*s + r*x)^2]/(r^2
*Sqrt[a + b*x^3]*Sqrt[(-s)*((s + r*x)/((1 - Sqrt[3])*s + r*x)^2)]))*EllipticE[ArcSin[((1 + Sqrt[3])*s + r*x)/(
(1 - Sqrt[3])*s + r*x)], -7 + 4*Sqrt[3]], x]] /; FreeQ[{a, b, c, d}, x] && NegQ[a] && EqQ[b*c^3 - 2*(5 + 3*Sqr
t[3])*a*d^3, 0]

Rubi steps

\begin {align*} \int \left (a-b x^2\right )^{2/3} \left (3 a+b x^2\right ) \, dx &=-\frac {3}{13} x \left (a-b x^2\right )^{5/3}+\frac {1}{13} (42 a) \int \left (a-b x^2\right )^{2/3} \, dx\\ &=\frac {18}{13} a x \left (a-b x^2\right )^{2/3}-\frac {3}{13} x \left (a-b x^2\right )^{5/3}+\frac {1}{13} \left (24 a^2\right ) \int \frac {1}{\sqrt [3]{a-b x^2}} \, dx\\ &=\frac {18}{13} a x \left (a-b x^2\right )^{2/3}-\frac {3}{13} x \left (a-b x^2\right )^{5/3}-\frac {\left (36 a^2 \sqrt {-b x^2}\right ) \text {Subst}\left (\int \frac {x}{\sqrt {-a+x^3}} \, dx,x,\sqrt [3]{a-b x^2}\right )}{13 b x}\\ &=\frac {18}{13} a x \left (a-b x^2\right )^{2/3}-\frac {3}{13} x \left (a-b x^2\right )^{5/3}+\frac {\left (36 a^2 \sqrt {-b x^2}\right ) \text {Subst}\left (\int \frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-x}{\sqrt {-a+x^3}} \, dx,x,\sqrt [3]{a-b x^2}\right )}{13 b x}-\frac {\left (36 \sqrt {2 \left (2+\sqrt {3}\right )} a^{7/3} \sqrt {-b x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-a+x^3}} \, dx,x,\sqrt [3]{a-b x^2}\right )}{13 b x}\\ &=\frac {18}{13} a x \left (a-b x^2\right )^{2/3}-\frac {3}{13} x \left (a-b x^2\right )^{5/3}-\frac {72 a^2 x}{13 \left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}-\frac {36 \sqrt [4]{3} \sqrt {2+\sqrt {3}} a^{7/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} E\left (\sin ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{13 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}+\frac {24 \sqrt {2} 3^{3/4} a^{7/3} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{a-b x^2}+\left (a-b x^2\right )^{2/3}}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}} F\left (\sin ^{-1}\left (\frac {\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}{\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}}\right )|-7+4 \sqrt {3}\right )}{13 b x \sqrt {-\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )}{\left (\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{a-b x^2}\right )^2}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
time = 6.84, size = 62, normalized size = 0.11 \begin {gather*} \frac {3}{13} x \left (a-b x^2\right )^{2/3} \left (-a+b x^2+\frac {14 a \, _2F_1\left (-\frac {2}{3},\frac {1}{2};\frac {3}{2};\frac {b x^2}{a}\right )}{\left (1-\frac {b x^2}{a}\right )^{2/3}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(3*x*(a - b*x^2)^(2/3)*(-a + b*x^2 + (14*a*Hypergeometric2F1[-2/3, 1/2, 3/2, (b*x^2)/a])/(1 - (b*x^2)/a)^(2/3)
))/13

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

[Out]

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

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 1.29, size = 63, normalized size = 0.11 \begin {gather*} 3 a^{\frac {5}{3}} x {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {1}{2} \\ \frac {3}{2} \end {matrix}\middle | {\frac {b x^{2} e^{2 i \pi }}{a}} \right )} + \frac {a^{\frac {2}{3}} b x^{3} {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {3}{2} \\ \frac {5}{2} \end {matrix}\middle | {\frac {b x^{2} e^{2 i \pi }}{a}} \right )}}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

3*a**(5/3)*x*hyper((-2/3, 1/2), (3/2,), b*x**2*exp_polar(2*I*pi)/a) + a**(2/3)*b*x**3*hyper((-2/3, 3/2), (5/2,
), b*x**2*exp_polar(2*I*pi)/a)/3

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a-b\,x^2\right )}^{2/3}\,\left (b\,x^2+3\,a\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________