\[ \int \frac {1}{x^{2/3} (a+b x)^3} \, dx \]
Optimal antiderivative \[ \frac {x^{\frac {1}{3}}}{2 a \left (b x +a \right )^{2}}+\frac {5 x^{\frac {1}{3}}}{6 a^{2} \left (b x +a \right )}+\frac {5 \ln \left (a^{\frac {1}{3}}+b^{\frac {1}{3}} x^{\frac {1}{3}}\right )}{6 a^{\frac {8}{3}} b^{\frac {1}{3}}}-\frac {5 \ln \left (b x +a \right )}{18 a^{\frac {8}{3}} b^{\frac {1}{3}}}-\frac {5 \arctan \left (\frac {\left (a^{\frac {1}{3}}-2 b^{\frac {1}{3}} x^{\frac {1}{3}}\right ) \sqrt {3}}{3 a^{\frac {1}{3}}}\right ) \sqrt {3}}{9 a^{\frac {8}{3}} b^{\frac {1}{3}}} \]
command
integrate(1/x**(2/3)/(b*x+a)**3,x)
Sympy 1.10.1 under Python 3.10.4 output
\[ \begin {cases} \frac {\tilde {\infty }}{x^{\frac {8}{3}}} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {3}{8 b^{3} x^{\frac {8}{3}}} & \text {for}\: a = 0 \\\frac {3 \sqrt [3]{x}}{a^{3}} & \text {for}\: b = 0 \\\frac {24 a^{2} \sqrt [3]{x}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} - \frac {10 a^{2} \sqrt [3]{- \frac {a}{b}} \log {\left (\sqrt [3]{x} - \sqrt [3]{- \frac {a}{b}} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} + \frac {5 a^{2} \sqrt [3]{- \frac {a}{b}} \log {\left (4 x^{\frac {2}{3}} + 4 \sqrt [3]{x} \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} + \frac {10 \sqrt {3} a^{2} \sqrt [3]{- \frac {a}{b}} \operatorname {atan}{\left (\frac {2 \sqrt {3} \sqrt [3]{x}}{3 \sqrt [3]{- \frac {a}{b}}} + \frac {\sqrt {3}}{3} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} - \frac {10 a^{2} \sqrt [3]{- \frac {a}{b}} \log {\left (2 \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} + \frac {15 a b x^{\frac {4}{3}}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} - \frac {20 a b x \sqrt [3]{- \frac {a}{b}} \log {\left (\sqrt [3]{x} - \sqrt [3]{- \frac {a}{b}} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} + \frac {10 a b x \sqrt [3]{- \frac {a}{b}} \log {\left (4 x^{\frac {2}{3}} + 4 \sqrt [3]{x} \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} + \frac {20 \sqrt {3} a b x \sqrt [3]{- \frac {a}{b}} \operatorname {atan}{\left (\frac {2 \sqrt {3} \sqrt [3]{x}}{3 \sqrt [3]{- \frac {a}{b}}} + \frac {\sqrt {3}}{3} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} - \frac {20 a b x \sqrt [3]{- \frac {a}{b}} \log {\left (2 \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} - \frac {10 b^{2} x^{2} \sqrt [3]{- \frac {a}{b}} \log {\left (\sqrt [3]{x} - \sqrt [3]{- \frac {a}{b}} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} + \frac {5 b^{2} x^{2} \sqrt [3]{- \frac {a}{b}} \log {\left (4 x^{\frac {2}{3}} + 4 \sqrt [3]{x} \sqrt [3]{- \frac {a}{b}} + 4 \left (- \frac {a}{b}\right )^{\frac {2}{3}} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} + \frac {10 \sqrt {3} b^{2} x^{2} \sqrt [3]{- \frac {a}{b}} \operatorname {atan}{\left (\frac {2 \sqrt {3} \sqrt [3]{x}}{3 \sqrt [3]{- \frac {a}{b}}} + \frac {\sqrt {3}}{3} \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} - \frac {10 b^{2} x^{2} \sqrt [3]{- \frac {a}{b}} \log {\left (2 \right )}}{18 a^{5} + 36 a^{4} b x + 18 a^{3} b^{2} x^{2}} & \text {otherwise} \end {cases} \]
Sympy 1.8 under Python 3.8.8 output
\[ \text {Timed out} \]________________________________________________________________________________________