Integrand size = 8, antiderivative size = 153 \[ \int x^3 \tan ^6(x) \, dx=\frac {19 x^2}{20}-\frac {23 i x^3}{15}-\frac {x^4}{4}+\frac {23}{5} x^2 \log \left (1+e^{2 i x}\right )-2 \log (\cos (x))-\frac {23}{5} i x \operatorname {PolyLog}\left (2,-e^{2 i x}\right )+\frac {23}{10} \operatorname {PolyLog}\left (3,-e^{2 i x}\right )-\frac {19}{10} x \tan (x)+x^3 \tan (x)-\frac {\tan ^2(x)}{20}+\frac {4}{5} x^2 \tan ^2(x)+\frac {1}{10} x \tan ^3(x)-\frac {1}{3} x^3 \tan ^3(x)-\frac {3}{20} x^2 \tan ^4(x)+\frac {1}{5} x^3 \tan ^5(x) \]
[Out]
Time = 0.35 (sec) , antiderivative size = 153, normalized size of antiderivative = 1.00, number of steps used = 34, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.125, Rules used = {3801, 3554, 3556, 30, 3800, 2221, 2611, 2320, 6724} \[ \int x^3 \tan ^6(x) \, dx=-\frac {23}{5} i x \operatorname {PolyLog}\left (2,-e^{2 i x}\right )+\frac {23}{10} \operatorname {PolyLog}\left (3,-e^{2 i x}\right )-\frac {x^4}{4}-\frac {23 i x^3}{15}+\frac {1}{5} x^3 \tan ^5(x)-\frac {1}{3} x^3 \tan ^3(x)+x^3 \tan (x)+\frac {19 x^2}{20}+\frac {23}{5} x^2 \log \left (1+e^{2 i x}\right )-\frac {3}{20} x^2 \tan ^4(x)+\frac {4}{5} x^2 \tan ^2(x)+\frac {1}{10} x \tan ^3(x)-\frac {\tan ^2(x)}{20}-\frac {19}{10} x \tan (x)-2 \log (\cos (x)) \]
[In]
[Out]
Rule 30
Rule 2221
Rule 2320
Rule 2611
Rule 3554
Rule 3556
Rule 3800
Rule 3801
Rule 6724
Rubi steps \begin{align*} \text {integral}& = \frac {1}{5} x^3 \tan ^5(x)-\frac {3}{5} \int x^2 \tan ^5(x) \, dx-\int x^3 \tan ^4(x) \, dx \\ & = -\frac {1}{3} x^3 \tan ^3(x)-\frac {3}{20} x^2 \tan ^4(x)+\frac {1}{5} x^3 \tan ^5(x)+\frac {3}{10} \int x \tan ^4(x) \, dx+\frac {3}{5} \int x^2 \tan ^3(x) \, dx+\int x^3 \tan ^2(x) \, dx+\int x^2 \tan ^3(x) \, dx \\ & = x^3 \tan (x)+\frac {4}{5} x^2 \tan ^2(x)+\frac {1}{10} x \tan ^3(x)-\frac {1}{3} x^3 \tan ^3(x)-\frac {3}{20} x^2 \tan ^4(x)+\frac {1}{5} x^3 \tan ^5(x)-\frac {1}{10} \int \tan ^3(x) \, dx-\frac {3}{10} \int x \tan ^2(x) \, dx-\frac {3}{5} \int x^2 \tan (x) \, dx-\frac {3}{5} \int x \tan ^2(x) \, dx-3 \int x^2 \tan (x) \, dx-\int x^3 \, dx-\int x^2 \tan (x) \, dx-\int x \tan ^2(x) \, dx \\ & = -\frac {23 i x^3}{15}-\frac {x^4}{4}-\frac {19}{10} x \tan (x)+x^3 \tan (x)-\frac {\tan ^2(x)}{20}+\frac {4}{5} x^2 \tan ^2(x)+\frac {1}{10} x \tan ^3(x)-\frac {1}{3} x^3 \tan ^3(x)-\frac {3}{20} x^2 \tan ^4(x)+\frac {1}{5} x^3 \tan ^5(x)+\frac {6}{5} i \int \frac {e^{2 i x} x^2}{1+e^{2 i x}} \, dx+2 i \int \frac {e^{2 i x} x^2}{1+e^{2 i x}} \, dx+6 i \int \frac {e^{2 i x} x^2}{1+e^{2 i x}} \, dx+\frac {1}{10} \int \tan (x) \, dx+\frac {3 \int x \, dx}{10}+\frac {3}{10} \int \tan (x) \, dx+\frac {3 \int x \, dx}{5}+\frac {3}{5} \int \tan (x) \, dx+\int x \, dx+\int \tan (x) \, dx \\ & = \frac {19 x^2}{20}-\frac {23 i x^3}{15}-\frac {x^4}{4}+\frac {23}{5} x^2 \log \left (1+e^{2 i x}\right )-2 \log (\cos (x))-\frac {19}{10} x \tan (x)+x^3 \tan (x)-\frac {\tan ^2(x)}{20}+\frac {4}{5} x^2 \tan ^2(x)+\frac {1}{10} x \tan ^3(x)-\frac {1}{3} x^3 \tan ^3(x)-\frac {3}{20} x^2 \tan ^4(x)+\frac {1}{5} x^3 \tan ^5(x)-\frac {6}{5} \int x \log \left (1+e^{2 i x}\right ) \, dx-2 \int x \log \left (1+e^{2 i x}\right ) \, dx-6 \int x \log \left (1+e^{2 i x}\right ) \, dx \\ & = \frac {19 x^2}{20}-\frac {23 i x^3}{15}-\frac {x^4}{4}+\frac {23}{5} x^2 \log \left (1+e^{2 i x}\right )-2 \log (\cos (x))-\frac {23}{5} i x \operatorname {PolyLog}\left (2,-e^{2 i x}\right )-\frac {19}{10} x \tan (x)+x^3 \tan (x)-\frac {\tan ^2(x)}{20}+\frac {4}{5} x^2 \tan ^2(x)+\frac {1}{10} x \tan ^3(x)-\frac {1}{3} x^3 \tan ^3(x)-\frac {3}{20} x^2 \tan ^4(x)+\frac {1}{5} x^3 \tan ^5(x)+\frac {3}{5} i \int \operatorname {PolyLog}\left (2,-e^{2 i x}\right ) \, dx+i \int \operatorname {PolyLog}\left (2,-e^{2 i x}\right ) \, dx+3 i \int \operatorname {PolyLog}\left (2,-e^{2 i x}\right ) \, dx \\ & = \frac {19 x^2}{20}-\frac {23 i x^3}{15}-\frac {x^4}{4}+\frac {23}{5} x^2 \log \left (1+e^{2 i x}\right )-2 \log (\cos (x))-\frac {23}{5} i x \operatorname {PolyLog}\left (2,-e^{2 i x}\right )-\frac {19}{10} x \tan (x)+x^3 \tan (x)-\frac {\tan ^2(x)}{20}+\frac {4}{5} x^2 \tan ^2(x)+\frac {1}{10} x \tan ^3(x)-\frac {1}{3} x^3 \tan ^3(x)-\frac {3}{20} x^2 \tan ^4(x)+\frac {1}{5} x^3 \tan ^5(x)+\frac {3}{10} \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,-x)}{x} \, dx,x,e^{2 i x}\right )+\frac {1}{2} \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,-x)}{x} \, dx,x,e^{2 i x}\right )+\frac {3}{2} \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,-x)}{x} \, dx,x,e^{2 i x}\right ) \\ & = \frac {19 x^2}{20}-\frac {23 i x^3}{15}-\frac {x^4}{4}+\frac {23}{5} x^2 \log \left (1+e^{2 i x}\right )-2 \log (\cos (x))-\frac {23}{5} i x \operatorname {PolyLog}\left (2,-e^{2 i x}\right )+\frac {23}{10} \operatorname {PolyLog}\left (3,-e^{2 i x}\right )-\frac {19}{10} x \tan (x)+x^3 \tan (x)-\frac {\tan ^2(x)}{20}+\frac {4}{5} x^2 \tan ^2(x)+\frac {1}{10} x \tan ^3(x)-\frac {1}{3} x^3 \tan ^3(x)-\frac {3}{20} x^2 \tan ^4(x)+\frac {1}{5} x^3 \tan ^5(x) \\ \end{align*}
Time = 0.23 (sec) , antiderivative size = 133, normalized size of antiderivative = 0.87 \[ \int x^3 \tan ^6(x) \, dx=\frac {1}{60} \left (-92 i x^3-15 x^4+276 x^2 \log \left (1+e^{2 i x}\right )-120 \log (\cos (x))-276 i x \operatorname {PolyLog}\left (2,-e^{2 i x}\right )+138 \operatorname {PolyLog}\left (3,-e^{2 i x}\right )-3 \sec ^2(x)+66 x^2 \sec ^2(x)-9 x^2 \sec ^4(x)-120 x \tan (x)+92 x^3 \tan (x)+6 x \sec ^2(x) \tan (x)-44 x^3 \sec ^2(x) \tan (x)+12 x^3 \sec ^4(x) \tan (x)\right ) \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 237, normalized size of antiderivative = 1.55
method | result | size |
risch | \(-\frac {x^{4}}{4}+\frac {i \left (9 i {\mathrm e}^{6 i x}+90 x^{3} {\mathrm e}^{8 i x}-162 i x^{2} {\mathrm e}^{4 i x}-66 i x^{2} {\mathrm e}^{2 i x}+180 x^{3} {\mathrm e}^{6 i x}-66 x \,{\mathrm e}^{8 i x}+3 i {\mathrm e}^{8 i x}+9 i {\mathrm e}^{4 i x}+280 \,{\mathrm e}^{4 i x} x^{3}-246 x \,{\mathrm e}^{6 i x}-162 i x^{2} {\mathrm e}^{6 i x}+3 i {\mathrm e}^{2 i x}+140 \,{\mathrm e}^{2 i x} x^{3}-354 x \,{\mathrm e}^{4 i x}-66 i x^{2} {\mathrm e}^{8 i x}+46 x^{3}-234 x \,{\mathrm e}^{2 i x}-60 x \right )}{15 \left ({\mathrm e}^{2 i x}+1\right )^{5}}-2 \ln \left ({\mathrm e}^{2 i x}+1\right )+4 \ln \left ({\mathrm e}^{i x}\right )-\frac {46 i x^{3}}{15}+\frac {23 x^{2} \ln \left ({\mathrm e}^{2 i x}+1\right )}{5}-\frac {23 i x \,\operatorname {Li}_{2}\left (-{\mathrm e}^{2 i x}\right )}{5}+\frac {23 \,\operatorname {Li}_{3}\left (-{\mathrm e}^{2 i x}\right )}{10}\) | \(237\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 212, normalized size of antiderivative = 1.39 \[ \int x^3 \tan ^6(x) \, dx=\frac {1}{5} \, x^{3} \tan \left (x\right )^{5} - \frac {3}{20} \, x^{2} \tan \left (x\right )^{4} - \frac {1}{4} \, x^{4} - \frac {1}{30} \, {\left (10 \, x^{3} - 3 \, x\right )} \tan \left (x\right )^{3} + \frac {1}{20} \, {\left (16 \, x^{2} - 1\right )} \tan \left (x\right )^{2} + \frac {19}{20} \, x^{2} + \frac {23}{10} i \, x {\rm Li}_2\left (\frac {2 \, {\left (i \, \tan \left (x\right ) - 1\right )}}{\tan \left (x\right )^{2} + 1} + 1\right ) - \frac {23}{10} i \, x {\rm Li}_2\left (\frac {2 \, {\left (-i \, \tan \left (x\right ) - 1\right )}}{\tan \left (x\right )^{2} + 1} + 1\right ) + \frac {1}{10} \, {\left (23 \, x^{2} - 10\right )} \log \left (-\frac {2 \, {\left (i \, \tan \left (x\right ) - 1\right )}}{\tan \left (x\right )^{2} + 1}\right ) + \frac {1}{10} \, {\left (23 \, x^{2} - 10\right )} \log \left (-\frac {2 \, {\left (-i \, \tan \left (x\right ) - 1\right )}}{\tan \left (x\right )^{2} + 1}\right ) + \frac {1}{10} \, {\left (10 \, x^{3} - 19 \, x\right )} \tan \left (x\right ) + \frac {23}{20} \, {\rm polylog}\left (3, \frac {\tan \left (x\right )^{2} + 2 i \, \tan \left (x\right ) - 1}{\tan \left (x\right )^{2} + 1}\right ) + \frac {23}{20} \, {\rm polylog}\left (3, \frac {\tan \left (x\right )^{2} - 2 i \, \tan \left (x\right ) - 1}{\tan \left (x\right )^{2} + 1}\right ) \]
[In]
[Out]
\[ \int x^3 \tan ^6(x) \, dx=\int x^{3} \tan ^{6}{\left (x \right )}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 777 vs. \(2 (113) = 226\).
Time = 0.57 (sec) , antiderivative size = 777, normalized size of antiderivative = 5.08 \[ \int x^3 \tan ^6(x) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int x^3 \tan ^6(x) \, dx=\int { x^{3} \tan \left (x\right )^{6} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^3 \tan ^6(x) \, dx=\int x^3\,{\mathrm {tan}\left (x\right )}^6 \,d x \]
[In]
[Out]