Optimal. Leaf size=15 \[ \frac {1}{4} \log \left (3+4 \tan \left (\frac {x}{2}\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 15, 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 = {3203, 31}
\begin {gather*} \frac {1}{4} \log \left (4 \tan \left (\frac {x}{2}\right )+3\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 3203
Rubi steps
\begin {align*} \int \frac {1}{3+3 \cos (x)+4 \sin (x)} \, dx &=2 \text {Subst}\left (\int \frac {1}{6+8 x} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=\frac {1}{4} \log \left (3+4 \tan \left (\frac {x}{2}\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(34\) vs. \(2(15)=30\).
time = 0.01, size = 34, normalized size = 2.27 \begin {gather*} -\frac {1}{4} \log \left (\cos \left (\frac {x}{2}\right )\right )+\frac {1}{4} \log \left (3 \cos \left (\frac {x}{2}\right )+4 \sin \left (\frac {x}{2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.75, size = 11, normalized size = 0.73 \begin {gather*} \frac {\text {Log}\left [3+4 \text {Tan}\left [\frac {x}{2}\right ]\right ]}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 12, normalized size = 0.80
method | result | size |
default | \(\frac {\ln \left (3+4 \tan \left (\frac {x}{2}\right )\right )}{4}\) | \(12\) |
norman | \(\frac {\ln \left (6+8 \tan \left (\frac {x}{2}\right )\right )}{4}\) | \(12\) |
risch | \(-\frac {\ln \left (1+{\mathrm e}^{i x}\right )}{4}+\frac {\ln \left ({\mathrm e}^{i x}-\frac {7}{25}+\frac {24 i}{25}\right )}{4}\) | \(24\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.24, size = 15, normalized size = 1.00 \begin {gather*} \frac {1}{4} \, \log \left (\frac {4 \, \sin \left (x\right )}{\cos \left (x\right ) + 1} + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 23 vs.
\(2 (11) = 22\).
time = 0.33, size = 23, normalized size = 1.53 \begin {gather*} -\frac {1}{8} \, \log \left (\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right ) + \frac {1}{8} \, \log \left (-\frac {7}{2} \, \cos \left (x\right ) + 12 \, \sin \left (x\right ) + \frac {25}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 10, normalized size = 0.67 \begin {gather*} \frac {\log {\left (4 \tan {\left (\frac {x}{2} \right )} + 3 \right )}}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 15, normalized size = 1.00 \begin {gather*} \frac {2}{8} \ln \left |4 \tan \left (\frac {x}{2}\right )+3\right | \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 11, normalized size = 0.73 \begin {gather*} \frac {\ln \left (4\,\mathrm {tan}\left (\frac {x}{2}\right )+3\right )}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________