Optimal. Leaf size=43 \[ -\frac {1}{3} \log \left (\cos \left (\frac {x}{2}\right )-2 \sin \left (\frac {x}{2}\right )\right )+\frac {1}{3} \log \left (2 \cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {2739, 630, 31}
\begin {gather*} \frac {1}{3} \log \left (2 \cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )-\frac {1}{3} \log \left (\cos \left (\frac {x}{2}\right )-2 \sin \left (\frac {x}{2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 630
Rule 2739
Rubi steps
\begin {align*} \int \frac {1}{4-5 \sin (x)} \, dx &=2 \text {Subst}\left (\int \frac {1}{4-10 x+4 x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=\frac {4}{3} \text {Subst}\left (\int \frac {1}{-8+4 x} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {4}{3} \text {Subst}\left (\int \frac {1}{-2+4 x} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=-\frac {1}{3} \log \left (1-2 \tan \left (\frac {x}{2}\right )\right )+\frac {1}{3} \log \left (2-\tan \left (\frac {x}{2}\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 43, normalized size = 1.00 \begin {gather*} -\frac {1}{3} \log \left (\cos \left (\frac {x}{2}\right )-2 \sin \left (\frac {x}{2}\right )\right )+\frac {1}{3} \log \left (2 \cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 22, normalized size = 0.51
method | result | size |
default | \(-\frac {\ln \left (2 \tan \left (\frac {x}{2}\right )-1\right )}{3}+\frac {\ln \left (\tan \left (\frac {x}{2}\right )-2\right )}{3}\) | \(22\) |
norman | \(-\frac {\ln \left (2 \tan \left (\frac {x}{2}\right )-1\right )}{3}+\frac {\ln \left (\tan \left (\frac {x}{2}\right )-2\right )}{3}\) | \(22\) |
risch | \(\frac {\ln \left ({\mathrm e}^{i x}+\frac {3}{5}-\frac {4 i}{5}\right )}{3}-\frac {\ln \left ({\mathrm e}^{i x}-\frac {3}{5}-\frac {4 i}{5}\right )}{3}\) | \(26\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.09, size = 30, normalized size = 0.70 \begin {gather*} -\frac {1}{3} \, \log \left (\frac {2 \, \sin \left (x\right )}{\cos \left (x\right ) + 1} - 1\right ) + \frac {1}{3} \, \log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.63, size = 27, normalized size = 0.63 \begin {gather*} \frac {1}{6} \, \log \left (\frac {3}{2} \, \cos \left (x\right ) - 2 \, \sin \left (x\right ) + \frac {5}{2}\right ) - \frac {1}{6} \, \log \left (-\frac {3}{2} \, \cos \left (x\right ) - 2 \, \sin \left (x\right ) + \frac {5}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.10, size = 20, normalized size = 0.47 \begin {gather*} \frac {\log {\left (\tan {\left (\frac {x}{2} \right )} - 2 \right )}}{3} - \frac {\log {\left (2 \tan {\left (\frac {x}{2} \right )} - 1 \right )}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.06, size = 23, normalized size = 0.53 \begin {gather*} -\frac {1}{3} \, \log \left ({\left | 2 \, \tan \left (\frac {1}{2} \, x\right ) - 1 \right |}\right ) + \frac {1}{3} \, \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) - 2 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.40, size = 11, normalized size = 0.26 \begin {gather*} -\frac {2\,\mathrm {atanh}\left (\frac {4\,\mathrm {tan}\left (\frac {x}{2}\right )}{3}-\frac {5}{3}\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________