Optimal. Leaf size=21 \[ \frac{1}{3} \log (\cos (x))-\frac{1}{24} \log \left (3-4 \cos ^2(x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.041225, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {4366, 446, 72} \[ \frac{1}{3} \log (\cos (x))-\frac{1}{24} \log \left (3-4 \cos ^2(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4366
Rule 446
Rule 72
Rubi steps
\begin{align*} \int \sec (3 x) \sin ^3(x) \, dx &=-\operatorname{Subst}\left (\int \frac{-1+x^2}{x \left (3-4 x^2\right )} \, dx,x,\cos (x)\right )\\ &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \frac{-1+x}{(3-4 x) x} \, dx,x,\cos ^2(x)\right )\right )\\ &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \left (-\frac{1}{3 x}+\frac{1}{3 (-3+4 x)}\right ) \, dx,x,\cos ^2(x)\right )\right )\\ &=\frac{1}{3} \log (\cos (x))-\frac{1}{24} \log \left (3-4 \cos ^2(x)\right )\\ \end{align*}
Mathematica [A] time = 0.0153123, size = 21, normalized size = 1. \[ \frac{1}{3} \log (\cos (x))-\frac{1}{24} \log \left (1-4 \sin ^2(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.053, size = 18, normalized size = 0.9 \begin{align*}{\frac{\ln \left ( \cos \left ( x \right ) \right ) }{3}}-{\frac{\ln \left ( 4\, \left ( \cos \left ( x \right ) \right ) ^{2}-3 \right ) }{24}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.4324, size = 109, normalized size = 5.19 \begin{align*} -\frac{1}{48} \, \log \left (-2 \,{\left (\cos \left (2 \, x\right ) - 1\right )} \cos \left (4 \, x\right ) + \cos \left (4 \, x\right )^{2} + \cos \left (2 \, x\right )^{2} + \sin \left (4 \, x\right )^{2} - 2 \, \sin \left (4 \, x\right ) \sin \left (2 \, x\right ) + \sin \left (2 \, x\right )^{2} - 2 \, \cos \left (2 \, x\right ) + 1\right ) + \frac{1}{6} \, \log \left (\cos \left (2 \, x\right )^{2} + \sin \left (2 \, x\right )^{2} + 2 \, \cos \left (2 \, x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.32023, size = 62, normalized size = 2.95 \begin{align*} -\frac{1}{24} \, \log \left (4 \, \cos \left (x\right )^{2} - 3\right ) + \frac{1}{3} \, \log \left (-\cos \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin ^{3}{\left (x \right )}}{\cos{\left (3 x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.1141, size = 120, normalized size = 5.71 \begin{align*} -\frac{1}{8} \, \log \left (-\frac{\cos \left (x\right ) + 1}{\cos \left (x\right ) - 1} - \frac{\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1} + 2\right ) + \frac{1}{6} \, \log \left (-\frac{\cos \left (x\right ) + 1}{\cos \left (x\right ) - 1} - \frac{\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1} - 2\right ) - \frac{1}{24} \, \log \left ({\left | -\frac{\cos \left (x\right ) + 1}{\cos \left (x\right ) - 1} - \frac{\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1} - 14 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]