22.15 Problem number 1009

\[ \int \frac {x^{5/2} (A+B x)}{a+b x+c x^2} \, dx \]

Optimal antiderivative \[ -\frac {2 \left (-A c +b B \right ) x^{\frac {3}{2}}}{3 c^{2}}+\frac {2 B \,x^{\frac {5}{2}}}{5 c}+\frac {2 \left (-A b c -a B c +b^{2} B \right ) \sqrt {x}}{c^{3}}-\frac {\arctan \left (\frac {\sqrt {2}\, \sqrt {c}\, \sqrt {x}}{\sqrt {b -\sqrt {-4 a c +b^{2}}}}\right ) \sqrt {2}\, \left (B \,b^{3}-A \,b^{2} c -2 a b B c +a A \,c^{2}+\frac {-3 a A b \,c^{2}+A \,b^{3} c -2 a^{2} B \,c^{2}+4 a \,b^{2} B c -b^{4} B}{\sqrt {-4 a c +b^{2}}}\right )}{c^{\frac {7}{2}} \sqrt {b -\sqrt {-4 a c +b^{2}}}}-\frac {\arctan \left (\frac {\sqrt {2}\, \sqrt {c}\, \sqrt {x}}{\sqrt {b +\sqrt {-4 a c +b^{2}}}}\right ) \sqrt {2}\, \left (B \,b^{3}-A \,b^{2} c -2 a b B c +a A \,c^{2}+\frac {3 a A b \,c^{2}-A \,b^{3} c +2 a^{2} B \,c^{2}-4 a \,b^{2} B c +b^{4} B}{\sqrt {-4 a c +b^{2}}}\right )}{c^{\frac {7}{2}} \sqrt {b +\sqrt {-4 a c +b^{2}}}} \]

command

integrate(x**(5/2)*(B*x+A)/(c*x**2+b*x+a),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} \]_____________________________________________________