Optimal. Leaf size=5 \[ \log (1+\sin (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2746, 31}
\begin {gather*} \log (\sin (x)+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2746
Rubi steps
\begin {align*} \int \sec (x) (1-\sin (x)) \, dx &=-\text {Subst}\left (\int \frac {1}{1-x} \, dx,x,-\sin (x)\right )\\ &=\log (1+\sin (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(36\) vs. \(2(5)=10\).
time = 0.01, size = 36, normalized size = 7.20 \begin {gather*} \log (\cos (x))-\log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+\log \left (\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.04, size = 6, normalized size = 1.20
method | result | size |
derivativedivides | \(\ln \left (\sin \left (x \right )+1\right )\) | \(6\) |
default | \(\ln \left (\sin \left (x \right )+1\right )\) | \(6\) |
risch | \(-i x +2 \ln \left ({\mathrm e}^{i x}+i\right )\) | \(17\) |
norman | \(2 \ln \left (1+\tan \left (\frac {x}{2}\right )\right )-\ln \left (1+\tan ^{2}\left (\frac {x}{2}\right )\right )\) | \(22\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.09, size = 5, normalized size = 1.00 \begin {gather*} \log \left (\sin \left (x\right ) + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.96, size = 5, normalized size = 1.00 \begin {gather*} \log \left (\sin \left (x\right ) + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 19 vs.
\(2 (5) = 10\).
time = 0.12, size = 19, normalized size = 3.80 \begin {gather*} 2 \log {\left (\tan {\left (\frac {x}{2} \right )} + 1 \right )} - \log {\left (\tan ^{2}{\left (\frac {x}{2} \right )} + 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.13, size = 5, normalized size = 1.00 \begin {gather*} \log \left (\sin \left (x\right ) + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.17, size = 5, normalized size = 1.00 \begin {gather*} \ln \left (\sin \left (x\right )+1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________