Optimal. Leaf size=19 \[ -x+\sqrt {2} \tanh ^{-1}\left (\sqrt {2} \tanh (x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {3250, 3260,
212} \begin {gather*} \sqrt {2} \tanh ^{-1}\left (\sqrt {2} \tanh (x)\right )-x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 3250
Rule 3260
Rubi steps
\begin {align*} \int \frac {1+\sinh ^2(x)}{1-\sinh ^2(x)} \, dx &=-x+2 \int \frac {1}{1-\sinh ^2(x)} \, dx\\ &=-x+2 \text {Subst}\left (\int \frac {1}{1-2 x^2} \, dx,x,\tanh (x)\right )\\ &=-x+\sqrt {2} \tanh ^{-1}\left (\sqrt {2} \tanh (x)\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 24, normalized size = 1.26 \begin {gather*} -2 \left (\frac {x}{2}-\frac {\tanh ^{-1}\left (\sqrt {2} \tanh (x)\right )}{\sqrt {2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(53\) vs.
\(2(15)=30\).
time = 0.76, size = 54, normalized size = 2.84
method | result | size |
risch | \(-x +\frac {\sqrt {2}\, \ln \left ({\mathrm e}^{2 x}-3+2 \sqrt {2}\right )}{2}-\frac {\sqrt {2}\, \ln \left ({\mathrm e}^{2 x}-3-2 \sqrt {2}\right )}{2}\) | \(39\) |
default | \(-\ln \left (\tanh \left (\frac {x}{2}\right )+1\right )+\ln \left (\tanh \left (\frac {x}{2}\right )-1\right )+\sqrt {2}\, \arctanh \left (\frac {\left (2 \tanh \left (\frac {x}{2}\right )+2\right ) \sqrt {2}}{4}\right )+\sqrt {2}\, \arctanh \left (\frac {\left (2 \tanh \left (\frac {x}{2}\right )-2\right ) \sqrt {2}}{4}\right )\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 64 vs.
\(2 (15) = 30\).
time = 0.47, size = 64, normalized size = 3.37 \begin {gather*} \frac {1}{2} \, \sqrt {2} \log \left (-\frac {\sqrt {2} - e^{\left (-x\right )} + 1}{\sqrt {2} + e^{\left (-x\right )} - 1}\right ) - \frac {1}{2} \, \sqrt {2} \log \left (-\frac {\sqrt {2} - e^{\left (-x\right )} - 1}{\sqrt {2} + e^{\left (-x\right )} + 1}\right ) - x \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. 70 vs.
\(2 (15) = 30\).
time = 0.39, size = 70, normalized size = 3.68 \begin {gather*} \frac {1}{2} \, \sqrt {2} \log \left (-\frac {3 \, {\left (2 \, \sqrt {2} - 3\right )} \cosh \left (x\right )^{2} - 4 \, {\left (3 \, \sqrt {2} - 4\right )} \cosh \left (x\right ) \sinh \left (x\right ) + 3 \, {\left (2 \, \sqrt {2} - 3\right )} \sinh \left (x\right )^{2} - 2 \, \sqrt {2} + 3}{\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} - 3}\right ) - x \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. 238 vs.
\(2 (15) = 30\).
time = 3.69, size = 238, normalized size = 12.53 \begin {gather*} - \frac {1331714 x}{941664 \sqrt {2} + 1331714} - \frac {941664 \sqrt {2} x}{941664 \sqrt {2} + 1331714} + \frac {941664 \log {\left (\tanh {\left (\frac {x}{2} \right )} - 1 + \sqrt {2} \right )}}{941664 \sqrt {2} + 1331714} + \frac {665857 \sqrt {2} \log {\left (\tanh {\left (\frac {x}{2} \right )} - 1 + \sqrt {2} \right )}}{941664 \sqrt {2} + 1331714} + \frac {941664 \log {\left (\tanh {\left (\frac {x}{2} \right )} + 1 + \sqrt {2} \right )}}{941664 \sqrt {2} + 1331714} + \frac {665857 \sqrt {2} \log {\left (\tanh {\left (\frac {x}{2} \right )} + 1 + \sqrt {2} \right )}}{941664 \sqrt {2} + 1331714} - \frac {665857 \sqrt {2} \log {\left (\tanh {\left (\frac {x}{2} \right )} - \sqrt {2} - 1 \right )}}{941664 \sqrt {2} + 1331714} - \frac {941664 \log {\left (\tanh {\left (\frac {x}{2} \right )} - \sqrt {2} - 1 \right )}}{941664 \sqrt {2} + 1331714} - \frac {665857 \sqrt {2} \log {\left (\tanh {\left (\frac {x}{2} \right )} - \sqrt {2} + 1 \right )}}{941664 \sqrt {2} + 1331714} - \frac {941664 \log {\left (\tanh {\left (\frac {x}{2} \right )} - \sqrt {2} + 1 \right )}}{941664 \sqrt {2} + 1331714} \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. 41 vs.
\(2 (15) = 30\).
time = 0.40, size = 41, normalized size = 2.16 \begin {gather*} -\frac {1}{2} \, \sqrt {2} \log \left (\frac {{\left | -4 \, \sqrt {2} + 2 \, e^{\left (2 \, x\right )} - 6 \right |}}{{\left | 4 \, \sqrt {2} + 2 \, e^{\left (2 \, x\right )} - 6 \right |}}\right ) - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 56, normalized size = 2.95 \begin {gather*} \frac {\sqrt {2}\,\ln \left (8\,{\mathrm {e}}^{2\,x}+\frac {\sqrt {2}\,\left (12\,{\mathrm {e}}^{2\,x}-4\right )}{2}\right )}{2}-\frac {\sqrt {2}\,\ln \left (8\,{\mathrm {e}}^{2\,x}-\frac {\sqrt {2}\,\left (12\,{\mathrm {e}}^{2\,x}-4\right )}{2}\right )}{2}-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________