Optimal. Leaf size=69 \[ \cosh (x)-\frac {1}{4} \sqrt {2-\sqrt {2}} \tanh ^{-1}\left (\frac {2 \cosh (x)}{\sqrt {2-\sqrt {2}}}\right )-\frac {1}{4} \sqrt {2+\sqrt {2}} \tanh ^{-1}\left (\frac {2 \cosh (x)}{\sqrt {2+\sqrt {2}}}\right ) \]
[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, 1279, 1166, 207} \[ \cosh (x)-\frac {1}{4} \sqrt {2-\sqrt {2}} \tanh ^{-1}\left (\frac {2 \cosh (x)}{\sqrt {2-\sqrt {2}}}\right )-\frac {1}{4} \sqrt {2+\sqrt {2}} \tanh ^{-1}\left (\frac {2 \cosh (x)}{\sqrt {2+\sqrt {2}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 207
Rule 1166
Rule 1279
Rubi steps
\begin {align*} \int \cosh (x) \tanh (4 x) \, dx &=\operatorname {Subst}\left (\int \frac {4 x^2 \left (-1+2 x^2\right )}{1-8 x^2+8 x^4} \, dx,x,\cosh (x)\right )\\ &=4 \operatorname {Subst}\left (\int \frac {x^2 \left (-1+2 x^2\right )}{1-8 x^2+8 x^4} \, dx,x,\cosh (x)\right )\\ &=\cosh (x)-\frac {1}{2} \operatorname {Subst}\left (\int \frac {2-8 x^2}{1-8 x^2+8 x^4} \, dx,x,\cosh (x)\right )\\ &=\cosh (x)-\left (-2+\sqrt {2}\right ) \operatorname {Subst}\left (\int \frac {1}{-4+2 \sqrt {2}+8 x^2} \, dx,x,\cosh (x)\right )+\left (2+\sqrt {2}\right ) \operatorname {Subst}\left (\int \frac {1}{-4-2 \sqrt {2}+8 x^2} \, dx,x,\cosh (x)\right )\\ &=-\frac {1}{4} \sqrt {2-\sqrt {2}} \tanh ^{-1}\left (\frac {2 \cosh (x)}{\sqrt {2-\sqrt {2}}}\right )-\frac {1}{4} \sqrt {2+\sqrt {2}} \tanh ^{-1}\left (\frac {2 \cosh (x)}{\sqrt {2+\sqrt {2}}}\right )+\cosh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.02, size = 113, normalized size = 1.64 \[ \frac {1}{16} \text {RootSum}\left [\text {$\#$1}^8+1\& ,\frac {\text {$\#$1}^6 x+2 \text {$\#$1}^6 \log \left (-\text {$\#$1} \sinh \left (\frac {x}{2}\right )+\text {$\#$1} \cosh \left (\frac {x}{2}\right )-\sinh \left (\frac {x}{2}\right )-\cosh \left (\frac {x}{2}\right )\right )-2 \log \left (-\text {$\#$1} \sinh \left (\frac {x}{2}\right )+\text {$\#$1} \cosh \left (\frac {x}{2}\right )-\sinh \left (\frac {x}{2}\right )-\cosh \left (\frac {x}{2}\right )\right )-x}{\text {$\#$1}^7}\& \right ]+\cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.52, size = 213, normalized size = 3.09 \[ -\frac {\sqrt {\sqrt {2} + 2} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} + \sqrt {\sqrt {2} + 2} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} + 1\right ) - \sqrt {\sqrt {2} + 2} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - \sqrt {\sqrt {2} + 2} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} + 1\right ) + \sqrt {-\sqrt {2} + 2} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} + \sqrt {-\sqrt {2} + 2} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} + 1\right ) - \sqrt {-\sqrt {2} + 2} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} \log \left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2} - \sqrt {-\sqrt {2} + 2} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} + 1\right ) - 4 \, \cosh \relax (x)^{2} - 8 \, \cosh \relax (x) \sinh \relax (x) - 4 \, \sinh \relax (x)^{2} - 4}{8 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.21, size = 119, normalized size = 1.72 \[ -\frac {1}{8} \, \sqrt {\sqrt {2} + 2} \log \left (\sqrt {\sqrt {2} + 2} + e^{\left (-x\right )} + e^{x}\right ) + \frac {1}{8} \, \sqrt {\sqrt {2} + 2} \log \left (-\sqrt {\sqrt {2} + 2} + e^{\left (-x\right )} + e^{x}\right ) - \frac {1}{8} \, \sqrt {-\sqrt {2} + 2} \log \left (\sqrt {-\sqrt {2} + 2} + e^{\left (-x\right )} + e^{x}\right ) + \frac {1}{8} \, \sqrt {-\sqrt {2} + 2} \log \left (-\sqrt {-\sqrt {2} + 2} + e^{\left (-x\right )} + e^{x}\right ) + \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.16, size = 66, normalized size = 0.96 \[ \cosh \relax (x )-\frac {\left (1+\sqrt {2}\right ) \sqrt {2}\, \arctanh \left (\frac {2 \cosh \relax (x )}{\sqrt {2+\sqrt {2}}}\right )}{4 \sqrt {2+\sqrt {2}}}-\frac {\left (\sqrt {2}-1\right ) \sqrt {2}\, \arctanh \left (\frac {2 \cosh \relax (x )}{\sqrt {2-\sqrt {2}}}\right )}{4 \sqrt {2-\sqrt {2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{2} \, {\left (e^{\left (2 \, x\right )} + 1\right )} e^{\left (-x\right )} + \frac {1}{2} \, \int \frac {2 \, {\left (e^{\left (7 \, x\right )} - e^{x}\right )}}{e^{\left (8 \, x\right )} + 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 133, normalized size = 1.93 \[ \frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}+\ln \left ({\mathrm {e}}^{2\,x}-8\,{\mathrm {e}}^x\,\sqrt {\frac {1}{32}-\frac {\sqrt {2}}{64}}+1\right )\,\sqrt {\frac {1}{32}-\frac {\sqrt {2}}{64}}-\ln \left ({\mathrm {e}}^{2\,x}+8\,{\mathrm {e}}^x\,\sqrt {\frac {1}{32}-\frac {\sqrt {2}}{64}}+1\right )\,\sqrt {\frac {1}{32}-\frac {\sqrt {2}}{64}}+\ln \left ({\mathrm {e}}^{2\,x}-8\,{\mathrm {e}}^x\,\sqrt {\frac {\sqrt {2}}{64}+\frac {1}{32}}+1\right )\,\sqrt {\frac {\sqrt {2}}{64}+\frac {1}{32}}-\ln \left ({\mathrm {e}}^{2\,x}+8\,{\mathrm {e}}^x\,\sqrt {\frac {\sqrt {2}}{64}+\frac {1}{32}}+1\right )\,\sqrt {\frac {\sqrt {2}}{64}+\frac {1}{32}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \cosh {\relax (x )} \tanh {\left (4 x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________