Optimal. Leaf size=24 \[ \frac {x}{b}-\frac {\log \left (a e^{n x}+b\right )}{b n} \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {2282, 36, 29, 31} \[ \frac {x}{b}-\frac {\log \left (a e^{n x}+b\right )}{b n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 2282
Rubi steps
\begin {align*} \int \frac {1}{b+a e^{n x}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1}{x (b+a x)} \, dx,x,e^{n x}\right )}{n}\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,e^{n x}\right )}{b n}-\frac {a \operatorname {Subst}\left (\int \frac {1}{b+a x} \, dx,x,e^{n x}\right )}{b n}\\ &=\frac {x}{b}-\frac {\log \left (b+a e^{n x}\right )}{b n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 24, normalized size = 1.00 \[ \frac {x}{b}-\frac {\log \left (a e^{n x}+b\right )}{b n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{b+a e^{n x}} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.31, size = 22, normalized size = 0.92 \[ \frac {n x - \log \left (a e^{\left (n x\right )} + b\right )}{b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.58, size = 26, normalized size = 1.08 \[ \frac {\frac {n x}{b} - \frac {\log \left ({\left | a e^{\left (n x\right )} + b \right |}\right )}{b}}{n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 24, normalized size = 1.00
method | result | size |
norman | \(\frac {x}{b}-\frac {\ln \left (b +a \,{\mathrm e}^{n x}\right )}{b n}\) | \(24\) |
risch | \(\frac {x}{b}-\frac {\ln \left ({\mathrm e}^{n x}+\frac {b}{a}\right )}{b n}\) | \(26\) |
derivativedivides | \(\frac {-\frac {\ln \left (b +a \,{\mathrm e}^{n x}\right )}{b}+\frac {\ln \left ({\mathrm e}^{n x}\right )}{b}}{n}\) | \(29\) |
default | \(\frac {-\frac {\ln \left (b +a \,{\mathrm e}^{n x}\right )}{b}+\frac {\ln \left ({\mathrm e}^{n x}\right )}{b}}{n}\) | \(29\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.45, size = 23, normalized size = 0.96 \[ \frac {x}{b} - \frac {\log \left (a e^{\left (n x\right )} + b\right )}{b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.33, size = 22, normalized size = 0.92 \[ -\frac {\ln \left (b+a\,{\mathrm {e}}^{n\,x}\right )-n\,x}{b\,n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 15, normalized size = 0.62 \[ \frac {x}{b} - \frac {\log {\left (e^{n x} + \frac {b}{a} \right )}}{b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________