Optimal. Leaf size=21 \[ -\frac {1}{3} \log \left (4+3 \cot \left (\frac {\pi }{4}+\frac {x}{2}\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3202, 31}
\begin {gather*} -\frac {1}{3} \log \left (3 \cot \left (\frac {x}{2}+\frac {\pi }{4}\right )+4\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 3202
Rubi steps
\begin {align*} \int \frac {1}{4+3 \cos (x)+4 \sin (x)} \, dx &=-\text {Subst}\left (\int \frac {1}{4+3 x} \, dx,x,\cot \left (\frac {\pi }{4}+\frac {x}{2}\right )\right )\\ &=-\frac {1}{3} \log \left (4+3 \cot \left (\frac {\pi }{4}+\frac {x}{2}\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 39, normalized size = 1.86 \begin {gather*} \frac {1}{3} \log \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right )-\frac {1}{3} \log \left (7 \cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.88, size = 19, normalized size = 0.90 \begin {gather*} -\frac {\text {Log}\left [7+\text {Tan}\left [\frac {x}{2}\right ]\right ]}{3}+\frac {\text {Log}\left [1+\text {Tan}\left [\frac {x}{2}\right ]\right ]}{3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 20, normalized size = 0.95
method | result | size |
default | \(-\frac {\ln \left (\tan \left (\frac {x}{2}\right )+7\right )}{3}+\frac {\ln \left (1+\tan \left (\frac {x}{2}\right )\right )}{3}\) | \(20\) |
norman | \(-\frac {\ln \left (\tan \left (\frac {x}{2}\right )+7\right )}{3}+\frac {\ln \left (1+\tan \left (\frac {x}{2}\right )\right )}{3}\) | \(20\) |
risch | \(-\frac {\ln \left ({\mathrm e}^{i x}+\frac {24}{25}+\frac {7 i}{25}\right )}{3}+\frac {\ln \left ({\mathrm e}^{i x}+i\right )}{3}\) | \(25\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.24, size = 29, normalized size = 1.38 \begin {gather*} -\frac {1}{3} \, \log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} + 7\right ) + \frac {1}{3} \, \log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.32, size = 21, normalized size = 1.00 \begin {gather*} -\frac {1}{6} \, \log \left (24 \, \cos \left (x\right ) + 7 \, \sin \left (x\right ) + 25\right ) + \frac {1}{6} \, \log \left (\sin \left (x\right ) + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 19, normalized size = 0.90 \begin {gather*} \frac {\log {\left (\tan {\left (\frac {x}{2} \right )} + 1 \right )}}{3} - \frac {\log {\left (\tan {\left (\frac {x}{2} \right )} + 7 \right )}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 28, normalized size = 1.33 \begin {gather*} 2 \left (\frac {\ln \left |\tan \left (\frac {x}{2}\right )+1\right |}{6}-\frac {\ln \left |\tan \left (\frac {x}{2}\right )+7\right |}{6}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.41, size = 11, normalized size = 0.52 \begin {gather*} -\frac {2\,\mathrm {atanh}\left (\frac {\mathrm {tan}\left (\frac {x}{2}\right )}{3}+\frac {4}{3}\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________