Optimal. Leaf size=43 \[ x-2 \tan ^{-1}\left (\frac {3 \sin (x)+7 \sin (x) \cos (x)}{5 \cos ^2(x)+2 \cos (x)+1}\right )-2 \tan ^{-1}\left (\frac {\sin (x)}{\cos (x)+3}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [F] time = 0.80, 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 {-1+4 \cos (x)+5 \cos ^2(x)}{-1-4 \cos (x)-3 \cos ^2(x)+4 \cos ^3(x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {-1+4 \cos (x)+5 \cos ^2(x)}{-1-4 \cos (x)-3 \cos ^2(x)+4 \cos ^3(x)} \, dx &=\int \left (\frac {1}{1+4 \cos (x)+3 \cos ^2(x)-4 \cos ^3(x)}+\frac {4 \cos (x)}{-1-4 \cos (x)-3 \cos ^2(x)+4 \cos ^3(x)}+\frac {5 \cos ^2(x)}{-1-4 \cos (x)-3 \cos ^2(x)+4 \cos ^3(x)}\right ) \, dx\\ &=4 \int \frac {\cos (x)}{-1-4 \cos (x)-3 \cos ^2(x)+4 \cos ^3(x)} \, dx+5 \int \frac {\cos ^2(x)}{-1-4 \cos (x)-3 \cos ^2(x)+4 \cos ^3(x)} \, dx+\int \frac {1}{1+4 \cos (x)+3 \cos ^2(x)-4 \cos ^3(x)} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 61, normalized size = 1.42 \[ \tan ^{-1}\left (\frac {1}{4} \left (\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 )-\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.45, size = 31, normalized size = 0.72 \[ \arctan \left (\frac {5 \, \cos \relax (x)^{3} - \cos \relax (x)}{{\left (3 \, \cos \relax (x)^{2} + 4 \, \cos \relax (x) + 1\right )} \sin \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.96, size = 18, normalized size = 0.42 \[ -2 \, \arctan \left (-\tan \left (\frac {1}{2} \, x\right )^{3} + 2 \, \tan \left (\frac {1}{2} \, x\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 17, normalized size = 0.40 \[ 2 \arctan \left (\tan ^{3}\left (\frac {x}{2}\right )-2 \tan \left (\frac {x}{2}\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 11.09, size = 63, normalized size = 1.47 \[ -\arctan \left (\sin \left (3 \, x\right ) + \frac {1}{2} \, \sin \left (2 \, x\right ) + \sin \relax (x), \cos \left (3 \, x\right ) + \frac {1}{2} \, \cos \left (2 \, x\right ) + \cos \relax (x) - \frac {1}{2}\right ) + \arctan \left (\sin \left (3 \, x\right ) - 2 \, \sin \left (2 \, x\right ) - \sin \relax (x), \cos \left (3 \, x\right ) - 2 \, \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 = 27, normalized size = 0.63 \[ x-2\,\mathrm {atan}\left (2\,\mathrm {tan}\left (\frac {x}{2}\right )-{\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]
________________________________________________________________________________________