Optimal. Leaf size=108 \[ -\frac {523}{256} \tanh ^{-1}(\sin (x))+\frac {1483 \tanh ^{-1}\left (\sqrt {2} \sin (x)\right )}{512 \sqrt {2}}+\frac {\sin (x)}{32 \left (1-2 \sin ^2(x)\right )^4}-\frac {17 \sin (x)}{192 \left (1-2 \sin ^2(x)\right )^3}+\frac {203 \sin (x)}{768 \left (1-2 \sin ^2(x)\right )^2}-\frac {437 \sin (x)}{512 \left (1-2 \sin ^2(x)\right )}-\frac {43}{256} \sec (x) \tan (x)-\frac {1}{128} \sec ^3(x) \tan (x) \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(786\) vs. \(2(108)=216\).
time = 0.75, antiderivative size = 786, normalized size of antiderivative = 7.28, number of steps
used = 45, number of rules used = 7, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.778, Rules used = {12, 2098, 213,
652, 628, 632, 212} \begin {gather*} \frac {451 \left (\tan \left (\frac {x}{2}\right )+1\right )}{512 \left (-\tan ^2\left (\frac {x}{2}\right )-2 \tan \left (\frac {x}{2}\right )+1\right )}-\frac {15 \tan \left (\frac {x}{2}\right )+89}{64 \left (-\tan ^2\left (\frac {x}{2}\right )-2 \tan \left (\frac {x}{2}\right )+1\right )}+\frac {89-15 \tan \left (\frac {x}{2}\right )}{64 \left (-\tan ^2\left (\frac {x}{2}\right )+2 \tan \left (\frac {x}{2}\right )+1\right )}-\frac {451 \left (1-\tan \left (\frac {x}{2}\right )\right )}{512 \left (-\tan ^2\left (\frac {x}{2}\right )+2 \tan \left (\frac {x}{2}\right )+1\right )}-\frac {1-43 \tan \left (\frac {x}{2}\right )}{32 \left (-\tan ^2\left (\frac {x}{2}\right )-2 \tan \left (\frac {x}{2}\right )+1\right )^2}-\frac {65 \left (\tan \left (\frac {x}{2}\right )+1\right )}{384 \left (-\tan ^2\left (\frac {x}{2}\right )-2 \tan \left (\frac {x}{2}\right )+1\right )^2}+\frac {65 \left (1-\tan \left (\frac {x}{2}\right )\right )}{384 \left (-\tan ^2\left (\frac {x}{2}\right )+2 \tan \left (\frac {x}{2}\right )+1\right )^2}+\frac {43 \tan \left (\frac {x}{2}\right )+1}{32 \left (-\tan ^2\left (\frac {x}{2}\right )+2 \tan \left (\frac {x}{2}\right )+1\right )^2}+\frac {119 \left (\tan \left (\frac {x}{2}\right )+1\right )}{48 \left (-\tan ^2\left (\frac {x}{2}\right )-2 \tan \left (\frac {x}{2}\right )+1\right )^3}-\frac {11 \left (3 \tan \left (\frac {x}{2}\right )+1\right )}{12 \left (-\tan ^2\left (\frac {x}{2}\right )-2 \tan \left (\frac {x}{2}\right )+1\right )^3}+\frac {11 \left (1-3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (-\tan ^2\left (\frac {x}{2}\right )+2 \tan \left (\frac {x}{2}\right )+1\right )^3}-\frac {119 \left (1-\tan \left (\frac {x}{2}\right )\right )}{48 \left (-\tan ^2\left (\frac {x}{2}\right )+2 \tan \left (\frac {x}{2}\right )+1\right )^3}-\frac {7-17 \tan \left (\frac {x}{2}\right )}{4 \left (-\tan ^2\left (\frac {x}{2}\right )-2 \tan \left (\frac {x}{2}\right )+1\right )^4}+\frac {17 \tan \left (\frac {x}{2}\right )+7}{4 \left (-\tan ^2\left (\frac {x}{2}\right )+2 \tan \left (\frac {x}{2}\right )+1\right )^4}+\frac {45}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )}-\frac {45}{256 \left (\tan \left (\frac {x}{2}\right )+1\right )}-\frac {47}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )^2}+\frac {47}{256 \left (\tan \left (\frac {x}{2}\right )+1\right )^2}+\frac {1}{64 \left (1-\tan \left (\frac {x}{2}\right )\right )^3}-\frac {1}{64 \left (\tan \left (\frac {x}{2}\right )+1\right )^3}-\frac {1}{128 \left (1-\tan \left (\frac {x}{2}\right )\right )^4}+\frac {1}{128 \left (\tan \left (\frac {x}{2}\right )+1\right )^4}-\frac {523}{256} \tanh ^{-1}(\sin (x))-\frac {1483 \log \left (-\sqrt {2} \sin (x)-\sin (x)+\sqrt {2} \cos (x)+\cos (x)+\sqrt {2}+2\right )}{2048 \sqrt {2}}-\frac {1483 \log \left (-\sqrt {2} \sin (x)+\sin (x)-\sqrt {2} \cos (x)+\cos (x)-\sqrt {2}+2\right )}{2048 \sqrt {2}}+\frac {1483 \log \left (\sqrt {2} \sin (x)-\sin (x)-\sqrt {2} \cos (x)+\cos (x)-\sqrt {2}+2\right )}{2048 \sqrt {2}}+\frac {1483 \log \left (\sqrt {2} \sin (x)+\sin (x)+\sqrt {2} \cos (x)+\cos (x)+\sqrt {2}+2\right )}{2048 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 212
Rule 213
Rule 628
Rule 632
Rule 652
Rule 2098
Rubi steps
\begin {align*} \int \frac {1}{(\cos (x)+\cos (3 x))^5} \, dx &=2 \text {Subst}\left (\int \frac {\left (1+x^2\right )^{14}}{32 \left (1-7 x^2+7 x^4-x^6\right )^5} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=\frac {1}{16} \text {Subst}\left (\int \frac {\left (1+x^2\right )^{14}}{\left (1-7 x^2+7 x^4-x^6\right )^5} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=\frac {1}{16} \text {Subst}\left (\int \left (\frac {1}{2 (-1+x)^5}+\frac {3}{4 (-1+x)^4}+\frac {47}{8 (-1+x)^3}+\frac {45}{16 (-1+x)^2}-\frac {1}{2 (1+x)^5}+\frac {3}{4 (1+x)^4}-\frac {47}{8 (1+x)^3}+\frac {45}{16 (1+x)^2}+\frac {523}{8 \left (-1+x^2\right )}-\frac {64 (5+12 x)}{\left (-1-2 x+x^2\right )^5}-\frac {176 (2+x)}{\left (-1-2 x+x^2\right )^4}-\frac {4 (21+22 x)}{\left (-1-2 x+x^2\right )^3}+\frac {-52+37 x}{\left (-1-2 x+x^2\right )^2}-\frac {36}{-1-2 x+x^2}+\frac {64 (-5+12 x)}{\left (-1+2 x+x^2\right )^5}+\frac {176 (-2+x)}{\left (-1+2 x+x^2\right )^4}+\frac {4 (-21+22 x)}{\left (-1+2 x+x^2\right )^3}+\frac {-52-37 x}{\left (-1+2 x+x^2\right )^2}-\frac {36}{-1+2 x+x^2}\right ) \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=-\frac {1}{128 \left (1-\tan \left (\frac {x}{2}\right )\right )^4}+\frac {1}{64 \left (1-\tan \left (\frac {x}{2}\right )\right )^3}-\frac {47}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )^2}+\frac {45}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )}+\frac {1}{128 \left (1+\tan \left (\frac {x}{2}\right )\right )^4}-\frac {1}{64 \left (1+\tan \left (\frac {x}{2}\right )\right )^3}+\frac {47}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )^2}-\frac {45}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )}+\frac {1}{16} \text {Subst}\left (\int \frac {-52+37 x}{\left (-1-2 x+x^2\right )^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {1}{16} \text {Subst}\left (\int \frac {-52-37 x}{\left (-1+2 x+x^2\right )^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {1}{4} \text {Subst}\left (\int \frac {21+22 x}{\left (-1-2 x+x^2\right )^3} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {1}{4} \text {Subst}\left (\int \frac {-21+22 x}{\left (-1+2 x+x^2\right )^3} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {9}{4} \text {Subst}\left (\int \frac {1}{-1-2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {9}{4} \text {Subst}\left (\int \frac {1}{-1+2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-4 \text {Subst}\left (\int \frac {5+12 x}{\left (-1-2 x+x^2\right )^5} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+4 \text {Subst}\left (\int \frac {-5+12 x}{\left (-1+2 x+x^2\right )^5} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {523}{128} \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-11 \text {Subst}\left (\int \frac {2+x}{\left (-1-2 x+x^2\right )^4} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+11 \text {Subst}\left (\int \frac {-2+x}{\left (-1+2 x+x^2\right )^4} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=-\frac {523}{256} \tanh ^{-1}(\sin (x))-\frac {1}{128 \left (1-\tan \left (\frac {x}{2}\right )\right )^4}+\frac {1}{64 \left (1-\tan \left (\frac {x}{2}\right )\right )^3}-\frac {47}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )^2}+\frac {45}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )}+\frac {1}{128 \left (1+\tan \left (\frac {x}{2}\right )\right )^4}-\frac {1}{64 \left (1+\tan \left (\frac {x}{2}\right )\right )^3}+\frac {47}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )^2}-\frac {45}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )}-\frac {7-17 \tan \left (\frac {x}{2}\right )}{4 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}-\frac {11 \left (1+3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {1-43 \tan \left (\frac {x}{2}\right )}{32 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}-\frac {89+15 \tan \left (\frac {x}{2}\right )}{64 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {7+17 \tan \left (\frac {x}{2}\right )}{4 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {11 \left (1-3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}+\frac {1+43 \tan \left (\frac {x}{2}\right )}{32 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {89-15 \tan \left (\frac {x}{2}\right )}{64 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {15}{64} \text {Subst}\left (\int \frac {1}{-1-2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {15}{64} \text {Subst}\left (\int \frac {1}{-1+2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {129}{32} \text {Subst}\left (\int \frac {1}{\left (-1-2 x+x^2\right )^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {129}{32} \text {Subst}\left (\int \frac {1}{\left (-1+2 x+x^2\right )^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {9}{2} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,-2+2 \tan \left (\frac {x}{2}\right )\right )+\frac {9}{2} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,2+2 \tan \left (\frac {x}{2}\right )\right )+\frac {55}{4} \text {Subst}\left (\int \frac {1}{\left (-1-2 x+x^2\right )^3} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {55}{4} \text {Subst}\left (\int \frac {1}{\left (-1+2 x+x^2\right )^3} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {119}{4} \text {Subst}\left (\int \frac {1}{\left (-1-2 x+x^2\right )^4} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {119}{4} \text {Subst}\left (\int \frac {1}{\left (-1+2 x+x^2\right )^4} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=-\frac {523}{256} \tanh ^{-1}(\sin (x))-\frac {9 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)-\sin (x)-\sqrt {2} \sin (x)\right )}{16 \sqrt {2}}-\frac {9 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)+\sin (x)-\sqrt {2} \sin (x)\right )}{16 \sqrt {2}}+\frac {9 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)-\sin (x)+\sqrt {2} \sin (x)\right )}{16 \sqrt {2}}+\frac {9 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)+\sin (x)+\sqrt {2} \sin (x)\right )}{16 \sqrt {2}}-\frac {1}{128 \left (1-\tan \left (\frac {x}{2}\right )\right )^4}+\frac {1}{64 \left (1-\tan \left (\frac {x}{2}\right )\right )^3}-\frac {47}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )^2}+\frac {45}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )}+\frac {1}{128 \left (1+\tan \left (\frac {x}{2}\right )\right )^4}-\frac {1}{64 \left (1+\tan \left (\frac {x}{2}\right )\right )^3}+\frac {47}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )^2}-\frac {45}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )}-\frac {7-17 \tan \left (\frac {x}{2}\right )}{4 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {119 \left (1+\tan \left (\frac {x}{2}\right )\right )}{48 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {11 \left (1+3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {1-43 \tan \left (\frac {x}{2}\right )}{32 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}-\frac {55 \left (1+\tan \left (\frac {x}{2}\right )\right )}{32 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {129 \left (1+\tan \left (\frac {x}{2}\right )\right )}{128 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {89+15 \tan \left (\frac {x}{2}\right )}{64 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {7+17 \tan \left (\frac {x}{2}\right )}{4 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {11 \left (1-3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {119 \left (1-\tan \left (\frac {x}{2}\right )\right )}{48 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}+\frac {55 \left (1-\tan \left (\frac {x}{2}\right )\right )}{32 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {1+43 \tan \left (\frac {x}{2}\right )}{32 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {89-15 \tan \left (\frac {x}{2}\right )}{64 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {129 \left (1-\tan \left (\frac {x}{2}\right )\right )}{128 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {15}{32} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,-2+2 \tan \left (\frac {x}{2}\right )\right )-\frac {15}{32} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,2+2 \tan \left (\frac {x}{2}\right )\right )-\frac {129}{128} \text {Subst}\left (\int \frac {1}{-1-2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {129}{128} \text {Subst}\left (\int \frac {1}{-1+2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {165}{32} \text {Subst}\left (\int \frac {1}{\left (-1-2 x+x^2\right )^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {165}{32} \text {Subst}\left (\int \frac {1}{\left (-1+2 x+x^2\right )^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {595}{48} \text {Subst}\left (\int \frac {1}{\left (-1-2 x+x^2\right )^3} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {595}{48} \text {Subst}\left (\int \frac {1}{\left (-1+2 x+x^2\right )^3} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=-\frac {523}{256} \tanh ^{-1}(\sin (x))-\frac {129 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)-\sin (x)-\sqrt {2} \sin (x)\right )}{256 \sqrt {2}}-\frac {129 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)+\sin (x)-\sqrt {2} \sin (x)\right )}{256 \sqrt {2}}+\frac {129 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)-\sin (x)+\sqrt {2} \sin (x)\right )}{256 \sqrt {2}}+\frac {129 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)+\sin (x)+\sqrt {2} \sin (x)\right )}{256 \sqrt {2}}-\frac {1}{128 \left (1-\tan \left (\frac {x}{2}\right )\right )^4}+\frac {1}{64 \left (1-\tan \left (\frac {x}{2}\right )\right )^3}-\frac {47}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )^2}+\frac {45}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )}+\frac {1}{128 \left (1+\tan \left (\frac {x}{2}\right )\right )^4}-\frac {1}{64 \left (1+\tan \left (\frac {x}{2}\right )\right )^3}+\frac {47}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )^2}-\frac {45}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )}-\frac {7-17 \tan \left (\frac {x}{2}\right )}{4 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {119 \left (1+\tan \left (\frac {x}{2}\right )\right )}{48 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {11 \left (1+3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {1-43 \tan \left (\frac {x}{2}\right )}{32 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}-\frac {65 \left (1+\tan \left (\frac {x}{2}\right )\right )}{384 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}-\frac {9 \left (1+\tan \left (\frac {x}{2}\right )\right )}{32 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {89+15 \tan \left (\frac {x}{2}\right )}{64 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {7+17 \tan \left (\frac {x}{2}\right )}{4 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {11 \left (1-3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {119 \left (1-\tan \left (\frac {x}{2}\right )\right )}{48 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}+\frac {65 \left (1-\tan \left (\frac {x}{2}\right )\right )}{384 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {1+43 \tan \left (\frac {x}{2}\right )}{32 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {89-15 \tan \left (\frac {x}{2}\right )}{64 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {9 \left (1-\tan \left (\frac {x}{2}\right )\right )}{32 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {165}{128} \text {Subst}\left (\int \frac {1}{-1-2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {165}{128} \text {Subst}\left (\int \frac {1}{-1+2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {129}{64} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,-2+2 \tan \left (\frac {x}{2}\right )\right )+\frac {129}{64} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,2+2 \tan \left (\frac {x}{2}\right )\right )+\frac {595}{128} \text {Subst}\left (\int \frac {1}{\left (-1-2 x+x^2\right )^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )+\frac {595}{128} \text {Subst}\left (\int \frac {1}{\left (-1+2 x+x^2\right )^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )\\ &=-\frac {523}{256} \tanh ^{-1}(\sin (x))-\frac {387 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)-\sin (x)-\sqrt {2} \sin (x)\right )}{512 \sqrt {2}}-\frac {387 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)+\sin (x)-\sqrt {2} \sin (x)\right )}{512 \sqrt {2}}+\frac {387 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)-\sin (x)+\sqrt {2} \sin (x)\right )}{512 \sqrt {2}}+\frac {387 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)+\sin (x)+\sqrt {2} \sin (x)\right )}{512 \sqrt {2}}-\frac {1}{128 \left (1-\tan \left (\frac {x}{2}\right )\right )^4}+\frac {1}{64 \left (1-\tan \left (\frac {x}{2}\right )\right )^3}-\frac {47}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )^2}+\frac {45}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )}+\frac {1}{128 \left (1+\tan \left (\frac {x}{2}\right )\right )^4}-\frac {1}{64 \left (1+\tan \left (\frac {x}{2}\right )\right )^3}+\frac {47}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )^2}-\frac {45}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )}-\frac {7-17 \tan \left (\frac {x}{2}\right )}{4 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {119 \left (1+\tan \left (\frac {x}{2}\right )\right )}{48 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {11 \left (1+3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {1-43 \tan \left (\frac {x}{2}\right )}{32 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}-\frac {65 \left (1+\tan \left (\frac {x}{2}\right )\right )}{384 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {451 \left (1+\tan \left (\frac {x}{2}\right )\right )}{512 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {89+15 \tan \left (\frac {x}{2}\right )}{64 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {7+17 \tan \left (\frac {x}{2}\right )}{4 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {11 \left (1-3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {119 \left (1-\tan \left (\frac {x}{2}\right )\right )}{48 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}+\frac {65 \left (1-\tan \left (\frac {x}{2}\right )\right )}{384 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {1+43 \tan \left (\frac {x}{2}\right )}{32 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {89-15 \tan \left (\frac {x}{2}\right )}{64 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {451 \left (1-\tan \left (\frac {x}{2}\right )\right )}{512 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {595}{512} \text {Subst}\left (\int \frac {1}{-1-2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {595}{512} \text {Subst}\left (\int \frac {1}{-1+2 x+x^2} \, dx,x,\tan \left (\frac {x}{2}\right )\right )-\frac {165}{64} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,-2+2 \tan \left (\frac {x}{2}\right )\right )-\frac {165}{64} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,2+2 \tan \left (\frac {x}{2}\right )\right )\\ &=-\frac {523}{256} \tanh ^{-1}(\sin (x))-\frac {111 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)-\sin (x)-\sqrt {2} \sin (x)\right )}{256 \sqrt {2}}-\frac {111 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)+\sin (x)-\sqrt {2} \sin (x)\right )}{256 \sqrt {2}}+\frac {111 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)-\sin (x)+\sqrt {2} \sin (x)\right )}{256 \sqrt {2}}+\frac {111 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)+\sin (x)+\sqrt {2} \sin (x)\right )}{256 \sqrt {2}}-\frac {1}{128 \left (1-\tan \left (\frac {x}{2}\right )\right )^4}+\frac {1}{64 \left (1-\tan \left (\frac {x}{2}\right )\right )^3}-\frac {47}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )^2}+\frac {45}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )}+\frac {1}{128 \left (1+\tan \left (\frac {x}{2}\right )\right )^4}-\frac {1}{64 \left (1+\tan \left (\frac {x}{2}\right )\right )^3}+\frac {47}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )^2}-\frac {45}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )}-\frac {7-17 \tan \left (\frac {x}{2}\right )}{4 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {119 \left (1+\tan \left (\frac {x}{2}\right )\right )}{48 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {11 \left (1+3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {1-43 \tan \left (\frac {x}{2}\right )}{32 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}-\frac {65 \left (1+\tan \left (\frac {x}{2}\right )\right )}{384 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {451 \left (1+\tan \left (\frac {x}{2}\right )\right )}{512 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {89+15 \tan \left (\frac {x}{2}\right )}{64 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {7+17 \tan \left (\frac {x}{2}\right )}{4 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {11 \left (1-3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {119 \left (1-\tan \left (\frac {x}{2}\right )\right )}{48 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}+\frac {65 \left (1-\tan \left (\frac {x}{2}\right )\right )}{384 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {1+43 \tan \left (\frac {x}{2}\right )}{32 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {89-15 \tan \left (\frac {x}{2}\right )}{64 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {451 \left (1-\tan \left (\frac {x}{2}\right )\right )}{512 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {595}{256} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,-2+2 \tan \left (\frac {x}{2}\right )\right )+\frac {595}{256} \text {Subst}\left (\int \frac {1}{8-x^2} \, dx,x,2+2 \tan \left (\frac {x}{2}\right )\right )\\ &=-\frac {523}{256} \tanh ^{-1}(\sin (x))-\frac {1483 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)-\sin (x)-\sqrt {2} \sin (x)\right )}{2048 \sqrt {2}}-\frac {1483 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)+\sin (x)-\sqrt {2} \sin (x)\right )}{2048 \sqrt {2}}+\frac {1483 \log \left (2-\sqrt {2}+\cos (x)-\sqrt {2} \cos (x)-\sin (x)+\sqrt {2} \sin (x)\right )}{2048 \sqrt {2}}+\frac {1483 \log \left (2+\sqrt {2}+\cos (x)+\sqrt {2} \cos (x)+\sin (x)+\sqrt {2} \sin (x)\right )}{2048 \sqrt {2}}-\frac {1}{128 \left (1-\tan \left (\frac {x}{2}\right )\right )^4}+\frac {1}{64 \left (1-\tan \left (\frac {x}{2}\right )\right )^3}-\frac {47}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )^2}+\frac {45}{256 \left (1-\tan \left (\frac {x}{2}\right )\right )}+\frac {1}{128 \left (1+\tan \left (\frac {x}{2}\right )\right )^4}-\frac {1}{64 \left (1+\tan \left (\frac {x}{2}\right )\right )^3}+\frac {47}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )^2}-\frac {45}{256 \left (1+\tan \left (\frac {x}{2}\right )\right )}-\frac {7-17 \tan \left (\frac {x}{2}\right )}{4 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {119 \left (1+\tan \left (\frac {x}{2}\right )\right )}{48 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {11 \left (1+3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {1-43 \tan \left (\frac {x}{2}\right )}{32 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}-\frac {65 \left (1+\tan \left (\frac {x}{2}\right )\right )}{384 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {451 \left (1+\tan \left (\frac {x}{2}\right )\right )}{512 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {89+15 \tan \left (\frac {x}{2}\right )}{64 \left (1-2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}+\frac {7+17 \tan \left (\frac {x}{2}\right )}{4 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^4}+\frac {11 \left (1-3 \tan \left (\frac {x}{2}\right )\right )}{12 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}-\frac {119 \left (1-\tan \left (\frac {x}{2}\right )\right )}{48 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^3}+\frac {65 \left (1-\tan \left (\frac {x}{2}\right )\right )}{384 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {1+43 \tan \left (\frac {x}{2}\right )}{32 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )^2}+\frac {89-15 \tan \left (\frac {x}{2}\right )}{64 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}-\frac {451 \left (1-\tan \left (\frac {x}{2}\right )\right )}{512 \left (1+2 \tan \left (\frac {x}{2}\right )-\tan ^2\left (\frac {x}{2}\right )\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 6.25, size = 478, normalized size = 4.43 \begin {gather*} -\frac {1483 i \tan ^{-1}\left (\frac {\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )-\sqrt {2} \sin \left (\frac {x}{2}\right )}{-\cos \left (\frac {x}{2}\right )+\sqrt {2} \cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )}\right )}{1024 \sqrt {2}}+\frac {\left (\frac {1483}{2048}+\frac {1483 i}{2048}\right ) \left ((-1-i)+\sqrt {2}\right ) \tan ^{-1}\left (\frac {\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )-\sqrt {2} \sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )+\sqrt {2} \cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )}\right )}{(-1+i)+\sqrt {2}}+\frac {523}{256} \log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )-\frac {523}{256} \log \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right )+\frac {1483 \log \left (\sqrt {2}+2 \sin (x)\right )}{1024 \sqrt {2}}-\frac {1483 \log \left (2-\sqrt {2} \cos (x)-\sqrt {2} \sin (x)\right )}{2048 \sqrt {2}}+\frac {\left (\frac {1483}{4096}-\frac {1483 i}{4096}\right ) \left ((-1-i)+\sqrt {2}\right ) \log \left (2+\sqrt {2} \cos (x)-\sqrt {2} \sin (x)\right )}{(-1+i)+\sqrt {2}}-\frac {1}{512 \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )^4}-\frac {43}{512 \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )^2}+\frac {1}{512 \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right )^4}+\frac {43}{512 \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right )^2}-\frac {17}{768 (\cos (x)-\sin (x))^3}-\frac {437}{1024 (\cos (x)-\sin (x))}+\frac {\sin (x)}{128 (\cos (x)-\sin (x))^4}+\frac {83 \sin (x)}{512 (\cos (x)-\sin (x))^2}+\frac {\sin (x)}{128 (\cos (x)+\sin (x))^4}+\frac {17}{768 (\cos (x)+\sin (x))^3}+\frac {83 \sin (x)}{512 (\cos (x)+\sin (x))^2}+\frac {437}{1024 (\cos (x)+\sin (x))} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 95, normalized size = 0.88
method | result | size |
default | \(-\frac {4 \left (-\frac {437 \left (\sin ^{7}\left (x \right )\right )}{256}+\frac {3527 \left (\sin ^{5}\left (x \right )\right )}{1536}-\frac {3257 \left (\sin ^{3}\left (x \right )\right )}{3072}+\frac {331 \sin \left (x \right )}{2048}\right )}{\left (2 \left (\sin ^{2}\left (x \right )\right )-1\right )^{4}}+\frac {1483 \arctanh \left (\sin \left (x \right ) \sqrt {2}\right ) \sqrt {2}}{1024}-\frac {1}{512 \left (\sin \left (x \right )-1\right )^{2}}+\frac {43}{512 \left (\sin \left (x \right )-1\right )}+\frac {523 \ln \left (\sin \left (x \right )-1\right )}{512}+\frac {1}{512 \left (\sin \left (x \right )+1\right )^{2}}+\frac {43}{512 \left (\sin \left (x \right )+1\right )}-\frac {523 \ln \left (\sin \left (x \right )+1\right )}{512}\) | \(95\) |
risch | \(\frac {i \left (1827 \,{\mathrm e}^{23 i x}+3733 \,{\mathrm e}^{21 i x}+6115 \,{\mathrm e}^{19 i x}+9109 \,{\mathrm e}^{17 i x}+5746 \,{\mathrm e}^{15 i x}+2382 \,{\mathrm e}^{13 i x}-2382 \,{\mathrm e}^{11 i x}-5746 \,{\mathrm e}^{9 i x}-9109 \,{\mathrm e}^{7 i x}-6115 \,{\mathrm e}^{5 i x}-3733 \,{\mathrm e}^{3 i x}-1827 \,{\mathrm e}^{i x}\right )}{1536 \left ({\mathrm e}^{6 i x}+{\mathrm e}^{4 i x}+{\mathrm e}^{2 i x}+1\right )^{4}}+\frac {523 \ln \left ({\mathrm e}^{i x}-i\right )}{256}-\frac {523 \ln \left ({\mathrm e}^{i x}+i\right )}{256}+\frac {1483 \sqrt {2}\, \ln \left ({\mathrm e}^{2 i x}+i \sqrt {2}\, {\mathrm e}^{i x}-1\right )}{2048}-\frac {1483 \sqrt {2}\, \ln \left ({\mathrm e}^{2 i x}-i \sqrt {2}\, {\mathrm e}^{i x}-1\right )}{2048}\) | \(179\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 12209 vs.
\(2 (88) = 176\).
time = 6.06, size = 12209, normalized size = 113.05 \begin {gather*} \text {Too large to display} \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. 219 vs.
\(2 (88) = 176\).
time = 1.38, size = 219, normalized size = 2.03 \begin {gather*} \frac {4449 \, {\left (16 \, \sqrt {2} \cos \left (x\right )^{12} - 32 \, \sqrt {2} \cos \left (x\right )^{10} + 24 \, \sqrt {2} \cos \left (x\right )^{8} - 8 \, \sqrt {2} \cos \left (x\right )^{6} + \sqrt {2} \cos \left (x\right )^{4}\right )} \log \left (-\frac {2 \, \cos \left (x\right )^{2} - 2 \, \sqrt {2} \sin \left (x\right ) - 3}{2 \, \cos \left (x\right )^{2} - 1}\right ) - 6276 \, {\left (16 \, \cos \left (x\right )^{12} - 32 \, \cos \left (x\right )^{10} + 24 \, \cos \left (x\right )^{8} - 8 \, \cos \left (x\right )^{6} + \cos \left (x\right )^{4}\right )} \log \left (\sin \left (x\right ) + 1\right ) + 6276 \, {\left (16 \, \cos \left (x\right )^{12} - 32 \, \cos \left (x\right )^{10} + 24 \, \cos \left (x\right )^{8} - 8 \, \cos \left (x\right )^{6} + \cos \left (x\right )^{4}\right )} \log \left (-\sin \left (x\right ) + 1\right ) - 4 \, {\left (14616 \, \cos \left (x\right )^{10} - 25420 \, \cos \left (x\right )^{8} + 15570 \, \cos \left (x\right )^{6} - 3677 \, \cos \left (x\right )^{4} + 162 \, \cos \left (x\right )^{2} + 12\right )} \sin \left (x\right )}{6144 \, {\left (16 \, \cos \left (x\right )^{12} - 32 \, \cos \left (x\right )^{10} + 24 \, \cos \left (x\right )^{8} - 8 \, \cos \left (x\right )^{6} + \cos \left (x\right )^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (\cos {\left (x \right )} + \cos {\left (3 x \right )}\right )^{5}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.56, size = 104, normalized size = 0.96 \begin {gather*} -\frac {1483}{2048} \, \sqrt {2} \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (x\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (x\right ) \right |}}\right ) + \frac {43 \, \sin \left (x\right )^{3} - 45 \, \sin \left (x\right )}{256 \, {\left (\sin \left (x\right )^{2} - 1\right )}^{2}} + \frac {10488 \, \sin \left (x\right )^{7} - 14108 \, \sin \left (x\right )^{5} + 6514 \, \sin \left (x\right )^{3} - 993 \, \sin \left (x\right )}{1536 \, {\left (2 \, \sin \left (x\right )^{2} - 1\right )}^{4}} - \frac {523}{512} \, \log \left (\sin \left (x\right ) + 1\right ) + \frac {523}{512} \, \log \left (-\sin \left (x\right ) + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.25, size = 307, normalized size = 2.84 \begin {gather*} -\frac {11492\,\sin \left (3\,x\right )+18218\,\sin \left (5\,x\right )+12230\,\sin \left (7\,x\right )+7466\,\sin \left (9\,x\right )+3654\,\sin \left (11\,x\right )+276144\,\mathrm {atanh}\left (\frac {\sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )}\right )+4764\,\sin \left (x\right )+502080\,\cos \left (2\,x\right )\,\mathrm {atanh}\left (\frac {\sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )}\right )+389112\,\cos \left (4\,x\right )\,\mathrm {atanh}\left (\frac {\sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )}\right )+251040\,\cos \left (6\,x\right )\,\mathrm {atanh}\left (\frac {\sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )}\right )+125520\,\cos \left (8\,x\right )\,\mathrm {atanh}\left (\frac {\sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )}\right )+50208\,\cos \left (10\,x\right )\,\mathrm {atanh}\left (\frac {\sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )}\right )+12552\,\cos \left (12\,x\right )\,\mathrm {atanh}\left (\frac {\sin \left (\frac {x}{2}\right )}{\cos \left (\frac {x}{2}\right )}\right )-97878\,\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \left (x\right )\right )-177960\,\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \left (x\right )\right )\,\cos \left (2\,x\right )-137919\,\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \left (x\right )\right )\,\cos \left (4\,x\right )-88980\,\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \left (x\right )\right )\,\cos \left (6\,x\right )-44490\,\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \left (x\right )\right )\,\cos \left (8\,x\right )-17796\,\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \left (x\right )\right )\,\cos \left (10\,x\right )-4449\,\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sin \left (x\right )\right )\,\cos \left (12\,x\right )}{122880\,\cos \left (2\,x\right )+95232\,\cos \left (4\,x\right )+61440\,\cos \left (6\,x\right )+30720\,\cos \left (8\,x\right )+12288\,\cos \left (10\,x\right )+3072\,\cos \left (12\,x\right )+67584} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________