Optimal. Leaf size=49 \[ 2 \sqrt {2} \sin ^{-1}\left (\sqrt {2} \sin (x)\right )-\frac {5}{2} \tan ^{-1}\left (\frac {\sin (x)}{\sqrt {\cos (2 x)}}\right )-\frac {1}{2} \sqrt {\cos (2 x)} \sec (x) \tan (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.462, Rules used = {4449, 424, 537,
222, 385, 209} \begin {gather*} 2 \sqrt {2} \text {ArcSin}\left (\sqrt {2} \sin (x)\right )-\frac {5}{2} \text {ArcTan}\left (\frac {\sin (x)}{\sqrt {\cos (2 x)}}\right )-\frac {1}{2} \sqrt {\cos (2 x)} \tan (x) \sec (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 222
Rule 385
Rule 424
Rule 537
Rule 4449
Rubi steps
\begin {align*} \int \cos ^{\frac {3}{2}}(2 x) \sec ^3(x) \, dx &=\text {Subst}\left (\int \frac {\left (1-2 x^2\right )^{3/2}}{\left (1-x^2\right )^2} \, dx,x,\sin (x)\right )\\ &=-\frac {1}{2} \sqrt {\cos (2 x)} \sec (x) \tan (x)-\frac {1}{2} \text {Subst}\left (\int \frac {-3+8 x^2}{\sqrt {1-2 x^2} \left (1-x^2\right )} \, dx,x,\sin (x)\right )\\ &=-\frac {1}{2} \sqrt {\cos (2 x)} \sec (x) \tan (x)-\frac {5}{2} \text {Subst}\left (\int \frac {1}{\sqrt {1-2 x^2} \left (1-x^2\right )} \, dx,x,\sin (x)\right )+4 \text {Subst}\left (\int \frac {1}{\sqrt {1-2 x^2}} \, dx,x,\sin (x)\right )\\ &=2 \sqrt {2} \sin ^{-1}\left (\sqrt {2} \sin (x)\right )-\frac {1}{2} \sqrt {\cos (2 x)} \sec (x) \tan (x)-\frac {5}{2} \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {\sin (x)}{\sqrt {\cos (2 x)}}\right )\\ &=2 \sqrt {2} \sin ^{-1}\left (\sqrt {2} \sin (x)\right )-\frac {5}{2} \tan ^{-1}\left (\frac {\sin (x)}{\sqrt {\cos (2 x)}}\right )-\frac {1}{2} \sqrt {\cos (2 x)} \sec (x) \tan (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 49, normalized size = 1.00 \begin {gather*} \frac {1}{2} \left (4 \sqrt {2} \sin ^{-1}\left (\sqrt {2} \sin (x)\right )-5 \tan ^{-1}\left (\frac {\sin (x)}{\sqrt {\cos (2 x)}}\right )-\sqrt {\cos (2 x)} \sec (x) \tan (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(99\) vs.
\(2(37)=74\).
time = 0.16, size = 100, normalized size = 2.04
method | result | size |
default | \(-\frac {\sqrt {\left (2 \left (\cos ^{2}\left (x \right )\right )-1\right ) \left (\sin ^{2}\left (x \right )\right )}\, \left (4 \sqrt {2}\, \arcsin \left (4 \left (\cos ^{2}\left (x \right )\right )-3\right ) \left (\cos ^{2}\left (x \right )\right )-5 \arctan \left (\frac {3 \left (\cos ^{2}\left (x \right )\right )-2}{2 \sqrt {-2 \left (\sin ^{4}\left (x \right )\right )+\sin ^{2}\left (x \right )}}\right ) \left (\cos ^{2}\left (x \right )\right )+2 \sqrt {-2 \left (\sin ^{4}\left (x \right )\right )+\sin ^{2}\left (x \right )}\right )}{4 \cos \left (x \right )^{2} \sin \left (x \right ) \sqrt {2 \left (\cos ^{2}\left (x \right )\right )-1}}\) | \(100\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \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. 118 vs.
\(2 (37) = 74\).
time = 1.62, size = 118, normalized size = 2.41 \begin {gather*} -\frac {2 \, \sqrt {2} \arctan \left (\frac {{\left (32 \, \sqrt {2} \cos \left (x\right )^{4} - 48 \, \sqrt {2} \cos \left (x\right )^{2} + 17 \, \sqrt {2}\right )} \sqrt {2 \, \cos \left (x\right )^{2} - 1}}{8 \, {\left (8 \, \cos \left (x\right )^{4} - 10 \, \cos \left (x\right )^{2} + 3\right )} \sin \left (x\right )}\right ) \cos \left (x\right )^{2} - 5 \, \arctan \left (\frac {3 \, \cos \left (x\right )^{2} - 2}{2 \, \sqrt {2 \, \cos \left (x\right )^{2} - 1} \sin \left (x\right )}\right ) \cos \left (x\right )^{2} + 2 \, \sqrt {2 \, \cos \left (x\right )^{2} - 1} \sin \left (x\right )}{4 \, \cos \left (x\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\cos \left (2\,x\right )}^{3/2}}{{\cos \left (x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________