9.12 Problem number 70

\[ \int \frac {\sqrt {c+d x} \left (A+B x+C x^2\right )}{(a+b x)^{3/2} \sqrt {e+f x}} \, dx \]

Optimal antiderivative \[ -\frac {2 \left (A \,b^{2}-a \left (b B -a C \right )\right ) \left (d x +c \right )^{\frac {3}{2}} \sqrt {f x +e}}{b \left (-a d +b c \right ) \left (-a f +b e \right ) \sqrt {b x +a}}+\frac {2 \left (4 a^{2} C d f +b^{2} \left (3 A d f +c C e \right )-a b \left (3 B d f +c C f +C d e \right )\right ) \sqrt {b x +a}\, \sqrt {d x +c}\, \sqrt {f x +e}}{3 b^{2} \left (-a d +b c \right ) f \left (-a f +b e \right )}+\frac {2 \left (8 a^{2} C d \,f^{2}-a b f \left (6 B d f +c C f +3 C d e \right )+b^{2} \left (3 d f \left (A f +B e \right )-C e \left (-c f +2 d e \right )\right )\right ) \EllipticE \left (\frac {\sqrt {d}\, \sqrt {b x +a}}{\sqrt {a d -b c}}, \sqrt {\frac {\left (-a d +b c \right ) f}{d \left (-a f +b e \right )}}\right ) \sqrt {a d -b c}\, \sqrt {\frac {b \left (d x +c \right )}{-a d +b c}}\, \sqrt {f x +e}}{3 b^{3} f^{2} \left (-a f +b e \right ) \sqrt {d}\, \sqrt {d x +c}\, \sqrt {\frac {b \left (f x +e \right )}{-a f +b e}}}+\frac {2 \left (-c f +d e \right ) \left (-3 B b f +4 C a f +2 C b e \right ) \EllipticF \left (\frac {\sqrt {d}\, \sqrt {b x +a}}{\sqrt {a d -b c}}, \sqrt {\frac {\left (-a d +b c \right ) f}{d \left (-a f +b e \right )}}\right ) \sqrt {a d -b c}\, \sqrt {\frac {b \left (d x +c \right )}{-a d +b c}}\, \sqrt {\frac {b \left (f x +e \right )}{-a f +b e}}}{3 b^{3} f^{2} \sqrt {d}\, \sqrt {d x +c}\, \sqrt {f x +e}} \]

command

integrate((C*x^2+B*x+A)*(d*x+c)^(1/2)/(b*x+a)^(3/2)/(f*x+e)^(1/2),x, algorithm="fricas")

Fricas 1.3.8 (sbcl 2.2.11.debian) via sagemath 9.6 output

