\(\int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx\) [333]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [B] (verified)
Fricas [B] (verification not implemented)
Sympy [C] (verification not implemented)
Maxima [B] (verification not implemented)
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 19, antiderivative size = 111 \[ \int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx=\frac {B x \left (a+b x^3\right )^{2/3}}{3 b}+\frac {(3 A b-a B) \arctan \left (\frac {1+\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}}{\sqrt {3}}\right )}{3 \sqrt {3} b^{4/3}}-\frac {(3 A b-a B) \log \left (-\sqrt [3]{b} x+\sqrt [3]{a+b x^3}\right )}{6 b^{4/3}} \] Output:

1/3*B*x*(b*x^3+a)^(2/3)/b+1/9*(3*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/6*(3*A*b-B*a)*ln(-b^(1/3)*x+(b*x^3+a 
)^(1/3))/b^(4/3)
                                                                                    
                                                                                    
 

Mathematica [A] (verified)

Time = 0.65 (sec) , antiderivative size = 163, normalized size of antiderivative = 1.47 \[ \int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx=\frac {6 \sqrt [3]{b} B x \left (a+b x^3\right )^{2/3}+2 \sqrt {3} (3 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 (-3 A b+a B) \log \left (-\sqrt [3]{b} x+\sqrt [3]{a+b x^3}\right )+(3 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 )}{18 b^{4/3}} \] Input:

Integrate[(A + B*x^3)/(a + b*x^3)^(1/3),x]
 

Output:

(6*b^(1/3)*B*x*(a + b*x^3)^(2/3) + 2*Sqrt[3]*(3*A*b - a*B)*ArcTan[(Sqrt[3] 
*b^(1/3)*x)/(b^(1/3)*x + 2*(a + b*x^3)^(1/3))] + 2*(-3*A*b + a*B)*Log[-(b^ 
(1/3)*x) + (a + b*x^3)^(1/3)] + (3*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)])/(18*b^(4/3))
 

Rubi [A] (verified)

Time = 0.33 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.96, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {913, 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 \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx\)

\(\Big \downarrow \) 913

\(\displaystyle \frac {(3 A b-a B) \int \frac {1}{\sqrt [3]{b x^3+a}}dx}{3 b}+\frac {B x \left (a+b x^3\right )^{2/3}}{3 b}\)

\(\Big \downarrow \) 769

\(\displaystyle \frac {(3 A b-a B) \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 )}{3 b}+\frac {B x \left (a+b x^3\right )^{2/3}}{3 b}\)

Input:

Int[(A + B*x^3)/(a + b*x^3)^(1/3),x]
 

Output:

(B*x*(a + b*x^3)^(2/3))/(3*b) + ((3*A*b - a*B)*(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*b)
 

Defintions of rubi rules used

rule 769
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]
 

rule 913
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]
 
Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(224\) vs. \(2(88)=176\).

Time = 1.15 (sec) , antiderivative size = 225, normalized size of antiderivative = 2.03

method result size
pseudoelliptic \(\frac {6 \left (b \,x^{3}+a \right )^{\frac {2}{3}} x B \,b^{\frac {1}{3}}-6 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}\, 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 -6 A \ln \left (\frac {-b^{\frac {1}{3}} x +\left (b \,x^{3}+a \right )^{\frac {1}{3}}}{x}\right ) b +3 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 ) b +2 B \ln \left (\frac {-b^{\frac {1}{3}} x +\left (b \,x^{3}+a \right )^{\frac {1}{3}}}{x}\right ) a -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}{18 b^{\frac {4}{3}}}\) \(225\)

Input:

int((B*x^3+A)/(b*x^3+a)^(1/3),x,method=_RETURNVERBOSE)
 

Output:

1/18*(6*(b*x^3+a)^(2/3)*x*B*b^(1/3)-6*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)*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-6*A*ln((-b^(1/3)*x+(b*x^3+a)^(1/3))/x) 
*b+3*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)*b+2 
*B*ln((-b^(1/3)*x+(b*x^3+a)^(1/3))/x)*a-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)/b^(4/3)
 

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 181 vs. \(2 (86) = 172\).

