Optimal. Leaf size=27 \[ 10 \tanh ^{-1}\left (\frac {x}{\sqrt {-4+x^2}}\right )+\tanh ^{-1}\left (\frac {x}{\sqrt {-1+x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {223, 212}
\begin {gather*} 10 \tanh ^{-1}\left (\frac {x}{\sqrt {x^2-4}}\right )+\tanh ^{-1}\left (\frac {x}{\sqrt {x^2-1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \left (\frac {10}{\sqrt {-4+x^2}}+\frac {1}{\sqrt {-1+x^2}}\right ) \, dx &=10 \int \frac {1}{\sqrt {-4+x^2}} \, dx+\int \frac {1}{\sqrt {-1+x^2}} \, dx\\ &=10 \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt {-4+x^2}}\right )+\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt {-1+x^2}}\right )\\ &=10 \tanh ^{-1}\left (\frac {x}{\sqrt {-4+x^2}}\right )+\tanh ^{-1}\left (\frac {x}{\sqrt {-1+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(71\) vs. \(2(27)=54\).
time = 0.01, size = 71, normalized size = 2.63 \begin {gather*} -5 \log \left (1-\frac {x}{\sqrt {-4+x^2}}\right )+5 \log \left (1+\frac {x}{\sqrt {-4+x^2}}\right )-\frac {1}{2} \log \left (1-\frac {x}{\sqrt {-1+x^2}}\right )+\frac {1}{2} \log \left (1+\frac {x}{\sqrt {-1+x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.66, size = 9, normalized size = 0.33 \begin {gather*} \text {ArcCosh}\left [x\right ]+10 \text {ArcCosh}\left [\frac {x}{2}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 24, normalized size = 0.89
method | result | size |
default | \(\ln \left (x +\sqrt {x^{2}-1}\right )+10 \ln \left (x +\sqrt {x^{2}-4}\right )\) | \(24\) |
meijerg | \(\frac {10 \sqrt {-\mathrm {signum}\left (-1+\frac {x^{2}}{4}\right )}\, \arcsin \left (\frac {x}{2}\right )}{\sqrt {\mathrm {signum}\left (-1+\frac {x^{2}}{4}\right )}}+\frac {\sqrt {-\mathrm {signum}\left (x^{2}-1\right )}\, \arcsin \left (x \right )}{\sqrt {\mathrm {signum}\left (x^{2}-1\right )}}\) | \(51\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 31, normalized size = 1.15 \begin {gather*} \log \left (2 \, x + 2 \, \sqrt {x^{2} - 1}\right ) + 10 \, \log \left (2 \, x + 2 \, \sqrt {x^{2} - 4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 29, normalized size = 1.07 \begin {gather*} -\log \left (-x + \sqrt {x^{2} - 1}\right ) - 10 \, \log \left (-x + \sqrt {x^{2} - 4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 8, normalized size = 0.30 \begin {gather*} 10 \operatorname {acosh}{\left (\frac {x}{2} \right )} + \operatorname {acosh}{\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 33, normalized size = 1.22 \begin {gather*} -10 \ln \left |\sqrt {x^{2}-4}-x\right |-\ln \left |\sqrt {x^{2}-1}-x\right | \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.69, size = 23, normalized size = 0.85 \begin {gather*} \ln \left (x+\sqrt {x^2-1}\right )+10\,\ln \left (x+\sqrt {x^2-4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________