Optimal. Leaf size=32 \[ -\frac {x}{2 \left (e^{2 x}+1\right )}+\frac {x}{2}-\frac {1}{4} \log \left (e^{2 x}+1\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.462, Rules used = {2283, 2191, 2282, 36, 29, 31} \[ -\frac {x}{2 \left (e^{2 x}+1\right )}+\frac {x}{2}-\frac {1}{4} \log \left (e^{2 x}+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 2191
Rule 2282
Rule 2283
Rubi steps
\begin {align*} \int \frac {x}{\left (e^{-x}+e^x\right )^2} \, dx &=\int \frac {e^{2 x} x}{\left (1+e^{2 x}\right )^2} \, dx\\ &=-\frac {x}{2 \left (1+e^{2 x}\right )}+\frac {1}{2} \int \frac {1}{1+e^{2 x}} \, dx\\ &=-\frac {x}{2 \left (1+e^{2 x}\right )}+\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{x (1+x)} \, dx,x,e^{2 x}\right )\\ &=-\frac {x}{2 \left (1+e^{2 x}\right )}+\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,e^{2 x}\right )-\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{1+x} \, dx,x,e^{2 x}\right )\\ &=\frac {x}{2}-\frac {x}{2 \left (1+e^{2 x}\right )}-\frac {1}{4} \log \left (1+e^{2 x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 31, normalized size = 0.97 \[ \frac {e^{2 x} x}{2 e^{2 x}+2}-\frac {1}{4} \log \left (e^{2 x}+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x}{\left (e^{-x}+e^x\right )^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.36, size = 33, normalized size = 1.03 \[ \frac {2 \, x e^{\left (2 \, x\right )} - {\left (e^{\left (2 \, x\right )} + 1\right )} \log \left (e^{\left (2 \, x\right )} + 1\right )}{4 \, {\left (e^{\left (2 \, x\right )} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.60, size = 40, normalized size = 1.25 \[ \frac {2 \, x e^{\left (2 \, x\right )} - e^{\left (2 \, x\right )} \log \left (e^{\left (2 \, x\right )} + 1\right ) - \log \left (e^{\left (2 \, x\right )} + 1\right )}{4 \, {\left (e^{\left (2 \, x\right )} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 25, normalized size = 0.78
method | result | size |
risch | \(\frac {x}{2}-\frac {x}{2 \left (1+{\mathrm e}^{2 x}\right )}-\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{4}\) | \(25\) |
default | \(-\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{4}+\frac {x \,{\mathrm e}^{2 x}}{2+2 \,{\mathrm e}^{2 x}}\) | \(26\) |
norman | \(-\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{4}+\frac {x \,{\mathrm e}^{2 x}}{2+2 \,{\mathrm e}^{2 x}}\) | \(26\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.16, size = 25, normalized size = 0.78 \[ \frac {x e^{\left (2 \, x\right )}}{2 \, {\left (e^{\left (2 \, x\right )} + 1\right )}} - \frac {1}{4} \, \log \left (e^{\left (2 \, x\right )} + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.33, size = 26, normalized size = 0.81 \[ \frac {x\,{\mathrm {e}}^{2\,x}}{2\,\left ({\mathrm {e}}^{2\,x}+1\right )}-\frac {\ln \left ({\mathrm {e}}^{2\,x}+1\right )}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 22, normalized size = 0.69 \[ \frac {x}{2} - \frac {x}{2 e^{2 x} + 2} - \frac {\log {\left (e^{2 x} + 1 \right )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________