Optimal. Leaf size=91 \[ -\frac {\sqrt {c+d x^2} E\left (\sin ^{-1}\left (\frac {x}{2}\right )|-\frac {4 d}{c}\right )}{d \sqrt {1+\frac {d x^2}{c}}}+\frac {(c+4 d) \sqrt {1+\frac {d x^2}{c}} F\left (\sin ^{-1}\left (\frac {x}{2}\right )|-\frac {4 d}{c}\right )}{d \sqrt {c+d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {434, 437, 435,
432, 430} \begin {gather*} \frac {(c+4 d) \sqrt {\frac {d x^2}{c}+1} F\left (\text {ArcSin}\left (\frac {x}{2}\right )|-\frac {4 d}{c}\right )}{d \sqrt {c+d x^2}}-\frac {\sqrt {c+d x^2} E\left (\text {ArcSin}\left (\frac {x}{2}\right )|-\frac {4 d}{c}\right )}{d \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
Rubi steps
\begin {align*} \int \frac {\sqrt {4-x^2}}{\sqrt {c+d x^2}} \, dx &=-\frac {\int \frac {\sqrt {c+d x^2}}{\sqrt {4-x^2}} \, dx}{d}-\frac {(-c-4 d) \int \frac {1}{\sqrt {4-x^2} \sqrt {c+d x^2}} \, dx}{d}\\ &=-\frac {\sqrt {c+d x^2} \int \frac {\sqrt {1+\frac {d x^2}{c}}}{\sqrt {4-x^2}} \, dx}{d \sqrt {1+\frac {d x^2}{c}}}-\frac {\left ((-c-4 d) \sqrt {1+\frac {d x^2}{c}}\right ) \int \frac {1}{\sqrt {4-x^2} \sqrt {1+\frac {d x^2}{c}}} \, dx}{d \sqrt {c+d x^2}}\\ &=-\frac {\sqrt {c+d x^2} E\left (\sin ^{-1}\left (\frac {x}{2}\right )|-\frac {4 d}{c}\right )}{d \sqrt {1+\frac {d x^2}{c}}}+\frac {(c+4 d) \sqrt {1+\frac {d x^2}{c}} F\left (\sin ^{-1}\left (\frac {x}{2}\right )|-\frac {4 d}{c}\right )}{d \sqrt {c+d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.63, size = 60, normalized size = 0.66 \begin {gather*} \frac {2 \sqrt {\frac {c+d x^2}{c}} E\left (\sin ^{-1}\left (\sqrt {-\frac {d}{c}} x\right )|-\frac {c}{4 d}\right )}{\sqrt {-\frac {d}{c}} \sqrt {c+d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 78, normalized size = 0.86
method | result | size |
default | \(\frac {\left (c \EllipticF \left (\frac {x}{2}, 2 \sqrt {-\frac {d}{c}}\right )+4 \EllipticF \left (\frac {x}{2}, 2 \sqrt {-\frac {d}{c}}\right ) d -c \EllipticE \left (\frac {x}{2}, 2 \sqrt {-\frac {d}{c}}\right )\right ) \sqrt {\frac {d \,x^{2}+c}{c}}}{\sqrt {d \,x^{2}+c}\, d}\) | \(78\) |
elliptic | \(\frac {\sqrt {-\left (d \,x^{2}+c \right ) \left (x^{2}-4\right )}\, \left (\frac {4 \sqrt {-x^{2}+4}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \EllipticF \left (\frac {x}{2}, \sqrt {-1-\frac {-c +4 d}{c}}\right )}{\sqrt {-d \,x^{4}-c \,x^{2}+4 d \,x^{2}+4 c}}+\frac {c \sqrt {-x^{2}+4}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \left (\EllipticF \left (\frac {x}{2}, \sqrt {-1-\frac {-c +4 d}{c}}\right )-\EllipticE \left (\frac {x}{2}, \sqrt {-1-\frac {-c +4 d}{c}}\right )\right )}{\sqrt {-d \,x^{4}-c \,x^{2}+4 d \,x^{2}+4 c}\, d}\right )}{\sqrt {-x^{2}+4}\, \sqrt {d \,x^{2}+c}}\) | \(197\) |
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 {- \left (x - 2\right ) \left (x + 2\right )}}{\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 {4-x^2}}{\sqrt {d\,x^2+c}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________