Optimal. Leaf size=25 \[ x-2 \tan ^{-1}\left (\frac {2 \sin (x) \cos (x)}{2 \cos ^2(x)-\cos (x)+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [F] time = 0.79, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \[ \int \frac {-5+2 \cos (x)+7 \cos ^2(x)}{-1+2 \cos (x)-9 \cos ^2(x)+4 \cos ^3(x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {-5+2 \cos (x)+7 \cos ^2(x)}{-1+2 \cos (x)-9 \cos ^2(x)+4 \cos ^3(x)} \, dx &=\int \left (-\frac {5}{-1+2 \cos (x)-9 \cos ^2(x)+4 \cos ^3(x)}+\frac {2 \cos (x)}{-1+2 \cos (x)-9 \cos ^2(x)+4 \cos ^3(x)}+\frac {7 \cos ^2(x)}{-1+2 \cos (x)-9 \cos ^2(x)+4 \cos ^3(x)}\right ) \, dx\\ &=2 \int \frac {\cos (x)}{-1+2 \cos (x)-9 \cos ^2(x)+4 \cos ^3(x)} \, dx-5 \int \frac {1}{-1+2 \cos (x)-9 \cos ^2(x)+4 \cos ^3(x)} \, dx+7 \int \frac {\cos ^2(x)}{-1+2 \cos (x)-9 \cos ^2(x)+4 \cos ^3(x)} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.14, size = 63, normalized size = 2.52 \[ \tan ^{-1}\left (\frac {1}{4} \left (5 \sin \left (\frac {x}{2}\right )-3 \sin \left (\frac {3 x}{2}\right )\right ) \sec ^3\left (\frac {x}{2}\right )\right )-\tan ^{-1}\left (\frac {1}{4} \left (3 \sin \left (\frac {3 x}{2}\right )-5 \sin \left (\frac {x}{2}\right )\right ) \sec ^3\left (\frac {x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 37, normalized size = 1.48 \[ \arctan \left (\frac {5 \, \cos \relax (x)^{3} - 6 \, \cos \relax (x)^{2} + 5 \, \cos \relax (x)}{{\left (3 \, \cos \relax (x)^{2} + 2 \, \cos \relax (x) - 1\right )} \sin \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.09, size = 16, normalized size = 0.64 \[ -2 \, \arctan \left (-2 \, \tan \left (\frac {1}{2} \, x\right )^{3} + \tan \left (\frac {1}{2} \, x\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.12, size = 19, normalized size = 0.76 \[ 2 \arctan \left (2 \left (\tan ^{3}\left (\frac {x}{2}\right )\right )-\tan \left (\frac {x}{2}\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 11.02, size = 63, normalized size = 2.52 \[ -\arctan \left (\sin \left (3 \, x\right ) - \frac {1}{2} \, \sin \left (2 \, x\right ) + 2 \, \sin \relax (x), \cos \left (3 \, x\right ) - \frac {1}{2} \, \cos \left (2 \, x\right ) + 2 \, \cos \relax (x) - \frac {1}{2}\right ) + \arctan \left (\sin \left (3 \, x\right ) - 4 \, \sin \left (2 \, x\right ) + \sin \relax (x), \cos \left (3 \, x\right ) - 4 \, \cos \left (2 \, x\right ) + \cos \relax (x) - 2\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.30, size = 25, normalized size = 1.00 \[ x-2\,\mathrm {atan}\left (\mathrm {tan}\left (\frac {x}{2}\right )-2\,{\mathrm {tan}\left (\frac {x}{2}\right )}^3\right )-2\,\mathrm {atan}\left (\mathrm {tan}\left (\frac {x}{2}\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________