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