Optimal. Leaf size=13 \[ -2 \log \left (\cos \left (\frac{1}{4} (2 x+\pi )\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0056346, antiderivative size = 9, normalized size of antiderivative = 0.69, number of steps used = 3, number of rules used = 2, integrand size = 5, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {3770, 3475} \[ \tanh ^{-1}(\sin (x))-\log (\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3770
Rule 3475
Rubi steps
\begin{align*} \int (\sec (x)+\tan (x)) \, dx &=\int \sec (x) \, dx+\int \tan (x) \, dx\\ &=\tanh ^{-1}(\sin (x))-\log (\cos (x))\\ \end{align*}
Mathematica [B] time = 0.0052144, size = 38, normalized size = 2.92 \[ -\log (\cos (x))-\log \left (\cos \left (\frac{x}{2}\right )-\sin \left (\frac{x}{2}\right )\right )+\log \left (\sin \left (\frac{x}{2}\right )+\cos \left (\frac{x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.001, size = 13, normalized size = 1. \begin{align*} \ln \left ( \sec \left ( x \right ) +\tan \left ( x \right ) \right ) -\ln \left ( \cos \left ( x \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.967093, size = 14, normalized size = 1.08 \begin{align*} \log \left (\sec \left (x\right ) + \tan \left (x\right )\right ) + \log \left (\sec \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.05595, size = 26, normalized size = 2. \begin{align*} -\log \left (-\sin \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.112976, size = 20, normalized size = 1.54 \begin{align*} - \frac{\log{\left (\sin{\left (x \right )} - 1 \right )}}{2} + \frac{\log{\left (\sin{\left (x \right )} + 1 \right )}}{2} - \log{\left (\cos{\left (x \right )} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.17835, size = 42, normalized size = 3.23 \begin{align*} \frac{1}{4} \, \log \left ({\left | \frac{1}{\sin \left (x\right )} + \sin \left (x\right ) + 2 \right |}\right ) - \frac{1}{4} \, \log \left ({\left | \frac{1}{\sin \left (x\right )} + \sin \left (x\right ) - 2 \right |}\right ) - \log \left ({\left | \cos \left (x\right ) \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]