Optimal. Leaf size=33 \[ -x+\frac {4}{3} \sqrt {3 x+2}-\frac {4}{3} \log \left (\sqrt {3 x+2}+1\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {431, 376, 77} \begin {gather*} -x+\frac {4}{3} \sqrt {3 x+2}-\frac {4}{3} \log \left (\sqrt {3 x+2}+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 376
Rule 431
Rubi steps
\begin {align*} \int \frac {1-\sqrt {2+3 x}}{1+\sqrt {2+3 x}} \, dx &=\frac {1}{3} \operatorname {Subst}\left (\int \frac {1-\sqrt {x}}{1+\sqrt {x}} \, dx,x,2+3 x\right )\\ &=\frac {2}{3} \operatorname {Subst}\left (\int \frac {(1-x) x}{1+x} \, dx,x,\sqrt {2+3 x}\right )\\ &=\frac {2}{3} \operatorname {Subst}\left (\int \left (2-x-\frac {2}{1+x}\right ) \, dx,x,\sqrt {2+3 x}\right )\\ &=-x+\frac {4}{3} \sqrt {2+3 x}-\frac {4}{3} \log \left (1+\sqrt {2+3 x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 33, normalized size = 1.00 \begin {gather*} -x+\frac {4}{3} \sqrt {3 x+2}-\frac {4}{3} \log \left (\sqrt {3 x+2}+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.02, size = 41, normalized size = 1.24 \begin {gather*} -\frac {1}{3} \sqrt {3 x+2} \left (\sqrt {3 x+2}-4\right )-\frac {4}{3} \log \left (\sqrt {3 x+2}+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.70, size = 25, normalized size = 0.76 \begin {gather*} -x + \frac {4}{3} \, \sqrt {3 \, x + 2} - \frac {4}{3} \, \log \left (\sqrt {3 \, x + 2} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.33, size = 26, normalized size = 0.79 \begin {gather*} -x + \frac {4}{3} \, \sqrt {3 \, x + 2} - \frac {4}{3} \, \log \left (\sqrt {3 \, x + 2} + 1\right ) - \frac {2}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 27, normalized size = 0.82 \begin {gather*} -x -\frac {4 \ln \left (1+\sqrt {3 x +2}\right )}{3}+\frac {4 \sqrt {3 x +2}}{3}-\frac {2}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.88, size = 26, normalized size = 0.79 \begin {gather*} -x + \frac {4}{3} \, \sqrt {3 \, x + 2} - \frac {4}{3} \, \log \left (\sqrt {3 \, x + 2} + 1\right ) - \frac {2}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.10, size = 25, normalized size = 0.76 \begin {gather*} \frac {4\,\sqrt {3\,x+2}}{3}-\frac {4\,\ln \left (\sqrt {3\,x+2}+1\right )}{3}-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 27, normalized size = 0.82 \begin {gather*} - x + \frac {4 \sqrt {3 x + 2}}{3} - \frac {4 \log {\left (\sqrt {3 x + 2} + 1 \right )}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________