Optimal. Leaf size=43 \[ \frac{1}{3} \sqrt{5 \cos ^2(3 x)+1} \sec (3 x)-\frac{1}{3} \sqrt{5} \sinh ^{-1}\left (\sqrt{5} \cos (3 x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0949236, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087, Rules used = {277, 215} \[ \frac{1}{3} \sqrt{5 \cos ^2(3 x)+1} \sec (3 x)-\frac{1}{3} \sqrt{5} \sinh ^{-1}\left (\sqrt{5} \cos (3 x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 277
Rule 215
Rubi steps
\begin{align*} \int \sqrt{1+5 \cos ^2(3 x)} \sec (3 x) \tan (3 x) \, dx &=-\left (\frac{1}{3} \operatorname{Subst}\left (\int \frac{\sqrt{1+5 x^2}}{x^2} \, dx,x,\cos (3 x)\right )\right )\\ &=\frac{1}{3} \sqrt{1+5 \cos ^2(3 x)} \sec (3 x)-\frac{5}{3} \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+5 x^2}} \, dx,x,\cos (3 x)\right )\\ &=-\frac{1}{3} \sqrt{5} \sinh ^{-1}\left (\sqrt{5} \cos (3 x)\right )+\frac{1}{3} \sqrt{1+5 \cos ^2(3 x)} \sec (3 x)\\ \end{align*}
Mathematica [A] time = 0.0573059, size = 43, normalized size = 1. \[ \frac{1}{3} \sqrt{5 \cos ^2(3 x)+1} \sec (3 x)-\frac{1}{3} \sqrt{5} \sinh ^{-1}\left (\sqrt{5} \cos (3 x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 66, normalized size = 1.5 \begin{align*} -{\frac{\sec \left ( 3\,x \right ) }{3}\sqrt{{\frac{ \left ( \sec \left ( 3\,x \right ) \right ) ^{2}+5}{ \left ( \sec \left ( 3\,x \right ) \right ) ^{2}}}} \left ( \sqrt{5}{\it Artanh} \left ({\sqrt{5}{\frac{1}{\sqrt{ \left ( \sec \left ( 3\,x \right ) \right ) ^{2}+5}}}} \right ) -\sqrt{ \left ( \sec \left ( 3\,x \right ) \right ) ^{2}+5} \right ){\frac{1}{\sqrt{ \left ( \sec \left ( 3\,x \right ) \right ) ^{2}+5}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46382, size = 47, normalized size = 1.09 \begin{align*} -\frac{1}{3} \, \sqrt{5} \operatorname{arsinh}\left (\sqrt{5} \cos \left (3 \, x\right )\right ) + \frac{\sqrt{5 \, \cos \left (3 \, x\right )^{2} + 1}}{3 \, \cos \left (3 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.76936, size = 354, normalized size = 8.23 \begin{align*} \frac{\sqrt{5} \cos \left (3 \, x\right ) \log \left (80000 \, \cos \left (3 \, x\right )^{8} + 32000 \, \cos \left (3 \, x\right )^{6} + 4000 \, \cos \left (3 \, x\right )^{4} + 160 \, \cos \left (3 \, x\right )^{2} - 8 \,{\left (2000 \, \sqrt{5} \cos \left (3 \, x\right )^{7} + 600 \, \sqrt{5} \cos \left (3 \, x\right )^{5} + 50 \, \sqrt{5} \cos \left (3 \, x\right )^{3} + \sqrt{5} \cos \left (3 \, x\right )\right )} \sqrt{5 \, \cos \left (3 \, x\right )^{2} + 1} + 1\right ) + 8 \, \sqrt{5 \, \cos \left (3 \, x\right )^{2} + 1}}{24 \, \cos \left (3 \, x\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 \sqrt{5 \cos ^{2}{\left (3 x \right )} + 1} \tan{\left (3 x \right )} \sec{\left (3 x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{5 \, \cos \left (3 \, x\right )^{2} + 1} \sec \left (3 \, x\right ) \tan \left (3 \, x\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]