Optimal. Leaf size=8 \[ \log (\cos (t))+t \tan (t) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 8, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {4269, 3556}
\begin {gather*} t \tan (t)+\log (\cos (t)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rule 4269
Rubi steps
\begin {align*} \int t \sec ^2(t) \, dt &=t \tan (t)-\int \tan (t) \, dt\\ &=\log (\cos (t))+t \tan (t)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 8, normalized size = 1.00 \begin {gather*} \log (\cos (t))+t \tan (t) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [B] Leaf count is larger than twice the leaf count of optimal. \(121\) vs. \(2(8)=16\).
time = 4.45, size = 105, normalized size = 13.12 \begin {gather*} \frac {t \left (-1+\text {Tan}\left [\frac {t}{2}\right ]^2\right ) \text {Sin}\left [t\right ]+\frac {\left (-1+\text {Cos}\left [t\right ]\right ) \left (-1+\text {Tan}\left [\frac {t}{2}\right ]^2\right ) \left (\text {Log}\left [-1+\text {Tan}\left [\frac {t}{2}\right ]\right ]+\text {Log}\left [1+\text {Tan}\left [\frac {t}{2}\right ]\right ]\right )}{2}+\text {Cos}\left [t\right ] \left (\text {Log}\left [\frac {2}{1+\text {Cos}\left [t\right ]}\right ]-\text {Log}\left [-1+\text {Tan}\left [\frac {t}{2}\right ]\right ]-\text {Log}\left [1+\text {Tan}\left [\frac {t}{2}\right ]\right ]-\text {Log}\left [\frac {2}{1+\text {Cos}\left [t\right ]}\right ] \text {Tan}\left [\frac {t}{2}\right ]^2\right )}{\text {Cos}\left [t\right ] \left (-1+\text {Tan}\left [\frac {t}{2}\right ]^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 9, normalized size = 1.12
method | result | size |
default | \(\ln \left (\cos \left (t \right )\right )+t \tan \left (t \right )\) | \(9\) |
risch | \(-2 i t +\frac {2 i t}{{\mathrm e}^{2 i t}+1}+\ln \left ({\mathrm e}^{2 i t}+1\right )\) | \(27\) |
norman | \(-\frac {2 t \tan \left (\frac {t}{2}\right )}{\tan ^{2}\left (\frac {t}{2}\right )-1}-\ln \left (1+\tan ^{2}\left (\frac {t}{2}\right )\right )+\ln \left (\tan \left (\frac {t}{2}\right )-1\right )+\ln \left (\tan \left (\frac {t}{2}\right )+1\right )\) | \(44\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 74 vs.
\(2 (8) = 16\).
time = 0.35, size = 74, normalized size = 9.25 \begin {gather*} \frac {{\left (\cos \left (2 \, t\right )^{2} + \sin \left (2 \, t\right )^{2} + 2 \, \cos \left (2 \, t\right ) + 1\right )} \log \left (\cos \left (2 \, t\right )^{2} + \sin \left (2 \, t\right )^{2} + 2 \, \cos \left (2 \, t\right ) + 1\right ) + 4 \, t \sin \left (2 \, t\right )}{2 \, {\left (\cos \left (2 \, t\right )^{2} + \sin \left (2 \, t\right )^{2} + 2 \, \cos \left (2 \, t\right ) + 1\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. 18 vs.
\(2 (8) = 16\).
time = 0.34, size = 18, normalized size = 2.25 \begin {gather*} \frac {\cos \left (t\right ) \log \left (-\cos \left (t\right )\right ) + t \sin \left (t\right )}{\cos \left (t\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int t \sec ^{2}{\left (t \right )}\, dt \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 103 vs.
\(2 (8) = 16\).
time = 0.01, size = 116, normalized size = 14.50 \begin {gather*} \frac {-4 t \tan \left (\frac {t}{2}\right )+\ln \left (\frac {4 \tan ^{4}\left (\frac {t}{2}\right )-8 \tan ^{2}\left (\frac {t}{2}\right )+4}{\tan ^{4}\left (\frac {t}{2}\right )+2 \tan ^{2}\left (\frac {t}{2}\right )+1}\right ) \tan ^{2}\left (\frac {t}{2}\right )-\ln \left (\frac {4 \tan ^{4}\left (\frac {t}{2}\right )-8 \tan ^{2}\left (\frac {t}{2}\right )+4}{\tan ^{4}\left (\frac {t}{2}\right )+2 \tan ^{2}\left (\frac {t}{2}\right )+1}\right )}{2 \tan ^{2}\left (\frac {t}{2}\right )-2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.02, size = 8, normalized size = 1.00 \begin {gather*} \ln \left (\cos \left (t\right )\right )+t\,\mathrm {tan}\left (t\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________