3.227 \(\int \tanh (2 x) \, dx\)

Optimal. Leaf size=9 \[ \frac {1}{2} \log (\cosh (2 x)) \]

[Out]

1/2*ln(cosh(2*x))

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3475} \[ \frac {1}{2} \log (\cosh (2 x)) \]

Antiderivative was successfully verified.

[In]

Int[Tanh[2*x],x]

[Out]

Log[Cosh[2*x]]/2

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int \tanh (2 x) \, dx &=\frac {1}{2} \log (\cosh (2 x))\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 9, normalized size = 1.00 \[ \frac {1}{2} \log (\cosh (2 x)) \]

Antiderivative was successfully verified.

[In]

Integrate[Tanh[2*x],x]

[Out]

Log[Cosh[2*x]]/2

________________________________________________________________________________________

fricas [B]  time = 0.43, size = 26, normalized size = 2.89 \[ -x + \frac {1}{2} \, \log \left (\frac {2 \, \cosh \left (2 \, x\right )}{\cosh \left (2 \, x\right ) - \sinh \left (2 \, x\right )}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(2*x)/cosh(2*x),x, algorithm="fricas")

[Out]

-x + 1/2*log(2*cosh(2*x)/(cosh(2*x) - sinh(2*x)))

________________________________________________________________________________________

giac [A]  time = 1.18, size = 13, normalized size = 1.44 \[ -x + \frac {1}{2} \, \log \left (e^{\left (4 \, x\right )} + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(2*x)/cosh(2*x),x, algorithm="giac")

[Out]

-x + 1/2*log(e^(4*x) + 1)

________________________________________________________________________________________

maple [A]  time = 0.02, size = 8, normalized size = 0.89 \[ \frac {\ln \left (\cosh \left (2 x \right )\right )}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(2*x)/cosh(2*x),x)

[Out]

1/2*ln(cosh(2*x))

________________________________________________________________________________________

maxima [A]  time = 0.43, size = 7, normalized size = 0.78 \[ \frac {1}{2} \, \log \left (\cosh \left (2 \, x\right )\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(2*x)/cosh(2*x),x, algorithm="maxima")

[Out]

1/2*log(cosh(2*x))

________________________________________________________________________________________

mupad [B]  time = 0.19, size = 7, normalized size = 0.78 \[ \frac {\ln \left (\mathrm {cosh}\left (2\,x\right )\right )}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(2*x)/cosh(2*x),x)

[Out]

log(cosh(2*x))/2

________________________________________________________________________________________

sympy [A]  time = 0.15, size = 7, normalized size = 0.78 \[ \frac {\log {\left (\cosh {\left (2 x \right )} \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(2*x)/cosh(2*x),x)

[Out]

log(cosh(2*x))/2

________________________________________________________________________________________