Optimal. Leaf size=44 \[ -\frac{x}{8 a}-\frac{\sinh ^3(x)}{3 a}+\frac{\sinh (x) \cosh ^3(x)}{4 a}-\frac{\sinh (x) \cosh (x)}{8 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.139033, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.538, Rules used = {3872, 2839, 2564, 30, 2568, 2635, 8} \[ -\frac{x}{8 a}-\frac{\sinh ^3(x)}{3 a}+\frac{\sinh (x) \cosh ^3(x)}{4 a}-\frac{\sinh (x) \cosh (x)}{8 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2839
Rule 2564
Rule 30
Rule 2568
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{\sinh ^4(x)}{a+a \text{sech}(x)} \, dx &=-\int \frac{\cosh (x) \sinh ^4(x)}{-a-a \cosh (x)} \, dx\\ &=-\frac{\int \cosh (x) \sinh ^2(x) \, dx}{a}+\frac{\int \cosh ^2(x) \sinh ^2(x) \, dx}{a}\\ &=\frac{\cosh ^3(x) \sinh (x)}{4 a}-\frac{i \operatorname{Subst}\left (\int x^2 \, dx,x,i \sinh (x)\right )}{a}-\frac{\int \cosh ^2(x) \, dx}{4 a}\\ &=-\frac{\cosh (x) \sinh (x)}{8 a}+\frac{\cosh ^3(x) \sinh (x)}{4 a}-\frac{\sinh ^3(x)}{3 a}-\frac{\int 1 \, dx}{8 a}\\ &=-\frac{x}{8 a}-\frac{\cosh (x) \sinh (x)}{8 a}+\frac{\cosh ^3(x) \sinh (x)}{4 a}-\frac{\sinh ^3(x)}{3 a}\\ \end{align*}
Mathematica [A] time = 0.101697, size = 28, normalized size = 0.64 \[ \frac{24 \sinh (x)-8 \sinh (3 x)+3 (\sinh (4 x)-4 x)}{96 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.029, size = 130, normalized size = 3. \begin{align*} -{\frac{1}{4\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-4}}+{\frac{5}{6\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-3}}-{\frac{7}{8\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}+{\frac{1}{8\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{1}{8\,a}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }+{\frac{1}{4\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-4}}+{\frac{5}{6\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-3}}+{\frac{7}{8\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}+{\frac{1}{8\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{\frac{1}{8\,a}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.10776, size = 73, normalized size = 1.66 \begin{align*} -\frac{{\left (8 \, e^{\left (-x\right )} - 24 \, e^{\left (-3 \, x\right )} - 3\right )} e^{\left (4 \, x\right )}}{192 \, a} - \frac{x}{8 \, a} - \frac{24 \, e^{\left (-x\right )} - 8 \, e^{\left (-3 \, x\right )} + 3 \, e^{\left (-4 \, x\right )}}{192 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.38664, size = 113, normalized size = 2.57 \begin{align*} \frac{{\left (3 \, \cosh \left (x\right ) - 2\right )} \sinh \left (x\right )^{3} + 3 \,{\left (\cosh \left (x\right )^{3} - 2 \, \cosh \left (x\right )^{2} + 2\right )} \sinh \left (x\right ) - 3 \, x}{24 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\sinh ^{4}{\left (x \right )}}{\operatorname{sech}{\left (x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08968, size = 57, normalized size = 1.3 \begin{align*} -\frac{{\left (24 \, e^{\left (3 \, x\right )} - 8 \, e^{x} + 3\right )} e^{\left (-4 \, x\right )} + 24 \, x - 3 \, e^{\left (4 \, x\right )} + 8 \, e^{\left (3 \, x\right )} - 24 \, e^{x}}{192 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]