Integrand size = 69, antiderivative size = 23 \[ \int \frac {-2 e^8+2 x^4}{e^{12}+x^3-3 x^4+3 x^5-x^6+e^8 \left (3 x-3 x^2\right )+e^4 \left (3 x^2-6 x^3+3 x^4\right )} \, dx=\left (-1+\frac {x}{e^4+(1-x) x}\right )^2+\log (\log (4)) \]
[Out]
Leaf count is larger than twice the leaf count of optimal. \(183\) vs. \(2(23)=46\).
Time = 0.14 (sec) , antiderivative size = 183, normalized size of antiderivative = 7.96, number of steps used = 11, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.072, Rules used = {2099, 652, 628, 632, 212} \[ \int \frac {-2 e^8+2 x^4}{e^{12}+x^3-3 x^4+3 x^5-x^6+e^8 \left (3 x-3 x^2\right )+e^4 \left (3 x^2-6 x^3+3 x^4\right )} \, dx=-\frac {4 \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\sqrt {1+4 e^4}}+\frac {16 \left (1+e^4\right ) \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\left (1+4 e^4\right )^{3/2}}-\frac {12 \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\left (1+4 e^4\right )^{3/2}}-\frac {3 (1-2 x)}{\left (1+4 e^4\right ) \left (-x^2+x+e^4\right )}+\frac {2 \left (-4 \left (1+e^4\right ) x-2 e^4+1\right )}{\left (1+4 e^4\right ) \left (-x^2+x+e^4\right )}+\frac {x+e^4}{\left (-x^2+x+e^4\right )^2} \]
[In]
[Out]
Rule 212
Rule 628
Rule 632
Rule 652
Rule 2099
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {2 \left (e^4+\left (1+2 e^4\right ) x\right )}{\left (e^4+x-x^2\right )^3}-\frac {2 \left (1+2 e^4+2 x\right )}{\left (e^4+x-x^2\right )^2}+\frac {2}{e^4+x-x^2}\right ) \, dx \\ & = 2 \int \frac {e^4+\left (1+2 e^4\right ) x}{\left (e^4+x-x^2\right )^3} \, dx-2 \int \frac {1+2 e^4+2 x}{\left (e^4+x-x^2\right )^2} \, dx+2 \int \frac {1}{e^4+x-x^2} \, dx \\ & = \frac {e^4+x}{\left (e^4+x-x^2\right )^2}+\frac {2 \left (1-2 e^4-4 \left (1+e^4\right ) x\right )}{\left (1+4 e^4\right ) \left (e^4+x-x^2\right )}+3 \int \frac {1}{\left (e^4+x-x^2\right )^2} \, dx-4 \text {Subst}\left (\int \frac {1}{1+4 e^4-x^2} \, dx,x,1-2 x\right )-\frac {\left (8 \left (1+e^4\right )\right ) \int \frac {1}{e^4+x-x^2} \, dx}{1+4 e^4} \\ & = \frac {e^4+x}{\left (e^4+x-x^2\right )^2}-\frac {3 (1-2 x)}{\left (1+4 e^4\right ) \left (e^4+x-x^2\right )}+\frac {2 \left (1-2 e^4-4 \left (1+e^4\right ) x\right )}{\left (1+4 e^4\right ) \left (e^4+x-x^2\right )}-\frac {4 \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\sqrt {1+4 e^4}}+\frac {6 \int \frac {1}{e^4+x-x^2} \, dx}{1+4 e^4}+\frac {\left (16 \left (1+e^4\right )\right ) \text {Subst}\left (\int \frac {1}{1+4 e^4-x^2} \, dx,x,1-2 x\right )}{1+4 e^4} \\ & = \frac {e^4+x}{\left (e^4+x-x^2\right )^2}-\frac {3 (1-2 x)}{\left (1+4 e^4\right ) \left (e^4+x-x^2\right )}+\frac {2 \left (1-2 e^4-4 \left (1+e^4\right ) x\right )}{\left (1+4 e^4\right ) \left (e^4+x-x^2\right )}+\frac {16 \left (1+e^4\right ) \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\left (1+4 e^4\right )^{3/2}}-\frac {4 \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\sqrt {1+4 e^4}}-\frac {12 \text {Subst}\left (\int \frac {1}{1+4 e^4-x^2} \, dx,x,1-2 x\right )}{1+4 e^4} \\ & = \frac {e^4+x}{\left (e^4+x-x^2\right )^2}-\frac {3 (1-2 x)}{\left (1+4 e^4\right ) \left (e^4+x-x^2\right )}+\frac {2 \left (1-2 e^4-4 \left (1+e^4\right ) x\right )}{\left (1+4 e^4\right ) \left (e^4+x-x^2\right )}-\frac {12 \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\left (1+4 e^4\right )^{3/2}}+\frac {16 \left (1+e^4\right ) \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\left (1+4 e^4\right )^{3/2}}-\frac {4 \text {arctanh}\left (\frac {1-2 x}{\sqrt {1+4 e^4}}\right )}{\sqrt {1+4 e^4}} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.17 \[ \int \frac {-2 e^8+2 x^4}{e^{12}+x^3-3 x^4+3 x^5-x^6+e^8 \left (3 x-3 x^2\right )+e^4 \left (3 x^2-6 x^3+3 x^4\right )} \, dx=-\frac {x \left (2 e^4+x-2 x^2\right )}{\left (e^4+x-x^2\right )^2} \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.26
method | result | size |
norman | \(\frac {-x^{2}+2 x^{3}-2 x \,{\mathrm e}^{4}}{\left (-x^{2}+{\mathrm e}^{4}+x \right )^{2}}\) | \(29\) |
gosper | \(-\frac {x \left (-2 x^{2}+2 \,{\mathrm e}^{4}+x \right )}{x^{4}-2 x^{2} {\mathrm e}^{4}-2 x^{3}+{\mathrm e}^{8}+2 x \,{\mathrm e}^{4}+x^{2}}\) | \(45\) |
risch | \(\frac {-x^{2}+2 x^{3}-2 x \,{\mathrm e}^{4}}{x^{4}-2 x^{2} {\mathrm e}^{4}-2 x^{3}+{\mathrm e}^{8}+2 x \,{\mathrm e}^{4}+x^{2}}\) | \(46\) |
parallelrisch | \(\frac {-x^{2}+2 x^{3}-2 x \,{\mathrm e}^{4}}{x^{4}-2 x^{2} {\mathrm e}^{4}-2 x^{3}+{\mathrm e}^{8}+2 x \,{\mathrm e}^{4}+x^{2}}\) | \(48\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.91 \[ \int \frac {-2 e^8+2 x^4}{e^{12}+x^3-3 x^4+3 x^5-x^6+e^8 \left (3 x-3 x^2\right )+e^4 \left (3 x^2-6 x^3+3 x^4\right )} \, dx=\frac {2 \, x^{3} - x^{2} - 2 \, x e^{4}}{x^{4} - 2 \, x^{3} + x^{2} - 2 \, {\left (x^{2} - x\right )} e^{4} + e^{8}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 44 vs. \(2 (19) = 38\).
Time = 0.47 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.91 \[ \int \frac {-2 e^8+2 x^4}{e^{12}+x^3-3 x^4+3 x^5-x^6+e^8 \left (3 x-3 x^2\right )+e^4 \left (3 x^2-6 x^3+3 x^4\right )} \, dx=- \frac {- 2 x^{3} + x^{2} + 2 x e^{4}}{x^{4} - 2 x^{3} + x^{2} \cdot \left (1 - 2 e^{4}\right ) + 2 x e^{4} + e^{8}} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 46, normalized size of antiderivative = 2.00 \[ \int \frac {-2 e^8+2 x^4}{e^{12}+x^3-3 x^4+3 x^5-x^6+e^8 \left (3 x-3 x^2\right )+e^4 \left (3 x^2-6 x^3+3 x^4\right )} \, dx=\frac {2 \, x^{3} - x^{2} - 2 \, x e^{4}}{x^{4} - 2 \, x^{3} - x^{2} {\left (2 \, e^{4} - 1\right )} + 2 \, x e^{4} + e^{8}} \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.30 \[ \int \frac {-2 e^8+2 x^4}{e^{12}+x^3-3 x^4+3 x^5-x^6+e^8 \left (3 x-3 x^2\right )+e^4 \left (3 x^2-6 x^3+3 x^4\right )} \, dx=\frac {2 \, x^{3} - x^{2} - 2 \, x e^{4}}{{\left (x^{2} - x - e^{4}\right )}^{2}} \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.87 \[ \int \frac {-2 e^8+2 x^4}{e^{12}+x^3-3 x^4+3 x^5-x^6+e^8 \left (3 x-3 x^2\right )+e^4 \left (3 x^2-6 x^3+3 x^4\right )} \, dx=-\frac {x\,\left (-2\,x^2+x+2\,{\mathrm {e}}^4\right )}{x^4-2\,x^3+\left (1-2\,{\mathrm {e}}^4\right )\,x^2+2\,{\mathrm {e}}^4\,x+{\mathrm {e}}^8} \]
[In]
[Out]