Optimal. Leaf size=61 \[ -\frac {1}{16} \sin ^{-1}(\cos (x)-\sin (x))-\frac {1}{16} \log \left (\cos (x)+\sin (x)+\sqrt {\sin (2 x)}\right )-\frac {\cos ^5(x)}{5 \sin ^{\frac {5}{2}}(2 x)}+\frac {\cos (x)}{4 \sqrt {\sin (2 x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {4378, 4392,
4391} \begin {gather*} -\frac {1}{16} \text {ArcSin}(\cos (x)-\sin (x))-\frac {\cos ^5(x)}{5 \sin ^{\frac {5}{2}}(2 x)}+\frac {\cos (x)}{4 \sqrt {\sin (2 x)}}-\frac {1}{16} \log \left (\sin (x)+\sqrt {\sin (2 x)}+\cos (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4378
Rule 4391
Rule 4392
Rubi steps
\begin {align*} \int \frac {\cos ^7(x)}{\sin ^{\frac {7}{2}}(2 x)} \, dx &=-\frac {\cos ^5(x)}{5 \sin ^{\frac {5}{2}}(2 x)}-\frac {1}{4} \int \frac {\cos ^3(x)}{\sin ^{\frac {3}{2}}(2 x)} \, dx\\ &=-\frac {\cos ^5(x)}{5 \sin ^{\frac {5}{2}}(2 x)}+\frac {\cos (x)}{4 \sqrt {\sin (2 x)}}+\frac {1}{16} \int \sec (x) \sqrt {\sin (2 x)} \, dx\\ &=-\frac {\cos ^5(x)}{5 \sin ^{\frac {5}{2}}(2 x)}+\frac {\cos (x)}{4 \sqrt {\sin (2 x)}}+\frac {1}{8} \int \frac {\sin (x)}{\sqrt {\sin (2 x)}} \, dx\\ &=-\frac {1}{16} \sin ^{-1}(\cos (x)-\sin (x))-\frac {1}{16} \log \left (\cos (x)+\sin (x)+\sqrt {\sin (2 x)}\right )-\frac {\cos ^5(x)}{5 \sin ^{\frac {5}{2}}(2 x)}+\frac {\cos (x)}{4 \sqrt {\sin (2 x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 56, normalized size = 0.92 \begin {gather*} \frac {1}{16} \left (-\sin ^{-1}(\cos (x)-\sin (x))-\log \left (\cos (x)+\sin (x)+\sqrt {\sin (2 x)}\right )\right )+\left (\frac {3 \csc (x)}{20}-\frac {\csc ^3(x)}{40}\right ) \sqrt {\sin (2 x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 0.16, size = 1108, normalized size = 18.16
method | result | size |
default | \(\text {Expression too large to display}\) | \(1108\) |
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. 205 vs.
\(2 (47) = 94\).
time = 1.25, size = 205, normalized size = 3.36 \begin {gather*} \frac {10 \, {\left (\cos \left (x\right )^{2} - 1\right )} \arctan \left (-\frac {\sqrt {2} \sqrt {\cos \left (x\right ) \sin \left (x\right )} {\left (\cos \left (x\right ) - \sin \left (x\right )\right )} + \cos \left (x\right ) \sin \left (x\right )}{\cos \left (x\right )^{2} + 2 \, \cos \left (x\right ) \sin \left (x\right ) - 1}\right ) \sin \left (x\right ) - 10 \, {\left (\cos \left (x\right )^{2} - 1\right )} \arctan \left (-\frac {2 \, \sqrt {2} \sqrt {\cos \left (x\right ) \sin \left (x\right )} - \cos \left (x\right ) - \sin \left (x\right )}{\cos \left (x\right ) - \sin \left (x\right )}\right ) \sin \left (x\right ) + 5 \, {\left (\cos \left (x\right )^{2} - 1\right )} \log \left (-32 \, \cos \left (x\right )^{4} + 4 \, \sqrt {2} {\left (4 \, \cos \left (x\right )^{3} - {\left (4 \, \cos \left (x\right )^{2} + 1\right )} \sin \left (x\right ) - 5 \, \cos \left (x\right )\right )} \sqrt {\cos \left (x\right ) \sin \left (x\right )} + 32 \, \cos \left (x\right )^{2} + 16 \, \cos \left (x\right ) \sin \left (x\right ) + 1\right ) \sin \left (x\right ) + 8 \, \sqrt {2} {\left (6 \, \cos \left (x\right )^{2} - 5\right )} \sqrt {\cos \left (x\right ) \sin \left (x\right )} + 48 \, {\left (\cos \left (x\right )^{2} - 1\right )} \sin \left (x\right )}{320 \, {\left (\cos \left (x\right )^{2} - 1\right )} \sin \left (x\right )} \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 (x\right )}^7}{{\sin \left (2\,x\right )}^{7/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________