Integrand size = 20, antiderivative size = 149 \[ \int \frac {A+B x^3}{x^3 \left (a+b x^3\right )} \, dx=-\frac {A}{2 a x^2}+\frac {(A b-a B) \arctan \left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt {3} \sqrt [3]{a}}\right )}{\sqrt {3} a^{5/3} \sqrt [3]{b}}-\frac {(A b-a B) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{5/3} \sqrt [3]{b}}+\frac {(A b-a B) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 a^{5/3} \sqrt [3]{b}} \] Output:
-1/2*A/a/x^2+1/3*(A*b-B*a)*arctan(1/3*(a^(1/3)-2*b^(1/3)*x)*3^(1/2)/a^(1/3 ))*3^(1/2)/a^(5/3)/b^(1/3)-1/3*(A*b-B*a)*ln(a^(1/3)+b^(1/3)*x)/a^(5/3)/b^( 1/3)+1/6*(A*b-B*a)*ln(a^(2/3)-a^(1/3)*b^(1/3)*x+b^(2/3)*x^2)/a^(5/3)/b^(1/ 3)
Time = 0.10 (sec) , antiderivative size = 135, normalized size of antiderivative = 0.91 \[ \int \frac {A+B x^3}{x^3 \left (a+b x^3\right )} \, dx=\frac {-\frac {3 a^{2/3} A}{x^2}+\frac {2 \sqrt {3} (A b-a B) \arctan \left (\frac {1-\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{\sqrt [3]{b}}+\frac {2 (-A b+a B) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{b}}+\frac {(A b-a B) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{\sqrt [3]{b}}}{6 a^{5/3}} \] Input:
Integrate[(A + B*x^3)/(x^3*(a + b*x^3)),x]
Output:
((-3*a^(2/3)*A)/x^2 + (2*Sqrt[3]*(A*b - a*B)*ArcTan[(1 - (2*b^(1/3)*x)/a^( 1/3))/Sqrt[3]])/b^(1/3) + (2*(-(A*b) + a*B)*Log[a^(1/3) + b^(1/3)*x])/b^(1 /3) + ((A*b - a*B)*Log[a^(2/3) - a^(1/3)*b^(1/3)*x + b^(2/3)*x^2])/b^(1/3) )/(6*a^(5/3))
Time = 0.50 (sec) , antiderivative size = 136, normalized size of antiderivative = 0.91, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.450, Rules used = {955, 750, 16, 1142, 25, 27, 1082, 217, 1103}
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}{x^3 \left (a+b x^3\right )} \, dx\) |
\(\Big \downarrow \) 955 |
\(\displaystyle -\frac {(A b-a B) \int \frac {1}{b x^3+a}dx}{a}-\frac {A}{2 a x^2}\) |
\(\Big \downarrow \) 750 |
\(\displaystyle -\frac {(A b-a B) \left (\frac {\int \frac {2 \sqrt [3]{a}-\sqrt [3]{b} x}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx}{3 a^{2/3}}+\frac {\int \frac {1}{\sqrt [3]{b} x+\sqrt [3]{a}}dx}{3 a^{2/3}}\right )}{a}-\frac {A}{2 a x^2}\) |
\(\Big \downarrow \) 16 |
\(\displaystyle -\frac {(A b-a B) \left (\frac {\int \frac {2 \sqrt [3]{a}-\sqrt [3]{b} x}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx}{3 a^{2/3}}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} \sqrt [3]{b}}\right )}{a}-\frac {A}{2 a x^2}\) |
\(\Big \downarrow \) 1142 |
\(\displaystyle -\frac {(A b-a B) \left (\frac {\frac {3}{2} \sqrt [3]{a} \int \frac {1}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx-\frac {\int -\frac {\sqrt [3]{b} \left (\sqrt [3]{a}-2 \sqrt [3]{b} x\right )}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx}{2 \sqrt [3]{b}}}{3 a^{2/3}}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} \sqrt [3]{b}}\right )}{a}-\frac {A}{2 a x^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {(A b-a B) \left (\frac {\frac {3}{2} \sqrt [3]{a} \int \frac {1}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx+\frac {\int \frac {\sqrt [3]{b} \left (\sqrt [3]{a}-2 \sqrt [3]{b} x\right )}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx}{2 \sqrt [3]{b}}}{3 a^{2/3}}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} \sqrt [3]{b}}\right )}{a}-\frac {A}{2 a x^2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {(A b-a B) \left (\frac {\frac {3}{2} \sqrt [3]{a} \int \frac {1}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx+\frac {1}{2} \int \frac {\sqrt [3]{a}-2 \sqrt [3]{b} x}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx}{3 a^{2/3}}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} \sqrt [3]{b}}\right )}{a}-\frac {A}{2 a x^2}\) |
\(\Big \downarrow \) 1082 |
\(\displaystyle -\frac {(A b-a B) \left (\frac {\frac {1}{2} \int \frac {\sqrt [3]{a}-2 \sqrt [3]{b} x}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx+\frac {3 \int \frac {1}{-\left (1-\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a}}\right )^2-3}d\left (1-\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a}}\right )}{\sqrt [3]{b}}}{3 a^{2/3}}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} \sqrt [3]{b}}\right )}{a}-\frac {A}{2 a x^2}\) |
\(\Big \downarrow \) 217 |
\(\displaystyle -\frac {(A b-a B) \left (\frac {\frac {1}{2} \int \frac {\sqrt [3]{a}-2 \sqrt [3]{b} x}{b^{2/3} x^2-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3}}dx-\frac {\sqrt {3} \arctan \left (\frac {1-\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{\sqrt [3]{b}}}{3 a^{2/3}}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} \sqrt [3]{b}}\right )}{a}-\frac {A}{2 a x^2}\) |
\(\Big \downarrow \) 1103 |
\(\displaystyle -\frac {(A b-a B) \left (\frac {-\frac {\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{2 \sqrt [3]{b}}-\frac {\sqrt {3} \arctan \left (\frac {1-\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{\sqrt [3]{b}}}{3 a^{2/3}}+\frac {\log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} \sqrt [3]{b}}\right )}{a}-\frac {A}{2 a x^2}\) |
Input:
Int[(A + B*x^3)/(x^3*(a + b*x^3)),x]
Output:
-1/2*A/(a*x^2) - ((A*b - a*B)*(Log[a^(1/3) + b^(1/3)*x]/(3*a^(2/3)*b^(1/3) ) + (-((Sqrt[3]*ArcTan[(1 - (2*b^(1/3)*x)/a^(1/3))/Sqrt[3]])/b^(1/3)) - Lo g[a^(2/3) - a^(1/3)*b^(1/3)*x + b^(2/3)*x^2]/(2*b^(1/3)))/(3*a^(2/3))))/a
Int[(c_.)/((a_.) + (b_.)*(x_)), x_Symbol] :> Simp[c*(Log[RemoveContent[a + b*x, x]]/b), x] /; FreeQ[{a, b, c}, x]
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_)^3)^(-1), x_Symbol] :> Simp[1/(3*Rt[a, 3]^2) Int[1/ (Rt[a, 3] + Rt[b, 3]*x), x], x] + Simp[1/(3*Rt[a, 3]^2) Int[(2*Rt[a, 3] - Rt[b, 3]*x)/(Rt[a, 3]^2 - Rt[a, 3]*Rt[b, 3]*x + Rt[b, 3]^2*x^2), x], x] /; FreeQ[{a, b}, x]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n _)), x_Symbol] :> Simp[c*(e*x)^(m + 1)*((a + b*x^n)^(p + 1)/(a*e*(m + 1))), x] + Simp[(a*d*(m + 1) - b*c*(m + n*(p + 1) + 1))/(a*e^n*(m + 1)) Int[(e *x)^(m + n)*(a + b*x^n)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b* c - a*d, 0] && (IntegerQ[n] || GtQ[e, 0]) && ((GtQ[n, 0] && LtQ[m, -1]) || (LtQ[n, 0] && GtQ[m + n, -1])) && !ILtQ[p, -1]
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*S implify[a*(c/b^2)]}, Simp[-2/b Subst[Int[1/(q - x^2), x], x, 1 + 2*c*(x/b )], x] /; RationalQ[q] && (EqQ[q^2, 1] || !RationalQ[b^2 - 4*a*c])] /; Fre eQ[{a, b, c}, x]
Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[d*(Log[RemoveContent[a + b*x + c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]
Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[(2*c*d - b*e)/(2*c) Int[1/(a + b*x + c*x^2), x], x] + Simp[e/(2*c) Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x]
Time = 0.82 (sec) , antiderivative size = 113, normalized size of antiderivative = 0.76
method | result | size |
default | \(-\frac {A}{2 a \,x^{2}}+\frac {\left (\frac {\ln \left (x +\left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}-\frac {\ln \left (x^{2}-\left (\frac {a}{b}\right )^{\frac {1}{3}} x +\left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}+\frac {\sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 x}{\left (\frac {a}{b}\right )^{\frac {1}{3}}}-1\right )}{3}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}\right ) \left (-A b +B a \right )}{a}\) | \(113\) |
risch | \(-\frac {A}{2 a \,x^{2}}+\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{3} b \,a^{5}+A^{3} b^{3}-3 A^{2} B a \,b^{2}+3 A \,B^{2} a^{2} b -B^{3} a^{3}\right )}{\sum }\textit {\_R} \ln \left (\left (-4 \textit {\_R}^{3} a^{5} b -3 A^{3} b^{3}+9 A^{2} B a \,b^{2}-9 A \,B^{2} a^{2} b +3 B^{3} a^{3}\right ) x +\left (-A^{2} a^{2} b^{2}+2 A B \,a^{3} b -B^{2} a^{4}\right ) \textit {\_R} \right )\right )}{3}\) | \(143\) |
Input:
int((B*x^3+A)/x^3/(b*x^3+a),x,method=_RETURNVERBOSE)
Output:
-1/2*A/a/x^2+(1/3/b/(a/b)^(2/3)*ln(x+(a/b)^(1/3))-1/6/b/(a/b)^(2/3)*ln(x^2 -(a/b)^(1/3)*x+(a/b)^(2/3))+1/3/b/(a/b)^(2/3)*3^(1/2)*arctan(1/3*3^(1/2)*( 2/(a/b)^(1/3)*x-1)))*(-A*b+B*a)/a
Time = 0.12 (sec) , antiderivative size = 411, normalized size of antiderivative = 2.76 \[ \int \frac {A+B x^3}{x^3 \left (a+b x^3\right )} \, dx=\left [-\frac {3 \, \sqrt {\frac {1}{3}} {\left (B a^{2} b - A a b^{2}\right )} x^{2} \sqrt {\frac {\left (-a^{2} b\right )^{\frac {1}{3}}}{b}} \log \left (\frac {2 \, a b x^{3} + 3 \, \left (-a^{2} b\right )^{\frac {1}{3}} a x - a^{2} - 3 \, \sqrt {\frac {1}{3}} {\left (2 \, a b x^{2} + \left (-a^{2} b\right )^{\frac {2}{3}} x + \left (-a^{2} b\right )^{\frac {1}{3}} a\right )} \sqrt {\frac {\left (-a^{2} b\right )^{\frac {1}{3}}}{b}}}{b x^{3} + a}\right ) + \left (-a^{2} b\right )^{\frac {2}{3}} {\left (B a - A b\right )} x^{2} \log \left (a b x^{2} - \left (-a^{2} b\right )^{\frac {2}{3}} x - \left (-a^{2} b\right )^{\frac {1}{3}} a\right ) - 2 \, \left (-a^{2} b\right )^{\frac {2}{3}} {\left (B a - A b\right )} x^{2} \log \left (a b x + \left (-a^{2} b\right )^{\frac {2}{3}}\right ) + 3 \, A a^{2} b}{6 \, a^{3} b x^{2}}, \frac {6 \, \sqrt {\frac {1}{3}} {\left (B a^{2} b - A a b^{2}\right )} x^{2} \sqrt {-\frac {\left (-a^{2} b\right )^{\frac {1}{3}}}{b}} \arctan \left (\frac {\sqrt {\frac {1}{3}} {\left (2 \, \left (-a^{2} b\right )^{\frac {2}{3}} x + \left (-a^{2} b\right )^{\frac {1}{3}} a\right )} \sqrt {-\frac {\left (-a^{2} b\right )^{\frac {1}{3}}}{b}}}{a^{2}}\right ) - \left (-a^{2} b\right )^{\frac {2}{3}} {\left (B a - A b\right )} x^{2} \log \left (a b x^{2} - \left (-a^{2} b\right )^{\frac {2}{3}} x - \left (-a^{2} b\right )^{\frac {1}{3}} a\right ) + 2 \, \left (-a^{2} b\right )^{\frac {2}{3}} {\left (B a - A b\right )} x^{2} \log \left (a b x + \left (-a^{2} b\right )^{\frac {2}{3}}\right ) - 3 \, A a^{2} b}{6 \, a^{3} b x^{2}}\right ] \] Input:
integrate((B*x^3+A)/x^3/(b*x^3+a),x, algorithm="fricas")
Output:
[-1/6*(3*sqrt(1/3)*(B*a^2*b - A*a*b^2)*x^2*sqrt((-a^2*b)^(1/3)/b)*log((2*a *b*x^3 + 3*(-a^2*b)^(1/3)*a*x - a^2 - 3*sqrt(1/3)*(2*a*b*x^2 + (-a^2*b)^(2 /3)*x + (-a^2*b)^(1/3)*a)*sqrt((-a^2*b)^(1/3)/b))/(b*x^3 + a)) + (-a^2*b)^ (2/3)*(B*a - A*b)*x^2*log(a*b*x^2 - (-a^2*b)^(2/3)*x - (-a^2*b)^(1/3)*a) - 2*(-a^2*b)^(2/3)*(B*a - A*b)*x^2*log(a*b*x + (-a^2*b)^(2/3)) + 3*A*a^2*b) /(a^3*b*x^2), 1/6*(6*sqrt(1/3)*(B*a^2*b - A*a*b^2)*x^2*sqrt(-(-a^2*b)^(1/3 )/b)*arctan(sqrt(1/3)*(2*(-a^2*b)^(2/3)*x + (-a^2*b)^(1/3)*a)*sqrt(-(-a^2* b)^(1/3)/b)/a^2) - (-a^2*b)^(2/3)*(B*a - A*b)*x^2*log(a*b*x^2 - (-a^2*b)^( 2/3)*x - (-a^2*b)^(1/3)*a) + 2*(-a^2*b)^(2/3)*(B*a - A*b)*x^2*log(a*b*x + (-a^2*b)^(2/3)) - 3*A*a^2*b)/(a^3*b*x^2)]
Time = 0.31 (sec) , antiderivative size = 73, normalized size of antiderivative = 0.49 \[ \int \frac {A+B x^3}{x^3 \left (a+b x^3\right )} \, dx=- \frac {A}{2 a x^{2}} + \operatorname {RootSum} {\left (27 t^{3} a^{5} b + A^{3} b^{3} - 3 A^{2} B a b^{2} + 3 A B^{2} a^{2} b - B^{3} a^{3}, \left ( t \mapsto t \log {\left (\frac {3 t a^{2}}{- A b + B a} + x \right )} \right )\right )} \] Input:
integrate((B*x**3+A)/x**3/(b*x**3+a),x)
Output:
-A/(2*a*x**2) + RootSum(27*_t**3*a**5*b + A**3*b**3 - 3*A**2*B*a*b**2 + 3* A*B**2*a**2*b - B**3*a**3, Lambda(_t, _t*log(3*_t*a**2/(-A*b + B*a) + x)))
Time = 0.11 (sec) , antiderivative size = 140, normalized size of antiderivative = 0.94 \[ \int \frac {A+B x^3}{x^3 \left (a+b x^3\right )} \, dx=\frac {\sqrt {3} {\left (B a - A b\right )} \arctan \left (\frac {\sqrt {3} {\left (2 \, x - \left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}}{3 \, \left (\frac {a}{b}\right )^{\frac {1}{3}}}\right )}{3 \, a b \left (\frac {a}{b}\right )^{\frac {2}{3}}} - \frac {{\left (B a - A b\right )} \log \left (x^{2} - x \left (\frac {a}{b}\right )^{\frac {1}{3}} + \left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 \, a b \left (\frac {a}{b}\right )^{\frac {2}{3}}} + \frac {{\left (B a - A b\right )} \log \left (x + \left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{3 \, a b \left (\frac {a}{b}\right )^{\frac {2}{3}}} - \frac {A}{2 \, a x^{2}} \] Input:
integrate((B*x^3+A)/x^3/(b*x^3+a),x, algorithm="maxima")
Output:
1/3*sqrt(3)*(B*a - A*b)*arctan(1/3*sqrt(3)*(2*x - (a/b)^(1/3))/(a/b)^(1/3) )/(a*b*(a/b)^(2/3)) - 1/6*(B*a - A*b)*log(x^2 - x*(a/b)^(1/3) + (a/b)^(2/3 ))/(a*b*(a/b)^(2/3)) + 1/3*(B*a - A*b)*log(x + (a/b)^(1/3))/(a*b*(a/b)^(2/ 3)) - 1/2*A/(a*x^2)
Time = 0.13 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.08 \[ \int \frac {A+B x^3}{x^3 \left (a+b x^3\right )} \, dx=-\frac {{\left (B a - A b\right )} \left (-\frac {a}{b}\right )^{\frac {1}{3}} \log \left ({\left | x - \left (-\frac {a}{b}\right )^{\frac {1}{3}} \right |}\right )}{3 \, a^{2}} + \frac {\sqrt {3} {\left (\left (-a b^{2}\right )^{\frac {1}{3}} B a - \left (-a b^{2}\right )^{\frac {1}{3}} A b\right )} \arctan \left (\frac {\sqrt {3} {\left (2 \, x + \left (-\frac {a}{b}\right )^{\frac {1}{3}}\right )}}{3 \, \left (-\frac {a}{b}\right )^{\frac {1}{3}}}\right )}{3 \, a^{2} b} + \frac {{\left (\left (-a b^{2}\right )^{\frac {1}{3}} B a - \left (-a b^{2}\right )^{\frac {1}{3}} A b\right )} \log \left (x^{2} + x \left (-\frac {a}{b}\right )^{\frac {1}{3}} + \left (-\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 \, a^{2} b} - \frac {A}{2 \, a x^{2}} \] Input:
integrate((B*x^3+A)/x^3/(b*x^3+a),x, algorithm="giac")
Output:
-1/3*(B*a - A*b)*(-a/b)^(1/3)*log(abs(x - (-a/b)^(1/3)))/a^2 + 1/3*sqrt(3) *((-a*b^2)^(1/3)*B*a - (-a*b^2)^(1/3)*A*b)*arctan(1/3*sqrt(3)*(2*x + (-a/b )^(1/3))/(-a/b)^(1/3))/(a^2*b) + 1/6*((-a*b^2)^(1/3)*B*a - (-a*b^2)^(1/3)* A*b)*log(x^2 + x*(-a/b)^(1/3) + (-a/b)^(2/3))/(a^2*b) - 1/2*A/(a*x^2)
Time = 0.27 (sec) , antiderivative size = 126, normalized size of antiderivative = 0.85 \[ \int \frac {A+B x^3}{x^3 \left (a+b x^3\right )} \, dx=-\frac {A}{2\,a\,x^2}-\frac {\ln \left (b^{1/3}\,x+a^{1/3}\right )\,\left (A\,b-B\,a\right )}{3\,a^{5/3}\,b^{1/3}}+\frac {\ln \left (a^{1/3}-2\,b^{1/3}\,x+\sqrt {3}\,a^{1/3}\,1{}\mathrm {i}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (A\,b-B\,a\right )}{3\,a^{5/3}\,b^{1/3}}-\frac {\ln \left (2\,b^{1/3}\,x-a^{1/3}+\sqrt {3}\,a^{1/3}\,1{}\mathrm {i}\right )\,\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (A\,b-B\,a\right )}{3\,a^{5/3}\,b^{1/3}} \] Input:
int((A + B*x^3)/(x^3*(a + b*x^3)),x)
Output:
(log(3^(1/2)*a^(1/3)*1i - 2*b^(1/3)*x + a^(1/3))*((3^(1/2)*1i)/2 + 1/2)*(A *b - B*a))/(3*a^(5/3)*b^(1/3)) - (log(b^(1/3)*x + a^(1/3))*(A*b - B*a))/(3 *a^(5/3)*b^(1/3)) - A/(2*a*x^2) - (log(3^(1/2)*a^(1/3)*1i + 2*b^(1/3)*x - a^(1/3))*((3^(1/2)*1i)/2 - 1/2)*(A*b - B*a))/(3*a^(5/3)*b^(1/3))
Time = 0.22 (sec) , antiderivative size = 5, normalized size of antiderivative = 0.03 \[ \int \frac {A+B x^3}{x^3 \left (a+b x^3\right )} \, dx=-\frac {1}{2 x^{2}} \] Input:
int((B*x^3+A)/x^3/(b*x^3+a),x)
Output:
( - 1)/(2*x**2)