Optimal. Leaf size=40 \[ \frac {\tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {h} r}{\sqrt {-\alpha ^2+2 h r^2}}\right )}{\sqrt {2} \sqrt {h}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {223, 212}
\begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {h} r}{\sqrt {2 h r^2-\alpha ^2}}\right )}{\sqrt {2} \sqrt {h}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {-\alpha ^2+2 h r^2}} \, dr &=\text {Subst}\left (\int \frac {1}{1-2 h r^2} \, dr,r,\frac {r}{\sqrt {-\alpha ^2+2 h r^2}}\right )\\ &=\frac {\tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {h} r}{\sqrt {-\alpha ^2+2 h r^2}}\right )}{\sqrt {2} \sqrt {h}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 40, normalized size = 1.00 \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {h} r}{\sqrt {-\alpha ^2+2 h r^2}}\right )}{\sqrt {2} \sqrt {h}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 2.34, size = 54, normalized size = 1.35 \begin {gather*} \text {Piecewise}\left [\left \{\left \{\frac {\sqrt {2} \text {ArcCosh}\left [\frac {\sqrt {2} \sqrt {h} r}{\text {alpha}}\right ]}{2 \sqrt {h}},\text {Abs}\left [\frac {h r^2}{\text {alpha}^2}\right ]>\frac {1}{2}\right \}\right \},-\frac {I \sqrt {2} \text {ArcSin}\left [\frac {\sqrt {2} \sqrt {h} r}{\text {alpha}}\right ]}{2 \sqrt {h}}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 33, normalized size = 0.82
method | result | size |
default | \(\frac {\ln \left (\sqrt {h}\, r \sqrt {2}+\sqrt {2 h \,r^{2}-\alpha ^{2}}\right ) \sqrt {2}}{2 \sqrt {h}}\) | \(33\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 36, normalized size = 0.90 \begin {gather*} \frac {\sqrt {2} \log \left (4 \, h r + 2 \, \sqrt {2} \sqrt {2 \, h r^{2} - \alpha ^{2}} \sqrt {h}\right )}{2 \, \sqrt {h}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 85, normalized size = 2.12 \begin {gather*} \left [\frac {\sqrt {2} \log \left (4 \, h r^{2} + 2 \, \sqrt {2} \sqrt {2 \, h r^{2} - \alpha ^{2}} \sqrt {h} r - \alpha ^{2}\right )}{4 \, \sqrt {h}}, -\frac {1}{2} \, \sqrt {2} \sqrt {-\frac {1}{h}} \arctan \left (\frac {\sqrt {2} h r \sqrt {-\frac {1}{h}}}{\sqrt {2 \, h r^{2} - \alpha ^{2}}}\right )\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.50, size = 66, normalized size = 1.65 \begin {gather*} \begin {cases} \frac {\sqrt {2} \operatorname {acosh}{\left (\frac {\sqrt {2} \sqrt {h} r}{\alpha } \right )}}{2 \sqrt {h}} & \text {for}\: \left |{\frac {h r^{2}}{\alpha ^{2}}}\right | > \frac {1}{2} \\- \frac {\sqrt {2} i \operatorname {asin}{\left (\frac {\sqrt {2} \sqrt {h} r}{\alpha } \right )}}{2 \sqrt {h}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 42, normalized size = 1.05 \begin {gather*} -\frac {\ln \left |\sqrt {-\alpha ^{2}+2 h r^{2}}-\sqrt {2 h} r\right |}{\sqrt {2} \sqrt {h}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.48, size = 32, normalized size = 0.80 \begin {gather*} \frac {\sqrt {2}\,\ln \left (\sqrt {2\,h\,r^2-\alpha ^2}+\sqrt {2}\,\sqrt {h}\,r\right )}{2\,\sqrt {h}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________