Optimal. Leaf size=24 \[ -\tanh ^{-1}\left (\frac {2 x-2}{\sqrt {x^3+x^2-5 x+3}}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 40, normalized size of antiderivative = 1.67, number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {2067, 2064, 63, 206} \begin {gather*} \frac {(1-x) \sqrt {x+3} \tanh ^{-1}\left (\frac {\sqrt {x+3}}{2}\right )}{\sqrt {x^3+x^2-5 x+3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 206
Rule 2064
Rule 2067
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {3-5 x+x^2+x^3}} \, dx &=\operatorname {Subst}\left (\int \frac {1}{\sqrt {\frac {128}{27}-\frac {16 x}{3}+x^3}} \, dx,x,\frac {1}{3}+x\right )\\ &=\frac {\left (128 (1-x) \sqrt {3+x}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (\frac {128}{9}-\frac {32 x}{3}\right ) \sqrt {\frac {128}{9}+\frac {16 x}{3}}} \, dx,x,\frac {1}{3}+x\right )}{3 \sqrt {3} \sqrt {3-5 x+x^2+x^3}}\\ &=\frac {\left (16 (1-x) \sqrt {3+x}\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {128}{3}-2 x^2} \, dx,x,\frac {4 \sqrt {3+x}}{\sqrt {3}}\right )}{\sqrt {3} \sqrt {3-5 x+x^2+x^3}}\\ &=\frac {(1-x) \sqrt {3+x} \tanh ^{-1}\left (\frac {\sqrt {3+x}}{2}\right )}{\sqrt {3-5 x+x^2+x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 37, normalized size = 1.54 \begin {gather*} -\frac {(x-1) \sqrt {x+3} \tanh ^{-1}\left (\frac {\sqrt {x+3}}{2}\right )}{\sqrt {(x-1)^2 (x+3)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.05, size = 24, normalized size = 1.00 \begin {gather*} -\tanh ^{-1}\left (\frac {-2+2 x}{\sqrt {3-5 x+x^2+x^3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.46, size = 58, normalized size = 2.42 \begin {gather*} -\frac {1}{2} \, \log \left (\frac {2 \, x + \sqrt {x^{3} + x^{2} - 5 \, x + 3} - 2}{x - 1}\right ) + \frac {1}{2} \, \log \left (-\frac {2 \, x - \sqrt {x^{3} + x^{2} - 5 \, x + 3} - 2}{x - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.34, size = 34, normalized size = 1.42 \begin {gather*} -\frac {\log \left (\sqrt {x + 3} + 2\right )}{2 \, \mathrm {sgn}\left (x - 1\right )} + \frac {\log \left ({\left | \sqrt {x + 3} - 2 \right |}\right )}{2 \, \mathrm {sgn}\left (x - 1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 33, normalized size = 1.38
method | result | size |
trager | \(-\frac {\ln \left (\frac {x^{2}+4 \sqrt {x^{3}+x^{2}-5 x +3}+6 x -7}{\left (-1+x \right )^{2}}\right )}{2}\) | \(33\) |
default | \(-\frac {\left (-1+x \right ) \sqrt {3+x}\, \left (\ln \left (\sqrt {3+x}+2\right )-\ln \left (\sqrt {3+x}-2\right )\right )}{2 \sqrt {x^{3}+x^{2}-5 x +3}}\) | \(43\) |
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*} \int \frac {1}{\sqrt {x^{3} + x^{2} - 5 \, x + 3}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {1}{\sqrt {x^3+x^2-5\,x+3}} \,d x \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}{\sqrt {x^{3} + x^{2} - 5 x + 3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________