3.4.38 \(\int \tanh (a+b x) \, dx\) [338]

Optimal. Leaf size=11 \[ \frac {\log (\cosh (a+b x))}{b} \]

[Out]

ln(cosh(b*x+a))/b

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3556} \begin {gather*} \frac {\log (\cosh (a+b x))}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Tanh[a + b*x],x]

[Out]

Log[Cosh[a + b*x]]/b

Rule 3556

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 (a+b x) \, dx &=\frac {\log (\cosh (a+b x))}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 11, normalized size = 1.00 \begin {gather*} \frac {\log (\cosh (a+b x))}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Tanh[a + b*x],x]

[Out]

Log[Cosh[a + b*x]]/b

________________________________________________________________________________________

Maple [A]
time = 0.44, size = 13, normalized size = 1.18

method result size
derivativedivides \(-\frac {\ln \left (\mathrm {sech}\left (b x +a \right )\right )}{b}\) \(13\)
default \(-\frac {\ln \left (\mathrm {sech}\left (b x +a \right )\right )}{b}\) \(13\)
risch \(-x -\frac {2 a}{b}+\frac {\ln \left ({\mathrm e}^{2 b x +2 a}+1\right )}{b}\) \(27\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sech(b*x+a)*sinh(b*x+a),x,method=_RETURNVERBOSE)

[Out]

-1/b*ln(sech(b*x+a))

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 21, normalized size = 1.91 \begin {gather*} \frac {\log \left (e^{\left (b x + a\right )} + e^{\left (-b x - a\right )}\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(b*x+a)*sinh(b*x+a),x, algorithm="maxima")

[Out]

log(e^(b*x + a) + e^(-b*x - a))/b

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 37 vs. \(2 (11) = 22\).
time = 0.36, size = 37, normalized size = 3.36 \begin {gather*} -\frac {b x - \log \left (\frac {2 \, \cosh \left (b x + a\right )}{\cosh \left (b x + a\right ) - \sinh \left (b x + a\right )}\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(b*x+a)*sinh(b*x+a),x, algorithm="fricas")

[Out]

-(b*x - log(2*cosh(b*x + a)/(cosh(b*x + a) - sinh(b*x + a))))/b

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sinh {\left (a + b x \right )} \operatorname {sech}{\left (a + b x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(b*x+a)*sinh(b*x+a),x)

[Out]

Integral(sinh(a + b*x)*sech(a + b*x), x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 24 vs. \(2 (11) = 22\).
time = 0.41, size = 24, normalized size = 2.18 \begin {gather*} -\frac {b x + a - \log \left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(b*x+a)*sinh(b*x+a),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.06, size = 11, normalized size = 1.00 \begin {gather*} \frac {\ln \left (\mathrm {cosh}\left (a+b\,x\right )\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(a + b*x)/cosh(a + b*x),x)

[Out]

log(cosh(a + b*x))/b

________________________________________________________________________________________