Optimal. Leaf size=69 \[ -\frac {1}{4} \sqrt {2-\sqrt {2}} \text {ArcTan}\left (\frac {2 \sinh (x)}{\sqrt {2-\sqrt {2}}}\right )-\frac {1}{4} \sqrt {2+\sqrt {2}} \text {ArcTan}\left (\frac {2 \sinh (x)}{\sqrt {2+\sqrt {2}}}\right )+\sinh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {12, 1293, 1180,
209} \begin {gather*} -\frac {1}{4} \sqrt {2-\sqrt {2}} \text {ArcTan}\left (\frac {2 \sinh (x)}{\sqrt {2-\sqrt {2}}}\right )-\frac {1}{4} \sqrt {2+\sqrt {2}} \text {ArcTan}\left (\frac {2 \sinh (x)}{\sqrt {2+\sqrt {2}}}\right )+\sinh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 209
Rule 1180
Rule 1293
Rubi steps
\begin {align*} \int \sinh (x) \tanh (4 x) \, dx &=-\text {Subst}\left (\int \frac {4 x^2 \left (-1-2 x^2\right )}{1+8 x^2+8 x^4} \, dx,x,\sinh (x)\right )\\ &=-\left (4 \text {Subst}\left (\int \frac {x^2 \left (-1-2 x^2\right )}{1+8 x^2+8 x^4} \, dx,x,\sinh (x)\right )\right )\\ &=\sinh (x)+\frac {1}{2} \text {Subst}\left (\int \frac {-2-8 x^2}{1+8 x^2+8 x^4} \, dx,x,\sinh (x)\right )\\ &=\sinh (x)+\left (-2+\sqrt {2}\right ) \text {Subst}\left (\int \frac {1}{4-2 \sqrt {2}+8 x^2} \, dx,x,\sinh (x)\right )-\left (2+\sqrt {2}\right ) \text {Subst}\left (\int \frac {1}{4+2 \sqrt {2}+8 x^2} \, dx,x,\sinh (x)\right )\\ &=-\frac {1}{4} \sqrt {2-\sqrt {2}} \tan ^{-1}\left (\frac {2 \sinh (x)}{\sqrt {2-\sqrt {2}}}\right )-\frac {1}{4} \sqrt {2+\sqrt {2}} \tan ^{-1}\left (\frac {2 \sinh (x)}{\sqrt {2+\sqrt {2}}}\right )+\sinh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 69, normalized size = 1.00 \begin {gather*} -\frac {1}{4} \sqrt {2-\sqrt {2}} \text {ArcTan}\left (\frac {2 \sinh (x)}{\sqrt {2-\sqrt {2}}}\right )-\frac {1}{4} \sqrt {2+\sqrt {2}} \text {ArcTan}\left (\frac {2 \sinh (x)}{\sqrt {2+\sqrt {2}}}\right )+\sinh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.29, size = 42, normalized size = 0.61
method | result | size |
risch | \(\frac {{\mathrm e}^{x}}{2}-\frac {{\mathrm e}^{-x}}{2}+\left (\munderset {\textit {\_R} =\RootOf \left (2048 \textit {\_Z}^{4}+128 \textit {\_Z}^{2}+1\right )}{\sum }\textit {\_R} \ln \left (-8 \textit {\_R} \,{\mathrm e}^{x}+{\mathrm e}^{2 x}-1\right )\right )\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \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. 168 vs.
\(2 (49) = 98\).
time = 0.38, size = 168, normalized size = 2.43 \begin {gather*} -\frac {1}{2} \, {\left (\sqrt {\sqrt {2} + 2} \arctan \left (\frac {1}{2} \, {\left (\sqrt {\sqrt {2} e^{\left (2 \, x\right )} + e^{\left (4 \, x\right )} + 1} \sqrt {\sqrt {2} + 2} {\left (\sqrt {2} - 2\right )} - {\left ({\left (\sqrt {2} - 2\right )} e^{\left (2 \, x\right )} - \sqrt {2} + 2\right )} \sqrt {\sqrt {2} + 2}\right )} e^{\left (-x\right )}\right ) e^{x} - \sqrt {-\sqrt {2} + 2} \arctan \left (\frac {1}{2} \, {\left (\sqrt {-\sqrt {2} e^{\left (2 \, x\right )} + e^{\left (4 \, x\right )} + 1} {\left (\sqrt {2} + 2\right )} \sqrt {-\sqrt {2} + 2} - {\left ({\left (\sqrt {2} + 2\right )} e^{\left (2 \, x\right )} - \sqrt {2} - 2\right )} \sqrt {-\sqrt {2} + 2}\right )} e^{\left (-x\right )}\right ) e^{x} - e^{\left (2 \, x\right )} + 1\right )} e^{\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 \sinh {\left (x \right )} \tanh {\left (4 x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.47, size = 71, normalized size = 1.03 \begin {gather*} -\frac {1}{4} \, \sqrt {\sqrt {2} + 2} \arctan \left (-\frac {e^{\left (-x\right )} - e^{x}}{\sqrt {\sqrt {2} + 2}}\right ) - \frac {1}{4} \, \sqrt {-\sqrt {2} + 2} \arctan \left (-\frac {e^{\left (-x\right )} - e^{x}}{\sqrt {-\sqrt {2} + 2}}\right ) - \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.77, size = 71, normalized size = 1.03 \begin {gather*} \frac {{\mathrm {e}}^x}{2}-\frac {{\mathrm {e}}^{-x}}{2}-\frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{-x}\,\left ({\mathrm {e}}^{2\,x}-1\right )}{\sqrt {\sqrt {2}+2}}\right )\,\sqrt {\sqrt {2}+2}}{4}-\frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{-x}\,\left ({\mathrm {e}}^{2\,x}-1\right )}{\sqrt {2-\sqrt {2}}}\right )\,\sqrt {2-\sqrt {2}}}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________