Optimal. Leaf size=16 \[ \frac {x^2}{2}-x \coth (x)+\log (\sinh (x)) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3720, 3475, 30} \[ \frac {x^2}{2}-x \coth (x)+\log (\sinh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 3475
Rule 3720
Rubi steps
\begin {align*} \int x \coth ^2(x) \, dx &=-x \coth (x)+\int x \, dx+\int \coth (x) \, dx\\ &=\frac {x^2}{2}-x \coth (x)+\log (\sinh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 16, normalized size = 1.00 \[ \frac {x^2}{2}-x \coth (x)+\log (\sinh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \coth ^2(x) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.32, size = 95, normalized size = 5.94 \[ \frac {{\left (x^{2} - 4 \, x\right )} \cosh \relax (x)^{2} + 2 \, {\left (x^{2} - 4 \, x\right )} \cosh \relax (x) \sinh \relax (x) + {\left (x^{2} - 4 \, x\right )} \sinh \relax (x)^{2} - x^{2} + 2 \, {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 1\right )} \log \left (\frac {2 \, \sinh \relax (x)}{\cosh \relax (x) - \sinh \relax (x)}\right )}{2 \, {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.59, size = 53, normalized size = 3.31 \[ \frac {x^{2} e^{\left (2 \, x\right )} - x^{2} - 4 \, x e^{\left (2 \, x\right )} + 2 \, e^{\left (2 \, x\right )} \log \left (e^{\left (2 \, x\right )} - 1\right ) - 2 \, \log \left (e^{\left (2 \, x\right )} - 1\right )}{2 \, {\left (e^{\left (2 \, x\right )} - 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 28, normalized size = 1.75
method | result | size |
risch | \(\frac {x^{2}}{2}-2 x -\frac {2 x}{-1+{\mathrm e}^{2 x}}+\ln \left (-1+{\mathrm e}^{2 x}\right )\) | \(28\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.64, size = 53, normalized size = 3.31 \[ -\frac {x e^{\left (2 \, x\right )}}{e^{\left (2 \, x\right )} - 1} - \frac {x^{2} - {\left (x^{2} - 2 \, x\right )} e^{\left (2 \, x\right )}}{2 \, {\left (e^{\left (2 \, x\right )} - 1\right )}} + \log \left (e^{x} + 1\right ) + \log \left (e^{x} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.29, size = 27, normalized size = 1.69 \[ \ln \left ({\mathrm {e}}^{2\,x}-1\right )-2\,x-\frac {2\,x}{{\mathrm {e}}^{2\,x}-1}+\frac {x^2}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.66, size = 22, normalized size = 1.38 \[ \frac {x^{2}}{2} + x - \frac {x}{\tanh {\relax (x )}} - \log {\left (\tanh {\relax (x )} + 1 \right )} + \log {\left (\tanh {\relax (x )} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________