\[ \int \frac {\left (c+d x^2\right )^2}{x^{11/2} \left (a+b x^2\right )} \, dx \]
Optimal antiderivative \[ -\frac {2 c^{2}}{9 a \,x^{\frac {9}{2}}}+\frac {2 c \left (-2 a d +b c \right )}{5 a^{2} x^{\frac {5}{2}}}+\frac {b^{\frac {1}{4}} \left (-a d +b c \right )^{2} \arctan \left (1-\frac {b^{\frac {1}{4}} \sqrt {2}\, \sqrt {x}}{a^{\frac {1}{4}}}\right ) \sqrt {2}}{2 a^{\frac {13}{4}}}-\frac {b^{\frac {1}{4}} \left (-a d +b c \right )^{2} \arctan \left (1+\frac {b^{\frac {1}{4}} \sqrt {2}\, \sqrt {x}}{a^{\frac {1}{4}}}\right ) \sqrt {2}}{2 a^{\frac {13}{4}}}-\frac {b^{\frac {1}{4}} \left (-a d +b c \right )^{2} \ln \left (\sqrt {a}+x \sqrt {b}-a^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}\, \sqrt {x}\right ) \sqrt {2}}{4 a^{\frac {13}{4}}}+\frac {b^{\frac {1}{4}} \left (-a d +b c \right )^{2} \ln \left (\sqrt {a}+x \sqrt {b}+a^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}\, \sqrt {x}\right ) \sqrt {2}}{4 a^{\frac {13}{4}}}-\frac {2 \left (-a d +b c \right )^{2}}{a^{3} \sqrt {x}} \]
command
integrate((d*x**2+c)**2/x**(11/2)/(b*x**2+a),x)
Sympy 1.10.1 under Python 3.10.4 output
\[ c^{2} \left (\begin {cases} \frac {\tilde {\infty }}{x^{\frac {13}{2}}} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {2}{13 b x^{\frac {13}{2}}} & \text {for}\: a = 0 \\- \frac {2}{9 a x^{\frac {9}{2}}} & \text {for}\: b = 0 \\- \frac {2}{9 a x^{\frac {9}{2}}} + \frac {2 b}{5 a^{2} x^{\frac {5}{2}}} - \frac {b^{2} \log {\left (\sqrt {x} - \sqrt [4]{- \frac {a}{b}} \right )}}{2 a^{3} \sqrt [4]{- \frac {a}{b}}} + \frac {b^{2} \log {\left (\sqrt {x} + \sqrt [4]{- \frac {a}{b}} \right )}}{2 a^{3} \sqrt [4]{- \frac {a}{b}}} - \frac {b^{2} \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {a}{b}}} \right )}}{a^{3} \sqrt [4]{- \frac {a}{b}}} - \frac {2 b^{2}}{a^{3} \sqrt {x}} & \text {otherwise} \end {cases}\right ) + 2 c d \left (\begin {cases} \frac {\tilde {\infty }}{x^{\frac {9}{2}}} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {2}{9 b x^{\frac {9}{2}}} & \text {for}\: a = 0 \\- \frac {2}{5 a x^{\frac {5}{2}}} & \text {for}\: b = 0 \\- \frac {2}{5 a x^{\frac {5}{2}}} + \frac {b \log {\left (\sqrt {x} - \sqrt [4]{- \frac {a}{b}} \right )}}{2 a^{2} \sqrt [4]{- \frac {a}{b}}} - \frac {b \log {\left (\sqrt {x} + \sqrt [4]{- \frac {a}{b}} \right )}}{2 a^{2} \sqrt [4]{- \frac {a}{b}}} + \frac {b \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {a}{b}}} \right )}}{a^{2} \sqrt [4]{- \frac {a}{b}}} + \frac {2 b}{a^{2} \sqrt {x}} & \text {otherwise} \end {cases}\right ) + d^{2} \left (\begin {cases} \frac {\tilde {\infty }}{x^{\frac {5}{2}}} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {2}{5 b x^{\frac {5}{2}}} & \text {for}\: a = 0 \\- \frac {2}{a \sqrt {x}} & \text {for}\: b = 0 \\- \frac {\log {\left (\sqrt {x} - \sqrt [4]{- \frac {a}{b}} \right )}}{2 a \sqrt [4]{- \frac {a}{b}}} + \frac {\log {\left (\sqrt {x} + \sqrt [4]{- \frac {a}{b}} \right )}}{2 a \sqrt [4]{- \frac {a}{b}}} - \frac {\operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {a}{b}}} \right )}}{a \sqrt [4]{- \frac {a}{b}}} - \frac {2}{a \sqrt {x}} & \text {otherwise} \end {cases}\right ) \]
Sympy 1.8 under Python 3.8.8 output
\[ \text {Timed out} \]________________________________________________________________________________________