Optimal. Leaf size=65 \[ -\frac {2}{1-x-\sqrt {-3-2 x+x^2}}+2 \log \left (1-x-\sqrt {-3-2 x+x^2}\right )-\frac {3}{2} \log \left (x+\sqrt {-3-2 x+x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2141, 907}
\begin {gather*} -\frac {2}{-\sqrt {x^2-2 x-3}-x+1}+2 \log \left (-\sqrt {x^2-2 x-3}-x+1\right )-\frac {3}{2} \log \left (\sqrt {x^2-2 x-3}+x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 907
Rule 2141
Rubi steps
\begin {align*} \int \frac {1}{x+\sqrt {-3-2 x+x^2}} \, dx &=2 \text {Subst}\left (\int \frac {-3-2 x+x^2}{x (-2+2 x)^2} \, dx,x,x+\sqrt {-3-2 x+x^2}\right )\\ &=2 \text {Subst}\left (\int \left (-\frac {1}{(-1+x)^2}+\frac {1}{-1+x}-\frac {3}{4 x}\right ) \, dx,x,x+\sqrt {-3-2 x+x^2}\right )\\ &=-\frac {2}{1-x-\sqrt {-3-2 x+x^2}}+2 \log \left (1-x-\sqrt {-3-2 x+x^2}\right )-\frac {3}{2} \log \left (x+\sqrt {-3-2 x+x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 78, normalized size = 1.20 \begin {gather*} \frac {1}{2} \left (x-\sqrt {-3-2 x+x^2}-\log \left (-1-x+\sqrt {-3-2 x+x^2}\right )+4 \log \left (1+x+\sqrt {-3-2 x+x^2}\right )-3 \log \left (3+3 x+\sqrt {-3-2 x+x^2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 71, normalized size = 1.09
method | result | size |
default | \(-\frac {\sqrt {4 \left (\frac {3}{2}+x \right )^{2}-20 x -21}}{4}+\frac {5 \ln \left (-1+x +\sqrt {\left (\frac {3}{2}+x \right )^{2}-5 x -\frac {21}{4}}\right )}{4}+\frac {3 \arctanh \left (\frac {-2-\frac {10 x}{3}}{\sqrt {4 \left (\frac {3}{2}+x \right )^{2}-20 x -21}}\right )}{4}+\frac {x}{2}-\frac {3 \ln \left (3+2 x \right )}{4}\) | \(71\) |
trager | \(\frac {x}{2}-\frac {\sqrt {x^{2}-2 x -3}}{2}+\frac {\ln \left (\frac {\sqrt {x^{2}-2 x -3}\, x^{3}+x^{4}+3 \sqrt {x^{2}-2 x -3}\, x^{2}+2 x^{3}+\sqrt {x^{2}-2 x -3}\, x -4 x^{2}-3 \sqrt {x^{2}-2 x -3}-12 x -9}{\left (3+2 x \right )^{3}}\right )}{2}\) | \(99\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 77, normalized size = 1.18 \begin {gather*} \frac {1}{2} \, x - \frac {1}{2} \, \sqrt {x^{2} - 2 \, x - 3} - \frac {3}{4} \, \log \left (2 \, x + 3\right ) - \frac {5}{4} \, \log \left (-x + \sqrt {x^{2} - 2 \, x - 3} + 1\right ) + \frac {3}{4} \, \log \left (-x + \sqrt {x^{2} - 2 \, x - 3}\right ) - \frac {3}{4} \, \log \left (-x + \sqrt {x^{2} - 2 \, x - 3} - 3\right ) \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 {1}{x + \sqrt {x^{2} - 2 x - 3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.71, size = 81, normalized size = 1.25 \begin {gather*} \frac {1}{2} \, x - \frac {1}{2} \, \sqrt {x^{2} - 2 \, x - 3} - \frac {3}{4} \, \log \left ({\left | 2 \, x + 3 \right |}\right ) - \frac {5}{4} \, \log \left ({\left | -x + \sqrt {x^{2} - 2 \, x - 3} + 1 \right |}\right ) + \frac {3}{4} \, \log \left ({\left | -x + \sqrt {x^{2} - 2 \, x - 3} \right |}\right ) - \frac {3}{4} \, \log \left ({\left | -x + \sqrt {x^{2} - 2 \, x - 3} - 3 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \frac {x}{2}-\frac {3\,\ln \left (x+\frac {3}{2}\right )}{4}-\int \frac {\sqrt {x^2-2\,x-3}}{2\,x+3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________