\[ \int \frac {x^5 \left (A+B x+C x^2\right )}{\left (a+b x^2\right )^{9/2}} \, dx \]
Optimal antiderivative \[ -\frac {x^{5} \left (B a -\left (A b -a C \right ) x \right )}{7 a b \left (b \,x^{2}+a \right )^{\frac {7}{2}}}-\frac {x^{4} \left (-5 b B x +A b +6 a C \right )}{35 a \,b^{2} \left (b \,x^{2}+a \right )^{\frac {5}{2}}}+\frac {\frac {4 A b}{105}+\frac {8 a C}{35}}{b^{4} \left (b \,x^{2}+a \right )^{\frac {3}{2}}}-\frac {4 \left (A b +6 a C \right )}{35 a \,b^{4} \sqrt {b \,x^{2}+a}} \]
command
integrate(x**5*(C*x**2+B*x+A)/(b*x**2+a)**(9/2),x)
Sympy 1.10.1 under Python 3.10.4 output
\[ A \left (\begin {cases} - \frac {8 a^{2}}{105 a^{3} b^{3} \sqrt {a + b x^{2}} + 315 a^{2} b^{4} x^{2} \sqrt {a + b x^{2}} + 315 a b^{5} x^{4} \sqrt {a + b x^{2}} + 105 b^{6} x^{6} \sqrt {a + b x^{2}}} - \frac {28 a b x^{2}}{105 a^{3} b^{3} \sqrt {a + b x^{2}} + 315 a^{2} b^{4} x^{2} \sqrt {a + b x^{2}} + 315 a b^{5} x^{4} \sqrt {a + b x^{2}} + 105 b^{6} x^{6} \sqrt {a + b x^{2}}} - \frac {35 b^{2} x^{4}}{105 a^{3} b^{3} \sqrt {a + b x^{2}} + 315 a^{2} b^{4} x^{2} \sqrt {a + b x^{2}} + 315 a b^{5} x^{4} \sqrt {a + b x^{2}} + 105 b^{6} x^{6} \sqrt {a + b x^{2}}} & \text {for}\: b \neq 0 \\\frac {x^{6}}{6 a^{\frac {9}{2}}} & \text {otherwise} \end {cases}\right ) + \frac {B x^{7}}{7 a^{\frac {9}{2}} \sqrt {1 + \frac {b x^{2}}{a}} + 21 a^{\frac {7}{2}} b x^{2} \sqrt {1 + \frac {b x^{2}}{a}} + 21 a^{\frac {5}{2}} b^{2} x^{4} \sqrt {1 + \frac {b x^{2}}{a}} + 7 a^{\frac {3}{2}} b^{3} x^{6} \sqrt {1 + \frac {b x^{2}}{a}}} + C \left (\begin {cases} - \frac {16 a^{3}}{35 a^{3} b^{4} \sqrt {a + b x^{2}} + 105 a^{2} b^{5} x^{2} \sqrt {a + b x^{2}} + 105 a b^{6} x^{4} \sqrt {a + b x^{2}} + 35 b^{7} x^{6} \sqrt {a + b x^{2}}} - \frac {56 a^{2} b x^{2}}{35 a^{3} b^{4} \sqrt {a + b x^{2}} + 105 a^{2} b^{5} x^{2} \sqrt {a + b x^{2}} + 105 a b^{6} x^{4} \sqrt {a + b x^{2}} + 35 b^{7} x^{6} \sqrt {a + b x^{2}}} - \frac {70 a b^{2} x^{4}}{35 a^{3} b^{4} \sqrt {a + b x^{2}} + 105 a^{2} b^{5} x^{2} \sqrt {a + b x^{2}} + 105 a b^{6} x^{4} \sqrt {a + b x^{2}} + 35 b^{7} x^{6} \sqrt {a + b x^{2}}} - \frac {35 b^{3} x^{6}}{35 a^{3} b^{4} \sqrt {a + b x^{2}} + 105 a^{2} b^{5} x^{2} \sqrt {a + b x^{2}} + 105 a b^{6} x^{4} \sqrt {a + b x^{2}} + 35 b^{7} x^{6} \sqrt {a + b x^{2}}} & \text {for}\: b \neq 0 \\\frac {x^{8}}{8 a^{\frac {9}{2}}} & \text {otherwise} \end {cases}\right ) \]
Sympy 1.8 under Python 3.8.8 output
\[ \text {Timed out} \]________________________________________________________________________________________