Optimal. Leaf size=46 \[ \frac {(a-a \cosh (x))^4}{a^5}-\frac {4 (a-a \cosh (x))^5}{5 a^6}+\frac {(a-a \cosh (x))^6}{6 a^7} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2746, 45}
\begin {gather*} \frac {(a-a \cosh (x))^6}{6 a^7}-\frac {4 (a-a \cosh (x))^5}{5 a^6}+\frac {(a-a \cosh (x))^4}{a^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2746
Rubi steps
\begin {align*} \int \frac {\sinh ^7(x)}{a+a \cosh (x)} \, dx &=-\frac {\text {Subst}\left (\int (a-x)^3 (a+x)^2 \, dx,x,a \cosh (x)\right )}{a^7}\\ &=-\frac {\text {Subst}\left (\int \left (4 a^2 (a-x)^3-4 a (a-x)^4+(a-x)^5\right ) \, dx,x,a \cosh (x)\right )}{a^7}\\ &=\frac {(a-a \cosh (x))^4}{a^5}-\frac {4 (a-a \cosh (x))^5}{5 a^6}+\frac {(a-a \cosh (x))^6}{6 a^7}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 27, normalized size = 0.59 \begin {gather*} \frac {4 (27+28 \cosh (x)+5 \cosh (2 x)) \sinh ^8\left (\frac {x}{2}\right )}{15 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(106\) vs.
\(2(42)=84\).
time = 0.49, size = 107, normalized size = 2.33
method | result | size |
default | \(\frac {\frac {1}{6 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{6}}+\frac {7}{10 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{5}}+\frac {7}{8 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{4}}-\frac {7}{16 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {7}{16 \left (\tanh \left (\frac {x}{2}\right )-1\right )}+\frac {1}{6 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{6}}-\frac {7}{10 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{5}}+\frac {7}{8 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{4}}-\frac {7}{16 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}-\frac {7}{16 \left (\tanh \left (\frac {x}{2}\right )+1\right )}}{a}\) | \(107\) |
risch | \(\frac {{\mathrm e}^{6 x}}{384 a}-\frac {{\mathrm e}^{5 x}}{160 a}-\frac {{\mathrm e}^{4 x}}{64 a}+\frac {5 \,{\mathrm e}^{3 x}}{96 a}+\frac {5 \,{\mathrm e}^{2 x}}{128 a}-\frac {5 \,{\mathrm e}^{x}}{16 a}-\frac {5 \,{\mathrm e}^{-x}}{16 a}+\frac {5 \,{\mathrm e}^{-2 x}}{128 a}+\frac {5 \,{\mathrm e}^{-3 x}}{96 a}-\frac {{\mathrm e}^{-4 x}}{64 a}-\frac {{\mathrm e}^{-5 x}}{160 a}+\frac {{\mathrm e}^{-6 x}}{384 a}\) | \(108\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 84, normalized size = 1.83 \begin {gather*} -\frac {{\left (12 \, e^{\left (-x\right )} + 30 \, e^{\left (-2 \, x\right )} - 100 \, e^{\left (-3 \, x\right )} - 75 \, e^{\left (-4 \, x\right )} + 600 \, e^{\left (-5 \, x\right )} - 5\right )} e^{\left (6 \, x\right )}}{1920 \, a} - \frac {600 \, e^{\left (-x\right )} - 75 \, e^{\left (-2 \, x\right )} - 100 \, e^{\left (-3 \, x\right )} + 30 \, e^{\left (-4 \, x\right )} + 12 \, e^{\left (-5 \, x\right )} - 5 \, e^{\left (-6 \, x\right )}}{1920 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 94 vs.
\(2 (45) = 90\).
time = 0.38, size = 94, normalized size = 2.04 \begin {gather*} \frac {5 \, \cosh \left (x\right )^{6} + 5 \, \sinh \left (x\right )^{6} - 12 \, \cosh \left (x\right )^{5} + 15 \, {\left (5 \, \cosh \left (x\right )^{2} - 4 \, \cosh \left (x\right ) - 2\right )} \sinh \left (x\right )^{4} - 30 \, \cosh \left (x\right )^{4} + 100 \, \cosh \left (x\right )^{3} + 15 \, {\left (5 \, \cosh \left (x\right )^{4} - 8 \, \cosh \left (x\right )^{3} - 12 \, \cosh \left (x\right )^{2} + 20 \, \cosh \left (x\right ) + 5\right )} \sinh \left (x\right )^{2} + 75 \, \cosh \left (x\right )^{2} - 600 \, \cosh \left (x\right )}{960 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 284 vs.
\(2 (39) = 78\).
time = 2.31, size = 284, normalized size = 6.17 \begin {gather*} \frac {320 \tanh ^{6}{\left (\frac {x}{2} \right )}}{15 a \tanh ^{12}{\left (\frac {x}{2} \right )} - 90 a \tanh ^{10}{\left (\frac {x}{2} \right )} + 225 a \tanh ^{8}{\left (\frac {x}{2} \right )} - 300 a \tanh ^{6}{\left (\frac {x}{2} \right )} + 225 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 90 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 15 a} - \frac {240 \tanh ^{4}{\left (\frac {x}{2} \right )}}{15 a \tanh ^{12}{\left (\frac {x}{2} \right )} - 90 a \tanh ^{10}{\left (\frac {x}{2} \right )} + 225 a \tanh ^{8}{\left (\frac {x}{2} \right )} - 300 a \tanh ^{6}{\left (\frac {x}{2} \right )} + 225 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 90 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 15 a} + \frac {96 \tanh ^{2}{\left (\frac {x}{2} \right )}}{15 a \tanh ^{12}{\left (\frac {x}{2} \right )} - 90 a \tanh ^{10}{\left (\frac {x}{2} \right )} + 225 a \tanh ^{8}{\left (\frac {x}{2} \right )} - 300 a \tanh ^{6}{\left (\frac {x}{2} \right )} + 225 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 90 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 15 a} - \frac {16}{15 a \tanh ^{12}{\left (\frac {x}{2} \right )} - 90 a \tanh ^{10}{\left (\frac {x}{2} \right )} + 225 a \tanh ^{8}{\left (\frac {x}{2} \right )} - 300 a \tanh ^{6}{\left (\frac {x}{2} \right )} + 225 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 90 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 15 a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 75, normalized size = 1.63 \begin {gather*} -\frac {{\left (600 \, e^{\left (5 \, x\right )} - 75 \, e^{\left (4 \, x\right )} - 100 \, e^{\left (3 \, x\right )} + 30 \, e^{\left (2 \, x\right )} + 12 \, e^{x} - 5\right )} e^{\left (-6 \, x\right )} - 5 \, e^{\left (6 \, x\right )} + 12 \, e^{\left (5 \, x\right )} + 30 \, e^{\left (4 \, x\right )} - 100 \, e^{\left (3 \, x\right )} - 75 \, e^{\left (2 \, x\right )} + 600 \, e^{x}}{1920 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.13, size = 107, normalized size = 2.33 \begin {gather*} \frac {5\,{\mathrm {e}}^{-2\,x}}{128\,a}-\frac {5\,{\mathrm {e}}^{-x}}{16\,a}+\frac {5\,{\mathrm {e}}^{2\,x}}{128\,a}+\frac {5\,{\mathrm {e}}^{-3\,x}}{96\,a}+\frac {5\,{\mathrm {e}}^{3\,x}}{96\,a}-\frac {{\mathrm {e}}^{-4\,x}}{64\,a}-\frac {{\mathrm {e}}^{4\,x}}{64\,a}-\frac {{\mathrm {e}}^{-5\,x}}{160\,a}-\frac {{\mathrm {e}}^{5\,x}}{160\,a}+\frac {{\mathrm {e}}^{-6\,x}}{384\,a}+\frac {{\mathrm {e}}^{6\,x}}{384\,a}-\frac {5\,{\mathrm {e}}^x}{16\,a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________