Evaluate the integral : $\int_0^{\ln2}\left(\frac{1}{e^x-1}-\lfloor\frac{1}{e^x-1}\rfloor\right)dx$

131 Views Asked by At

Evaluate:$$\int_0^{\ln 2}\left(\frac{1}{e^x-1}-\left\lfloor\frac{1}{e^x-1}\right\rfloor\right)dx$$

My Attempt:

Upon evaluating $$\int_0^{\ln 2}\frac{1}{e^x-1}dx$$ I am getting $$|\ln(e^x-1)-x|_0^{\ln 2}$$

And on evaluating $$\int_0^{\ln 2}\left\lfloor\frac{1}{e^x-1}\right\rfloor dx$$ by substituting $\frac{1}{e^x-1}=t$ i.e. $x=\ln(1+\frac{1}{t})$

I get

$$\int_0^{\ln 2}\left\lfloor\frac{1}{e^x-1}\right\rfloor dx=\int_1^{\infty}\frac{\left\lfloor t\right\rfloor}{t(1+t)}dt=\lim_{n\to \infty}\left(\ln(n+1)-n\ln(1+\frac{1}{n})\right)$$

Given answer is $1-\ln 2$

which I will get if I cancel out the infinities I obtain in solving $\int_0^{\ln 2}\frac{1}{e^x-1}dx$

and $\int_0^{\ln 2}\left\lfloor\frac{1}{e^x-1}\right\rfloor dx$.

But it is not justified as limit of the form $\infty-\infty$ is indeterminate.

So I think solving the two integrals separately may not be a good idea.

Can the integral be evaluated as a whole.

2

There are 2 best solutions below

0
On BEST ANSWER

Following your idea, we perform the change of integration variables from $x$ to $t$ via $t=1/(\mathrm{e}^x-1)$. Then \begin{align*} \int_1^{ + \infty } {\frac{{t - \left\lfloor t \right\rfloor }}{{t(t + 1)}}{\rm d}t} &= \sum\limits_{k = 1}^\infty {\int_k^{k + 1} {\frac{{t - \left\lfloor t \right\rfloor }}{{t(t + 1)}}{\rm d}t} } = \sum\limits_{k = 1}^\infty {\int_0^1 {\frac{{t - \left\lfloor t \right\rfloor }}{{(t + k)(t + k + 1)}}{\rm d}t} }\\ & = \int_0^1 {(t - \left\lfloor t \right\rfloor )\sum\limits_{k = 1}^\infty {\frac{1}{{(t + k)(t + k + 1)}}} {\rm d}t} \\& = \int_0^1 {(t - \left\lfloor t \right\rfloor )\sum\limits_{k = 1}^\infty {\left( {\frac{1}{{t + k}} - \frac{1}{{t + k + 1}}} \right)} {\rm d}t} \\ & = \int_0^1 {\frac{{t - \left\lfloor t \right\rfloor }}{{t + 1}}{\rm d}t} = \int_0^1 {\frac{{t}}{{t + 1}}{\rm d}t} = 1 - \log 2. \end{align*}

0
On

Your work is good! We can write the integral as

$$I=\lim_{\epsilon\to0^+}\int_\epsilon^{\ln 2}\left(\frac{1}{e^x-1}-\left\lfloor\frac{1}{e^x-1}\right\rfloor\right)dx$$

Use your result (note there is a typo in your first integral), and replace your $n$ with $\displaystyle\frac{1}{e^\epsilon-1}$:

$$\begin{align}\int_\epsilon^{\ln 2}\frac{1}{e^x-1}dx&=-\ln(2)+\epsilon-\ln(e^\epsilon-1)\\ \\ \int_\epsilon^{\ln 2}\left\lfloor\frac{1}{e^x-1}\right\rfloor dx&=\ln\left(\frac1{e^\epsilon-1}+1\right)-\frac{1}{e^\epsilon-1}\ln(1+e^\epsilon-1)\end{align}$$

take the subtraction and simplify, we get

$$\boxed{I=-\ln(2)+\lim_{\epsilon\to0^+}\frac\epsilon{e^\epsilon-1}=1-\ln2}$$