Time = 0.09 (sec) , antiderivative size = 411, normalized size of antiderivative = 3.70 \[ \int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx=\left [\frac {6 \, {\left (b x^{3} + a\right )}^{\frac {2}{3}} B b x - 3 \, \sqrt {\frac {1}{3}} {\left (B a b - 3 \, 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 - 3 \, 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 - 3 \, 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 )}{18 \, b^{2}}, \frac {6 \, {\left (b x^{3} + a\right )}^{\frac {2}{3}} B b x + 6 \, \sqrt {\frac {1}{3}} {\left (B a b - 3 \, 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 - 3 \, 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 - 3 \, 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 )}{18 \, b^{2}}\right ] \] Input:

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

Output:

[1/18*(6*(b*x^3 + a)^(2/3)*B*b*x - 3*sqrt(1/3)*(B*a*b - 3*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 - 3*A*b)*(-b)^(2/3)*log(((-b)^(1/3 
)*x + (b*x^3 + a)^(1/3))/x) - (B*a - 3*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))/b^2, 1/18*(6* 
(b*x^3 + a)^(2/3)*B*b*x + 6*sqrt(1/3)*(B*a*b - 3*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 - 3*A*b)*(-b)^(2/3)*log(((-b)^(1/3)*x + (b*x^3 + a)^(1/3))/ 
x) - (B*a - 3*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))/b^2]
 

Sympy [C] (verification not implemented)

Result contains complex when optimal does not.

Time = 1.60 (sec) , antiderivative size = 78, normalized size of antiderivative = 0.70 \[ \int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx=\frac {A x \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{3}, \frac {1}{3} \\ \frac {4}{3} \end {matrix}\middle | {\frac {b x^{3} e^{i \pi }}{a}} \right )}}{3 \sqrt [3]{a} \Gamma \left (\frac {4}{3}\right )} + \frac {B x^{4} \Gamma \left (\frac {4}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{3}, \frac {4}{3} \\ \frac {7}{3} \end {matrix}\middle | {\frac {b x^{3} e^{i \pi }}{a}} \right )}}{3 \sqrt [3]{a} \Gamma \left (\frac {7}{3}\right )} \] Input:

integrate((B*x**3+A)/(b*x**3+a)**(1/3),x)
 

Output:

A*x*gamma(1/3)*hyper((1/3, 1/3), (4/3,), b*x**3*exp_polar(I*pi)/a)/(3*a**( 
1/3)*gamma(4/3)) + B*x**4*gamma(4/3)*hyper((1/3, 4/3), (7/3,), b*x**3*exp_ 
polar(I*pi)/a)/(3*a**(1/3)*gamma(7/3))
 

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 244 vs. \(2 (86) = 172\).

Time = 0.12 (sec) , antiderivative size = 244, normalized size of antiderivative = 2.20 \[ \int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx=-\frac {1}{6} \, {\left (\frac {2 \, \sqrt {3} \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 {\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 \, \log \left (-b^{\frac {1}{3}} + \frac {{\left (b x^{3} + a\right )}^{\frac {1}{3}}}{x}\right )}{b^{\frac {1}{3}}}\right )} A + \frac {1}{18} \, {\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 {4}{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 {4}{3}}} + \frac {2 \, a \log \left (-b^{\frac {1}{3}} + \frac {{\left (b x^{3} + a\right )}^{\frac {1}{3}}}{x}\right )}{b^{\frac {4}{3}}} - \frac {6 \, {\left (b x^{3} + a\right )}^{\frac {2}{3}} a}{{\left (b^{2} - \frac {{\left (b x^{3} + a\right )} b}{x^{3}}\right )} x^{2}}\right )} B \] Input:

integrate((B*x^3+A)/(b*x^3+a)^(1/3),x, algorithm="maxima")
 

Output:

-1/6*(2*sqrt(3)*arctan(1/3*sqrt(3)*(b^(1/3) + 2*(b*x^3 + a)^(1/3)/x)/b^(1/ 
3))/b^(1/3) - 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*log(-b^(1/3) + (b*x^3 + a)^(1/3)/x)/b^(1/3))*A + 1/18*( 
2*sqrt(3)*a*arctan(1/3*sqrt(3)*(b^(1/3) + 2*(b*x^3 + a)^(1/3)/x)/b^(1/3))/ 
b^(4/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^(4/3) + 2*a*log(-b^(1/3) + (b*x^3 + a)^(1/3)/x)/b^(4/3) - 6*(b*x^3 
+ a)^(2/3)*a/((b^2 - (b*x^3 + a)*b/x^3)*x^2))*B
 

Giac [F]

\[ \int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx=\int { \frac {B x^{3} + A}{{\left (b x^{3} + a\right )}^{\frac {1}{3}}} \,d x } \] Input:

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

Output:

integrate((B*x^3 + A)/(b*x^3 + a)^(1/3), x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx=\int \frac {B\,x^3+A}{{\left (b\,x^3+a\right )}^{1/3}} \,d x \] Input:

int((A + B*x^3)/(a + b*x^3)^(1/3),x)
 

Output:

int((A + B*x^3)/(a + b*x^3)^(1/3), x)
 

Reduce [F]

\[ \int \frac {A+B x^3}{\sqrt [3]{a+b x^3}} \, dx=\left (\int \frac {x^{3}}{\left (b \,x^{3}+a \right )^{\frac {1}{3}}}d x \right ) b +\left (\int \frac {1}{\left (b \,x^{3}+a \right )^{\frac {1}{3}}}d x \right ) a \] Input:

int((B*x^3+A)/(b*x^3+a)^(1/3),x)
 

Output:

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