Optimal. Leaf size=67 \[ x-2 \sqrt{3} \sqrt{2 x-3}+3 \log \left (x+\sqrt{3} \sqrt{2 x-3}+4\right )+4 \sqrt{6} \tan ^{-1}\left (\frac{\sqrt{6 x-9}+3}{2 \sqrt{6}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.129946, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.278, Rules used = {1628, 634, 618, 204, 628} \[ x-2 \sqrt{3} \sqrt{2 x-3}+3 \log \left (x+\sqrt{3} \sqrt{2 x-3}+4\right )+4 \sqrt{6} \tan ^{-1}\left (\frac{\sqrt{6 x-9}+3}{2 \sqrt{6}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1628
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{1+x}{4+x+\sqrt{-9+6 x}} \, dx &=\frac{1}{3} \operatorname{Subst}\left (\int \frac{x \left (15+x^2\right )}{33+6 x+x^2} \, dx,x,\sqrt{-9+6 x}\right )\\ &=\frac{1}{3} \operatorname{Subst}\left (\int \left (-6+x+\frac{18 (11+x)}{33+6 x+x^2}\right ) \, dx,x,\sqrt{-9+6 x}\right )\\ &=x-2 \sqrt{3} \sqrt{-3+2 x}+6 \operatorname{Subst}\left (\int \frac{11+x}{33+6 x+x^2} \, dx,x,\sqrt{-9+6 x}\right )\\ &=x-2 \sqrt{3} \sqrt{-3+2 x}+3 \operatorname{Subst}\left (\int \frac{6+2 x}{33+6 x+x^2} \, dx,x,\sqrt{-9+6 x}\right )+48 \operatorname{Subst}\left (\int \frac{1}{33+6 x+x^2} \, dx,x,\sqrt{-9+6 x}\right )\\ &=x-2 \sqrt{3} \sqrt{-3+2 x}+3 \log \left (4+x+\sqrt{3} \sqrt{-3+2 x}\right )-96 \operatorname{Subst}\left (\int \frac{1}{-96-x^2} \, dx,x,6+2 \sqrt{-9+6 x}\right )\\ &=x-2 \sqrt{3} \sqrt{-3+2 x}+4 \sqrt{6} \tan ^{-1}\left (\frac{3+\sqrt{3} \sqrt{-3+2 x}}{2 \sqrt{6}}\right )+3 \log \left (4+x+\sqrt{3} \sqrt{-3+2 x}\right )\\ \end{align*}
Mathematica [A] time = 0.0714985, size = 56, normalized size = 0.84 \[ x-2 \sqrt{6 x-9}+3 \log \left (x+\sqrt{6 x-9}+4\right )+4 \sqrt{6} \tan ^{-1}\left (\frac{\sqrt{6 x-9}+3}{2 \sqrt{6}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 52, normalized size = 0.8 \begin{align*} -2\,\sqrt{-9+6\,x}-{\frac{3}{2}}+x+3\,\ln \left ( 24+6\,x+6\,\sqrt{-9+6\,x} \right ) +4\,\sqrt{6}\arctan \left ( 1/24\, \left ( 2\,\sqrt{-9+6\,x}+6 \right ) \sqrt{6} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48491, size = 66, normalized size = 0.99 \begin{align*} 4 \, \sqrt{6} \arctan \left (\frac{1}{12} \, \sqrt{6}{\left (\sqrt{6 \, x - 9} + 3\right )}\right ) + x - 2 \, \sqrt{6 \, x - 9} + 3 \, \log \left (6 \, x + 6 \, \sqrt{6 \, x - 9} + 24\right ) - \frac{3}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.4617, size = 153, normalized size = 2.28 \begin{align*} 4 \, \sqrt{6} \arctan \left (\frac{1}{12} \, \sqrt{6} \sqrt{6 \, x - 9} + \frac{1}{4} \, \sqrt{6}\right ) + x - 2 \, \sqrt{6 \, x - 9} + 3 \, \log \left (x + \sqrt{6 \, x - 9} + 4\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 24.8384, size = 58, normalized size = 0.87 \begin{align*} x - 2 \sqrt{6 x - 9} + 3 \log{\left (6 x + 6 \sqrt{6 x - 9} + 24 \right )} + 4 \sqrt{6} \operatorname{atan}{\left (\frac{\sqrt{6} \left (\sqrt{6 x - 9} + 3\right )}{12} \right )} - \frac{3}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14779, size = 113, normalized size = 1.69 \begin{align*} -\frac{1}{2} \, \sqrt{3} \sqrt{2}{\left (\sqrt{3} \sqrt{2} \log \left (33\right ) + 8 \, \arctan \left (\frac{1}{4} \, \sqrt{3} \sqrt{2}\right )\right )} + 4 \, \sqrt{3} \sqrt{2} \arctan \left (\frac{1}{12} \, \sqrt{3} \sqrt{2}{\left (\sqrt{6 \, x - 9} + 3\right )}\right ) + x - 2 \, \sqrt{6 \, x - 9} + 3 \, \log \left (6 \, x + 6 \, \sqrt{6 \, x - 9} + 24\right ) - \frac{3}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]