\[ \int \frac {b+a x^6}{\left (-b+a x^6\right ) \sqrt [3]{-b+a^3 x^3+a x^6}} \, dx \]
Optimal antiderivative \[ -\frac {\arctan \left (\frac {\sqrt {3}\, a x}{a x +2 \left (a \,x^{6}+a^{3} x^{3}-b \right )^{\frac {1}{3}}}\right ) \sqrt {3}}{3 a}+\frac {\ln \left (-a x +\left (a \,x^{6}+a^{3} x^{3}-b \right )^{\frac {1}{3}}\right )}{3 a}-\frac {\ln \left (a^{2} x^{2}+a x \left (a \,x^{6}+a^{3} x^{3}-b \right )^{\frac {1}{3}}+\left (a \,x^{6}+a^{3} x^{3}-b \right )^{\frac {2}{3}}\right )}{6 a} \]
command
Integrate[(b + a*x^6)/((-b + a*x^6)*(-b + a^3*x^3 + a*x^6)^(1/3)),x]
Mathematica 13.1 output
\[ -\frac {2 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} a x}{a x+2 \sqrt [3]{-b+a^3 x^3+a x^6}}\right )-2 \log \left (a \left (a x-\sqrt [3]{-b+a^3 x^3+a x^6}\right )\right )+\log \left (a^2 x^2+a x \sqrt [3]{-b+a^3 x^3+a x^6}+\left (-b+a^3 x^3+a x^6\right )^{2/3}\right )}{6 a} \]
Mathematica 12.3 output
\[ \int \frac {b+a x^6}{\left (-b+a x^6\right ) \sqrt [3]{-b+a^3 x^3+a x^6}} \, dx \]________________________________________________________________________________________