Optimal. Leaf size=42 \[ \frac {1}{a \left (a+b e^{p x}\right ) p}+\frac {x}{a^2}-\frac {\log \left (a+b e^{p x}\right )}{a^2 p} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2320, 46}
\begin {gather*} -\frac {\log \left (a+b e^{p x}\right )}{a^2 p}+\frac {x}{a^2}+\frac {1}{a p \left (a+b e^{p x}\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 2320
Rubi steps
\begin {align*} \int \frac {1}{\left (a+b e^{p x}\right )^2} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x (a+b x)^2} \, dx,x,e^{p x}\right )}{p}\\ &=\frac {\text {Subst}\left (\int \left (\frac {1}{a^2 x}-\frac {b}{a (a+b x)^2}-\frac {b}{a^2 (a+b x)}\right ) \, dx,x,e^{p x}\right )}{p}\\ &=\frac {1}{a \left (a+b e^{p x}\right ) p}+\frac {x}{a^2}-\frac {\log \left (a+b e^{p x}\right )}{a^2 p}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 39, normalized size = 0.93 \begin {gather*} \frac {\frac {a}{a+b e^{p x}}+\log \left (e^{p x}\right )-\log \left (a+b e^{p x}\right )}{a^2 p} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 43, normalized size = 1.02
method | result | size |
derivativedivides | \(\frac {-\frac {\ln \left (a +b \,{\mathrm e}^{p x}\right )}{a^{2}}+\frac {1}{a \left (a +b \,{\mathrm e}^{p x}\right )}+\frac {\ln \left ({\mathrm e}^{p x}\right )}{a^{2}}}{p}\) | \(43\) |
default | \(\frac {-\frac {\ln \left (a +b \,{\mathrm e}^{p x}\right )}{a^{2}}+\frac {1}{a \left (a +b \,{\mathrm e}^{p x}\right )}+\frac {\ln \left ({\mathrm e}^{p x}\right )}{a^{2}}}{p}\) | \(43\) |
risch | \(\frac {x}{a^{2}}+\frac {1}{a \left (a +b \,{\mathrm e}^{p x}\right ) p}-\frac {\ln \left ({\mathrm e}^{p x}+\frac {a}{b}\right )}{a^{2} p}\) | \(43\) |
norman | \(\frac {\frac {x}{a}+\frac {b x \,{\mathrm e}^{p x}}{a^{2}}-\frac {b \,{\mathrm e}^{p x}}{a^{2} p}}{a +b \,{\mathrm e}^{p x}}-\frac {\ln \left (a +b \,{\mathrm e}^{p x}\right )}{a^{2} p}\) | \(59\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.35, size = 40, normalized size = 0.95 \begin {gather*} \frac {x}{a^{2}} + \frac {1}{{\left (a b e^{\left (p x\right )} + a^{2}\right )} p} - \frac {\log \left (b e^{\left (p x\right )} + a\right )}{a^{2} p} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.72, size = 52, normalized size = 1.24 \begin {gather*} \frac {b p x e^{\left (p x\right )} + a p x - {\left (b e^{\left (p x\right )} + a\right )} \log \left (b e^{\left (p x\right )} + a\right ) + a}{a^{2} b p e^{\left (p x\right )} + a^{3} p} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 36, normalized size = 0.86 \begin {gather*} \frac {1}{a^{2} p + a b p e^{p x}} + \frac {x}{a^{2}} - \frac {\log {\left (\frac {a}{b} + e^{p x} \right )}}{a^{2} p} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.04, size = 47, normalized size = 1.12 \begin {gather*} \frac {b {\left (\frac {\log \left ({\left | -\frac {a}{b e^{\left (p x\right )} + a} + 1 \right |}\right )}{a^{2} b} + \frac {1}{{\left (b e^{\left (p x\right )} + a\right )} a b}\right )}}{p} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.41, size = 58, normalized size = 1.38 \begin {gather*} \frac {\frac {x}{a}+\frac {b\,x\,{\mathrm {e}}^{p\,x}}{a^2}-\frac {b\,{\mathrm {e}}^{p\,x}}{a^2\,p}}{a+b\,{\mathrm {e}}^{p\,x}}-\frac {\ln \left (a+b\,{\mathrm {e}}^{p\,x}\right )}{a^2\,p} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________