Optimal. Leaf size=9 \[ \frac{1}{2} \tanh ^{-1}(2 \sin (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0224052, antiderivative size = 9, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {206} \[ \frac{1}{2} \tanh ^{-1}(2 \sin (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rubi steps
\begin{align*} \int \cos ^2(x) \sec (3 x) \, dx &=\operatorname{Subst}\left (\int \frac{1}{1-4 x^2} \, dx,x,\sin (x)\right )\\ &=\frac{1}{2} \tanh ^{-1}(2 \sin (x))\\ \end{align*}
Mathematica [A] time = 0.0066682, size = 9, normalized size = 1. \[ \frac{1}{2} \tanh ^{-1}(2 \sin (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.04, size = 20, normalized size = 2.2 \begin{align*} -{\frac{\ln \left ( 2\,\sin \left ( x \right ) -1 \right ) }{4}}+{\frac{\ln \left ( 1+2\,\sin \left ( x \right ) \right ) }{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (x\right )^{2}}{\cos \left (3 \, x\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.19179, size = 65, normalized size = 7.22 \begin{align*} \frac{1}{4} \, \log \left (2 \, \sin \left (x\right ) + 1\right ) - \frac{1}{4} \, \log \left (-2 \, \sin \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 6.42523, size = 76, normalized size = 8.44 \begin{align*} - \frac{\log{\left (\sin{\left (3 x \right )} - 1 \right )}}{12} + \frac{\log{\left (\sin{\left (3 x \right )} + 1 \right )}}{12} - \frac{\log{\left (\tan{\left (\frac{x}{2} \right )} - 1 \right )}}{6} + \frac{\log{\left (\tan{\left (\frac{x}{2} \right )} + 1 \right )}}{6} - \frac{\log{\left (\tan ^{2}{\left (\frac{x}{2} \right )} - 4 \tan{\left (\frac{x}{2} \right )} + 1 \right )}}{12} + \frac{\log{\left (\tan ^{2}{\left (\frac{x}{2} \right )} + 4 \tan{\left (\frac{x}{2} \right )} + 1 \right )}}{12} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.10587, size = 28, normalized size = 3.11 \begin{align*} \frac{1}{4} \, \log \left ({\left | 2 \, \sin \left (x\right ) + 1 \right |}\right ) - \frac{1}{4} \, \log \left ({\left | 2 \, \sin \left (x\right ) - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]