\[ \int \frac {(a+b x)^{5/2} (A+B x)}{x^7} \, dx \]
Optimal antiderivative \[ \frac {b \left (5 A b -12 B a \right ) \left (b x +a \right )^{\frac {3}{2}}}{96 a \,x^{4}}+\frac {\left (5 A b -12 B a \right ) \left (b x +a \right )^{\frac {5}{2}}}{60 a \,x^{5}}-\frac {A \left (b x +a \right )^{\frac {7}{2}}}{6 a \,x^{6}}+\frac {b^{5} \left (5 A b -12 B a \right ) \arctanh \left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{512 a^{\frac {7}{2}}}+\frac {b^{2} \left (5 A b -12 B a \right ) \sqrt {b x +a}}{192 x^{3} a}+\frac {b^{3} \left (5 A b -12 B a \right ) \sqrt {b x +a}}{768 a^{2} x^{2}}-\frac {b^{4} \left (5 A b -12 B a \right ) \sqrt {b x +a}}{512 a^{3} x} \]
command
integrate((b*x+a)**(5/2)*(B*x+A)/x**7,x)
Sympy 1.10.1 under Python 3.10.4 output
\[ \text {output too large to display} \]
Sympy 1.8 under Python 3.8.8 output \[ \text {Timed out} \]_____________________________________________________