Optimal. Leaf size=60 \[ \frac {5 x}{16}+\frac {1}{8 (1-\tanh (x))}-\frac {3}{16 (\tanh (x)+1)}+\frac {1}{32 (1-\tanh (x))^2}-\frac {3}{32 (\tanh (x)+1)^2}-\frac {1}{24 (\tanh (x)+1)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {3487, 44, 207} \[ \frac {5 x}{16}+\frac {1}{8 (1-\tanh (x))}-\frac {3}{16 (\tanh (x)+1)}+\frac {1}{32 (1-\tanh (x))^2}-\frac {3}{32 (\tanh (x)+1)^2}-\frac {1}{24 (\tanh (x)+1)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 207
Rule 3487
Rubi steps
\begin {align*} \int \frac {\cosh ^4(x)}{1+\tanh (x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{(1-x)^3 (1+x)^4} \, dx,x,\tanh (x)\right )\\ &=\operatorname {Subst}\left (\int \left (-\frac {1}{16 (-1+x)^3}+\frac {1}{8 (-1+x)^2}+\frac {1}{8 (1+x)^4}+\frac {3}{16 (1+x)^3}+\frac {3}{16 (1+x)^2}-\frac {5}{16 \left (-1+x^2\right )}\right ) \, dx,x,\tanh (x)\right )\\ &=\frac {1}{32 (1-\tanh (x))^2}+\frac {1}{8 (1-\tanh (x))}-\frac {1}{24 (1+\tanh (x))^3}-\frac {3}{32 (1+\tanh (x))^2}-\frac {3}{16 (1+\tanh (x))}-\frac {5}{16} \operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\tanh (x)\right )\\ &=\frac {5 x}{16}+\frac {1}{32 (1-\tanh (x))^2}+\frac {1}{8 (1-\tanh (x))}-\frac {1}{24 (1+\tanh (x))^3}-\frac {3}{32 (1+\tanh (x))^2}-\frac {3}{16 (1+\tanh (x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 42, normalized size = 0.70 \[ \frac {1}{192} (60 x+45 \sinh (2 x)+9 \sinh (4 x)+\sinh (6 x)-15 \cosh (2 x)-6 \cosh (4 x)-\cosh (6 x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.49, size = 95, normalized size = 1.58 \[ \frac {\cosh \relax (x)^{5} + 5 \, \cosh \relax (x) \sinh \relax (x)^{4} + 5 \, \sinh \relax (x)^{5} + 5 \, {\left (10 \, \cosh \relax (x)^{2} + 9\right )} \sinh \relax (x)^{3} + 15 \, \cosh \relax (x)^{3} + 5 \, {\left (2 \, \cosh \relax (x)^{3} + 9 \, \cosh \relax (x)\right )} \sinh \relax (x)^{2} + 60 \, {\left (2 \, x - 1\right )} \cosh \relax (x) + 5 \, {\left (5 \, \cosh \relax (x)^{4} + 27 \, \cosh \relax (x)^{2} + 24 \, x + 12\right )} \sinh \relax (x)}{384 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.11, size = 42, normalized size = 0.70 \[ -\frac {1}{384} \, {\left (110 \, e^{\left (6 \, x\right )} + 60 \, e^{\left (4 \, x\right )} + 15 \, e^{\left (2 \, x\right )} + 2\right )} e^{\left (-6 \, x\right )} + \frac {5}{16} \, x + \frac {1}{128} \, e^{\left (4 \, x\right )} + \frac {5}{64} \, e^{\left (2 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.12, size = 116, normalized size = 1.93 \[ \frac {1}{8 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{4}}+\frac {1}{4 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}+\frac {1}{2 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {3}{8 \left (\tanh \left (\frac {x}{2}\right )-1\right )}-\frac {5 \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{16}-\frac {1}{3 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{6}}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{5}}-\frac {15}{8 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{4}}+\frac {25}{12 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}-\frac {15}{8 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {1}{\tanh \left (\frac {x}{2}\right )+1}+\frac {5 \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{16} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 36, normalized size = 0.60 \[ \frac {1}{128} \, {\left (10 \, e^{\left (-2 \, x\right )} + 1\right )} e^{\left (4 \, x\right )} + \frac {5}{16} \, x - \frac {5}{32} \, e^{\left (-2 \, x\right )} - \frac {5}{128} \, e^{\left (-4 \, x\right )} - \frac {1}{192} \, e^{\left (-6 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.29, size = 34, normalized size = 0.57 \[ \frac {5\,x}{16}-\frac {5\,{\mathrm {e}}^{-2\,x}}{32}+\frac {5\,{\mathrm {e}}^{2\,x}}{64}-\frac {5\,{\mathrm {e}}^{-4\,x}}{128}+\frac {{\mathrm {e}}^{4\,x}}{128}-\frac {{\mathrm {e}}^{-6\,x}}{192} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cosh ^{4}{\relax (x )}}{\tanh {\relax (x )} + 1}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________