Optimal. Leaf size=43 \[ \frac {3 x}{2 a}-\frac {2 \sinh (x)}{a}-\frac {\sinh (x) \cosh ^2(x)}{a \cosh (x)+a}+\frac {3 \sinh (x) \cosh (x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2767, 2734} \[ \frac {3 x}{2 a}-\frac {2 \sinh (x)}{a}-\frac {\sinh (x) \cosh ^2(x)}{a \cosh (x)+a}+\frac {3 \sinh (x) \cosh (x)}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2734
Rule 2767
Rubi steps
\begin {align*} \int \frac {\cosh ^3(x)}{a+a \cosh (x)} \, dx &=-\frac {\cosh ^2(x) \sinh (x)}{a+a \cosh (x)}-\frac {\int \cosh (x) (2 a-3 a \cosh (x)) \, dx}{a^2}\\ &=\frac {3 x}{2 a}-\frac {2 \sinh (x)}{a}+\frac {3 \cosh (x) \sinh (x)}{2 a}-\frac {\cosh ^2(x) \sinh (x)}{a+a \cosh (x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 45, normalized size = 1.05 \[ \frac {\text {sech}\left (\frac {x}{2}\right ) \left (-12 \sinh \left (\frac {x}{2}\right )-3 \sinh \left (\frac {3 x}{2}\right )+\sinh \left (\frac {5 x}{2}\right )+12 x \cosh \left (\frac {x}{2}\right )\right )}{8 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 3.49, size = 70, normalized size = 1.63 \[ \frac {\cosh \relax (x)^{3} + {\left (3 \, \cosh \relax (x) - 4\right )} \sinh \relax (x)^{2} + \sinh \relax (x)^{3} + {\left (12 \, x - 1\right )} \cosh \relax (x) - 4 \, \cosh \relax (x)^{2} + {\left (3 \, \cosh \relax (x)^{2} + 12 \, x - 4 \, \cosh \relax (x) - 7\right )} \sinh \relax (x) + 12 \, x + 20}{8 \, {\left (a \cosh \relax (x) + a \sinh \relax (x) + a\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 51, normalized size = 1.19 \[ \frac {3 \, x}{2 \, a} + \frac {{\left (20 \, e^{\left (2 \, x\right )} + 3 \, e^{x} - 1\right )} e^{\left (-2 \, x\right )}}{8 \, a {\left (e^{x} + 1\right )}} + \frac {a e^{\left (2 \, x\right )} - 4 \, a e^{x}}{8 \, a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.07, size = 87, normalized size = 2.02 \[ -\frac {\tanh \left (\frac {x}{2}\right )}{a}+\frac {1}{2 a \left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {3}{2 a \left (\tanh \left (\frac {x}{2}\right )-1\right )}-\frac {3 \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{2 a}-\frac {1}{2 a \left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {3}{2 a \left (\tanh \left (\frac {x}{2}\right )+1\right )}+\frac {3 \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{2 a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 56, normalized size = 1.30 \[ \frac {3 \, x}{2 \, a} + \frac {4 \, e^{\left (-x\right )} - e^{\left (-2 \, x\right )}}{8 \, a} - \frac {3 \, e^{\left (-x\right )} + 20 \, e^{\left (-2 \, x\right )} - 1}{8 \, {\left (a e^{\left (-2 \, x\right )} + a e^{\left (-3 \, x\right )}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.92, size = 52, normalized size = 1.21 \[ \frac {{\mathrm {e}}^{-x}}{2\,a}-\frac {{\mathrm {e}}^{-2\,x}}{8\,a}+\frac {{\mathrm {e}}^{2\,x}}{8\,a}+\frac {3\,x}{2\,a}+\frac {2}{a\,\left ({\mathrm {e}}^x+1\right )}-\frac {{\mathrm {e}}^x}{2\,a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.11, size = 189, normalized size = 4.40 \[ \frac {3 x \tanh ^{4}{\left (\frac {x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 2 a} - \frac {6 x \tanh ^{2}{\left (\frac {x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 2 a} + \frac {3 x}{2 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 2 a} - \frac {2 \tanh ^{5}{\left (\frac {x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 2 a} + \frac {10 \tanh ^{3}{\left (\frac {x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 2 a} - \frac {4 \tanh {\left (\frac {x}{2} \right )}}{2 a \tanh ^{4}{\left (\frac {x}{2} \right )} - 4 a \tanh ^{2}{\left (\frac {x}{2} \right )} + 2 a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________