Optimal. Leaf size=22 \[ \frac {3 x}{2}-\frac {3 \coth (x)}{2}+\frac {1}{2} \cosh ^2(x) \coth (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {296, 331, 212}
\begin {gather*} \frac {3 x}{2}-\frac {3 \coth (x)}{2}+\frac {1}{2} \cosh ^2(x) \coth (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 296
Rule 331
Rubi steps
\begin {align*} \int (\text {csch}(x)+\sinh (x))^2 \, dx &=\text {Subst}\left (\int \frac {1}{x^2 \left (1-x^2\right )^2} \, dx,x,\tanh (x)\right )\\ &=\frac {1}{2} \cosh ^2(x) \coth (x)+\frac {3}{2} \text {Subst}\left (\int \frac {1}{x^2 \left (1-x^2\right )} \, dx,x,\tanh (x)\right )\\ &=-\frac {3 \coth (x)}{2}+\frac {1}{2} \cosh ^2(x) \coth (x)+\frac {3}{2} \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\tanh (x)\right )\\ &=\frac {3 x}{2}-\frac {3 \coth (x)}{2}+\frac {1}{2} \cosh ^2(x) \coth (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 18, normalized size = 0.82 \begin {gather*} \frac {3 x}{2}-\coth (x)+\frac {1}{4} \sinh (2 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.75, size = 27, normalized size = 1.23
method | result | size |
risch | \(\frac {3 x}{2}+\frac {{\mathrm e}^{2 x}}{8}-\frac {{\mathrm e}^{-2 x}}{8}-\frac {2}{{\mathrm e}^{2 x}-1}\) | \(27\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 26, normalized size = 1.18 \begin {gather*} \frac {3}{2} \, x + \frac {2}{e^{\left (-2 \, x\right )} - 1} + \frac {1}{8} \, e^{\left (2 \, x\right )} - \frac {1}{8} \, e^{\left (-2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 32, normalized size = 1.45 \begin {gather*} \frac {\cosh \left (x\right )^{3} + 3 \, \cosh \left (x\right ) \sinh \left (x\right )^{2} + 4 \, {\left (3 \, x + 2\right )} \sinh \left (x\right ) - 9 \, \cosh \left (x\right )}{8 \, \sinh \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (\sinh {\left (x \right )} + \operatorname {csch}{\left (x \right )}\right )^{2}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 39 vs.
\(2 (16) = 32\).
time = 0.42, size = 39, normalized size = 1.77 \begin {gather*} \frac {3}{2} \, x - \frac {3 \, e^{\left (4 \, x\right )} + 14 \, e^{\left (2 \, x\right )} - 1}{8 \, {\left (e^{\left (4 \, x\right )} - e^{\left (2 \, x\right )}\right )}} + \frac {1}{8} \, e^{\left (2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.58, size = 26, normalized size = 1.18 \begin {gather*} \frac {3\,x}{2}-\frac {{\mathrm {e}}^{-2\,x}}{8}+\frac {{\mathrm {e}}^{2\,x}}{8}-\frac {2}{{\mathrm {e}}^{2\,x}-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________