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

Optimal result
Mathematica [C] (verified)
Rubi [A] (warning: unable to verify)
Maple [A] (verified)
Fricas [F(-1)]
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 41, antiderivative size = 643 \[ \int \frac {A+B x+C x^2}{\sqrt {d+e x} (f+g x) \sqrt {a+b x+c x^2}} \, dx=\frac {\sqrt {2} \sqrt {b^2-4 a c} C \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {1+\frac {b+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g \sqrt {\frac {c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {a+b x+c x^2}}-\frac {2 \sqrt {2} \sqrt {b^2-4 a c} (C e f+C d g-B e g) \sqrt {\frac {c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {1+\frac {b+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}+\frac {4 \sqrt {2} \sqrt {b^2-4 a c} \left (C f^2-B f g+A g^2\right ) \sqrt {\frac {c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \operatorname {EllipticPi}\left (-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g},\arcsin \left (\frac {\sqrt {1+\frac {b+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{g^2 \left (2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g\right ) \sqrt {d+e x} \sqrt {a+b x+c x^2}} \] Output:

2^(1/2)*(-4*a*c+b^2)^(1/2)*C*(e*x+d)^(1/2)*(-c*(c*x^2+b*x+a)/(-4*a*c+b^2)) 
^(1/2)*EllipticE(1/2*(1+(2*c*x+b)/(-4*a*c+b^2)^(1/2))^(1/2)*2^(1/2),(-2*(- 
4*a*c+b^2)^(1/2)*e/(2*c*d-(b+(-4*a*c+b^2)^(1/2))*e))^(1/2))/c/e/g/(c*(e*x+ 
d)/(2*c*d-(b+(-4*a*c+b^2)^(1/2))*e))^(1/2)/(c*x^2+b*x+a)^(1/2)-2*2^(1/2)*( 
-4*a*c+b^2)^(1/2)*(-B*e*g+C*d*g+C*e*f)*(c*(e*x+d)/(2*c*d-(b+(-4*a*c+b^2)^( 
1/2))*e))^(1/2)*(-c*(c*x^2+b*x+a)/(-4*a*c+b^2))^(1/2)*EllipticF(1/2*(1+(2* 
c*x+b)/(-4*a*c+b^2)^(1/2))^(1/2)*2^(1/2),(-2*(-4*a*c+b^2)^(1/2)*e/(2*c*d-( 
b+(-4*a*c+b^2)^(1/2))*e))^(1/2))/c/e/g^2/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2) 
+4*2^(1/2)*(-4*a*c+b^2)^(1/2)*(A*g^2-B*f*g+C*f^2)*(c*(e*x+d)/(2*c*d-(b+(-4 
*a*c+b^2)^(1/2))*e))^(1/2)*(-c*(c*x^2+b*x+a)/(-4*a*c+b^2))^(1/2)*EllipticP 
i(1/2*(1+(2*c*x+b)/(-4*a*c+b^2)^(1/2))^(1/2)*2^(1/2),-2*(-4*a*c+b^2)^(1/2) 
*g/(2*c*f-(b+(-4*a*c+b^2)^(1/2))*g),(-2*(-4*a*c+b^2)^(1/2)*e/(2*c*d-(b+(-4 
*a*c+b^2)^(1/2))*e))^(1/2))/g^2/(2*c*f-(b+(-4*a*c+b^2)^(1/2))*g)/(e*x+d)^( 
1/2)/(c*x^2+b*x+a)^(1/2)
 

Mathematica [C] (verified)

Result contains complex when optimal does not.

Time = 36.72 (sec) , antiderivative size = 19347, normalized size of antiderivative = 30.09 \[ \int \frac {A+B x+C x^2}{\sqrt {d+e x} (f+g x) \sqrt {a+b x+c x^2}} \, dx=\text {Result too large to show} \] Input:

Integrate[(A + B*x + C*x^2)/(Sqrt[d + e*x]*(f + g*x)*Sqrt[a + b*x + c*x^2] 
),x]
 

Output:

Result too large to show
 

Rubi [A] (warning: unable to verify)

Time = 2.75 (sec) , antiderivative size = 822, normalized size of antiderivative = 1.28, number of steps used = 12, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.268, Rules used = {2154, 1269, 1172, 321, 327, 1279, 187, 25, 413, 413, 412}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {A+B x+C x^2}{\sqrt {d+e x} (f+g x) \sqrt {a+b x+c x^2}} \, dx\)

\(\Big \downarrow \) 2154

\(\displaystyle \left (A+\frac {f (C f-B g)}{g^2}\right ) \int \frac {1}{\sqrt {d+e x} (f+g x) \sqrt {c x^2+b x+a}}dx+\int \frac {\frac {B}{g}+\frac {C x}{g}-\frac {C f}{g^2}}{\sqrt {d+e x} \sqrt {c x^2+b x+a}}dx\)

\(\Big \downarrow \) 1269

\(\displaystyle \left (A+\frac {f (C f-B g)}{g^2}\right ) \int \frac {1}{\sqrt {d+e x} (f+g x) \sqrt {c x^2+b x+a}}dx+\frac {(B e g-C (d g+e f)) \int \frac {1}{\sqrt {d+e x} \sqrt {c x^2+b x+a}}dx}{e g^2}+\frac {C \int \frac {\sqrt {d+e x}}{\sqrt {c x^2+b x+a}}dx}{e g}\)

\(\Big \downarrow \) 1172

\(\displaystyle \left (A+\frac {f (C f-B g)}{g^2}\right ) \int \frac {1}{\sqrt {d+e x} (f+g x) \sqrt {c x^2+b x+a}}dx+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} (B e g-C (d g+e f)) \int \frac {1}{\sqrt {1-\frac {b+2 c x+\sqrt {b^2-4 a c}}{2 \sqrt {b^2-4 a c}}} \sqrt {\frac {e \left (b+2 c x+\sqrt {b^2-4 a c}\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}+1}}d\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} C \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \int \frac {\sqrt {\frac {e \left (b+2 c x+\sqrt {b^2-4 a c}\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}+1}}{\sqrt {1-\frac {b+2 c x+\sqrt {b^2-4 a c}}{2 \sqrt {b^2-4 a c}}}}d\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}}{c e g \sqrt {a+b x+c x^2} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}\)

\(\Big \downarrow \) 321

\(\displaystyle \left (A+\frac {f (C f-B g)}{g^2}\right ) \int \frac {1}{\sqrt {d+e x} (f+g x) \sqrt {c x^2+b x+a}}dx+\frac {\sqrt {2} C \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \int \frac {\sqrt {\frac {e \left (b+2 c x+\sqrt {b^2-4 a c}\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}+1}}{\sqrt {1-\frac {b+2 c x+\sqrt {b^2-4 a c}}{2 \sqrt {b^2-4 a c}}}}d\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}}{c e g \sqrt {a+b x+c x^2} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} (B e g-C (d g+e f)) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}\)

\(\Big \downarrow \) 327

\(\displaystyle \left (A+\frac {f (C f-B g)}{g^2}\right ) \int \frac {1}{\sqrt {d+e x} (f+g x) \sqrt {c x^2+b x+a}}dx+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} (B e g-C (d g+e f)) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} C \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g \sqrt {a+b x+c x^2} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}\)

\(\Big \downarrow \) 1279

\(\displaystyle \frac {\sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \left (A+\frac {f (C f-B g)}{g^2}\right ) \int \frac {1}{\sqrt {b+2 c x-\sqrt {b^2-4 a c}} \sqrt {b+2 c x+\sqrt {b^2-4 a c}} \sqrt {d+e x} (f+g x)}dx}{\sqrt {a+b x+c x^2}}+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} (B e g-C (d g+e f)) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} C \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g \sqrt {a+b x+c x^2} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}\)

\(\Big \downarrow \) 187

\(\displaystyle -\frac {2 \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \left (A+\frac {f (C f-B g)}{g^2}\right ) \int -\frac {1}{\sqrt {b+\frac {2 c (d+e x)}{e}-\sqrt {b^2-4 a c}-\frac {2 c d}{e}} \sqrt {b+\frac {2 c (d+e x)}{e}+\sqrt {b^2-4 a c}-\frac {2 c d}{e}} (e f-d g+g (d+e x))}d\sqrt {d+e x}}{\sqrt {a+b x+c x^2}}+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} (B e g-C (d g+e f)) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} C \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g \sqrt {a+b x+c x^2} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}\)

\(\Big \downarrow \) 25

\(\displaystyle \frac {2 \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \left (A+\frac {f (C f-B g)}{g^2}\right ) \int \frac {1}{\sqrt {b+\frac {2 c (d+e x)}{e}-\sqrt {b^2-4 a c}-\frac {2 c d}{e}} \sqrt {b+\frac {2 c (d+e x)}{e}+\sqrt {b^2-4 a c}-\frac {2 c d}{e}} (e f-d g+g (d+e x))}d\sqrt {d+e x}}{\sqrt {a+b x+c x^2}}+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} (B e g-C (d g+e f)) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} C \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g \sqrt {a+b x+c x^2} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}\)

