Optimal. Leaf size=21 \[ \log \left (\sqrt {x^2-4}+\sqrt {x^2-1}+1\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.29, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 85, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.012, Rules used = {6684} \[ \log \left (\sqrt {x^2-4}+\sqrt {x^2-1}+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6684
Rubi steps
\begin {align*} \int \frac {x \left (-\sqrt {-4+x^2}+x^2 \sqrt {-4+x^2}-4 \sqrt {-1+x^2}+x^2 \sqrt {-1+x^2}\right )}{\left (4-5 x^2+x^4\right ) \left (1+\sqrt {-4+x^2}+\sqrt {-1+x^2}\right )} \, dx &=\log \left (1+\sqrt {-4+x^2}+\sqrt {-1+x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 1.35, size = 97, normalized size = 4.62 \[ \frac {1}{4} \log \left (-5 x^2-4 \sqrt {x^2-4} \sqrt {x^2-1}+17\right )+\frac {1}{4} \log \left (-2 x^2-2 \sqrt {x^2-4} \sqrt {x^2-1}+5\right )-\frac {1}{2} \tanh ^{-1}\left (\sqrt {x^2-4}\right )+\frac {1}{2} \tanh ^{-1}\left (\frac {\sqrt {x^2-1}}{2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 162, normalized size = 7.71 \[ -\frac {1}{4} \, \log \left (4 \, x^{4} - {\left (4 \, x^{2} - 11\right )} \sqrt {x^{2} - 1} \sqrt {x^{2} - 4} - 21 \, x^{2} + 23\right ) - \frac {1}{4} \, \log \left (x^{2} - \sqrt {x^{2} - 1} {\left (x + 2\right )} + 2 \, x - 1\right ) + \frac {1}{4} \, \log \left (x^{2} - \sqrt {x^{2} - 4} {\left (x + 1\right )} + x - 4\right ) - \frac {1}{4} \, \log \left (x^{2} - \sqrt {x^{2} - 4} {\left (x - 1\right )} - x - 4\right ) + \frac {1}{4} \, \log \left (x^{2} - \sqrt {x^{2} - 1} {\left (x - 2\right )} - 2 \, x - 1\right ) + \frac {1}{4} \, \log \left (x^{2} - 5\right ) + \frac {1}{4} \, \log \left (-x^{2} + \sqrt {x^{2} - 1} \sqrt {x^{2} - 4} + 7\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.38, size = 76, normalized size = 3.62 \[ -\frac {1}{2} \, \log \left (\sqrt {x^{2} - 1} - \sqrt {x^{2} - 4} + 1\right ) - \frac {1}{2} \, \log \left (\sqrt {x^{2} - 1} - \sqrt {x^{2} - 4}\right ) + \frac {1}{2} \, \log \left (\sqrt {x^{2} - 1} + 2\right ) + \frac {1}{2} \, \log \left ({\left | -\sqrt {x^{2} - 1} + \sqrt {x^{2} - 4} - 3 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.22, size = 1088, normalized size = 51.81 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.73, size = 171, normalized size = 8.14 \[ \frac {1}{4} \, \log \left (x + 1\right ) + \frac {3}{8} \, \log \left (x - 1\right ) + \frac {1}{8} \, \log \left (x - 2\right ) + \frac {1}{4} \, \log \left (\frac {2 \, x^{4} + 4 \, {\left (x^{2} - 3\right )} \sqrt {x + 1} \sqrt {x - 1} - 7 \, x^{2} + 2 \, {\left ({\left (x^{2} - 1\right )} \sqrt {x + 1} \sqrt {x - 1} \sqrt {x - 2} + {\left (2 \, x^{2} - 3\right )} \sqrt {x - 2}\right )} \sqrt {x + 2} + 3}{2 \, {\left ({\left (x^{2} - 1\right )} \sqrt {x + 1} \sqrt {x - 1} \sqrt {x - 2} + {\left (2 \, x^{2} - 3\right )} \sqrt {x - 2}\right )}}\right ) + \frac {1}{4} \, \log \left (\frac {{\left (x^{2} - 1\right )} \sqrt {x + 1} \sqrt {x - 1} + 2 \, x^{2} - 3}{{\left (x^{2} - 1\right )} \sqrt {x - 1}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.37, size = 172, normalized size = 8.19 \[ \frac {\ln \left (x-\sqrt {5}\right )}{4}-\mathrm {atanh}\left (\frac {\sqrt {3}-\sqrt {x^2-1}}{\sqrt {x^2-4}}\right )+\frac {\mathrm {atanh}\left (\frac {\sqrt {x^2-1}}{2}\right )}{2}+\frac {\ln \left (x+\sqrt {5}\right )}{4}-\frac {7\,\mathrm {atanh}\left (\frac {4\,\left (\sqrt {3}-\sqrt {x^2-1}\right )}{\sqrt {x^2-4}\,\left (\frac {{\left (\sqrt {3}-\sqrt {x^2-1}\right )}^2}{x^2-4}+1\right )}\right )}{4}+\frac {5\,\mathrm {atanh}\left (\frac {12150\,\left (\sqrt {3}-\sqrt {x^2-1}\right )}{\sqrt {x^2-4}\,\left (\frac {6075\,{\left (\sqrt {3}-\sqrt {x^2-1}\right )}^2}{2\,\left (x^2-4\right )}+\frac {6075}{2}\right )}\right )}{4}-\frac {\mathrm {atanh}\left (\sqrt {x^2-4}\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________