16.114 Problem number 658

\[ \int \frac {\sqrt {d+e x} (f+g x)^2}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx \]

Optimal antiderivative \[ -\frac {8 \left (-a e g +c d f \right ) \left (2 a \,e^{2} g -c d \left (-d g +3 e f \right )\right ) \sqrt {a d e +\left (a \,e^{2}+c \,d^{2}\right ) x +c d e \,x^{2}}}{15 c^{3} d^{3} e \sqrt {e x +d}}+\frac {2 \left (g x +f \right )^{2} \sqrt {a d e +\left (a \,e^{2}+c \,d^{2}\right ) x +c d e \,x^{2}}}{5 c d \sqrt {e x +d}}+\frac {8 g \left (-a e g +c d f \right ) \sqrt {e x +d}\, \sqrt {a d e +\left (a \,e^{2}+c \,d^{2}\right ) x +c d e \,x^{2}}}{15 c^{2} d^{2} e} \]

command

integrate((g*x+f)^2*(e*x+d)^(1/2)/(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2)^(1/2),x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

\[ \frac {2 \, {\left (c^{2} d^{2} f^{2} - 2 \, a c d f g e + a^{2} g^{2} e^{2}\right )} \sqrt {{\left (x e + d\right )} c d e - c d^{2} e + a e^{3}} e^{\left (-1\right )}}{c^{3} d^{3}} - \frac {2 \, {\left (3 \, \sqrt {-c d^{2} e + a e^{3}} c^{2} d^{4} g^{2} - 10 \, \sqrt {-c d^{2} e + a e^{3}} c^{2} d^{3} f g e + 15 \, \sqrt {-c d^{2} e + a e^{3}} c^{2} d^{2} f^{2} e^{2} + 4 \, \sqrt {-c d^{2} e + a e^{3}} a c d^{2} g^{2} e^{2} - 20 \, \sqrt {-c d^{2} e + a e^{3}} a c d f g e^{3} + 8 \, \sqrt {-c d^{2} e + a e^{3}} a^{2} g^{2} e^{4}\right )} e^{\left (-3\right )}}{15 \, c^{3} d^{3}} + \frac {2 \, {\left (10 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {3}{2}} c d f g e^{2} - 10 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {3}{2}} a g^{2} e^{3} + 3 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {5}{2}} g^{2}\right )} e^{\left (-5\right )}}{15 \, c^{3} d^{3}} \]

Giac 1.7.0 via sagemath 9.3 output

\[ \int \frac {\sqrt {e x + d} {\left (g x + f\right )}^{2}}{\sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x}}\,{d x} \]________________________________________________________________________________________