\(\Big \downarrow \) 413

\(\displaystyle \frac {2 \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \left (A+\frac {f (C f-B g)}{g^2}\right ) \sqrt {1-\frac {2 c (d+e x)}{2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}} \int \frac {1}{\sqrt {b+\frac {2 c (d+e x)}{e}+\sqrt {b^2-4 a c}-\frac {2 c d}{e}} \sqrt {1-\frac {2 c (d+e x)}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}} (e f-d g+g (d+e x))}d\sqrt {d+e x}}{\sqrt {a+b x+c x^2} \sqrt {-\sqrt {b^2-4 a c}+b+\frac {2 c (d+e x)}{e}-\frac {2 c d}{e}}}+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} (B e g-C (d g+e f)) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} C \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g \sqrt {a+b x+c x^2} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}\)

\(\Big \downarrow \) 413

\(\displaystyle \frac {2 \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \left (A+\frac {f (C f-B g)}{g^2}\right ) \sqrt {1-\frac {2 c (d+e x)}{2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}} \sqrt {1-\frac {2 c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \int \frac {1}{\sqrt {1-\frac {2 c (d+e x)}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}} \sqrt {1-\frac {2 c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} (e f-d g+g (d+e x))}d\sqrt {d+e x}}{\sqrt {a+b x+c x^2} \sqrt {-\sqrt {b^2-4 a c}+b+\frac {2 c (d+e x)}{e}-\frac {2 c d}{e}} \sqrt {\sqrt {b^2-4 a c}+b+\frac {2 c (d+e x)}{e}-\frac {2 c d}{e}}}+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} (B e g-C (d g+e f)) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} C \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g \sqrt {a+b x+c x^2} \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}\)

