Optimal. Leaf size=26 \[ \frac {1}{2} \text {ArcTan}(\tanh (x))+\frac {\text {sech}^2(x) \tanh (x)}{2 \left (1+\tanh ^2(x)\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {424, 21, 209}
\begin {gather*} \frac {1}{2} \text {ArcTan}(\tanh (x))+\frac {\tanh (x) \text {sech}^2(x)}{2 \left (\tanh ^2(x)+1\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 209
Rule 424
Rubi steps
\begin {align*} \int \frac {1}{\left (\cosh ^2(x)+\sinh ^2(x)\right )^3} \, dx &=\text {Subst}\left (\int \frac {\left (1-x^2\right )^2}{\left (1+x^2\right )^3} \, dx,x,\tanh (x)\right )\\ &=\frac {\text {sech}^2(x) \tanh (x)}{2 \left (1+\tanh ^2(x)\right )^2}+\frac {1}{4} \text {Subst}\left (\int \frac {2+2 x^2}{\left (1+x^2\right )^2} \, dx,x,\tanh (x)\right )\\ &=\frac {\text {sech}^2(x) \tanh (x)}{2 \left (1+\tanh ^2(x)\right )^2}+\frac {1}{2} \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\tanh (x)\right )\\ &=\frac {1}{2} \tan ^{-1}(\tanh (x))+\frac {\text {sech}^2(x) \tanh (x)}{2 \left (1+\tanh ^2(x)\right )^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 22, normalized size = 0.85 \begin {gather*} \frac {1}{4} \text {ArcTan}(\sinh (2 x))+\frac {1}{4} \text {sech}(2 x) \tanh (2 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(122\) vs.
\(2(22)=44\).
time = 1.36, size = 123, normalized size = 4.73
method | result | size |
risch | \(\frac {{\mathrm e}^{2 x} \left ({\mathrm e}^{4 x}-1\right )}{2 \left (1+{\mathrm e}^{4 x}\right )^{2}}+\frac {i \ln \left ({\mathrm e}^{2 x}+i\right )}{4}-\frac {i \ln \left ({\mathrm e}^{2 x}-i\right )}{4}\) | \(44\) |
default | \(-\frac {2 \left (-\frac {\left (\tanh ^{7}\left (\frac {x}{2}\right )\right )}{2}+\frac {\left (\tanh ^{5}\left (\frac {x}{2}\right )\right )}{2}+\frac {\left (\tanh ^{3}\left (\frac {x}{2}\right )\right )}{2}-\frac {\tanh \left (\frac {x}{2}\right )}{2}\right )}{\left (\tanh ^{4}\left (\frac {x}{2}\right )+6 \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )+1\right )^{2}}-\frac {\left (2+\sqrt {2}\right ) \sqrt {2}\, \arctan \left (\frac {2 \tanh \left (\frac {x}{2}\right )}{2+2 \sqrt {2}}\right )}{2 \left (2+2 \sqrt {2}\right )}-\frac {\left (-2+\sqrt {2}\right ) \sqrt {2}\, \arctan \left (\frac {2 \tanh \left (\frac {x}{2}\right )}{-2+2 \sqrt {2}}\right )}{2 \left (-2+2 \sqrt {2}\right )}\) | \(123\) |
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 (22) = 44\).
time = 0.47, size = 64, normalized size = 2.46 \begin {gather*} \frac {e^{\left (-2 \, x\right )} - e^{\left (-6 \, x\right )}}{2 \, {\left (2 \, e^{\left (-4 \, x\right )} + e^{\left (-8 \, x\right )} + 1\right )}} + \frac {1}{2} \, \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, e^{\left (-x\right )}\right )}\right ) - \frac {1}{2} \, \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, e^{\left (-x\right )}\right )}\right ) \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. 304 vs.
\(2 (22) = 44\).
time = 0.41, size = 304, normalized size = 11.69 \begin {gather*} \frac {\cosh \left (x\right )^{6} + 20 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{3} + 15 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{4} + 6 \, \cosh \left (x\right ) \sinh \left (x\right )^{5} + \sinh \left (x\right )^{6} + {\left (15 \, \cosh \left (x\right )^{4} - 1\right )} \sinh \left (x\right )^{2} - {\left (\cosh \left (x\right )^{8} + 56 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{5} + 28 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{6} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} + 1\right )} \sinh \left (x\right )^{4} + 2 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} + \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} + 3 \, \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} + \cosh \left (x\right )^{3}\right )} \sinh \left (x\right ) + 1\right )} \arctan \left (-\frac {\cosh \left (x\right ) + \sinh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) - \cosh \left (x\right )^{2} + 2 \, {\left (3 \, \cosh \left (x\right )^{5} - \cosh \left (x\right )\right )} \sinh \left (x\right )}{2 \, {\left (\cosh \left (x\right )^{8} + 56 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{5} + 28 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{6} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} + 1\right )} \sinh \left (x\right )^{4} + 2 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} + \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} + 3 \, \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} + \cosh \left (x\right )^{3}\right )} \sinh \left (x\right ) + 1\right )}} \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. 3602 vs.
\(2 (24) = 48\).
time = 143.40, size = 3602, normalized size = 138.54 \begin {gather*} \text {Too large to display} \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. 46 vs.
\(2 (22) = 44\).
time = 0.41, size = 46, normalized size = 1.77 \begin {gather*} \frac {e^{\left (2 \, x\right )} - e^{\left (-2 \, x\right )}}{2 \, {\left ({\left (e^{\left (2 \, x\right )} - e^{\left (-2 \, x\right )}\right )}^{2} + 4\right )}} + \frac {1}{4} \, \arctan \left (\frac {1}{2} \, {\left (e^{\left (4 \, x\right )} - 1\right )} e^{\left (-2 \, x\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.56, size = 28, normalized size = 1.08 \begin {gather*} \frac {\mathrm {atan}\left ({\mathrm {e}}^{2\,x}\right )}{2}-\frac {{\mathrm {e}}^{-2\,x}}{4\,{\mathrm {cosh}\left (2\,x\right )}^2}+\frac {1}{4\,\mathrm {cosh}\left (2\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________