Integrand size = 27, antiderivative size = 18 \[ \int \frac {e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx=-x+\frac {1}{2} \log \left (1-e^{4 x}\right ) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2320, 457, 78} \[ \int \frac {e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx=\frac {1}{2} \log \left (1-e^{4 x}\right )-x \]
[In]
[Out]
Rule 78
Rule 457
Rule 2320
Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} \text {Subst}\left (\int \frac {-1-x^2}{x \left (1-x^2\right )} \, dx,x,e^{2 x}\right ) \\ & = \frac {1}{4} \text {Subst}\left (\int \frac {-1-x}{(1-x) x} \, dx,x,e^{4 x}\right ) \\ & = \frac {1}{4} \text {Subst}\left (\int \left (\frac {2}{-1+x}-\frac {1}{x}\right ) \, dx,x,e^{4 x}\right ) \\ & = -x+\frac {1}{2} \log \left (1-e^{4 x}\right ) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(39\) vs. \(2(18)=36\).
Time = 0.04 (sec) , antiderivative size = 39, normalized size of antiderivative = 2.17 \[ \int \frac {e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx=-\log \left (e^x\right )+\frac {1}{2} \log \left (-1+e^x\right )+\frac {1}{2} \log \left (1+e^x\right )+\frac {1}{2} \log \left (1+e^{2 x}\right ) \]
[In]
[Out]
Time = 0.05 (sec) , antiderivative size = 12, normalized size of antiderivative = 0.67
method | result | size |
risch | \(x +\frac {\ln \left ({\mathrm e}^{-4 x}-1\right )}{2}\) | \(12\) |
norman | \(x +\frac {\ln \left (-1+{\mathrm e}^{-2 x}\right )}{2}+\frac {\ln \left ({\mathrm e}^{-2 x}+1\right )}{2}\) | \(21\) |
default | \(\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{2}-\ln \left ({\mathrm e}^{x}\right )+\frac {\ln \left (1+{\mathrm e}^{x}\right )}{2}+\frac {\ln \left (-1+{\mathrm e}^{x}\right )}{2}\) | \(30\) |
parts | \(\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{2}-\ln \left ({\mathrm e}^{x}\right )+\frac {\ln \left (1+{\mathrm e}^{x}\right )}{4}+\frac {\ln \left (-1+{\mathrm e}^{x}\right )}{4}+\frac {\ln \left (-1+{\mathrm e}^{2 x}\right )}{4}\) | \(48\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 13, normalized size of antiderivative = 0.72 \[ \int \frac {e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx=-x + \frac {1}{2} \, \log \left (e^{\left (4 \, x\right )} - 1\right ) \]
[In]
[Out]
Time = 0.04 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.56 \[ \int \frac {e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx=- x + \frac {\log {\left (e^{4 x} - 1 \right )}}{2} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.78 \[ \int \frac {e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx=\frac {1}{2} \, \log \left (e^{\left (2 \, x\right )} - e^{\left (-2 \, x\right )}\right ) \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.78 \[ \int \frac {e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx=-x + \frac {1}{2} \, \log \left ({\left | e^{\left (4 \, x\right )} - 1 \right |}\right ) \]
[In]
[Out]
Time = 0.27 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.22 \[ \int \frac {e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx=\frac {\ln \left ({\mathrm {e}}^{2\,x}-1\right )}{2}-x+\frac {\ln \left ({\mathrm {e}}^{2\,x}+1\right )}{2} \]
[In]
[Out]