Optimal. Leaf size=36 \[ \frac{\sqrt{x^2+2 x-3}}{2 (1-x)}+\sqrt{x^2+2 x-3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.127551, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {1593, 1586, 1638, 650} \[ \frac{\sqrt{x^2+2 x-3}}{2 (1-x)}+\sqrt{x^2+2 x-3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 1586
Rule 1638
Rule 650
Rubi steps
\begin{align*} \int \frac{3 x^2+2 x^3}{\sqrt{-3+2 x+x^2} \left (-3+x+2 x^2\right )} \, dx &=\int \frac{x^2 (3+2 x)}{\sqrt{-3+2 x+x^2} \left (-3+x+2 x^2\right )} \, dx\\ &=\int \frac{x^2}{(-1+x) \sqrt{-3+2 x+x^2}} \, dx\\ &=\sqrt{-3+2 x+x^2}+\int \frac{1}{(-1+x) \sqrt{-3+2 x+x^2}} \, dx\\ &=\sqrt{-3+2 x+x^2}+\frac{\sqrt{-3+2 x+x^2}}{2 (1-x)}\\ \end{align*}
Mathematica [A] time = 0.0111896, size = 26, normalized size = 0.72 \[ \frac{2 x^2+3 x-9}{2 \sqrt{x^2+2 x-3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 21, normalized size = 0.6 \begin{align*}{\frac{ \left ( -3+2\,x \right ) \left ( 3+x \right ) }{2}{\frac{1}{\sqrt{{x}^{2}+2\,x-3}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46946, size = 38, normalized size = 1.06 \begin{align*} \sqrt{x^{2} + 2 \, x - 3} - \frac{\sqrt{x^{2} + 2 \, x - 3}}{2 \,{\left (x - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.88616, size = 58, normalized size = 1.61 \begin{align*} \frac{\sqrt{x^{2} + 2 \, x - 3}{\left (2 \, x - 3\right )}}{2 \,{\left (x - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2}}{\sqrt{\left (x - 1\right ) \left (x + 3\right )} \left (x - 1\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.07088, size = 41, normalized size = 1.14 \begin{align*} \sqrt{x^{2} + 2 \, x - 3} + \frac{2}{x - \sqrt{x^{2} + 2 \, x - 3} - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]