\(\Big \downarrow \) 412

\(\displaystyle \frac {\sqrt {2} \sqrt {b^2-4 a c} C \sqrt {d+e x} \sqrt {-\frac {c \left (c x^2+b x+a\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g \sqrt {\frac {c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {c x^2+b x+a}}+\frac {2 \sqrt {2} \sqrt {b^2-4 a c} (B e g-C (e f+d g)) \sqrt {\frac {c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {-\frac {c \left (c x^2+b x+a\right )}{b^2-4 a c}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{c e g^2 \sqrt {d+e x} \sqrt {c x^2+b x+a}}+\frac {\sqrt {2} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \left (A+\frac {f (C f-B g)}{g^2}\right ) \sqrt {b+2 c x-\sqrt {b^2-4 a c}} \sqrt {b+2 c x+\sqrt {b^2-4 a c}} \sqrt {1-\frac {2 c (d+e x)}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}} \sqrt {1-\frac {2 c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \operatorname {EllipticPi}\left (-\frac {\left (2 c d-b e+\sqrt {b^2-4 a c} e\right ) g}{2 c (e f-d g)},\arcsin \left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}\right ),\frac {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{\sqrt {c} (e f-d g) \sqrt {c x^2+b x+a} \sqrt {b+\frac {2 c (d+e x)}{e}-\sqrt {b^2-4 a c}-\frac {2 c d}{e}} \sqrt {b+\frac {2 c (d+e x)}{e}+\sqrt {b^2-4 a c}-\frac {2 c d}{e}}}\)

Input:

Int[(A + B*x + C*x^2)/(Sqrt[d + e*x]*(f + g*x)*Sqrt[a + b*x + c*x^2]),x]
 

Output:

(Sqrt[2]*Sqrt[b^2 - 4*a*c]*C*Sqrt[d + e*x]*Sqrt[-((c*(a + b*x + c*x^2))/(b 
^2 - 4*a*c))]*EllipticE[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x)/Sqrt[b 
^2 - 4*a*c]]/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*e)/(2*c*d - (b + Sqrt[b^2 - 4 
*a*c])*e)])/(c*e*g*Sqrt[(c*(d + e*x))/(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e)] 
*Sqrt[a + b*x + c*x^2]) + (2*Sqrt[2]*Sqrt[b^2 - 4*a*c]*(B*e*g - C*(e*f + d 
*g))*Sqrt[(c*(d + e*x))/(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e)]*Sqrt[-((c*(a 
+ b*x + c*x^2))/(b^2 - 4*a*c))]*EllipticF[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a* 
c] + 2*c*x)/Sqrt[b^2 - 4*a*c]]/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*e)/(2*c*d - 
 (b + Sqrt[b^2 - 4*a*c])*e)])/(c*e*g^2*Sqrt[d + e*x]*Sqrt[a + b*x + c*x^2] 
) + (Sqrt[2]*Sqrt[2*c*d - (b - Sqrt[b^2 - 4*a*c])*e]*(A + (f*(C*f - B*g))/ 
g^2)*Sqrt[b - Sqrt[b^2 - 4*a*c] + 2*c*x]*Sqrt[b + Sqrt[b^2 - 4*a*c] + 2*c* 
x]*Sqrt[1 - (2*c*(d + e*x))/(2*c*d - (b - Sqrt[b^2 - 4*a*c])*e)]*Sqrt[1 - 
(2*c*(d + e*x))/(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e)]*EllipticPi[-1/2*((2*c 
*d - b*e + Sqrt[b^2 - 4*a*c]*e)*g)/(c*(e*f - d*g)), ArcSin[(Sqrt[2]*Sqrt[c 
]*Sqrt[d + e*x])/Sqrt[2*c*d - (b - Sqrt[b^2 - 4*a*c])*e]], (2*c*d - (b - S 
qrt[b^2 - 4*a*c])*e)/(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e)])/(Sqrt[c]*(e*f - 
 d*g)*Sqrt[a + b*x + c*x^2]*Sqrt[b - Sqrt[b^2 - 4*a*c] - (2*c*d)/e + (2*c* 
(d + e*x))/e]*Sqrt[b + Sqrt[b^2 - 4*a*c] - (2*c*d)/e + (2*c*(d + e*x))/e])
 

Defintions of rubi rules used

rule 25
Int[-(Fx_), x_Symbol] :> Simp[Identity[-1]   Int[Fx, x], x]
 

rule 187
Int[1/(((a_.) + (b_.)*(x_))*Sqrt[(c_.) + (d_.)*(x_)]*Sqrt[(e_.) + (f_.)*(x_ 
)]*Sqrt[(g_.) + (h_.)*(x_)]), x_] :> Simp[-2   Subst[Int[1/(Simp[b*c - a*d 
- b*x^2, x]*Sqrt[Simp[(d*e - c*f)/d + f*(x^2/d), x]]*Sqrt[Simp[(d*g - c*h)/ 
d + h*(x^2/d), x]]), x], x, Sqrt[c + d*x]], x] /; FreeQ[{a, b, c, d, e, f, 
g, h}, x] &&  !SimplerQ[e + f*x, c + d*x] &&  !SimplerQ[g + h*x, c + d*x]
 

rule 321
Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> S 
imp[(1/(Sqrt[a]*Sqrt[c]*Rt[-d/c, 2]))*EllipticF[ArcSin[Rt[-d/c, 2]*x], b*(c 
/(a*d))], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 
0] &&  !(NegQ[b/a] && SimplerSqrtQ[-b/a, -d/c])
 

rule 327
Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Simp[ 
(Sqrt[a]/(Sqrt[c]*Rt[-d/c, 2]))*EllipticE[ArcSin[Rt[-d/c, 2]*x], b*(c/(a*d) 
)], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 0]
 

rule 412
Int[1/(((a_) + (b_.)*(x_)^2)*Sqrt[(c_) + (d_.)*(x_)^2]*Sqrt[(e_) + (f_.)*(x 
_)^2]), x_Symbol] :> Simp[(1/(a*Sqrt[c]*Sqrt[e]*Rt[-d/c, 2]))*EllipticPi[b* 
(c/(a*d)), ArcSin[Rt[-d/c, 2]*x], c*(f/(d*e))], x] /; FreeQ[{a, b, c, d, e, 
 f}, x] &&  !GtQ[d/c, 0] && GtQ[c, 0] && GtQ[e, 0] &&  !( !GtQ[f/e, 0] && S 
implerSqrtQ[-f/e, -d/c])
 

rule 413
Int[1/(((a_) + (b_.)*(x_)^2)*Sqrt[(c_) + (d_.)*(x_)^2]*Sqrt[(e_) + (f_.)*(x 
_)^2]), x_Symbol] :> Simp[Sqrt[1 + (d/c)*x^2]/Sqrt[c + d*x^2]   Int[1/((a + 
 b*x^2)*Sqrt[1 + (d/c)*x^2]*Sqrt[e + f*x^2]), x], x] /; FreeQ[{a, b, c, d, 
e, f}, x] &&  !GtQ[c, 0]
 

rule 1172
Int[((d_.) + (e_.)*(x_))^(m_)/Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2], x_Sy 
mbol] :> Simp[2*Rt[b^2 - 4*a*c, 2]*(d + e*x)^m*(Sqrt[(-c)*((a + b*x + c*x^2 
)/(b^2 - 4*a*c))]/(c*Sqrt[a + b*x + c*x^2]*(2*c*((d + e*x)/(2*c*d - b*e - e 
*Rt[b^2 - 4*a*c, 2])))^m))   Subst[Int[(1 + 2*e*Rt[b^2 - 4*a*c, 2]*(x^2/(2* 
c*d - b*e - e*Rt[b^2 - 4*a*c, 2])))^m/Sqrt[1 - x^2], x], x, Sqrt[(b + Rt[b^ 
2 - 4*a*c, 2] + 2*c*x)/(2*Rt[b^2 - 4*a*c, 2])]], x] /; FreeQ[{a, b, c, d, e 
}, x] && EqQ[m^2, 1/4]
 

rule 1269
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c 
_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[g/e   Int[(d + e*x)^(m + 1)*(a + b*x + 
 c*x^2)^p, x], x] + Simp[(e*f - d*g)/e   Int[(d + e*x)^m*(a + b*x + c*x^2)^ 
p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] &&  !IGtQ[m, 0]
 

rule 1279
Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(f_.) + (g_.)*(x_)]*Sqrt[(a_.) + (b_.)*(x_ 
) + (c_.)*(x_)^2]), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Simp[Sqrt[b 
 - q + 2*c*x]*(Sqrt[b + q + 2*c*x]/Sqrt[a + b*x + c*x^2])   Int[1/((d + e*x 
)*Sqrt[f + g*x]*Sqrt[b - q + 2*c*x]*Sqrt[b + q + 2*c*x]), x], x]] /; FreeQ[ 
{a, b, c, d, e, f, g}, x]
 

rule 2154
Int[(Px_)*((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_.) + (b 
_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[PolynomialQuotient[Px, d + 
 e*x, x]*(d + e*x)^(m + 1)*(f + g*x)^n*(a + b*x + c*x^2)^p, x] + Simp[Polyn 
omialRemainder[Px, d + e*x, x]   Int[(d + e*x)^m*(f + g*x)^n*(a + b*x + c*x 
^2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && PolynomialQ[Px, x 
] && LtQ[m, 0] &&  !IntegerQ[n] && IntegersQ[2*m, 2*n, 2*p]
 
Maple [A] (verified)

Time = 24.26 (sec) , antiderivative size = 1114, normalized size of antiderivative = 1.73

method result size
elliptic \(\text {Expression too large to display}\) \(1114\)
default \(\text {Expression too large to display}\) \(3400\)

Input:

int((C*x^2+B*x+A)/(e*x+d)^(1/2)/(g*x+f)/(c*x^2+b*x+a)^(1/2),x,method=_RETU 
RNVERBOSE)
                                                                                    
                                                                                    
 

Output:

((e*x+d)*(c*x^2+b*x+a))^(1/2)/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2)*(2*(B*g-C* 
f)/g^2*(d/e-1/2*(b+(-4*a*c+b^2)^(1/2))/c)*((x+d/e)/(d/e-1/2*(b+(-4*a*c+b^2 
)^(1/2))/c))^(1/2)*((x-1/2/c*(-b+(-4*a*c+b^2)^(1/2)))/(-d/e-1/2/c*(-b+(-4* 
a*c+b^2)^(1/2))))^(1/2)*((x+1/2*(b+(-4*a*c+b^2)^(1/2))/c)/(-d/e+1/2*(b+(-4 
*a*c+b^2)^(1/2))/c))^(1/2)/(c*e*x^3+b*e*x^2+c*d*x^2+a*e*x+b*d*x+a*d)^(1/2) 
*EllipticF(((x+d/e)/(d/e-1/2*(b+(-4*a*c+b^2)^(1/2))/c))^(1/2),((-d/e+1/2*( 
b+(-4*a*c+b^2)^(1/2))/c)/(-d/e-1/2/c*(-b+(-4*a*c+b^2)^(1/2))))^(1/2))+2*C/ 
g*(d/e-1/2*(b+(-4*a*c+b^2)^(1/2))/c)*((x+d/e)/(d/e-1/2*(b+(-4*a*c+b^2)^(1/ 
2))/c))^(1/2)*((x-1/2/c*(-b+(-4*a*c+b^2)^(1/2)))/(-d/e-1/2/c*(-b+(-4*a*c+b 
^2)^(1/2))))^(1/2)*((x+1/2*(b+(-4*a*c+b^2)^(1/2))/c)/(-d/e+1/2*(b+(-4*a*c+ 
b^2)^(1/2))/c))^(1/2)/(c*e*x^3+b*e*x^2+c*d*x^2+a*e*x+b*d*x+a*d)^(1/2)*((-d 
/e-1/2/c*(-b+(-4*a*c+b^2)^(1/2)))*EllipticE(((x+d/e)/(d/e-1/2*(b+(-4*a*c+b 
^2)^(1/2))/c))^(1/2),((-d/e+1/2*(b+(-4*a*c+b^2)^(1/2))/c)/(-d/e-1/2/c*(-b+ 
(-4*a*c+b^2)^(1/2))))^(1/2))+1/2/c*(-b+(-4*a*c+b^2)^(1/2))*EllipticF(((x+d 
/e)/(d/e-1/2*(b+(-4*a*c+b^2)^(1/2))/c))^(1/2),((-d/e+1/2*(b+(-4*a*c+b^2)^( 
1/2))/c)/(-d/e-1/2/c*(-b+(-4*a*c+b^2)^(1/2))))^(1/2)))+2*(A*g^2-B*f*g+C*f^ 
2)/g^3*(d/e-1/2*(b+(-4*a*c+b^2)^(1/2))/c)*((x+d/e)/(d/e-1/2*(b+(-4*a*c+b^2 
)^(1/2))/c))^(1/2)*((x-1/2/c*(-b+(-4*a*c+b^2)^(1/2)))/(-d/e-1/2/c*(-b+(-4* 
a*c+b^2)^(1/2))))^(1/2)*((x+1/2*(b+(-4*a*c+b^2)^(1/2))/c)/(-d/e+1/2*(b+(-4 
*a*c+b^2)^(1/2))/c))^(1/2)/(c*e*x^3+b*e*x^2+c*d*x^2+a*e*x+b*d*x+a*d)^(1...
 

Fricas [F(-1)]

Timed out. \[ \int \frac {A+B x+C x^2}{\sqrt {d+e x} (f+g x) \sqrt {a+b x+c x^2}} \, dx=\text {Timed out} \] Input:

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

Output:

Timed out
 

Sympy [F]

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

integrate((C*x**2+B*x+A)/(e*x+d)**(1/2)/(g*x+f)/(c*x**2+b*x+a)**(1/2),x)
 

Output:

Integral((A + B*x + C*x**2)/(sqrt(d + e*x)*(f + g*x)*sqrt(a + b*x + c*x**2 
)), x)
 

Maxima [F]

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

integrate((C*x^2+B*x+A)/(e*x+d)^(1/2)/(g*x+f)/(c*x^2+b*x+a)^(1/2),x, algor 
ithm="maxima")
 

Output:

integrate((C*x^2 + B*x + A)/(sqrt(c*x^2 + b*x + a)*sqrt(e*x + d)*(g*x + f) 
), x)
 

Giac [F]

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

integrate((C*x^2+B*x+A)/(e*x+d)^(1/2)/(g*x+f)/(c*x^2+b*x+a)^(1/2),x, algor 
ithm="giac")
 

Output:

integrate((C*x^2 + B*x + A)/(sqrt(c*x^2 + b*x + a)*sqrt(e*x + d)*(g*x + f) 
), x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {A+B x+C x^2}{\sqrt {d+e x} (f+g x) \sqrt {a+b x+c x^2}} \, dx=\int \frac {C\,x^2+B\,x+A}{\left (f+g\,x\right )\,\sqrt {d+e\,x}\,\sqrt {c\,x^2+b\,x+a}} \,d x \] Input:

int((A + B*x + C*x^2)/((f + g*x)*(d + e*x)^(1/2)*(a + b*x + c*x^2)^(1/2)), 
x)
 

Output:

int((A + B*x + C*x^2)/((f + g*x)*(d + e*x)^(1/2)*(a + b*x + c*x^2)^(1/2)), 
 x)
 

Reduce [F]

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

int((C*x^2+B*x+A)/(e*x+d)^(1/2)/(g*x+f)/(c*x^2+b*x+a)^(1/2),x)
 

Output:

int((C*x^2+B*x+A)/(e*x+d)^(1/2)/(g*x+f)/(c*x^2+b*x+a)^(1/2),x)