Optimal. Leaf size=194 \[ \frac {\sqrt {a} \sqrt {b} \sqrt {1-\frac {b x^2}{a}} \sqrt {-c-d x^2} E\left (\sin ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )|-\frac {a d}{b c}\right )}{d \sqrt {a-b x^2} \sqrt {1+\frac {d x^2}{c}}}+\frac {\sqrt {a} (b c+a d) \sqrt {1-\frac {b x^2}{a}} \sqrt {1+\frac {d x^2}{c}} F\left (\sin ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )|-\frac {a d}{b c}\right )}{\sqrt {b} d \sqrt {a-b x^2} \sqrt {-c-d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 194, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {434, 438, 437,
435, 432, 430} \begin {gather*} \frac {\sqrt {a} \sqrt {1-\frac {b x^2}{a}} \sqrt {\frac {d x^2}{c}+1} (a d+b c) F\left (\text {ArcSin}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )|-\frac {a d}{b c}\right )}{\sqrt {b} d \sqrt {a-b x^2} \sqrt {-c-d x^2}}+\frac {\sqrt {a} \sqrt {b} \sqrt {1-\frac {b x^2}{a}} \sqrt {-c-d x^2} E\left (\text {ArcSin}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )|-\frac {a d}{b c}\right )}{d \sqrt {a-b x^2} \sqrt {\frac {d x^2}{c}+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 430
Rule 432
Rule 434
Rule 435
Rule 437
Rule 438
Rubi steps
\begin {align*} \int \frac {\sqrt {a-b x^2}}{\sqrt {-c-d x^2}} \, dx &=\frac {b \int \frac {\sqrt {-c-d x^2}}{\sqrt {a-b x^2}} \, dx}{d}+\frac {(b c+a d) \int \frac {1}{\sqrt {a-b x^2} \sqrt {-c-d x^2}} \, dx}{d}\\ &=\frac {\left (b \sqrt {1-\frac {b x^2}{a}}\right ) \int \frac {\sqrt {-c-d x^2}}{\sqrt {1-\frac {b x^2}{a}}} \, dx}{d \sqrt {a-b x^2}}+\frac {\left ((b c+a d) \sqrt {1+\frac {d x^2}{c}}\right ) \int \frac {1}{\sqrt {a-b x^2} \sqrt {1+\frac {d x^2}{c}}} \, dx}{d \sqrt {-c-d x^2}}\\ &=\frac {\left (b \sqrt {1-\frac {b x^2}{a}} \sqrt {-c-d x^2}\right ) \int \frac {\sqrt {1+\frac {d x^2}{c}}}{\sqrt {1-\frac {b x^2}{a}}} \, dx}{d \sqrt {a-b x^2} \sqrt {1+\frac {d x^2}{c}}}+\frac {\left ((b c+a d) \sqrt {1-\frac {b x^2}{a}} \sqrt {1+\frac {d x^2}{c}}\right ) \int \frac {1}{\sqrt {1-\frac {b x^2}{a}} \sqrt {1+\frac {d x^2}{c}}} \, dx}{d \sqrt {a-b x^2} \sqrt {-c-d x^2}}\\ &=\frac {\sqrt {a} \sqrt {b} \sqrt {1-\frac {b x^2}{a}} \sqrt {-c-d x^2} E\left (\sin ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )|-\frac {a d}{b c}\right )}{d \sqrt {a-b x^2} \sqrt {1+\frac {d x^2}{c}}}+\frac {\sqrt {a} (b c+a d) \sqrt {1-\frac {b x^2}{a}} \sqrt {1+\frac {d x^2}{c}} F\left (\sin ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )|-\frac {a d}{b c}\right )}{\sqrt {b} d \sqrt {a-b x^2} \sqrt {-c-d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.66, size = 92, normalized size = 0.47 \begin {gather*} \frac {\sqrt {a-b x^2} \sqrt {\frac {c+d x^2}{c}} E\left (\sin ^{-1}\left (\sqrt {-\frac {d}{c}} x\right )|-\frac {b c}{a d}\right )}{\sqrt {-\frac {d}{c}} \sqrt {\frac {a-b x^2}{a}} \sqrt {-c-d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 109, normalized size = 0.56
method | result | size |
default | \(\frac {\sqrt {-b \,x^{2}+a}\, \sqrt {-d \,x^{2}-c}\, a \sqrt {\frac {d \,x^{2}+c}{c}}\, \sqrt {\frac {-b \,x^{2}+a}{a}}\, \EllipticE \left (x \sqrt {-\frac {d}{c}}, \sqrt {-\frac {b c}{a d}}\right )}{\left (b d \,x^{4}-a d \,x^{2}+c \,x^{2} b -a c \right ) \sqrt {-\frac {d}{c}}}\) | \(109\) |
elliptic | \(\frac {\sqrt {-\left (-b \,x^{2}+a \right ) \left (d \,x^{2}+c \right )}\, \left (\frac {a \sqrt {1+\frac {d \,x^{2}}{c}}\, \sqrt {1-\frac {b \,x^{2}}{a}}\, \EllipticF \left (x \sqrt {-\frac {d}{c}}, \sqrt {-1-\frac {-a d +b c}{a d}}\right )}{\sqrt {-\frac {d}{c}}\, \sqrt {b d \,x^{4}-a d \,x^{2}+c \,x^{2} b -a c}}-\frac {a \sqrt {1+\frac {d \,x^{2}}{c}}\, \sqrt {1-\frac {b \,x^{2}}{a}}\, \left (\EllipticF \left (x \sqrt {-\frac {d}{c}}, \sqrt {-1-\frac {-a d +b c}{a d}}\right )-\EllipticE \left (x \sqrt {-\frac {d}{c}}, \sqrt {-1-\frac {-a d +b c}{a d}}\right )\right )}{\sqrt {-\frac {d}{c}}\, \sqrt {b d \,x^{4}-a d \,x^{2}+c \,x^{2} b -a c}}\right )}{\sqrt {-b \,x^{2}+a}\, \sqrt {-d \,x^{2}-c}}\) | \(263\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a - b x^{2}}}{\sqrt {- c - d x^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {a-b\,x^2}}{\sqrt {-d\,x^2-c}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________