Optimal. Leaf size=9 \[ 2 \sqrt {1+x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {26, 32}
\begin {gather*} 2 \sqrt {x+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 26
Rule 32
Rubi steps
\begin {align*} \int \frac {\sqrt {1-x}}{\sqrt {1-x^2}} \, dx &=\int \frac {1}{\sqrt {1+x}} \, dx\\ &=2 \sqrt {1+x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(22\) vs. \(2(9)=18\).
time = 0.03, size = 22, normalized size = 2.44 \begin {gather*} \frac {2 \sqrt {1-x^2}}{\sqrt {1-x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(23\) vs.
\(2(7)=14\).
time = 0.56, size = 24, normalized size = 2.67
method | result | size |
gosper | \(\frac {2 \left (1+x \right ) \sqrt {1-x}}{\sqrt {-x^{2}+1}}\) | \(22\) |
default | \(-\frac {2 \sqrt {1-x}\, \sqrt {-x^{2}+1}}{-1+x}\) | \(24\) |
risch | \(-\frac {2 \sqrt {\frac {\left (1-x \right ) \left (-x^{2}+1\right )}{\left (-1+x \right )^{2}}}\, \left (-1+x \right ) \sqrt {1+x}}{\sqrt {1-x}\, \sqrt {-x^{2}+1}}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 7, normalized size = 0.78 \begin {gather*} 2 \, \sqrt {x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 3 vs. order
2.
time = 0.35, size = 23, normalized size = 2.56 \begin {gather*} -\frac {2 \, \sqrt {-x^{2} + 1} \sqrt {-x + 1}}{x - 1} \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 {\sqrt {1 - x}}{\sqrt {- \left (x - 1\right ) \left (x + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.64, size = 13, normalized size = 1.44 \begin {gather*} -2 \, \sqrt {2} + 2 \, \sqrt {x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.64, size = 18, normalized size = 2.00 \begin {gather*} \frac {2\,\sqrt {1-x^2}}{\sqrt {1-x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________