Optimal. Leaf size=50 \[ -\frac{\cos (x)-\sin (x)}{15 (\sin (x)+\cos (x))^3}-\frac{\cos (x)-\sin (x)}{10 (\sin (x)+\cos (x))^5}+\frac{2 \sin (x)}{15 (\sin (x)+\cos (x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.026043, antiderivative size = 50, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {3076, 3075} \[ -\frac{\cos (x)-\sin (x)}{15 (\sin (x)+\cos (x))^3}-\frac{\cos (x)-\sin (x)}{10 (\sin (x)+\cos (x))^5}+\frac{2 \sin (x)}{15 (\sin (x)+\cos (x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3076
Rule 3075
Rubi steps
\begin{align*} \int \frac{1}{(\cos (x)+\sin (x))^6} \, dx &=-\frac{\cos (x)-\sin (x)}{10 (\cos (x)+\sin (x))^5}+\frac{2}{5} \int \frac{1}{(\cos (x)+\sin (x))^4} \, dx\\ &=-\frac{\cos (x)-\sin (x)}{10 (\cos (x)+\sin (x))^5}-\frac{\cos (x)-\sin (x)}{15 (\cos (x)+\sin (x))^3}+\frac{2}{15} \int \frac{1}{(\cos (x)+\sin (x))^2} \, dx\\ &=-\frac{\cos (x)-\sin (x)}{10 (\cos (x)+\sin (x))^5}-\frac{\cos (x)-\sin (x)}{15 (\cos (x)+\sin (x))^3}+\frac{2 \sin (x)}{15 (\cos (x)+\sin (x))}\\ \end{align*}
Mathematica [A] time = 0.0327017, size = 26, normalized size = 0.52 \[ -\frac{-10 \sin (x)+\sin (5 x)+5 \cos (3 x)}{30 (\sin (x)+\cos (x))^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.063, size = 42, normalized size = 0.8 \begin{align*} 2\, \left ( 1+\tan \left ( x \right ) \right ) ^{-4}- \left ( 1+\tan \left ( x \right ) \right ) ^{-1}-{\frac{8}{3\, \left ( 1+\tan \left ( x \right ) \right ) ^{3}}}+2\, \left ( 1+\tan \left ( x \right ) \right ) ^{-2}-{\frac{4}{5\, \left ( 1+\tan \left ( x \right ) \right ) ^{5}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.979376, size = 76, normalized size = 1.52 \begin{align*} -\frac{15 \, \tan \left (x\right )^{4} + 30 \, \tan \left (x\right )^{3} + 40 \, \tan \left (x\right )^{2} + 20 \, \tan \left (x\right ) + 7}{15 \,{\left (\tan \left (x\right )^{5} + 5 \, \tan \left (x\right )^{4} + 10 \, \tan \left (x\right )^{3} + 10 \, \tan \left (x\right )^{2} + 5 \, \tan \left (x\right ) + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.12067, size = 198, normalized size = 3.96 \begin{align*} -\frac{8 \, \cos \left (x\right )^{5} - 20 \, \cos \left (x\right )^{3} -{\left (8 \, \cos \left (x\right )^{4} + 4 \, \cos \left (x\right )^{2} - 7\right )} \sin \left (x\right ) + 5 \, \cos \left (x\right )}{30 \,{\left (4 \, \cos \left (x\right )^{5} +{\left (4 \, \cos \left (x\right )^{4} - 8 \, \cos \left (x\right )^{2} - 1\right )} \sin \left (x\right ) - 5 \, \cos \left (x\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 11.3954, size = 925, normalized size = 18.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10987, size = 43, normalized size = 0.86 \begin{align*} -\frac{15 \, \tan \left (x\right )^{4} + 30 \, \tan \left (x\right )^{3} + 40 \, \tan \left (x\right )^{2} + 20 \, \tan \left (x\right ) + 7}{15 \,{\left (\tan \left (x\right ) + 1\right )}^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]