Optimal. Leaf size=68 \[ -\frac {\tan ^{-1}\left (\frac {\alpha ^2+\epsilon ^2-h r^2}{\sqrt {\alpha ^2+\epsilon ^2} \sqrt {-\alpha ^2-\epsilon ^2+2 h r^2-2 k r^4}}\right )}{2 \sqrt {\alpha ^2+\epsilon ^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {1128, 738, 210}
\begin {gather*} -\frac {\text {ArcTan}\left (\frac {\alpha ^2+\epsilon ^2-h r^2}{\sqrt {\alpha ^2+\epsilon ^2} \sqrt {-\alpha ^2-\epsilon ^2+2 h r^2-2 k r^4}}\right )}{2 \sqrt {\alpha ^2+\epsilon ^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 738
Rule 1128
Rubi steps
\begin {align*} \int \frac {1}{r \sqrt {-\alpha ^2-\epsilon ^2+2 h r^2-2 k r^4}} \, dr &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{r \sqrt {-\alpha ^2-\epsilon ^2+2 h r-2 k r^2}} \, dr,r,r^2\right )\\ &=-\text {Subst}\left (\int \frac {1}{4 \left (-\alpha ^2-\epsilon ^2\right )-r^2} \, dr,r,\frac {2 \left (-\alpha ^2-\epsilon ^2+h r^2\right )}{\sqrt {-\alpha ^2-\epsilon ^2+2 h r^2-2 k r^4}}\right )\\ &=\frac {\tan ^{-1}\left (\frac {-\alpha ^2-\epsilon ^2+h r^2}{\sqrt {\alpha ^2+\epsilon ^2} \sqrt {-\alpha ^2-\epsilon ^2+2 h r^2-2 k r^4}}\right )}{2 \sqrt {\alpha ^2+\epsilon ^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 72, normalized size = 1.06 \begin {gather*} -\frac {\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {-k} r^2-\sqrt {-\alpha ^2-\epsilon ^2+2 h r^2-2 k r^4}}{\sqrt {\alpha ^2+\epsilon ^2}}\right )}{\sqrt {\alpha ^2+\epsilon ^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 78, normalized size = 1.15
method | result | size |
default | \(-\frac {\ln \left (\frac {-2 \alpha ^{2}-2 \epsilon ^{2}+2 h \,r^{2}+2 \sqrt {-\alpha ^{2}-\epsilon ^{2}}\, \sqrt {-2 k \,r^{4}+2 h \,r^{2}-\alpha ^{2}-\epsilon ^{2}}}{r^{2}}\right )}{2 \sqrt {-\alpha ^{2}-\epsilon ^{2}}}\) | \(78\) |
elliptic | \(-\frac {\ln \left (\frac {-2 \alpha ^{2}-2 \epsilon ^{2}+2 h \,r^{2}+2 \sqrt {-\alpha ^{2}-\epsilon ^{2}}\, \sqrt {-2 k \,r^{4}+2 h \,r^{2}-\alpha ^{2}-\epsilon ^{2}}}{r^{2}}\right )}{2 \sqrt {-\alpha ^{2}-\epsilon ^{2}}}\) | \(78\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.57, size = 106, normalized size = 1.56 \begin {gather*} -\frac {\arctan \left (\frac {\sqrt {-2 \, k r^{4} + 2 \, h r^{2} - \alpha ^{2} - \epsilon ^{2}} {\left (h r^{2} - \alpha ^{2} - \epsilon ^{2}\right )} \sqrt {\alpha ^{2} + \epsilon ^{2}}}{2 \, {\left (\alpha ^{2} + \epsilon ^{2}\right )} k r^{4} + \alpha ^{4} + 2 \, \alpha ^{2} \epsilon ^{2} + \epsilon ^{4} - 2 \, {\left (\alpha ^{2} + \epsilon ^{2}\right )} h r^{2}}\right )}{2 \, \sqrt {\alpha ^{2} + \epsilon ^{2}}} \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 {1}{r \sqrt {- \alpha ^{2} - \epsilon ^{2} + 2 h r^{2} - 2 k r^{4}}}\, dr \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 62, normalized size = 0.91 \begin {gather*} \frac {\arctan \left (-\frac {\sqrt {2} \sqrt {-k} r^{2} - \sqrt {-2 \, k r^{4} + 2 \, h r^{2} - \alpha ^{2} - \epsilon ^{2}}}{\sqrt {\alpha ^{2} + \epsilon ^{2}}}\right )}{\sqrt {\alpha ^{2} + \epsilon ^{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.44, size = 72, normalized size = 1.06 \begin {gather*} -\frac {\ln \left (h-\frac {\alpha ^2+\epsilon ^2}{r^2}+\frac {\sqrt {-\alpha ^2-\epsilon ^2}\,\sqrt {-\alpha ^2-\epsilon ^2-2\,k\,r^4+2\,h\,r^2}}{r^2}\right )}{2\,\sqrt {-\alpha ^2-\epsilon ^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________