8.3 Problem number 34

\[ \int \frac {A+B x}{\sqrt {a+b x} \sqrt {c+d x} \sqrt {e+\frac {b (-1+e) x}{a}}} \, dx \]

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

command

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

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

\[ \frac {2 \, {\left ({\left (B a b c + {\left (B a^{2} - 3 \, A a b\right )} d - {\left (B a b c + {\left (2 \, B a^{2} - 3 \, A a b\right )} d\right )} e\right )} \sqrt {\frac {b^{2} d e - b^{2} d}{a}} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (b^{2} c^{2} - a b c d + a^{2} d^{2} + {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} e^{2} - {\left (2 \, b^{2} c^{2} - 3 \, a b c d + a^{2} d^{2}\right )} e\right )}}{3 \, {\left (b^{2} d^{2} e^{2} - 2 \, b^{2} d^{2} e + b^{2} d^{2}\right )}}, \frac {4 \, {\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} - 2 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} e^{3} + 3 \, {\left (2 \, b^{3} c^{3} - 5 \, a b^{2} c^{2} d + 4 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} e^{2} - 3 \, {\left (2 \, b^{3} c^{3} - 4 \, a b^{2} c^{2} d + a^{2} b c d^{2} + a^{3} d^{3}\right )} e\right )}}{27 \, {\left (b^{3} d^{3} e^{3} - 3 \, b^{3} d^{3} e^{2} + 3 \, b^{3} d^{3} e - b^{3} d^{3}\right )}}, -\frac {3 \, b d x + b c + a d - {\left (3 \, b d x + b c + 2 \, a d\right )} e}{3 \, {\left (b d e - b d\right )}}\right ) - 3 \, {\left (B a b d e - B a b d\right )} \sqrt {\frac {b^{2} d e - b^{2} d}{a}} {\rm weierstrassZeta}\left (\frac {4 \, {\left (b^{2} c^{2} - a b c d + a^{2} d^{2} + {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} e^{2} - {\left (2 \, b^{2} c^{2} - 3 \, a b c d + a^{2} d^{2}\right )} e\right )}}{3 \, {\left (b^{2} d^{2} e^{2} - 2 \, b^{2} d^{2} e + b^{2} d^{2}\right )}}, \frac {4 \, {\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} - 2 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} e^{3} + 3 \, {\left (2 \, b^{3} c^{3} - 5 \, a b^{2} c^{2} d + 4 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} e^{2} - 3 \, {\left (2 \, b^{3} c^{3} - 4 \, a b^{2} c^{2} d + a^{2} b c d^{2} + a^{3} d^{3}\right )} e\right )}}{27 \, {\left (b^{3} d^{3} e^{3} - 3 \, b^{3} d^{3} e^{2} + 3 \, b^{3} d^{3} e - b^{3} d^{3}\right )}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (b^{2} c^{2} - a b c d + a^{2} d^{2} + {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} e^{2} - {\left (2 \, b^{2} c^{2} - 3 \, a b c d + a^{2} d^{2}\right )} e\right )}}{3 \, {\left (b^{2} d^{2} e^{2} - 2 \, b^{2} d^{2} e + b^{2} d^{2}\right )}}, \frac {4 \, {\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} - 2 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} e^{3} + 3 \, {\left (2 \, b^{3} c^{3} - 5 \, a b^{2} c^{2} d + 4 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} e^{2} - 3 \, {\left (2 \, b^{3} c^{3} - 4 \, a b^{2} c^{2} d + a^{2} b c d^{2} + a^{3} d^{3}\right )} e\right )}}{27 \, {\left (b^{3} d^{3} e^{3} - 3 \, b^{3} d^{3} e^{2} + 3 \, b^{3} d^{3} e - b^{3} d^{3}\right )}}, -\frac {3 \, b d x + b c + a d - {\left (3 \, b d x + b c + 2 \, a d\right )} e}{3 \, {\left (b d e - b d\right )}}\right )\right )\right )}}{3 \, {\left (b^{3} d^{2} e^{2} - 2 \, b^{3} d^{2} e + b^{3} d^{2}\right )}} \]

Fricas 1.3.7 via sagemath 9.3 output

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