Optimal. Leaf size=33 \[ -x+\frac{4}{3} \sqrt{3 x+2}-\frac{4}{3} \log \left (\sqrt{3 x+2}+1\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0216975, antiderivative size = 33, normalized size of antiderivative = 1., 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} \[ -x+\frac{4}{3} \sqrt{3 x+2}-\frac{4}{3} \log \left (\sqrt{3 x+2}+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 431
Rule 376
Rule 77
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.0144503, size = 33, normalized size = 1. \[ -x+\frac{4}{3} \sqrt{3 x+2}-\frac{4}{3} \log \left (\sqrt{3 x+2}+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 27, normalized size = 0.8 \begin{align*}{\frac{4}{3}\sqrt{2+3\,x}}-x-{\frac{2}{3}}-{\frac{4}{3}\ln \left ( 1+\sqrt{2+3\,x} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.0267, size = 35, normalized size = 1.06 \begin{align*} -x + \frac{4}{3} \, \sqrt{3 \, x + 2} - \frac{4}{3} \, \log \left (\sqrt{3 \, x + 2} + 1\right ) - \frac{2}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.58899, size = 72, normalized size = 2.18 \begin{align*} -x + \frac{4}{3} \, \sqrt{3 \, x + 2} - \frac{4}{3} \, \log \left (\sqrt{3 \, x + 2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.144897, size = 27, normalized size = 0.82 \begin{align*} - x + \frac{4 \sqrt{3 x + 2}}{3} - \frac{4 \log{\left (\sqrt{3 x + 2} + 1 \right )}}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10943, size = 35, normalized size = 1.06 \begin{align*} -x + \frac{4}{3} \, \sqrt{3 \, x + 2} - \frac{4}{3} \, \log \left (\sqrt{3 \, x + 2} + 1\right ) - \frac{2}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]