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.70, antiderivative size = 120, normalized size of antiderivative = 1.00, 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 260
Rule 628
Rule 2074
Rule 2086
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.57, 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]
________________________________________________________________________________________
fricas [A] time = 0.89, size = 150, normalized size = 1.25 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.53, size = 128, normalized size = 1.07 \[ -\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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.74, size = 184, normalized size = 1.53 \[ \frac {\ln \left (\tan \left (b x +a \right ) \sqrt {5}+2 \left (\tan ^{2}\left (b x +a \right )\right )-\tan \left (b x +a \right )+2\right ) \sqrt {5}}{5 b}+\frac {\ln \left (\tan \left (b x +a \right ) \sqrt {5}+2 \left (\tan ^{2}\left (b x +a \right )\right )-\tan \left (b x +a \right )+2\right )}{5 b}-\frac {\ln \left (-\tan \left (b x +a \right ) \sqrt {5}+2 \left (\tan ^{2}\left (b x +a \right )\right )-\tan \left (b x +a \right )+2\right ) \sqrt {5}}{5 b}+\frac {\ln \left (-\tan \left (b x +a \right ) \sqrt {5}+2 \left (\tan ^{2}\left (b x +a \right )\right )-\tan \left (b x +a \right )+2\right )}{5 b}-\frac {\ln \left (1+\tan ^{2}\left (b x +a \right )\right )}{2 b}+\frac {\ln \left (1+\tan \left (b x +a \right )\right )}{5 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.22, size = 226, normalized size = 1.88 \[ \frac {\ln \left ({\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^2-2\,\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )-1\right )}{5\,b}-\frac {\ln \left ({\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^2+1\right )}{b}+\frac {\ln \left (2\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^2-\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )+{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^3+{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^4+\sqrt {5}\,\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )-\sqrt {5}\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^3+1\right )\,\left (\sqrt {5}+1\right )}{5\,b}-\frac {\ln \left (2\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^2-\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )+{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^3+{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^4-\sqrt {5}\,\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )+\sqrt {5}\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^3+1\right )\,\left (\sqrt {5}-1\right )}{5\,b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________