Integrand size = 37, antiderivative size = 596 \[ \int \frac {A+B x+C x^2}{x \sqrt {d+e 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 \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 d-B e) \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 \sqrt {d+e x} \sqrt {a+b x+c x^2}}-\frac {4 \sqrt {2} A \sqrt {b^2-4 a c} \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}}{b+\sqrt {b^2-4 a c}},\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 )}{\left (b+\sqrt {b^2-4 a c}\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/(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+C*d)*(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/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2)-4*2^(1/2)*A*(-4 *a*c+b^2)^(1/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)*EllipticPi(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)/(b+(-4*a*c+b^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))/(b+(-4*a*c+b^2)^(1/ 2))/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2)
Result contains complex when optimal does not.
Time = 30.39 (sec) , antiderivative size = 1189, normalized size of antiderivative = 1.99 \[ \int \frac {A+B x+C x^2}{x \sqrt {d+e x} \sqrt {a+b x+c x^2}} \, dx =\text {Too large to display} \] Input:
Integrate[(A + B*x + C*x^2)/(x*Sqrt[d + e*x]*Sqrt[a + b*x + c*x^2]),x]
Output:
((d + e*x)^(3/2)*((4*C*d*e^2*Sqrt[(c*d^2 + e*(-(b*d) + a*e))/(-2*c*d + b*e + Sqrt[(b^2 - 4*a*c)*e^2])]*(a + x*(b + c*x)))/(d + e*x)^2 - (I*Sqrt[2]*C *d*(2*c*d - b*e + Sqrt[(b^2 - 4*a*c)*e^2])*Sqrt[(-2*a*e^2 + 2*c*d*e*x + b* e*(d - e*x) + Sqrt[(b^2 - 4*a*c)*e^2]*(d + e*x))/((2*c*d - b*e + Sqrt[(b^2 - 4*a*c)*e^2])*(d + e*x))]*Sqrt[(2*a*e^2 - 2*c*d*e*x + b*e*(-d + e*x) + S qrt[(b^2 - 4*a*c)*e^2]*(d + e*x))/((-2*c*d + b*e + Sqrt[(b^2 - 4*a*c)*e^2] )*(d + e*x))]*EllipticE[I*ArcSinh[(Sqrt[2]*Sqrt[(c*d^2 - b*d*e + a*e^2)/(- 2*c*d + b*e + Sqrt[(b^2 - 4*a*c)*e^2])])/Sqrt[d + e*x]], -((-2*c*d + b*e + Sqrt[(b^2 - 4*a*c)*e^2])/(2*c*d - b*e + Sqrt[(b^2 - 4*a*c)*e^2]))])/Sqrt[ d + e*x] + (I*Sqrt[2]*(2*B*c*d*e - b*C*d*e - 2*A*c*e^2 + C*d*Sqrt[(b^2 - 4 *a*c)*e^2])*Sqrt[(-2*a*e^2 + 2*c*d*e*x + b*e*(d - e*x) + Sqrt[(b^2 - 4*a*c )*e^2]*(d + e*x))/((2*c*d - b*e + Sqrt[(b^2 - 4*a*c)*e^2])*(d + e*x))]*Sqr t[(2*a*e^2 - 2*c*d*e*x + b*e*(-d + e*x) + Sqrt[(b^2 - 4*a*c)*e^2]*(d + e*x ))/((-2*c*d + b*e + Sqrt[(b^2 - 4*a*c)*e^2])*(d + e*x))]*EllipticF[I*ArcSi nh[(Sqrt[2]*Sqrt[(c*d^2 - b*d*e + a*e^2)/(-2*c*d + b*e + Sqrt[(b^2 - 4*a*c )*e^2])])/Sqrt[d + e*x]], -((-2*c*d + b*e + Sqrt[(b^2 - 4*a*c)*e^2])/(2*c* d - b*e + Sqrt[(b^2 - 4*a*c)*e^2]))])/Sqrt[d + e*x] + ((2*I)*Sqrt[2]*A*c*e ^2*Sqrt[(-2*a*e^2 + 2*c*d*e*x + b*e*(d - e*x) + Sqrt[(b^2 - 4*a*c)*e^2]*(d + e*x))/((2*c*d - b*e + Sqrt[(b^2 - 4*a*c)*e^2])*(d + e*x))]*Sqrt[(2*a*e^ 2 - 2*c*d*e*x + b*e*(-d + e*x) + Sqrt[(b^2 - 4*a*c)*e^2]*(d + e*x))/((-...
Time = 2.50 (sec) , antiderivative size = 781, normalized size of antiderivative = 1.31, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.270, Rules used = {2154, 1269, 1172, 321, 327, 1279, 187, 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}{x \sqrt {d+e x} \sqrt {a+b x+c x^2}} \, dx\) |
\(\Big \downarrow \) 2154 |
\(\displaystyle A \int \frac {1}{x \sqrt {d+e x} \sqrt {c x^2+b x+a}}dx+\int \frac {B+C x}{\sqrt {d+e x} \sqrt {c x^2+b x+a}}dx\) |
\(\Big \downarrow \) 1269 |
\(\displaystyle A \int \frac {1}{x \sqrt {d+e x} \sqrt {c x^2+b x+a}}dx-\frac {(C d-B e) \int \frac {1}{\sqrt {d+e x} \sqrt {c x^2+b x+a}}dx}{e}+\frac {C \int \frac {\sqrt {d+e x}}{\sqrt {c x^2+b x+a}}dx}{e}\) |
\(\Big \downarrow \) 1172 |
\(\displaystyle A \int \frac {1}{x \sqrt {d+e 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}} (C d-B e) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \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 \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 \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 A \int \frac {1}{x \sqrt {d+e 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 \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}} (C d-B e) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \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 \sqrt {d+e x} \sqrt {a+b x+c x^2}}\) |
\(\Big \downarrow \) 327 |
\(\displaystyle A \int \frac {1}{x \sqrt {d+e 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}} (C d-B e) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \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 \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 \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 {A \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \int \frac {1}{x \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}}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}} (C d-B e) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \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 \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 \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 A \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \int -\frac {1}{e x \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}}}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}} (C d-B e) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \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 \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 \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 A \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \sqrt {1-\frac {2 c (d+e x)}{2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}} \int -\frac {1}{e x \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}}}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}} (C d-B e) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \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 \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 \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 A \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \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}{e x \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}}}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}} (C d-B e) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \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 \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 \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} A \sqrt {-\sqrt {b^2-4 a c}+b+2 c x} \sqrt {\sqrt {b^2-4 a c}+b+2 c x} \sqrt {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 (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 )}} \operatorname {EllipticPi}\left (\frac {2 c d-b e+\sqrt {b^2-4 a c} e}{2 c d},\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} d \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}} (C d-B e) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}} \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 \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 \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 )}}}\) |
Input:
Int[(A + B*x + C*x^2)/(x*Sqrt[d + e*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*Sqrt[(c*(d + e*x))/(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e)]*S qrt[a + b*x + c*x^2]) - (2*Sqrt[2]*Sqrt[b^2 - 4*a*c]*(C*d - B*e)*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)/Sq rt[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*Sqrt[d + e*x]*Sqrt[a + b*x + c*x^2]) - (Sqrt[2]*A*Sqr t[2*c*d - (b - Sqrt[b^2 - 4*a*c])*e]*Sqrt[b - Sqrt[b^2 - 4*a*c] + 2*c*x]*S qrt[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[(2*c*d - b*e + Sqrt[b^2 - 4*a*c]*e)/(2*c*d), 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 - Sqrt[b^2 - 4*a*c])*e)/(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e)])/ (Sqrt[c]*d*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])
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]
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])
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]
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])
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]
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]
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]
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]
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]
Leaf count of result is larger than twice the leaf count of optimal. \(1063\) vs. \(2(524)=1048\).
Time = 6.53 (sec) , antiderivative size = 1064, normalized size of antiderivative = 1.79
method | result | size |
elliptic | \(\text {Expression too large to display}\) | \(1064\) |
default | \(\text {Expression too large to display}\) | \(1394\) |
Input:
int((C*x^2+B*x+A)/x/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2),x,method=_RETURNVERB OSE)
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*(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*(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*(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*EllipticPi(((x+d/e)/(d/e-1/2...
Timed out. \[ \int \frac {A+B x+C x^2}{x \sqrt {d+e x} \sqrt {a+b x+c x^2}} \, dx=\text {Timed out} \] Input:
integrate((C*x^2+B*x+A)/x/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2),x, algorithm=" fricas")
Output:
Timed out
\[ \int \frac {A+B x+C x^2}{x \sqrt {d+e x} \sqrt {a+b x+c x^2}} \, dx=\int \frac {A + B x + C x^{2}}{x \sqrt {d + e x} \sqrt {a + b x + c x^{2}}}\, dx \] Input:
integrate((C*x**2+B*x+A)/x/(e*x+d)**(1/2)/(c*x**2+b*x+a)**(1/2),x)
Output:
Integral((A + B*x + C*x**2)/(x*sqrt(d + e*x)*sqrt(a + b*x + c*x**2)), x)
\[ \int \frac {A+B x+C x^2}{x \sqrt {d+e 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} x} \,d x } \] Input:
integrate((C*x^2+B*x+A)/x/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2),x, algorithm=" maxima")
Output:
integrate((C*x^2 + B*x + A)/(sqrt(c*x^2 + b*x + a)*sqrt(e*x + d)*x), x)
\[ \int \frac {A+B x+C x^2}{x \sqrt {d+e 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} x} \,d x } \] Input:
integrate((C*x^2+B*x+A)/x/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2),x, algorithm=" giac")
Output:
integrate((C*x^2 + B*x + A)/(sqrt(c*x^2 + b*x + a)*sqrt(e*x + d)*x), x)
Timed out. \[ \int \frac {A+B x+C x^2}{x \sqrt {d+e x} \sqrt {a+b x+c x^2}} \, dx=\int \frac {C\,x^2+B\,x+A}{x\,\sqrt {d+e\,x}\,\sqrt {c\,x^2+b\,x+a}} \,d x \] Input:
int((A + B*x + C*x^2)/(x*(d + e*x)^(1/2)*(a + b*x + c*x^2)^(1/2)),x)
Output:
int((A + B*x + C*x^2)/(x*(d + e*x)^(1/2)*(a + b*x + c*x^2)^(1/2)), x)
\[ \int \frac {A+B x+C x^2}{x \sqrt {d+e x} \sqrt {a+b x+c x^2}} \, dx=\int \frac {C \,x^{2}+B x +A}{x \sqrt {e x +d}\, \sqrt {c \,x^{2}+b x +a}}d x \] Input:
int((C*x^2+B*x+A)/x/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2),x)
Output:
int((C*x^2+B*x+A)/x/(e*x+d)^(1/2)/(c*x^2+b*x+a)^(1/2),x)