12.36 Problem number 635

\[ \int \frac {\left (a+b x^2\right )^2 \left (c+d x^2\right )^{5/2}}{x^7} \, dx \]

Optimal antiderivative \[ \frac {5 d \left (8 b^{2} c^{2}+a d \left (a d +12 b c \right )\right ) \left (d \,x^{2}+c \right )^{\frac {3}{2}}}{48 c^{2}}-\frac {\left (8 b^{2} c^{2}+a d \left (a d +12 b c \right )\right ) \left (d \,x^{2}+c \right )^{\frac {5}{2}}}{16 c^{2} x^{2}}-\frac {a^{2} \left (d \,x^{2}+c \right )^{\frac {7}{2}}}{6 c \,x^{6}}-\frac {a \left (a d +12 b c \right ) \left (d \,x^{2}+c \right )^{\frac {7}{2}}}{24 c^{2} x^{4}}-\frac {5 d \left (8 b^{2} c^{2}+a d \left (a d +12 b c \right )\right ) \arctanh \left (\frac {\sqrt {d \,x^{2}+c}}{\sqrt {c}}\right )}{16 \sqrt {c}}+\frac {5 d \left (8 b^{2} c^{2}+a d \left (a d +12 b c \right )\right ) \sqrt {d \,x^{2}+c}}{16 c} \]

command

integrate((b*x**2+a)**2*(d*x**2+c)**(5/2)/x**7,x)

Sympy 1.10.1 under Python 3.10.4 output

\[ - \frac {a^{2} c^{3}}{6 \sqrt {d} x^{7} \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {17 a^{2} c^{2} \sqrt {d}}{24 x^{5} \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {35 a^{2} c d^{\frac {3}{2}}}{48 x^{3} \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {a^{2} d^{\frac {5}{2}} \sqrt {\frac {c}{d x^{2}} + 1}}{2 x} - \frac {3 a^{2} d^{\frac {5}{2}}}{16 x \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {5 a^{2} d^{3} \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{16 \sqrt {c}} - \frac {15 a b \sqrt {c} d^{2} \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{4} - \frac {a b c^{3}}{2 \sqrt {d} x^{5} \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {3 a b c^{2} \sqrt {d}}{4 x^{3} \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {2 a b c d^{\frac {3}{2}} \sqrt {\frac {c}{d x^{2}} + 1}}{x} + \frac {7 a b c d^{\frac {3}{2}}}{4 x \sqrt {\frac {c}{d x^{2}} + 1}} + \frac {2 a b d^{\frac {5}{2}} x}{\sqrt {\frac {c}{d x^{2}} + 1}} - \frac {5 b^{2} c^{\frac {3}{2}} d \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{2} - \frac {b^{2} c^{2} \sqrt {d} \sqrt {\frac {c}{d x^{2}} + 1}}{2 x} + \frac {2 b^{2} c^{2} \sqrt {d}}{x \sqrt {\frac {c}{d x^{2}} + 1}} + \frac {2 b^{2} c d^{\frac {3}{2}} x}{\sqrt {\frac {c}{d x^{2}} + 1}} + b^{2} d^{2} \left (\begin {cases} \frac {\sqrt {c} x^{2}}{2} & \text {for}\: d = 0 \\\frac {\left (c + d x^{2}\right )^{\frac {3}{2}}}{3 d} & \text {otherwise} \end {cases}\right ) \]

Sympy 1.8 under Python 3.8.8 output

\[ \text {Timed out} \]________________________________________________________________________________________