Optimal. Leaf size=46 \[ \frac{x}{16}-\frac{1}{16 (\coth (x)+1)}-\frac{1}{16 (\coth (x)+1)^2}-\frac{1}{12 (\coth (x)+1)^3}-\frac{1}{8 (\coth (x)+1)^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0359077, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 2, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3479, 8} \[ \frac{x}{16}-\frac{1}{16 (\coth (x)+1)}-\frac{1}{16 (\coth (x)+1)^2}-\frac{1}{12 (\coth (x)+1)^3}-\frac{1}{8 (\coth (x)+1)^4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3479
Rule 8
Rubi steps
\begin{align*} \int \frac{1}{(1+\coth (x))^4} \, dx &=-\frac{1}{8 (1+\coth (x))^4}+\frac{1}{2} \int \frac{1}{(1+\coth (x))^3} \, dx\\ &=-\frac{1}{8 (1+\coth (x))^4}-\frac{1}{12 (1+\coth (x))^3}+\frac{1}{4} \int \frac{1}{(1+\coth (x))^2} \, dx\\ &=-\frac{1}{8 (1+\coth (x))^4}-\frac{1}{12 (1+\coth (x))^3}-\frac{1}{16 (1+\coth (x))^2}+\frac{1}{8} \int \frac{1}{1+\coth (x)} \, dx\\ &=-\frac{1}{8 (1+\coth (x))^4}-\frac{1}{12 (1+\coth (x))^3}-\frac{1}{16 (1+\coth (x))^2}-\frac{1}{16 (1+\coth (x))}+\frac{\int 1 \, dx}{16}\\ &=\frac{x}{16}-\frac{1}{8 (1+\coth (x))^4}-\frac{1}{12 (1+\coth (x))^3}-\frac{1}{16 (1+\coth (x))^2}-\frac{1}{16 (1+\coth (x))}\\ \end{align*}
Mathematica [A] time = 0.121232, size = 53, normalized size = 1.15 \[ \frac{1}{384} (\cosh (4 x)-\sinh (4 x)) (32 \sinh (2 x)+24 x \sinh (4 x)+3 \sinh (4 x)+64 \cosh (2 x)+3 (8 x-1) \cosh (4 x)-36) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.017, size = 48, normalized size = 1. \begin{align*} -{\frac{1}{8\, \left ( 1+{\rm coth} \left (x\right ) \right ) ^{4}}}-{\frac{1}{12\, \left ( 1+{\rm coth} \left (x\right ) \right ) ^{3}}}-{\frac{1}{16\, \left ( 1+{\rm coth} \left (x\right ) \right ) ^{2}}}-{\frac{1}{16+16\,{\rm coth} \left (x\right )}}+{\frac{\ln \left ( 1+{\rm coth} \left (x\right ) \right ) }{32}}-{\frac{\ln \left ({\rm coth} \left (x\right )-1 \right ) }{32}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.17884, size = 38, normalized size = 0.83 \begin{align*} \frac{1}{16} \, x + \frac{1}{8} \, e^{\left (-2 \, x\right )} - \frac{3}{32} \, e^{\left (-4 \, x\right )} + \frac{1}{24} \, e^{\left (-6 \, x\right )} - \frac{1}{128} \, e^{\left (-8 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.37733, size = 394, normalized size = 8.57 \begin{align*} \frac{3 \,{\left (8 \, x - 1\right )} \cosh \left (x\right )^{4} + 12 \,{\left (8 \, x + 1\right )} \cosh \left (x\right ) \sinh \left (x\right )^{3} + 3 \,{\left (8 \, x - 1\right )} \sinh \left (x\right )^{4} + 2 \,{\left (9 \,{\left (8 \, x - 1\right )} \cosh \left (x\right )^{2} + 32\right )} \sinh \left (x\right )^{2} + 64 \, \cosh \left (x\right )^{2} + 4 \,{\left (3 \,{\left (8 \, x + 1\right )} \cosh \left (x\right )^{3} + 16 \, \cosh \left (x\right )\right )} \sinh \left (x\right ) - 36}{384 \,{\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} \sinh \left (x\right ) + 6 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 2.55462, size = 299, normalized size = 6.5 \begin{align*} \frac{3 x \tanh ^{4}{\left (x \right )}}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} + \frac{12 x \tanh ^{3}{\left (x \right )}}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} + \frac{18 x \tanh ^{2}{\left (x \right )}}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} + \frac{12 x \tanh{\left (x \right )}}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} + \frac{3 x}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} + \frac{45 \tanh ^{3}{\left (x \right )}}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} + \frac{84 \tanh ^{2}{\left (x \right )}}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} + \frac{61 \tanh{\left (x \right )}}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} + \frac{16}{48 \tanh ^{4}{\left (x \right )} + 192 \tanh ^{3}{\left (x \right )} + 288 \tanh ^{2}{\left (x \right )} + 192 \tanh{\left (x \right )} + 48} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15168, size = 41, normalized size = 0.89 \begin{align*} \frac{1}{384} \,{\left (48 \, e^{\left (6 \, x\right )} - 36 \, e^{\left (4 \, x\right )} + 16 \, e^{\left (2 \, x\right )} - 3\right )} e^{\left (-8 \, x\right )} + \frac{1}{16} \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]