Optimal. Leaf size=89 \[ \frac {\sqrt {c} \sqrt {a-b x^2} \sqrt {1-\frac {d x^2}{c}} E\left (\sin ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b c}{a d}\right )}{\sqrt {d} \sqrt {1-\frac {b x^2}{a}} \sqrt {-c+d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {438, 437, 435}
\begin {gather*} \frac {\sqrt {c} \sqrt {a-b x^2} \sqrt {1-\frac {d x^2}{c}} E\left (\text {ArcSin}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b c}{a d}\right )}{\sqrt {d} \sqrt {1-\frac {b x^2}{a}} \sqrt {d x^2-c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 435
Rule 437
Rule 438
Rubi steps
\begin {align*} \int \frac {\sqrt {a-b x^2}}{\sqrt {-c+d x^2}} \, dx &=\frac {\sqrt {1-\frac {d x^2}{c}} \int \frac {\sqrt {a-b x^2}}{\sqrt {1-\frac {d x^2}{c}}} \, dx}{\sqrt {-c+d x^2}}\\ &=\frac {\left (\sqrt {a-b x^2} \sqrt {1-\frac {d x^2}{c}}\right ) \int \frac {\sqrt {1-\frac {b x^2}{a}}}{\sqrt {1-\frac {d x^2}{c}}} \, dx}{\sqrt {1-\frac {b x^2}{a}} \sqrt {-c+d x^2}}\\ &=\frac {\sqrt {c} \sqrt {a-b x^2} \sqrt {1-\frac {d x^2}{c}} E\left (\sin ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b c}{a d}\right )}{\sqrt {d} \sqrt {1-\frac {b x^2}{a}} \sqrt {-c+d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.73, size = 89, normalized size = 1.00 \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 [B] Leaf count of result is larger than twice the leaf count of optimal. \(161\) vs.
\(2(74)=148\).
time = 0.09, size = 162, normalized size = 1.82
method | result | size |
default | \(\frac {\left (-a \EllipticF \left (x \sqrt {\frac {b}{a}}, \sqrt {\frac {a d}{b c}}\right ) d +b c \EllipticF \left (x \sqrt {\frac {b}{a}}, \sqrt {\frac {a d}{b c}}\right )-b c \EllipticE \left (x \sqrt {\frac {b}{a}}, \sqrt {\frac {a d}{b c}}\right )\right ) \sqrt {-b \,x^{2}+a}\, \sqrt {d \,x^{2}-c}\, \sqrt {\frac {-b \,x^{2}+a}{a}}\, \sqrt {\frac {-d \,x^{2}+c}{c}}}{\left (b d \,x^{4}-a d \,x^{2}-c \,x^{2} b +a c \right ) \sqrt {\frac {b}{a}}\, d}\) | \(162\) |
elliptic | \(\frac {\sqrt {-\left (-b \,x^{2}+a \right ) \left (-d \,x^{2}+c \right )}\, \left (\frac {a \sqrt {1-\frac {b \,x^{2}}{a}}\, \sqrt {1-\frac {d \,x^{2}}{c}}\, \EllipticF \left (x \sqrt {\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )}{\sqrt {\frac {b}{a}}\, \sqrt {-b d \,x^{4}+a d \,x^{2}+c \,x^{2} b -a c}}-\frac {b c \sqrt {1-\frac {b \,x^{2}}{a}}\, \sqrt {1-\frac {d \,x^{2}}{c}}\, \left (\EllipticF \left (x \sqrt {\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )-\EllipticE \left (x \sqrt {\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )\right )}{\sqrt {\frac {b}{a}}\, \sqrt {-b d \,x^{4}+a d \,x^{2}+c \,x^{2} b -a c}\, d}\right )}{\sqrt {-b \,x^{2}+a}\, \sqrt {d \,x^{2}-c}}\) | \(258\) |
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]
________________________________________________________________________________________