3.1.2 \(\int \frac {e^x}{a+b e^x} \, dx\) [2]

Optimal. Leaf size=12 \[ \frac {\log \left (a+b e^x\right )}{b} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2278, 31} \begin {gather*} \frac {\log \left (a+b e^x\right )}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[E^x/(a + b*E^x),x]

[Out]

Log[a + b*E^x]/b

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2278

Int[((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)*((a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.))^(p_.),
x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int[(a + b*x)^p, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b,
c, d, e, n, p}, x]

Rubi steps

\begin {align*} \int \frac {e^x}{a+b e^x} \, dx &=\text {Subst}\left (\int \frac {1}{a+b x} \, dx,x,e^x\right )\\ &=\frac {\log \left (a+b e^x\right )}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 12, normalized size = 1.00 \begin {gather*} \frac {\log \left (a+b e^x\right )}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[E^x/(a + b*E^x),x]

[Out]

Log[a + b*E^x]/b

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 12, normalized size = 1.00

method result size
derivativedivides \(\frac {\ln \left (a +b \,{\mathrm e}^{x}\right )}{b}\) \(12\)
default \(\frac {\ln \left (a +b \,{\mathrm e}^{x}\right )}{b}\) \(12\)
norman \(\frac {\ln \left (a +b \,{\mathrm e}^{x}\right )}{b}\) \(12\)
risch \(\frac {\ln \left ({\mathrm e}^{x}+\frac {a}{b}\right )}{b}\) \(14\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)/(a+b*exp(x)),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)/(a+b*exp(x)),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 11, normalized size = 0.92 \begin {gather*} \frac {\log \left (b e^{x} + a\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)/(a+b*exp(x)),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.04, size = 8, normalized size = 0.67 \begin {gather*} \frac {\log {\left (\frac {a}{b} + e^{x} \right )}}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)/(a+b*exp(x)),x)

[Out]

log(a/b + exp(x))/b

________________________________________________________________________________________

Giac [A]
time = 3.07, size = 12, normalized size = 1.00 \begin {gather*} \frac {\log \left ({\left | b e^{x} + a \right |}\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)/(a+b*exp(x)),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)/(a + b*exp(x)),x)

[Out]

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

________________________________________________________________________________________