Optimal. Leaf size=33 \[ -\frac{\tanh ^{-1}\left (\frac{\sqrt{23} (\cos (x)-\sin (x))}{3 \sin (x)+3 \cos (x)+8}\right )}{\sqrt{23}} \]
[Out]
________________________________________________________________________________________
Rubi [B] time = 0.0735646, antiderivative size = 94, normalized size of antiderivative = 2.85, number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3124, 618, 206} \[ \frac{\log \left (\sqrt{23} \sin (x)-4 \sin (x)-4 \sqrt{23} \cos (x)+19 \cos (x)+4 \left (5-\sqrt{23}\right )\right )}{2 \sqrt{23}}-\frac{\log \left (-\sqrt{23} \sin (x)-4 \sin (x)+4 \sqrt{23} \cos (x)+19 \cos (x)+4 \left (5+\sqrt{23}\right )\right )}{2 \sqrt{23}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3124
Rule 618
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{3+4 \cos (x)+4 \sin (x)} \, dx &=2 \operatorname{Subst}\left (\int \frac{1}{7+8 x-x^2} \, dx,x,\tan \left (\frac{x}{2}\right )\right )\\ &=-\left (4 \operatorname{Subst}\left (\int \frac{1}{92-x^2} \, dx,x,8-2 \tan \left (\frac{x}{2}\right )\right )\right )\\ &=-\frac{\log \left (4 \left (5+\sqrt{23}\right )+19 \cos (x)+4 \sqrt{23} \cos (x)-4 \sin (x)-\sqrt{23} \sin (x)\right )}{2 \sqrt{23}}+\frac{\log \left (4 \left (5-\sqrt{23}\right )+19 \cos (x)-4 \sqrt{23} \cos (x)-4 \sin (x)+\sqrt{23} \sin (x)\right )}{2 \sqrt{23}}\\ \end{align*}
Mathematica [A] time = 0.0429494, size = 22, normalized size = 0.67 \[ \frac{2 \tanh ^{-1}\left (\frac{\tan \left (\frac{x}{2}\right )-4}{\sqrt{23}}\right )}{\sqrt{23}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.031, size = 20, normalized size = 0.6 \begin{align*}{\frac{2\,\sqrt{23}}{23}{\it Artanh} \left ({\frac{\sqrt{23}}{46} \left ( -8+2\,\tan \left ( x/2 \right ) \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.4106, size = 53, normalized size = 1.61 \begin{align*} -\frac{1}{23} \, \sqrt{23} \log \left (-\frac{\sqrt{23} - \frac{\sin \left (x\right )}{\cos \left (x\right ) + 1} + 4}{\sqrt{23} + \frac{\sin \left (x\right )}{\cos \left (x\right ) + 1} - 4}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.22366, size = 230, normalized size = 6.97 \begin{align*} \frac{1}{46} \, \sqrt{23} \log \left (-\frac{6 \, \sqrt{23} \cos \left (x\right )^{2} + 8 \,{\left (\sqrt{23} - 3\right )} \cos \left (x\right ) - 2 \,{\left (4 \, \sqrt{23} - 7 \, \cos \left (x\right ) + 12\right )} \sin \left (x\right ) - 3 \, \sqrt{23} - 48}{8 \,{\left (4 \, \cos \left (x\right ) + 3\right )} \sin \left (x\right ) + 24 \, \cos \left (x\right ) + 25}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.71092, size = 39, normalized size = 1.18 \begin{align*} \frac{\sqrt{23} \log{\left (\tan{\left (\frac{x}{2} \right )} - 4 + \sqrt{23} \right )}}{23} - \frac{\sqrt{23} \log{\left (\tan{\left (\frac{x}{2} \right )} - \sqrt{23} - 4 \right )}}{23} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15066, size = 50, normalized size = 1.52 \begin{align*} -\frac{1}{23} \, \sqrt{23} \log \left (\frac{{\left | -2 \, \sqrt{23} + 2 \, \tan \left (\frac{1}{2} \, x\right ) - 8 \right |}}{{\left | 2 \, \sqrt{23} + 2 \, \tan \left (\frac{1}{2} \, x\right ) - 8 \right |}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]