\[ \frac {2 \, {\left (3 \, {\left (C a b^{3} d^{2} f^{3} x + {\left (4 \, C a^{2} b^{2} - 3 \, B a b^{3} + 3 \, A b^{4}\right )} d^{2} f^{3} - {\left (C b^{4} d^{2} f^{2} x + C a b^{3} d^{2} f^{2}\right )} e\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {f x + e} - {\left ({\left (C a b^{3} c^{2} + {\left (5 \, C a^{2} b^{2} - 3 \, B a b^{3} - 3 \, A b^{4}\right )} c d - {\left (8 \, C a^{3} b - 6 \, B a^{2} b^{2} + 3 \, A a b^{3}\right )} d^{2}\right )} f^{3} x + {\left (C a^{2} b^{2} c^{2} + {\left (5 \, C a^{3} b - 3 \, B a^{2} b^{2} - 3 \, A a b^{3}\right )} c d - {\left (8 \, C a^{4} - 6 \, B a^{3} b + 3 \, A a^{2} b^{2}\right )} d^{2}\right )} f^{3} + 2 \, {\left (C b^{4} d^{2} x + C a b^{3} d^{2}\right )} e^{3} - {\left ({\left (2 \, C b^{4} c d - {\left (2 \, C a b^{3} - 3 \, B b^{4}\right )} d^{2}\right )} f x + {\left (2 \, C a b^{3} c d - {\left (2 \, C a^{2} b^{2} - 3 \, B a b^{3}\right )} d^{2}\right )} f\right )} e^{2} - {\left ({\left (C b^{4} c^{2} + 6 \, {\left (C a b^{3} - B b^{4}\right )} c d - {\left (7 \, C a^{2} b^{2} - 6 \, B a b^{3} + 6 \, A b^{4}\right )} d^{2}\right )} f^{2} x + {\left (C a b^{3} c^{2} + 6 \, {\left (C a^{2} b^{2} - B a b^{3}\right )} c d - {\left (7 \, C a^{3} b - 6 \, B a^{2} b^{2} + 6 \, A a b^{3}\right )} d^{2}\right )} f^{2}\right )} e\right )} \sqrt {b d f} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (b^{2} d^{2} e^{2} + {\left (b^{2} c^{2} - a b c d + a^{2} d^{2}\right )} f^{2} - {\left (b^{2} c d + a b d^{2}\right )} f e\right )}}{3 \, b^{2} d^{2} f^{2}}, -\frac {4 \, {\left (2 \, b^{3} d^{3} e^{3} + {\left (2 \, b^{3} c^{3} - 3 \, a b^{2} c^{2} d - 3 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3}\right )} f^{3} - 3 \, {\left (b^{3} c^{2} d - 4 \, a b^{2} c d^{2} + a^{2} b d^{3}\right )} f^{2} e - 3 \, {\left (b^{3} c d^{2} + a b^{2} d^{3}\right )} f e^{2}\right )}}{27 \, b^{3} d^{3} f^{3}}, \frac {3 \, b d f x + b d e + {\left (b c + a d\right )} f}{3 \, b d f}\right ) - 3 \, {\left ({\left (C a b^{3} c d - {\left (8 \, C a^{2} b^{2} - 6 \, B a b^{3} + 3 \, A b^{4}\right )} d^{2}\right )} f^{3} x + {\left (C a^{2} b^{2} c d - {\left (8 \, C a^{3} b - 6 \, B a^{2} b^{2} + 3 \, A a b^{3}\right )} d^{2}\right )} f^{3} + 2 \, {\left (C b^{4} d^{2} f x + C a b^{3} d^{2} f\right )} e^{2} - {\left ({\left (C b^{4} c d - 3 \, {\left (C a b^{3} - B b^{4}\right )} d^{2}\right )} f^{2} x + {\left (C a b^{3} c d - 3 \, {\left (C a^{2} b^{2} - B a b^{3}\right )} d^{2}\right )} f^{2}\right )} e\right )} \sqrt {b d f} {\rm weierstrassZeta}\left (\frac {4 \, {\left (b^{2} d^{2} e^{2} + {\left (b^{2} c^{2} - a b c d + a^{2} d^{2}\right )} f^{2} - {\left (b^{2} c d + a b d^{2}\right )} f e\right )}}{3 \, b^{2} d^{2} f^{2}}, -\frac {4 \, {\left (2 \, b^{3} d^{3} e^{3} + {\left (2 \, b^{3} c^{3} - 3 \, a b^{2} c^{2} d - 3 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3}\right )} f^{3} - 3 \, {\left (b^{3} c^{2} d - 4 \, a b^{2} c d^{2} + a^{2} b d^{3}\right )} f^{2} e - 3 \, {\left (b^{3} c d^{2} + a b^{2} d^{3}\right )} f e^{2}\right )}}{27 \, b^{3} d^{3} f^{3}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (b^{2} d^{2} e^{2} + {\left (b^{2} c^{2} - a b c d + a^{2} d^{2}\right )} f^{2} - {\left (b^{2} c d + a b d^{2}\right )} f e\right )}}{3 \, b^{2} d^{2} f^{2}}, -\frac {4 \, {\left (2 \, b^{3} d^{3} e^{3} + {\left (2 \, b^{3} c^{3} - 3 \, a b^{2} c^{2} d - 3 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3}\right )} f^{3} - 3 \, {\left (b^{3} c^{2} d - 4 \, a b^{2} c d^{2} + a^{2} b d^{3}\right )} f^{2} e - 3 \, {\left (b^{3} c d^{2} + a b^{2} d^{3}\right )} f e^{2}\right )}}{27 \, b^{3} d^{3} f^{3}}, \frac {3 \, b d f x + b d e + {\left (b c + a d\right )} f}{3 \, b d f}\right )\right )\right )}}{9 \, {\left (a b^{5} d^{2} f^{4} x + a^{2} b^{4} d^{2} f^{4} - {\left (b^{6} d^{2} f^{3} x + a b^{5} d^{2} f^{3}\right )} e\right )}} \]

Fricas 1.3.7 via sagemath 9.3 output

\[ {\rm integral}\left (\frac {{\left (C x^{2} + B x + A\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {f x + e}}{b^{2} f x^{3} + a^{2} e + {\left (b^{2} e + 2 \, a b f\right )} x^{2} + {\left (2 \, a b e + a^{2} f\right )} x}, x\right ) \]