Optimal. Leaf size=120 \[ -\frac{4 \log \left (2 \tan ^2(a+b x)-\left (1-\sqrt{5}\right ) \tan (a+b x)+2\right )}{5 \left (1-\sqrt{5}\right ) b}-\frac{4 \log \left (2 \tan ^2(a+b x)-\left (1+\sqrt{5}\right ) \tan (a+b x)+2\right )}{5 \left (1+\sqrt{5}\right ) b}+\frac{\log (\tan (a+b x)+1)}{5 b}+\frac{\log (\cos (a+b x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.701148, antiderivative size = 120, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 4, integrand size = 39, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {2074, 260, 2086, 628} \[ -\frac{4 \log \left (2 \tan ^2(a+b x)-\left (1-\sqrt{5}\right ) \tan (a+b x)+2\right )}{5 \left (1-\sqrt{5}\right ) b}-\frac{4 \log \left (2 \tan ^2(a+b x)-\left (1+\sqrt{5}\right ) \tan (a+b x)+2\right )}{5 \left (1+\sqrt{5}\right ) b}+\frac{\log (\tan (a+b x)+1)}{5 b}+\frac{\log (\cos (a+b x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2074
Rule 260
Rule 2086
Rule 628
Rubi steps
\begin{align*} \int \frac{\cos ^5(a+b x)-\sin ^5(a+b x)}{\cos ^5(a+b x)+\sin ^5(a+b x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1-x^5}{1+x^2+x^5+x^7} \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{1}{5 (1+x)}-\frac{x}{1+x^2}+\frac{2 \left (2+x-4 x^2+2 x^3\right )}{5 \left (1-x+x^2-x^3+x^4\right )}\right ) \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac{\log (1+\tan (a+b x))}{5 b}+\frac{2 \operatorname{Subst}\left (\int \frac{2+x-4 x^2+2 x^3}{1-x+x^2-x^3+x^4} \, dx,x,\tan (a+b x)\right )}{5 b}-\frac{\operatorname{Subst}\left (\int \frac{x}{1+x^2} \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac{\log (\cos (a+b x))}{b}+\frac{\log (1+\tan (a+b x))}{5 b}-\frac{2 \operatorname{Subst}\left (\int \frac{-2 \sqrt{5}+\left (10-2 \sqrt{5}\right ) x}{2+\left (-1-\sqrt{5}\right ) x+2 x^2} \, dx,x,\tan (a+b x)\right )}{5 \sqrt{5} b}+\frac{2 \operatorname{Subst}\left (\int \frac{2 \sqrt{5}+\left (10+2 \sqrt{5}\right ) x}{2+\left (-1+\sqrt{5}\right ) x+2 x^2} \, dx,x,\tan (a+b x)\right )}{5 \sqrt{5} b}\\ &=\frac{\log (\cos (a+b x))}{b}+\frac{\log (1+\tan (a+b x))}{5 b}-\frac{4 \log \left (2-\left (1-\sqrt{5}\right ) \tan (a+b x)+2 \tan ^2(a+b x)\right )}{5 \left (1-\sqrt{5}\right ) b}-\frac{4 \log \left (2-\left (1+\sqrt{5}\right ) \tan (a+b x)+2 \tan ^2(a+b x)\right )}{5 \left (1+\sqrt{5}\right ) b}\\ \end{align*}
Mathematica [A] time = 0.594612, size = 73, normalized size = 0.61 \[ \frac{-\left (\sqrt{5}-1\right ) \log \left (\sin (2 (a+b x))-\sqrt{5}+1\right )+\left (1+\sqrt{5}\right ) \log \left (\sin (2 (a+b x))+\sqrt{5}+1\right )+\log (\sin (a+b x)+\cos (a+b x))}{5 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.211, size = 184, normalized size = 1.5 \begin{align*}{\frac{\ln \left ( \tan \left ( bx+a \right ) \sqrt{5}+2\, \left ( \tan \left ( bx+a \right ) \right ) ^{2}-\tan \left ( bx+a \right ) +2 \right ) \sqrt{5}}{5\,b}}+{\frac{\ln \left ( \tan \left ( bx+a \right ) \sqrt{5}+2\, \left ( \tan \left ( bx+a \right ) \right ) ^{2}-\tan \left ( bx+a \right ) +2 \right ) }{5\,b}}-{\frac{\ln \left ( -\tan \left ( bx+a \right ) \sqrt{5}+2\, \left ( \tan \left ( bx+a \right ) \right ) ^{2}-\tan \left ( bx+a \right ) +2 \right ) \sqrt{5}}{5\,b}}+{\frac{\ln \left ( -\tan \left ( bx+a \right ) \sqrt{5}+2\, \left ( \tan \left ( bx+a \right ) \right ) ^{2}-\tan \left ( bx+a \right ) +2 \right ) }{5\,b}}+{\frac{\ln \left ( 1+\tan \left ( bx+a \right ) \right ) }{5\,b}}-{\frac{\ln \left ( 1+ \left ( \tan \left ( bx+a \right ) \right ) ^{2} \right ) }{2\,b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (b x + a\right )^{5} - \sin \left (b x + a\right )^{5}}{\cos \left (b x + a\right )^{5} + \sin \left (b x + a\right )^{5}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.41077, size = 405, normalized size = 3.38 \begin{align*} \frac{2 \, \sqrt{5} \log \left (-\frac{2 \, \cos \left (b x + a\right )^{4} - 2 \,{\left (\sqrt{5} + 1\right )} \cos \left (b x + a\right ) \sin \left (b x + a\right ) - 2 \, \cos \left (b x + a\right )^{2} - \sqrt{5} - 3}{\cos \left (b x + a\right )^{4} - \cos \left (b x + a\right )^{2} - \cos \left (b x + a\right ) \sin \left (b x + a\right ) + 1}\right ) + 2 \, \log \left (\cos \left (b x + a\right )^{4} - \cos \left (b x + a\right )^{2} - \cos \left (b x + a\right ) \sin \left (b x + a\right ) + 1\right ) + \log \left (2 \, \cos \left (b x + a\right ) \sin \left (b x + a\right ) + 1\right )}{10 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.25929, size = 173, normalized size = 1.44 \begin{align*} -\frac{2 \, \sqrt{5} \log \left (-\frac{1}{2} \,{\left (\sqrt{5} + 1\right )} \tan \left (b x + a\right ) + \tan \left (b x + a\right )^{2} + 1\right ) - 2 \, \sqrt{5} \log \left (\frac{1}{2} \,{\left (\sqrt{5} - 1\right )} \tan \left (b x + a\right ) + \tan \left (b x + a\right )^{2} + 1\right ) - 2 \, \log \left (\tan \left (b x + a\right )^{4} - \tan \left (b x + a\right )^{3} + \tan \left (b x + a\right )^{2} - \tan \left (b x + a\right ) + 1\right ) + 5 \, \log \left (\tan \left (b x + a\right )^{2} + 1\right ) - 2 \, \log \left ({\left | \tan \left (b x + a\right ) + 1 \right |}\right )}{10 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]