Optimal. Leaf size=27 \[ \frac {x}{3}+\frac {1}{3} \tan ^{-1}\left (\frac {2 \sin (x) \cos (x)}{2 \sin ^2(x)+1}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {203} \[ \frac {x}{3}+\frac {1}{3} \tan ^{-1}\left (\frac {2 \sin (x) \cos (x)}{2 \sin ^2(x)+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rubi steps
\begin {align*} \int \frac {1}{4-3 \cos ^2(x)+5 \sin ^2(x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{1+9 x^2} \, dx,x,\tan (x)\right )\\ &=\frac {x}{3}+\frac {1}{3} \tan ^{-1}\left (\frac {2 \cos (x) \sin (x)}{1+2 \sin ^2(x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 9, normalized size = 0.33 \[ \frac {1}{3} \tan ^{-1}(3 \tan (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{4-3 \cos ^2(x)+5 \sin ^2(x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.24, size = 21, normalized size = 0.78 \[ -\frac {1}{6} \, \arctan \left (\frac {10 \, \cos \relax (x)^{2} - 9}{6 \, \cos \relax (x) \sin \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.63, size = 20, normalized size = 0.74 \[ \frac {1}{3} \, x - \frac {1}{3} \, \arctan \left (\frac {\sin \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 8, normalized size = 0.30
method | result | size |
default | \(\frac {\arctan \left (3 \tan \relax (x )\right )}{3}\) | \(8\) |
risch | \(-\frac {i \ln \left ({\mathrm e}^{2 i x}-\frac {1}{2}\right )}{6}+\frac {i \ln \left ({\mathrm e}^{2 i x}-2\right )}{6}\) | \(24\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 7, normalized size = 0.26 \[ \frac {1}{3} \, \arctan \left (3 \, \tan \relax (x)\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.28, size = 16, normalized size = 0.59 \[ \frac {x}{3}-\frac {\mathrm {atan}\left (\mathrm {tan}\relax (x)\right )}{3}+\frac {\mathrm {atan}\left (3\,\mathrm {tan}\relax (x)\right )}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 13.65, size = 219, normalized size = 8.11 \[ \frac {4478554083 \sqrt {17 - 12 \sqrt {2}} \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {x}{2} \right )}}{\sqrt {17 - 12 \sqrt {2}}} \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{2305195203 + 1630019160 \sqrt {2}} + \frac {3166815962 \sqrt {2} \sqrt {17 - 12 \sqrt {2}} \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {x}{2} \right )}}{\sqrt {17 - 12 \sqrt {2}}} \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{2305195203 + 1630019160 \sqrt {2}} + \frac {131836323 \sqrt {12 \sqrt {2} + 17} \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {x}{2} \right )}}{\sqrt {12 \sqrt {2} + 17}} \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{2305195203 + 1630019160 \sqrt {2}} + \frac {93222358 \sqrt {2} \sqrt {12 \sqrt {2} + 17} \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {x}{2} \right )}}{\sqrt {12 \sqrt {2} + 17}} \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{2305195203 + 1630019160 \sqrt {2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________