Consider the integral $ \int_1^{\infty } \log
\left(1-\frac{\alpha
}{x}\right) , dx$ where 0<\alpha <1
This integral is divergent as can be verified by evaluating the indefinite integral: $x \log \left(1-\frac{\alpha
}{x}\right)-\alpha \log
(x-\alpha )$ between the two limits.
However, the Mathematica input: $\text{Assuming}\left[0<\alpha
<1,\int_1^{\infty } \log
\left(1-\frac{\alpha
}{x}\right) , dx\right]$
produces the output: $(\alpha -1) \log (1-\alpha
)-\alpha$
I am unclear as to your statement, “It seems to be a correct output”. The integral is either convergent or divergent, it can’t be both.
The evaluation of the indefinite integral is correct as can be verified by differentiation. Clearly, this approach proves that the integral is divergent. As you verified, the input: $\text{Assuming}\left[0<\alpha
<1,\int_1^{\infty } \log
\left(1-\frac{\alpha
}{x}\right) , dx\right]$ yields a finite result; a contradiction !
Note that if we evaluate the integral with \alpha=1/2 i.e $\int_1^{\infty } \log
\left(1-\frac{1}{2
x}\right) , dx$, Mathematica says that the integral diverges.
If you force Evaluate on the integral, the wrong result will win the evaluation race, before the parameter a gets a numeric value. Remove Evaluate and the parameter a will become numeric before the integral is evaluated:
There seem to be more inconsistencies, for example (sorry, I must include this as picture) the following. The funny thing is that the result depends minutely on how the formula is entered:
Is there a compelling reason to enter the first two using the box formatting? (This is a rhetorical question. The answer is “no”. The problems with that formatting are that it is not readable and also does not copy/paste into a raw kernel on my Linux machine.) General rule: the simpler the code provided, the more likely one is to get a response.
As for the issue at hand, it appears that the integral, when not provided the assumptions, is off by a sign.
Numerical checks make me suspect that the limit should be 1 rather than -1. But clearly the current behavior is wrong. I’ll file a bug report for that.