Optimal. Leaf size=37 \[ \frac {x}{\sqrt {10}}-\frac {\tan ^{-1}\left (\frac {3 \cos (x) \sin (x)}{2+\sqrt {10}+3 \cos ^2(x)}\right )}{\sqrt {10}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 48, normalized size of antiderivative = 1.30, number of steps
used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3260, 209}
\begin {gather*} \frac {x}{\sqrt {10}}-\frac {\text {ArcTan}\left (\frac {\left (\sqrt {\frac {5}{2}}-1\right ) \sin (x) \cos (x)}{\left (\sqrt {\frac {5}{2}}-1\right ) \cos ^2(x)+1}\right )}{\sqrt {10}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 3260
Rubi steps
\begin {align*} \int \frac {1}{2+3 \cos ^2(x)} \, dx &=-\text {Subst}\left (\int \frac {1}{2+5 x^2} \, dx,x,\cot (x)\right )\\ &=\frac {x}{\sqrt {10}}-\frac {\tan ^{-1}\left (\frac {\left (-1+\sqrt {\frac {5}{2}}\right ) \cos (x) \sin (x)}{1+\left (-1+\sqrt {\frac {5}{2}}\right ) \cos ^2(x)}\right )}{\sqrt {10}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 17, normalized size = 0.46 \begin {gather*} \frac {\tan ^{-1}\left (\sqrt {\frac {2}{5}} \tan (x)\right )}{\sqrt {10}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 14, normalized size = 0.38
method | result | size |
default | \(\frac {\sqrt {10}\, \arctan \left (\frac {\tan \left (x \right ) \sqrt {10}}{5}\right )}{10}\) | \(14\) |
risch | \(\frac {i \sqrt {10}\, \ln \left ({\mathrm e}^{2 i x}+\frac {2 \sqrt {10}}{3}+\frac {7}{3}\right )}{20}-\frac {i \sqrt {10}\, \ln \left ({\mathrm e}^{2 i x}-\frac {2 \sqrt {10}}{3}+\frac {7}{3}\right )}{20}\) | \(40\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.88, size = 13, normalized size = 0.35 \begin {gather*} \frac {1}{10} \, \sqrt {10} \arctan \left (\frac {1}{5} \, \sqrt {10} \tan \left (x\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.28, size = 31, normalized size = 0.84 \begin {gather*} -\frac {1}{20} \, \sqrt {10} \arctan \left (\frac {7 \, \sqrt {10} \cos \left (x\right )^{2} - 2 \, \sqrt {10}}{20 \, \cos \left (x\right ) \sin \left (x\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{3 \cos ^{2}{\left (x \right )} + 2}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.80, size = 46, normalized size = 1.24 \begin {gather*} \frac {1}{10} \, \sqrt {10} {\left (x + \arctan \left (-\frac {\sqrt {10} \sin \left (2 \, x\right ) - 2 \, \sin \left (2 \, x\right )}{\sqrt {10} \cos \left (2 \, x\right ) + \sqrt {10} - 2 \, \cos \left (2 \, x\right ) + 2}\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.24, size = 26, normalized size = 0.70 \begin {gather*} \frac {\sqrt {10}\,\left (x-\mathrm {atan}\left (\mathrm {tan}\left (x\right )\right )\right )}{10}+\frac {\sqrt {10}\,\mathrm {atan}\left (\frac {\sqrt {10}\,\mathrm {tan}\left (x\right )}{5}\right )}{10} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________