I want to evaluate the following integral in Mathematica.
$$ \int_0^\infty \frac{a^{-t}-b^{-t}}{t} dt = \ln \left(\frac{\ln b}{\ln a} \right)$$
I try to enter this, but Mathematica can't figure it out.
Integrate[ (a^(-t) - b^(-t))/t, {t, 0, Infinity}, Assumptions -> {a > 0, b > 0, b > a}]
It can figure out
Integrate[ (3^(-t) - 5^(-t))/t, {t, 0, Infinity}]
If someone could explain how to do the assumptions better I would appreciate it.
a >= 1
. Maybe add that to the assumptions in your version (ora > 1
). $\endgroup$a==1
, then the integral diverges. $\endgroup$a > 1
, hmm? $\endgroup$