Integrand size = 40, antiderivative size = 203 \[ \int \frac {A+B x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx=\frac {B \sqrt {e} \sqrt {1+\frac {d x^2}{c}} \sqrt {1-\frac {f x^2}{e}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {f} x}{\sqrt {e}}\right ),-\frac {d e}{c f}\right )}{b \sqrt {f} \sqrt {c+d x^2} \sqrt {e-f x^2}}+\frac {(A b-a B) \sqrt {e} \sqrt {1+\frac {d x^2}{c}} \sqrt {1-\frac {f x^2}{e}} \operatorname {EllipticPi}\left (-\frac {b e}{a f},\arcsin \left (\frac {\sqrt {f} x}{\sqrt {e}}\right ),-\frac {d e}{c f}\right )}{a b \sqrt {f} \sqrt {c+d x^2} \sqrt {e-f x^2}} \] Output:
B*e^(1/2)*(1+d*x^2/c)^(1/2)*(1-f*x^2/e)^(1/2)*EllipticF(f^(1/2)*x/e^(1/2), (-d*e/c/f)^(1/2))/b/f^(1/2)/(d*x^2+c)^(1/2)/(-f*x^2+e)^(1/2)+(A*b-B*a)*e^( 1/2)*(1+d*x^2/c)^(1/2)*(1-f*x^2/e)^(1/2)*EllipticPi(f^(1/2)*x/e^(1/2),-b*e /a/f,(-d*e/c/f)^(1/2))/a/b/f^(1/2)/(d*x^2+c)^(1/2)/(-f*x^2+e)^(1/2)
Result contains complex when optimal does not.
Time = 8.57 (sec) , antiderivative size = 147, normalized size of antiderivative = 0.72 \[ \int \frac {A+B x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx=-\frac {i \sqrt {1+\frac {d x^2}{c}} \sqrt {1-\frac {f x^2}{e}} \left (a B \operatorname {EllipticF}\left (i \text {arcsinh}\left (\sqrt {\frac {d}{c}} x\right ),-\frac {c f}{d e}\right )+(A b-a B) \operatorname {EllipticPi}\left (\frac {b c}{a d},i \text {arcsinh}\left (\sqrt {\frac {d}{c}} x\right ),-\frac {c f}{d e}\right )\right )}{a b \sqrt {\frac {d}{c}} \sqrt {c+d x^2} \sqrt {e-f x^2}} \] Input:
Integrate[(A + B*x^2)/((a + b*x^2)*Sqrt[c + d*x^2]*Sqrt[e - f*x^2]),x]
Output:
((-I)*Sqrt[1 + (d*x^2)/c]*Sqrt[1 - (f*x^2)/e]*(a*B*EllipticF[I*ArcSinh[Sqr t[d/c]*x], -((c*f)/(d*e))] + (A*b - a*B)*EllipticPi[(b*c)/(a*d), I*ArcSinh [Sqrt[d/c]*x], -((c*f)/(d*e))]))/(a*b*Sqrt[d/c]*Sqrt[c + d*x^2]*Sqrt[e - f *x^2])
Time = 1.05 (sec) , antiderivative size = 203, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {7276, 2009}
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^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx\) |
\(\Big \downarrow \) 7276 |
\(\displaystyle \int \left (\frac {A b-a B}{b \left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}}+\frac {B}{b \sqrt {c+d x^2} \sqrt {e-f x^2}}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\sqrt {e} \sqrt {\frac {d x^2}{c}+1} \sqrt {1-\frac {f x^2}{e}} (A b-a B) \operatorname {EllipticPi}\left (-\frac {b e}{a f},\arcsin \left (\frac {\sqrt {f} x}{\sqrt {e}}\right ),-\frac {d e}{c f}\right )}{a b \sqrt {f} \sqrt {c+d x^2} \sqrt {e-f x^2}}+\frac {B \sqrt {e} \sqrt {\frac {d x^2}{c}+1} \sqrt {1-\frac {f x^2}{e}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {f} x}{\sqrt {e}}\right ),-\frac {d e}{c f}\right )}{b \sqrt {f} \sqrt {c+d x^2} \sqrt {e-f x^2}}\) |
Input:
Int[(A + B*x^2)/((a + b*x^2)*Sqrt[c + d*x^2]*Sqrt[e - f*x^2]),x]
Output:
(B*Sqrt[e]*Sqrt[1 + (d*x^2)/c]*Sqrt[1 - (f*x^2)/e]*EllipticF[ArcSin[(Sqrt[ f]*x)/Sqrt[e]], -((d*e)/(c*f))])/(b*Sqrt[f]*Sqrt[c + d*x^2]*Sqrt[e - f*x^2 ]) + ((A*b - a*B)*Sqrt[e]*Sqrt[1 + (d*x^2)/c]*Sqrt[1 - (f*x^2)/e]*Elliptic Pi[-((b*e)/(a*f)), ArcSin[(Sqrt[f]*x)/Sqrt[e]], -((d*e)/(c*f))])/(a*b*Sqrt [f]*Sqrt[c + d*x^2]*Sqrt[e - f*x^2])
Int[(u_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> With[{v = RationalFunctionE xpand[u/(a + b*x^n), x]}, Int[v, x] /; SumQ[v]] /; FreeQ[{a, b}, x] && IGtQ [n, 0]
Time = 5.91 (sec) , antiderivative size = 192, normalized size of antiderivative = 0.95
method | result | size |
default | \(\frac {\left (A \operatorname {EllipticPi}\left (x \sqrt {\frac {f}{e}}, -\frac {b e}{a f}, \frac {\sqrt {-\frac {d}{c}}}{\sqrt {\frac {f}{e}}}\right ) b +B \operatorname {EllipticF}\left (x \sqrt {\frac {f}{e}}, \sqrt {-\frac {d e}{c f}}\right ) a -B \operatorname {EllipticPi}\left (x \sqrt {\frac {f}{e}}, -\frac {b e}{a f}, \frac {\sqrt {-\frac {d}{c}}}{\sqrt {\frac {f}{e}}}\right ) a \right ) \sqrt {\frac {x^{2} d +c}{c}}\, \sqrt {\frac {-f \,x^{2}+e}{e}}\, \sqrt {x^{2} d +c}\, \sqrt {-f \,x^{2}+e}}{b a \sqrt {\frac {f}{e}}\, \left (-d f \,x^{4}-c f \,x^{2}+d e \,x^{2}+c e \right )}\) | \(192\) |
elliptic | \(\frac {\sqrt {\left (x^{2} d +c \right ) \left (-f \,x^{2}+e \right )}\, \left (\frac {B \sqrt {1-\frac {f \,x^{2}}{e}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \operatorname {EllipticF}\left (x \sqrt {\frac {f}{e}}, \sqrt {-1-\frac {-c f +d e}{c f}}\right )}{b \sqrt {\frac {f}{e}}\, \sqrt {-d f \,x^{4}-c f \,x^{2}+d e \,x^{2}+c e}}+\frac {\sqrt {1-\frac {f \,x^{2}}{e}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \operatorname {EllipticPi}\left (x \sqrt {\frac {f}{e}}, -\frac {b e}{a f}, \frac {\sqrt {-\frac {d}{c}}}{\sqrt {\frac {f}{e}}}\right ) A}{a \sqrt {\frac {f}{e}}\, \sqrt {-d f \,x^{4}-c f \,x^{2}+d e \,x^{2}+c e}}-\frac {\sqrt {1-\frac {f \,x^{2}}{e}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \operatorname {EllipticPi}\left (x \sqrt {\frac {f}{e}}, -\frac {b e}{a f}, \frac {\sqrt {-\frac {d}{c}}}{\sqrt {\frac {f}{e}}}\right ) B}{b \sqrt {\frac {f}{e}}\, \sqrt {-d f \,x^{4}-c f \,x^{2}+d e \,x^{2}+c e}}\right )}{\sqrt {x^{2} d +c}\, \sqrt {-f \,x^{2}+e}}\) | \(332\) |
Input:
int((B*x^2+A)/(b*x^2+a)/(d*x^2+c)^(1/2)/(-f*x^2+e)^(1/2),x,method=_RETURNV ERBOSE)
Output:
(A*EllipticPi(x*(f/e)^(1/2),-b*e/a/f,(-1/c*d)^(1/2)/(f/e)^(1/2))*b+B*Ellip ticF(x*(f/e)^(1/2),(-d*e/c/f)^(1/2))*a-B*EllipticPi(x*(f/e)^(1/2),-b*e/a/f ,(-1/c*d)^(1/2)/(f/e)^(1/2))*a)/b*((d*x^2+c)/c)^(1/2)*((-f*x^2+e)/e)^(1/2) *(d*x^2+c)^(1/2)*(-f*x^2+e)^(1/2)/a/(f/e)^(1/2)/(-d*f*x^4-c*f*x^2+d*e*x^2+ c*e)
Timed out. \[ \int \frac {A+B x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx=\text {Timed out} \] Input:
integrate((B*x^2+A)/(b*x^2+a)/(d*x^2+c)^(1/2)/(-f*x^2+e)^(1/2),x, algorith m="fricas")
Output:
Timed out
\[ \int \frac {A+B x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx=\int \frac {A + B x^{2}}{\left (a + b x^{2}\right ) \sqrt {c + d x^{2}} \sqrt {e - f x^{2}}}\, dx \] Input:
integrate((B*x**2+A)/(b*x**2+a)/(d*x**2+c)**(1/2)/(-f*x**2+e)**(1/2),x)
Output:
Integral((A + B*x**2)/((a + b*x**2)*sqrt(c + d*x**2)*sqrt(e - f*x**2)), x)
\[ \int \frac {A+B x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx=\int { \frac {B x^{2} + A}{{\left (b x^{2} + a\right )} \sqrt {d x^{2} + c} \sqrt {-f x^{2} + e}} \,d x } \] Input:
integrate((B*x^2+A)/(b*x^2+a)/(d*x^2+c)^(1/2)/(-f*x^2+e)^(1/2),x, algorith m="maxima")
Output:
integrate((B*x^2 + A)/((b*x^2 + a)*sqrt(d*x^2 + c)*sqrt(-f*x^2 + e)), x)
\[ \int \frac {A+B x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx=\int { \frac {B x^{2} + A}{{\left (b x^{2} + a\right )} \sqrt {d x^{2} + c} \sqrt {-f x^{2} + e}} \,d x } \] Input:
integrate((B*x^2+A)/(b*x^2+a)/(d*x^2+c)^(1/2)/(-f*x^2+e)^(1/2),x, algorith m="giac")
Output:
integrate((B*x^2 + A)/((b*x^2 + a)*sqrt(d*x^2 + c)*sqrt(-f*x^2 + e)), x)
Timed out. \[ \int \frac {A+B x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx=\int \frac {B\,x^2+A}{\left (b\,x^2+a\right )\,\sqrt {d\,x^2+c}\,\sqrt {e-f\,x^2}} \,d x \] Input:
int((A + B*x^2)/((a + b*x^2)*(c + d*x^2)^(1/2)*(e - f*x^2)^(1/2)),x)
Output:
int((A + B*x^2)/((a + b*x^2)*(c + d*x^2)^(1/2)*(e - f*x^2)^(1/2)), x)
\[ \int \frac {A+B x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2} \sqrt {e-f x^2}} \, dx=\int \frac {\sqrt {-f \,x^{2}+e}\, \sqrt {d \,x^{2}+c}}{-d f \,x^{4}-c f \,x^{2}+d e \,x^{2}+c e}d x \] Input:
int((B*x^2+A)/(b*x^2+a)/(d*x^2+c)^(1/2)/(-f*x^2+e)^(1/2),x)
Output:
int((sqrt(e - f*x**2)*sqrt(c + d*x**2))/(c*e - c*f*x**2 + d*e*x**2 - d*f*x **4),x)