24.32 Problem number 631

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

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

command

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

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

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

Fricas 1.3.7 via sagemath 9.3 output

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