Integrand size = 19, antiderivative size = 141 \[ \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx=\frac {(6 A b-a B) x \left (a+b x^3\right )^{2/3}}{18 b}+\frac {B x \left (a+b x^3\right )^{5/3}}{6 b}+\frac {a (6 A b-a B) \arctan \left (\frac {1+\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}}{\sqrt {3}}\right )}{9 \sqrt {3} b^{4/3}}-\frac {a (6 A b-a B) \log \left (-\sqrt [3]{b} x+\sqrt [3]{a+b x^3}\right )}{18 b^{4/3}} \] Output:
1/18*(6*A*b-B*a)*x*(b*x^3+a)^(2/3)/b+1/6*B*x*(b*x^3+a)^(5/3)/b+1/27*a*(6*A *b-B*a)*arctan(1/3*(1+2*b^(1/3)*x/(b*x^3+a)^(1/3))*3^(1/2))*3^(1/2)/b^(4/3 )-1/18*a*(6*A*b-B*a)*ln(-b^(1/3)*x+(b*x^3+a)^(1/3))/b^(4/3)
Time = 0.88 (sec) , antiderivative size = 180, normalized size of antiderivative = 1.28 \[ \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx=\frac {3 \sqrt [3]{b} x \left (a+b x^3\right )^{2/3} \left (6 A b+2 a B+3 b B x^3\right )-2 \sqrt {3} a (-6 A b+a B) \arctan \left (\frac {\sqrt {3} \sqrt [3]{b} x}{\sqrt [3]{b} x+2 \sqrt [3]{a+b x^3}}\right )+2 a (-6 A b+a B) \log \left (-\sqrt [3]{b} x+\sqrt [3]{a+b x^3}\right )-a (-6 A b+a B) \log \left (b^{2/3} x^2+\sqrt [3]{b} x \sqrt [3]{a+b x^3}+\left (a+b x^3\right )^{2/3}\right )}{54 b^{4/3}} \] Input:
Integrate[(a + b*x^3)^(2/3)*(A + B*x^3),x]
Output:
(3*b^(1/3)*x*(a + b*x^3)^(2/3)*(6*A*b + 2*a*B + 3*b*B*x^3) - 2*Sqrt[3]*a*( -6*A*b + a*B)*ArcTan[(Sqrt[3]*b^(1/3)*x)/(b^(1/3)*x + 2*(a + b*x^3)^(1/3)) ] + 2*a*(-6*A*b + a*B)*Log[-(b^(1/3)*x) + (a + b*x^3)^(1/3)] - a*(-6*A*b + a*B)*Log[b^(2/3)*x^2 + b^(1/3)*x*(a + b*x^3)^(1/3) + (a + b*x^3)^(2/3)])/ (54*b^(4/3))
Time = 0.36 (sec) , antiderivative size = 129, normalized size of antiderivative = 0.91, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {913, 748, 769}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx\) |
\(\Big \downarrow \) 913 |
\(\displaystyle \frac {(6 A b-a B) \int \left (b x^3+a\right )^{2/3}dx}{6 b}+\frac {B x \left (a+b x^3\right )^{5/3}}{6 b}\) |
\(\Big \downarrow \) 748 |
\(\displaystyle \frac {(6 A b-a B) \left (\frac {2}{3} a \int \frac {1}{\sqrt [3]{b x^3+a}}dx+\frac {1}{3} x \left (a+b x^3\right )^{2/3}\right )}{6 b}+\frac {B x \left (a+b x^3\right )^{5/3}}{6 b}\) |
\(\Big \downarrow \) 769 |
\(\displaystyle \frac {(6 A b-a B) \left (\frac {2}{3} a \left (\frac {\arctan \left (\frac {\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}+1}{\sqrt {3}}\right )}{\sqrt {3} \sqrt [3]{b}}-\frac {\log \left (\sqrt [3]{a+b x^3}-\sqrt [3]{b} x\right )}{2 \sqrt [3]{b}}\right )+\frac {1}{3} x \left (a+b x^3\right )^{2/3}\right )}{6 b}+\frac {B x \left (a+b x^3\right )^{5/3}}{6 b}\) |
Input:
Int[(a + b*x^3)^(2/3)*(A + B*x^3),x]
Output:
(B*x*(a + b*x^3)^(5/3))/(6*b) + ((6*A*b - a*B)*((x*(a + b*x^3)^(2/3))/3 + (2*a*(ArcTan[(1 + (2*b^(1/3)*x)/(a + b*x^3)^(1/3))/Sqrt[3]]/(Sqrt[3]*b^(1/ 3)) - Log[-(b^(1/3)*x) + (a + b*x^3)^(1/3)]/(2*b^(1/3))))/3))/(6*b)
Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[x*((a + b*x^n)^p/(n*p + 1)), x] + Simp[a*n*(p/(n*p + 1)) Int[(a + b*x^n)^(p - 1), x], x] /; Fre eQ[{a, b}, x] && IGtQ[n, 0] && GtQ[p, 0] && (IntegerQ[2*p] || LtQ[Denominat or[p + 1/n], Denominator[p]])
Int[((a_) + (b_.)*(x_)^3)^(-1/3), x_Symbol] :> Simp[ArcTan[(1 + 2*Rt[b, 3]* (x/(a + b*x^3)^(1/3)))/Sqrt[3]]/(Sqrt[3]*Rt[b, 3]), x] - Simp[Log[(a + b*x^ 3)^(1/3) - Rt[b, 3]*x]/(2*Rt[b, 3]), x] /; FreeQ[{a, b}, x]
Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Si mp[d*x*((a + b*x^n)^(p + 1)/(b*(n*(p + 1) + 1))), x] - Simp[(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, p}, x] && NeQ[b*c - a*d, 0] && NeQ[n*(p + 1) + 1, 0]
Leaf count of result is larger than twice the leaf count of optimal. \(268\) vs. \(2(114)=228\).
Time = 1.20 (sec) , antiderivative size = 269, normalized size of antiderivative = 1.91
method | result | size |
pseudoelliptic | \(\frac {9 B \,b^{\frac {4}{3}} x^{4} \left (b \,x^{3}+a \right )^{\frac {2}{3}}+18 A \,b^{\frac {4}{3}} x \left (b \,x^{3}+a \right )^{\frac {2}{3}}+6 B a x \,b^{\frac {1}{3}} \left (b \,x^{3}+a \right )^{\frac {2}{3}}-12 A \arctan \left (\frac {\sqrt {3}\, \left (b^{\frac {1}{3}} x +2 \left (b \,x^{3}+a \right )^{\frac {1}{3}}\right )}{3 b^{\frac {1}{3}} x}\right ) \sqrt {3}\, a b +2 B \arctan \left (\frac {\sqrt {3}\, \left (b^{\frac {1}{3}} x +2 \left (b \,x^{3}+a \right )^{\frac {1}{3}}\right )}{3 b^{\frac {1}{3}} x}\right ) \sqrt {3}\, a^{2}-12 A \ln \left (\frac {-b^{\frac {1}{3}} x +\left (b \,x^{3}+a \right )^{\frac {1}{3}}}{x}\right ) a b +6 A \ln \left (\frac {b^{\frac {2}{3}} x^{2}+b^{\frac {1}{3}} \left (b \,x^{3}+a \right )^{\frac {1}{3}} x +\left (b \,x^{3}+a \right )^{\frac {2}{3}}}{x^{2}}\right ) a b +2 B \ln \left (\frac {-b^{\frac {1}{3}} x +\left (b \,x^{3}+a \right )^{\frac {1}{3}}}{x}\right ) a^{2}-B \ln \left (\frac {b^{\frac {2}{3}} x^{2}+b^{\frac {1}{3}} \left (b \,x^{3}+a \right )^{\frac {1}{3}} x +\left (b \,x^{3}+a \right )^{\frac {2}{3}}}{x^{2}}\right ) a^{2}}{54 b^{\frac {4}{3}}}\) | \(269\) |
Input:
int((b*x^3+a)^(2/3)*(B*x^3+A),x,method=_RETURNVERBOSE)
Output:
1/54*(9*B*b^(4/3)*x^4*(b*x^3+a)^(2/3)+18*A*b^(4/3)*x*(b*x^3+a)^(2/3)+6*B*a *x*b^(1/3)*(b*x^3+a)^(2/3)-12*A*arctan(1/3*3^(1/2)*(b^(1/3)*x+2*(b*x^3+a)^ (1/3))/b^(1/3)/x)*3^(1/2)*a*b+2*B*arctan(1/3*3^(1/2)*(b^(1/3)*x+2*(b*x^3+a )^(1/3))/b^(1/3)/x)*3^(1/2)*a^2-12*A*ln((-b^(1/3)*x+(b*x^3+a)^(1/3))/x)*a* b+6*A*ln((b^(2/3)*x^2+b^(1/3)*(b*x^3+a)^(1/3)*x+(b*x^3+a)^(2/3))/x^2)*a*b+ 2*B*ln((-b^(1/3)*x+(b*x^3+a)^(1/3))/x)*a^2-B*ln((b^(2/3)*x^2+b^(1/3)*(b*x^ 3+a)^(1/3)*x+(b*x^3+a)^(2/3))/x^2)*a^2)/b^(4/3)
Time = 0.14 (sec) , antiderivative size = 470, normalized size of antiderivative = 3.33 \[ \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx=\left [-\frac {3 \, \sqrt {\frac {1}{3}} {\left (B a^{2} b - 6 \, A a b^{2}\right )} \sqrt {\frac {\left (-b\right )^{\frac {1}{3}}}{b}} \log \left (3 \, b x^{3} - 3 \, {\left (b x^{3} + a\right )}^{\frac {1}{3}} \left (-b\right )^{\frac {2}{3}} x^{2} - 3 \, \sqrt {\frac {1}{3}} {\left (\left (-b\right )^{\frac {1}{3}} b x^{3} - {\left (b x^{3} + a\right )}^{\frac {1}{3}} b x^{2} + 2 \, {\left (b x^{3} + a\right )}^{\frac {2}{3}} \left (-b\right )^{\frac {2}{3}} x\right )} \sqrt {\frac {\left (-b\right )^{\frac {1}{3}}}{b}} + 2 \, a\right ) - 2 \, {\left (B a^{2} - 6 \, A a b\right )} \left (-b\right )^{\frac {2}{3}} \log \left (\frac {\left (-b\right )^{\frac {1}{3}} x + {\left (b x^{3} + a\right )}^{\frac {1}{3}}}{x}\right ) + {\left (B a^{2} - 6 \, A a b\right )} \left (-b\right )^{\frac {2}{3}} \log \left (\frac {\left (-b\right )^{\frac {2}{3}} x^{2} - {\left (b x^{3} + a\right )}^{\frac {1}{3}} \left (-b\right )^{\frac {1}{3}} x + {\left (b x^{3} + a\right )}^{\frac {2}{3}}}{x^{2}}\right ) - 3 \, {\left (3 \, B b^{2} x^{4} + 2 \, {\left (B a b + 3 \, A b^{2}\right )} x\right )} {\left (b x^{3} + a\right )}^{\frac {2}{3}}}{54 \, b^{2}}, \frac {6 \, \sqrt {\frac {1}{3}} {\left (B a^{2} b - 6 \, A a b^{2}\right )} \sqrt {-\frac {\left (-b\right )^{\frac {1}{3}}}{b}} \arctan \left (-\frac {\sqrt {\frac {1}{3}} {\left (\left (-b\right )^{\frac {1}{3}} x - 2 \, {\left (b x^{3} + a\right )}^{\frac {1}{3}}\right )} \sqrt {-\frac {\left (-b\right )^{\frac {1}{3}}}{b}}}{x}\right ) + 2 \, {\left (B a^{2} - 6 \, A a b\right )} \left (-b\right )^{\frac {2}{3}} \log \left (\frac {\left (-b\right )^{\frac {1}{3}} x + {\left (b x^{3} + a\right )}^{\frac {1}{3}}}{x}\right ) - {\left (B a^{2} - 6 \, A a b\right )} \left (-b\right )^{\frac {2}{3}} \log \left (\frac {\left (-b\right )^{\frac {2}{3}} x^{2} - {\left (b x^{3} + a\right )}^{\frac {1}{3}} \left (-b\right )^{\frac {1}{3}} x + {\left (b x^{3} + a\right )}^{\frac {2}{3}}}{x^{2}}\right ) + 3 \, {\left (3 \, B b^{2} x^{4} + 2 \, {\left (B a b + 3 \, A b^{2}\right )} x\right )} {\left (b x^{3} + a\right )}^{\frac {2}{3}}}{54 \, b^{2}}\right ] \] Input:
integrate((b*x^3+a)^(2/3)*(B*x^3+A),x, algorithm="fricas")
Output:
[-1/54*(3*sqrt(1/3)*(B*a^2*b - 6*A*a*b^2)*sqrt((-b)^(1/3)/b)*log(3*b*x^3 - 3*(b*x^3 + a)^(1/3)*(-b)^(2/3)*x^2 - 3*sqrt(1/3)*((-b)^(1/3)*b*x^3 - (b*x ^3 + a)^(1/3)*b*x^2 + 2*(b*x^3 + a)^(2/3)*(-b)^(2/3)*x)*sqrt((-b)^(1/3)/b) + 2*a) - 2*(B*a^2 - 6*A*a*b)*(-b)^(2/3)*log(((-b)^(1/3)*x + (b*x^3 + a)^( 1/3))/x) + (B*a^2 - 6*A*a*b)*(-b)^(2/3)*log(((-b)^(2/3)*x^2 - (b*x^3 + a)^ (1/3)*(-b)^(1/3)*x + (b*x^3 + a)^(2/3))/x^2) - 3*(3*B*b^2*x^4 + 2*(B*a*b + 3*A*b^2)*x)*(b*x^3 + a)^(2/3))/b^2, 1/54*(6*sqrt(1/3)*(B*a^2*b - 6*A*a*b^ 2)*sqrt(-(-b)^(1/3)/b)*arctan(-sqrt(1/3)*((-b)^(1/3)*x - 2*(b*x^3 + a)^(1/ 3))*sqrt(-(-b)^(1/3)/b)/x) + 2*(B*a^2 - 6*A*a*b)*(-b)^(2/3)*log(((-b)^(1/3 )*x + (b*x^3 + a)^(1/3))/x) - (B*a^2 - 6*A*a*b)*(-b)^(2/3)*log(((-b)^(2/3) *x^2 - (b*x^3 + a)^(1/3)*(-b)^(1/3)*x + (b*x^3 + a)^(2/3))/x^2) + 3*(3*B*b ^2*x^4 + 2*(B*a*b + 3*A*b^2)*x)*(b*x^3 + a)^(2/3))/b^2]
Result contains complex when optimal does not.
Time = 2.05 (sec) , antiderivative size = 82, normalized size of antiderivative = 0.58 \[ \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx=\frac {A a^{\frac {2}{3}} x \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {1}{3} \\ \frac {4}{3} \end {matrix}\middle | {\frac {b x^{3} e^{i \pi }}{a}} \right )}}{3 \Gamma \left (\frac {4}{3}\right )} + \frac {B a^{\frac {2}{3}} x^{4} \Gamma \left (\frac {4}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {4}{3} \\ \frac {7}{3} \end {matrix}\middle | {\frac {b x^{3} e^{i \pi }}{a}} \right )}}{3 \Gamma \left (\frac {7}{3}\right )} \] Input:
integrate((b*x**3+a)**(2/3)*(B*x**3+A),x)
Output:
A*a**(2/3)*x*gamma(1/3)*hyper((-2/3, 1/3), (4/3,), b*x**3*exp_polar(I*pi)/ a)/(3*gamma(4/3)) + B*a**(2/3)*x**4*gamma(4/3)*hyper((-2/3, 4/3), (7/3,), b*x**3*exp_polar(I*pi)/a)/(3*gamma(7/3))
Leaf count of result is larger than twice the leaf count of optimal. 322 vs. \(2 (111) = 222\).
Time = 0.12 (sec) , antiderivative size = 322, normalized size of antiderivative = 2.28 \[ \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx=-\frac {1}{9} \, {\left (\frac {2 \, \sqrt {3} a \arctan \left (\frac {\sqrt {3} {\left (b^{\frac {1}{3}} + \frac {2 \, {\left (b x^{3} + a\right )}^{\frac {1}{3}}}{x}\right )}}{3 \, b^{\frac {1}{3}}}\right )}{b^{\frac {1}{3}}} - \frac {a \log \left (b^{\frac {2}{3}} + \frac {{\left (b x^{3} + a\right )}^{\frac {1}{3}} b^{\frac {1}{3}}}{x} + \frac {{\left (b x^{3} + a\right )}^{\frac {2}{3}}}{x^{2}}\right )}{b^{\frac {1}{3}}} + \frac {2 \, a \log \left (-b^{\frac {1}{3}} + \frac {{\left (b x^{3} + a\right )}^{\frac {1}{3}}}{x}\right )}{b^{\frac {1}{3}}} + \frac {3 \, {\left (b x^{3} + a\right )}^{\frac {2}{3}} a}{{\left (b - \frac {b x^{3} + a}{x^{3}}\right )} x^{2}}\right )} A + \frac {1}{54} \, {\left (\frac {2 \, \sqrt {3} a^{2} \arctan \left (\frac {\sqrt {3} {\left (b^{\frac {1}{3}} + \frac {2 \, {\left (b x^{3} + a\right )}^{\frac {1}{3}}}{x}\right )}}{3 \, b^{\frac {1}{3}}}\right )}{b^{\frac {4}{3}}} - \frac {a^{2} \log \left (b^{\frac {2}{3}} + \frac {{\left (b x^{3} + a\right )}^{\frac {1}{3}} b^{\frac {1}{3}}}{x} + \frac {{\left (b x^{3} + a\right )}^{\frac {2}{3}}}{x^{2}}\right )}{b^{\frac {4}{3}}} + \frac {2 \, a^{2} \log \left (-b^{\frac {1}{3}} + \frac {{\left (b x^{3} + a\right )}^{\frac {1}{3}}}{x}\right )}{b^{\frac {4}{3}}} + \frac {3 \, {\left (\frac {{\left (b x^{3} + a\right )}^{\frac {2}{3}} a^{2} b}{x^{2}} + \frac {2 \, {\left (b x^{3} + a\right )}^{\frac {5}{3}} a^{2}}{x^{5}}\right )}}{b^{3} - \frac {2 \, {\left (b x^{3} + a\right )} b^{2}}{x^{3}} + \frac {{\left (b x^{3} + a\right )}^{2} b}{x^{6}}}\right )} B \] Input:
integrate((b*x^3+a)^(2/3)*(B*x^3+A),x, algorithm="maxima")
Output:
-1/9*(2*sqrt(3)*a*arctan(1/3*sqrt(3)*(b^(1/3) + 2*(b*x^3 + a)^(1/3)/x)/b^( 1/3))/b^(1/3) - a*log(b^(2/3) + (b*x^3 + a)^(1/3)*b^(1/3)/x + (b*x^3 + a)^ (2/3)/x^2)/b^(1/3) + 2*a*log(-b^(1/3) + (b*x^3 + a)^(1/3)/x)/b^(1/3) + 3*( b*x^3 + a)^(2/3)*a/((b - (b*x^3 + a)/x^3)*x^2))*A + 1/54*(2*sqrt(3)*a^2*ar ctan(1/3*sqrt(3)*(b^(1/3) + 2*(b*x^3 + a)^(1/3)/x)/b^(1/3))/b^(4/3) - a^2* log(b^(2/3) + (b*x^3 + a)^(1/3)*b^(1/3)/x + (b*x^3 + a)^(2/3)/x^2)/b^(4/3) + 2*a^2*log(-b^(1/3) + (b*x^3 + a)^(1/3)/x)/b^(4/3) + 3*((b*x^3 + a)^(2/3 )*a^2*b/x^2 + 2*(b*x^3 + a)^(5/3)*a^2/x^5)/(b^3 - 2*(b*x^3 + a)*b^2/x^3 + (b*x^3 + a)^2*b/x^6))*B
\[ \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx=\int { {\left (B x^{3} + A\right )} {\left (b x^{3} + a\right )}^{\frac {2}{3}} \,d x } \] Input:
integrate((b*x^3+a)^(2/3)*(B*x^3+A),x, algorithm="giac")
Output:
integrate((B*x^3 + A)*(b*x^3 + a)^(2/3), x)
Timed out. \[ \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx=\int \left (B\,x^3+A\right )\,{\left (b\,x^3+a\right )}^{2/3} \,d x \] Input:
int((A + B*x^3)*(a + b*x^3)^(2/3),x)
Output:
int((A + B*x^3)*(a + b*x^3)^(2/3), x)
\[ \int \left (a+b x^3\right )^{2/3} \left (A+B x^3\right ) \, dx=\frac {4 \left (b \,x^{3}+a \right )^{\frac {2}{3}} a x}{9}+\frac {\left (b \,x^{3}+a \right )^{\frac {2}{3}} b \,x^{4}}{6}+\frac {5 \left (\int \frac {1}{\left (b \,x^{3}+a \right )^{\frac {1}{3}}}d x \right ) a^{2}}{9} \] Input:
int((b*x^3+a)^(2/3)*(B*x^3+A),x)
Output:
(8*(a + b*x**3)**(2/3)*a*x + 3*(a + b*x**3)**(2/3)*b*x**4 + 10*int((a + b* x**3)**(2/3)/(a + b*x**3),x)*a**2)/18