Optimal. Leaf size=53 \[ \frac{x}{2 \sqrt{3}}+\frac{\tan ^{-1}\left (\frac{\cos (x)-\sqrt{3} \sin (x)}{\sin (x)+\sqrt{3} \cos (x)+2 \left (2+\sqrt{3}\right )}\right )}{\sqrt{3}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.196873, antiderivative size = 83, normalized size of antiderivative = 1.57, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214 \[ \frac{x}{2 \sqrt{3}}+\frac{\tan ^{-1}\left (\frac{\left (3-4 \sqrt{3}\right ) \sin (x)+\left (4-\sqrt{3}\right ) \cos (x)}{\left (4-\sqrt{3}\right ) \sin (x)-\left (3-4 \sqrt{3}\right ) \cos (x)+2 \left (5+2 \sqrt{3}\right )}\right )}{\sqrt{3}} \]
Antiderivative was successfully verified.
[In] Int[(4 + Sqrt[3]*Cos[x] + Sin[x])^(-1),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 1.05476, size = 31, normalized size = 0.58 \[ \frac{\sqrt{3} \operatorname{atan}{\left (\sqrt{3} \left (\left (- \frac{\sqrt{3}}{6} + \frac{2}{3}\right ) \tan{\left (\frac{x}{2} \right )} + \frac{1}{6}\right ) \right )}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/(4+sin(x)+cos(x)*3**(1/2)),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0795651, size = 33, normalized size = 0.62 \[ -\frac{\tan ^{-1}\left (\frac{\left (\sqrt{3}-4\right ) \tan \left (\frac{x}{2}\right )-1}{2 \sqrt{3}}\right )}{\sqrt{3}} \]
Antiderivative was successfully verified.
[In] Integrate[(4 + Sqrt[3]*Cos[x] + Sin[x])^(-1),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.075, size = 43, normalized size = 0.8 \[ -52\,{\frac{1}{ \left ( \sqrt{3}-4 \right ) \left ( 16\,\sqrt{3}+12 \right ) }\arctan \left ({\frac{26\,\tan \left ( x/2 \right ) +2\,\sqrt{3}+8}{16\,\sqrt{3}+12}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/(4+sin(x)+cos(x)*3^(1/2)),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.48518, size = 36, normalized size = 0.68 \[ -\frac{1}{3} \, \sqrt{3} \arctan \left (\frac{1}{6} \, \sqrt{3}{\left (\frac{{\left (\sqrt{3} - 4\right )} \sin \left (x\right )}{\cos \left (x\right ) + 1} - 1\right )}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(sqrt(3)*cos(x) + sin(x) + 4),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.235278, size = 47, normalized size = 0.89 \[ -\frac{1}{6} \, \sqrt{3} \arctan \left (\frac{2 \,{\left (\sqrt{3} \sin \left (x\right ) + \sqrt{3} + 3 \, \cos \left (x\right )\right )}}{3 \,{\left (\sqrt{3} \sin \left (x\right ) - \cos \left (x\right )\right )}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(sqrt(3)*cos(x) + sin(x) + 4),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 15.0299, size = 107, normalized size = 2.02 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(4+sin(x)+cos(x)*3**(1/2)),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.211906, size = 105, normalized size = 1.98 \[ \frac{{\left (x + 2 \, \arctan \left (\frac{\sqrt{3} \cos \left (x\right ) - 8 \, \sqrt{3} \sin \left (x\right ) + \sqrt{3} + 4 \, \cos \left (x\right ) + 7 \, \sin \left (x\right ) + 4}{8 \, \sqrt{3} \cos \left (x\right ) + \sqrt{3} \sin \left (x\right ) + 8 \, \sqrt{3} - 7 \, \cos \left (x\right ) + 4 \, \sin \left (x\right ) + 19}\right )\right )}{\left (\sqrt{3} + 4\right )}}{2 \,{\left (4 \, \sqrt{3} + 3\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(sqrt(3)*cos(x) + sin(x) + 4),x, algorithm="giac")
[Out]