Optimal. Leaf size=44 \[ -\frac {\tan ^{-1}\left (\frac {\alpha ^2-h r^2}{\alpha \sqrt {-\alpha ^2+2 h r^2-2 k r^4}}\right )}{2 \alpha } \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 44, 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 = {1128, 738, 210}
\begin {gather*} -\frac {\text {ArcTan}\left (\frac {\alpha ^2-h r^2}{\alpha \sqrt {-\alpha ^2+2 h r^2-2 k r^4}}\right )}{2 \alpha } \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+2 h r^2-2 k r^4}} \, dr &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{r \sqrt {-\alpha ^2+2 h r-2 k r^2}} \, dr,r,r^2\right )\\ &=-\text {Subst}\left (\int \frac {1}{-4 \alpha ^2-r^2} \, dr,r,\frac {2 \left (-\alpha ^2+h r^2\right )}{\sqrt {-\alpha ^2+2 h r^2-2 k r^4}}\right )\\ &=\frac {\tan ^{-1}\left (\frac {-\alpha ^2+h r^2}{\alpha \sqrt {-\alpha ^2+2 h r^2-2 k r^4}}\right )}{2 \alpha }\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 53, normalized size = 1.20 \begin {gather*} -\frac {\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {-k} r^2}{\alpha }-\frac {\sqrt {-\alpha ^2+2 h r^2-2 k r^4}}{\alpha }\right )}{\alpha } \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 56, normalized size = 1.27
method | result | size |
default | \(-\frac {\ln \left (\frac {-2 \alpha ^{2}+2 h \,r^{2}+2 \sqrt {-\alpha ^{2}}\, \sqrt {-2 k \,r^{4}+2 h \,r^{2}-\alpha ^{2}}}{r^{2}}\right )}{2 \sqrt {-\alpha ^{2}}}\) | \(56\) |
elliptic | \(-\frac {\ln \left (\frac {-2 \alpha ^{2}+2 h \,r^{2}+2 \sqrt {-\alpha ^{2}}\, \sqrt {-2 k \,r^{4}+2 h \,r^{2}-\alpha ^{2}}}{r^{2}}\right )}{2 \sqrt {-\alpha ^{2}}}\) | \(56\) |
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.58, size = 58, normalized size = 1.32 \begin {gather*} -\frac {\arctan \left (\frac {\sqrt {-2 \, k r^{4} + 2 \, h r^{2} - \alpha ^{2}} {\left (h r^{2} - \alpha ^{2}\right )}}{2 \, \alpha k r^{4} - 2 \, \alpha h r^{2} + \alpha ^{3}}\right )}{2 \, \alpha } \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} + 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.47, size = 45, normalized size = 1.02 \begin {gather*} \frac {\arctan \left (-\frac {\sqrt {2} \sqrt {-k} r^{2} - \sqrt {-2 \, k r^{4} + 2 \, h r^{2} - \alpha ^{2}}}{\alpha }\right )}{\alpha } \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.40, size = 54, normalized size = 1.23 \begin {gather*} -\frac {\ln \left (\frac {1}{r^2}\right )+\ln \left (h\,r^2-\alpha ^2+\sqrt {-\alpha ^2}\,\sqrt {-\alpha ^2-2\,k\,r^4+2\,h\,r^2}\right )}{2\,\sqrt {-\alpha ^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________