Optimal. Leaf size=19 \[ -\frac {2}{\sqrt {-1+x}}-\frac {2}{\sqrt {1+x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.033, Rules used = {6820}
\begin {gather*} -\frac {2}{\sqrt {x+1}}-\frac {2}{\sqrt {x-1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6820
Rubi steps
\begin {align*} \int \frac {(-1+x)^{3/2}+(1+x)^{3/2}}{(-1+x)^{3/2} (1+x)^{3/2}} \, dx &=\int \left (\frac {1}{(-1+x)^{3/2}}+\frac {1}{(1+x)^{3/2}}\right ) \, dx\\ &=-\frac {2}{\sqrt {-1+x}}-\frac {2}{\sqrt {1+x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 19, normalized size = 1.00 \begin {gather*} -\frac {2}{\sqrt {-1+x}}-\frac {2}{\sqrt {1+x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 16, normalized size = 0.84
method | result | size |
default | \(-\frac {2}{\sqrt {-1+x}}-\frac {2}{\sqrt {1+x}}\) | \(16\) |
meijerg | \(\frac {2 \sqrt {\pi }-\frac {2 \sqrt {\pi }}{\sqrt {1+x}}}{\sqrt {\pi }}-\frac {2 \left (-\mathrm {signum}\left (-1+x \right )\right )^{\frac {3}{2}} \left (\sqrt {\pi }-\frac {\sqrt {\pi }}{\sqrt {1-x}}\right )}{\sqrt {\pi }\, \mathrm {signum}\left (-1+x \right )^{\frac {3}{2}}}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 15, normalized size = 0.79 \begin {gather*} -\frac {2}{\sqrt {x + 1}} - \frac {2}{\sqrt {x - 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.65, size = 28, normalized size = 1.47 \begin {gather*} -\frac {2 \, {\left ({\left (x + 1\right )} \sqrt {x - 1} + \sqrt {x + 1} {\left (x - 1\right )}\right )}}{x^{2} - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 56 vs.
\(2 (17) = 34\).
time = 1.06, size = 56, normalized size = 2.95 \begin {gather*} - \frac {2 x \sqrt {x - 1}}{x^{2} - 1} - \frac {2 x \sqrt {x + 1}}{x^{2} - 1} - \frac {2 \sqrt {x - 1}}{x^{2} - 1} + \frac {2 \sqrt {x + 1}}{x^{2} - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.70, size = 15, normalized size = 0.79 \begin {gather*} -\frac {2}{\sqrt {x + 1}} - \frac {2}{\sqrt {x - 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.40, size = 15, normalized size = 0.79 \begin {gather*} -\frac {2}{\sqrt {x-1}}-\frac {2}{\sqrt {x+1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________