Optimal. Leaf size=478 \[ \frac {x \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}}{\sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}}-\frac {\sqrt {b+\sqrt {b^2-4 a c}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} E\left (\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )|-\frac {2 \sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {\frac {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}{1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}}+\frac {\sqrt {b+\sqrt {b^2-4 a c}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} F\left (\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )|-\frac {2 \sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {\frac {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}{1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.23, antiderivative size = 478, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 59, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.068, Rules used = {433, 429, 506,
422} \begin {gather*} \frac {\sqrt {\sqrt {b^2-4 a c}+b} \sqrt {\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}+1} F\left (\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )|-\frac {2 \sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {\frac {\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}+1}{\frac {2 c x^2}{\sqrt {b^2-4 a c}+b}+1}} \sqrt {\frac {2 c x^2}{\sqrt {b^2-4 a c}+b}+1}}-\frac {\sqrt {\sqrt {b^2-4 a c}+b} \sqrt {\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}+1} E\left (\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )|-\frac {2 \sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {\frac {\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}+1}{\frac {2 c x^2}{\sqrt {b^2-4 a c}+b}+1}} \sqrt {\frac {2 c x^2}{\sqrt {b^2-4 a c}+b}+1}}+\frac {x \sqrt {\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}+1}}{\sqrt {\frac {2 c x^2}{\sqrt {b^2-4 a c}+b}+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 422
Rule 429
Rule 433
Rule 506
Rubi steps
\begin {align*} \int \frac {\sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}}{\sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \, dx &=\frac {(2 c) \int \frac {x^2}{\sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \, dx}{b-\sqrt {b^2-4 a c}}+\int \frac {1}{\sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \, dx\\ &=\frac {x \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}}{\sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}}+\frac {\sqrt {b+\sqrt {b^2-4 a c}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} F\left (\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )|-\frac {2 \sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {\frac {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}{1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}}-\int \frac {\sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}}{\left (1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}\right )^{3/2}} \, dx\\ &=\frac {x \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}}{\sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}}-\frac {\sqrt {b+\sqrt {b^2-4 a c}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} E\left (\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )|-\frac {2 \sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {\frac {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}{1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}}+\frac {\sqrt {b+\sqrt {b^2-4 a c}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} F\left (\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )|-\frac {2 \sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c} \sqrt {\frac {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}{1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}} \sqrt {1+\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.39, size = 102, normalized size = 0.21 \begin {gather*} \frac {\sqrt {-b-\sqrt {b^2-4 a c}} E\left (\sin ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {-b-\sqrt {b^2-4 a c}}}\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1387\) vs.
\(2(457)=914\).
time = 0.22, size = 1388, normalized size = 2.90
method | result | size |
elliptic | \(\text {Expression too large to display}\) | \(1388\) |
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 {\frac {b + 2 c x^{2} - \sqrt {- 4 a c + b^{2}}}{b - \sqrt {- 4 a c + b^{2}}}}}{\sqrt {\frac {b + 2 c x^{2} + \sqrt {- 4 a c + b^{2}}}{b + \sqrt {- 4 a c + b^{2}}}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [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]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {\frac {2\,c\,x^2}{b-\sqrt {b^2-4\,a\,c}}+1}}{\sqrt {\frac {2\,c\,x^2}{b+\sqrt {b^2-4\,a\,c}}+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________