Optimal. Leaf size=71 \[ -x+2 \sqrt{3} \sqrt{2 x-3}+10 \log \left (x+\sqrt{3} \sqrt{2 x-3}+4\right )-21 \sqrt{\frac{3}{2}} \tan ^{-1}\left (\frac{\sqrt{6 x-9}+3}{2 \sqrt{6}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.109763, antiderivative size = 71, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {1628, 634, 618, 204, 628} \[ -x+2 \sqrt{3} \sqrt{2 x-3}+10 \log \left (x+\sqrt{3} \sqrt{2 x-3}+4\right )-21 \sqrt{\frac{3}{2}} \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{12-x}{4+x+\sqrt{-9+6 x}} \, dx &=-\left (\frac{1}{3} \operatorname{Subst}\left (\int \frac{x \left (-63+x^2\right )}{33+6 x+x^2} \, dx,x,\sqrt{-9+6 x}\right )\right )\\ &=-\left (\frac{1}{3} \operatorname{Subst}\left (\int \left (-6+x+\frac{6 (33-10 x)}{33+6 x+x^2}\right ) \, dx,x,\sqrt{-9+6 x}\right )\right )\\ &=-x+2 \sqrt{3} \sqrt{-3+2 x}-2 \operatorname{Subst}\left (\int \frac{33-10 x}{33+6 x+x^2} \, dx,x,\sqrt{-9+6 x}\right )\\ &=-x+2 \sqrt{3} \sqrt{-3+2 x}+10 \operatorname{Subst}\left (\int \frac{6+2 x}{33+6 x+x^2} \, dx,x,\sqrt{-9+6 x}\right )-126 \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}+10 \log \left (4+x+\sqrt{3} \sqrt{-3+2 x}\right )+252 \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}-21 \sqrt{\frac{3}{2}} \tan ^{-1}\left (\frac{3+\sqrt{3} \sqrt{-3+2 x}}{2 \sqrt{6}}\right )+10 \log \left (4+x+\sqrt{3} \sqrt{-3+2 x}\right )\\ \end{align*}
Mathematica [A] time = 0.0383051, size = 60, normalized size = 0.85 \[ -x+2 \sqrt{6 x-9}+10 \log \left (x+\sqrt{6 x-9}+4\right )-21 \sqrt{\frac{3}{2}} \tan ^{-1}\left (\frac{\sqrt{6 x-9}+3}{2 \sqrt{6}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 54, normalized size = 0.8 \begin{align*} 2\,\sqrt{-9+6\,x}+{\frac{3}{2}}-x+10\,\ln \left ( 24+6\,x+6\,\sqrt{-9+6\,x} \right ) -{\frac{21\,\sqrt{6}}{2}\arctan \left ({\frac{\sqrt{6}}{24} \left ( 2\,\sqrt{-9+6\,x}+6 \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48008, size = 69, normalized size = 0.97 \begin{align*} -\frac{21}{2} \, \sqrt{6} \arctan \left (\frac{1}{12} \, \sqrt{6}{\left (\sqrt{6 \, x - 9} + 3\right )}\right ) - x + 2 \, \sqrt{6 \, x - 9} + 10 \, \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.46101, size = 192, normalized size = 2.7 \begin{align*} -\frac{21}{2} \, \sqrt{3} \sqrt{2} \arctan \left (\frac{1}{12} \, \sqrt{3} \sqrt{2} \sqrt{6 \, x - 9} + \frac{1}{4} \, \sqrt{3} \sqrt{2}\right ) - x + 2 \, \sqrt{6 \, x - 9} + 10 \, \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 = 33.6422, size = 60, normalized size = 0.85 \begin{align*} - x + 2 \sqrt{6 x - 9} + 10 \log{\left (6 x + 6 \sqrt{6 x - 9} + 24 \right )} - \frac{21 \sqrt{6} \operatorname{atan}{\left (\frac{\sqrt{6} \left (\sqrt{6 x - 9} + 3\right )}{12} \right )}}{2} + \frac{3}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17464, size = 117, normalized size = 1.65 \begin{align*} -\frac{1}{6} \, \sqrt{3} \sqrt{2}{\left (10 \, \sqrt{3} \sqrt{2} \log \left (33\right ) - 63 \, \arctan \left (\frac{1}{4} \, \sqrt{3} \sqrt{2}\right )\right )} - \frac{21}{2} \, \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} + 10 \, \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]