- Thread starter
- #1

- Jan 31, 2012

- 253

$$ \int_{0}^{\infty} \left( \frac{e^{-ax}-e^{-bx}}{x^{2}} + (a-b) \frac{e^{-cx}}{x} \ \right) \ dx = b-a + a \ln \left(\frac{a}{c} \right) - b \ln \left(\frac{b}{c} \right)$$

- Thread starter Random Variable
- Start date

- Thread starter
- #1

- Jan 31, 2012

- 253

$$ \int_{0}^{\infty} \left( \frac{e^{-ax}-e^{-bx}}{x^{2}} + (a-b) \frac{e^{-cx}}{x} \ \right) \ dx = b-a + a \ln \left(\frac{a}{c} \right) - b \ln \left(\frac{b}{c} \right)$$

- Jan 17, 2013

- 1,667

\(\displaystyle F = \int_{0}^{\infty} \left( \frac{e^{-ax}-e^{-bx}}{x^{2}} + (a-b) \frac{e^{-cx}}{x} \ \right) \ dx\)

\(\displaystyle F_a =\int_{0}^{\infty} \frac{e^{-cx}-e^{-ax}}{x}\ dx = \ln \left( \frac{a}{c}\right) \)

\(\displaystyle F= a \ln \left( \frac{a}{c}\right) - a + C \)

\(\displaystyle F_b = C_b\)

\(\displaystyle F_b = \int_{0}^{\infty} \frac{e^{-bx}-e^{-cx}}{x} dx = -\ln \left( \frac{b}{c}\right)\)

We have \(\displaystyle C_b = -\ln \left( \frac{b}{c}\right)\) so

\(\displaystyle C = -b\ln \left( \frac{b}{c}\right)+b\)

\(\displaystyle F = b-a +a \ln \left( \frac{a}{c}\right)-b\ln \left( \frac{b}{c}\right)\)

- Thread starter
- #3

- Jan 31, 2012

- 253

I actually didn't even consider differentiating inside of the integral.

I took the boring approach of finding an antiderivative in terms of the exponential integral and then using the expansion of the exponential integral at $x=0$ to evaluate the antiderivative at the lower limit.

There is one thing about your evaluation that I'm not sure about, though.

When you integrated to find the constant $C$, how did you know that he constant of integration was zero?

Alternatively what you could do to find $C$ is to let $a=b$ in the original integral.

- Jan 17, 2013

- 1,667

Yeah, I made the evaluations not clear but I actually considered that $C$ as a function of $b$ so I differentiated with respect to $b$. Again putting $a=b$ is by far much clearer.There is one thing about your evaluation that I'm not sure about, though.

When you integrated to find the constant $C$, how did you know that he constant of integration was zero?

Alternatively what you could do to find $C$ is to let $a=b$ in the original integral.

Can you post your approach ?

- Thread starter
- #5

- Jan 31, 2012

- 253

It's easier to work the upper incomplete gamma function.

[tex] \Gamma(0,a x) = -\text{Ei}(- ax) = \int_{ax}^{\infty} \frac{e^{-t}}{t} \ dt = \int_{x}^{\infty} \frac{e^{-au}}{u} \ du[/tex]

Let's first derive the expansion at $x=0$.

$$ \Gamma(0,x) = \int_{x}^{\infty} \frac{e^{-t}}{t} \ dt = \int_{1}^{\infty} \frac{e^{-t}}{t} \ dt - \int_{1}^{x} \frac{e^{-t}}{t} \ dt $$

$$ = \int_{1}^{x} \frac{1-e^{-t}}{t} \ dt - \ln x + \int_{1}^{\infty} \frac{e^{-t}}{t} \ dt$$

$$= -\ln x + \Big( -\int_{0}^{1} \frac{1-e^{-t}}{t} \ dt + \int_{1}^{\infty} \frac{e^{-t}}{t} \ dt \Big) + \int_{0}^{x} \frac{1-e^{-t}}{t} \ dt$$

$$ = - \ln x - \gamma - \int_{0}^{x} \frac{e^{-t}-1}{t} \ dt$$

$$ = - \ln x - \gamma \int_{0}^{x} \Big(-1 + \frac{t}{2} - \frac{t^{2}}{6} + \ldots \Big) \ dt$$

$$ = - \ln x - \gamma + x + \mathcal{O}(x^{2}) $$

And it's not really needed here, but one can find an asymptotic expansion at $x= \infty$ by integrating by parts.

$$ \Gamma(0,x) \sim \frac{e^{-x}}{x} + \mathcal{O}\left( \frac{e^{-x}}{x^{2}} \right) \ \ x \to \infty$$

Then

$$ \int \left( \frac{e^{-ax}-e^{-bx}}{x^{2}} + (a-b) \frac{e^{-cx}}{x} \ \right) \ dx = \int \frac{e^{-ax}-e^{-bx}}{x^{2}} \ dx + (a-b) \int \frac{e^{-cx}}{x} \ dx$$

$$ = -\frac{e^{-ax} -e^{-bx}}{x} + \int \frac{-ae^{-ax}+be^{-bx}}{x} \ dx -(a-b) \Gamma(0,cx)$$

$$ = \frac{e^{-bx} -e^{-ax}}{x} + a \Gamma(0,ax) - b \Gamma(0,bx) - (a-b) \Gamma(0,cx)+C$$

$$ \int^{\infty}_{0} \left( \frac{e^{-ax}-e^{-bx}}{x^{2}} + (a-b) \frac{e^{-cx}}{x} \ \right) \ dx$$

$$ = 0 - \lim_{x \to 0} \left[ \frac{e^{-bx} -e^{-ax}}{x} + a \left(-\ln ax - \gamma \right) - b \left(-\ln bx - \gamma \right) -(a-b) \left(-\ln cx - \gamma \right) \right]$$

$$= - \lim_{x \to 0} \left[ \frac{e^{-bx} -e^{-ax}}{x} - a \ln \left(\frac{a}{c} \right) + b \left(\frac{b}{c} \right) \right]$$

$$ = b-a + a \ln \left(\frac{a}{c} \right) - b \ln \left(\frac{b}{c} \right) $$

Let's first derive the expansion at $x=0$.

$$ \Gamma(0,x) = \int_{x}^{\infty} \frac{e^{-t}}{t} \ dt = \int_{1}^{\infty} \frac{e^{-t}}{t} \ dt - \int_{1}^{x} \frac{e^{-t}}{t} \ dt $$

$$ = \int_{1}^{x} \frac{1-e^{-t}}{t} \ dt - \ln x + \int_{1}^{\infty} \frac{e^{-t}}{t} \ dt$$

$$= -\ln x + \Big( -\int_{0}^{1} \frac{1-e^{-t}}{t} \ dt + \int_{1}^{\infty} \frac{e^{-t}}{t} \ dt \Big) + \int_{0}^{x} \frac{1-e^{-t}}{t} \ dt$$

$$ = - \ln x - \gamma - \int_{0}^{x} \frac{e^{-t}-1}{t} \ dt$$

$$ = - \ln x - \gamma \int_{0}^{x} \Big(-1 + \frac{t}{2} - \frac{t^{2}}{6} + \ldots \Big) \ dt$$

$$ = - \ln x - \gamma + x + \mathcal{O}(x^{2}) $$

And it's not really needed here, but one can find an asymptotic expansion at $x= \infty$ by integrating by parts.

$$ \Gamma(0,x) \sim \frac{e^{-x}}{x} + \mathcal{O}\left( \frac{e^{-x}}{x^{2}} \right) \ \ x \to \infty$$

Then

$$ \int \left( \frac{e^{-ax}-e^{-bx}}{x^{2}} + (a-b) \frac{e^{-cx}}{x} \ \right) \ dx = \int \frac{e^{-ax}-e^{-bx}}{x^{2}} \ dx + (a-b) \int \frac{e^{-cx}}{x} \ dx$$

$$ = -\frac{e^{-ax} -e^{-bx}}{x} + \int \frac{-ae^{-ax}+be^{-bx}}{x} \ dx -(a-b) \Gamma(0,cx)$$

$$ = \frac{e^{-bx} -e^{-ax}}{x} + a \Gamma(0,ax) - b \Gamma(0,bx) - (a-b) \Gamma(0,cx)+C$$

$$ \int^{\infty}_{0} \left( \frac{e^{-ax}-e^{-bx}}{x^{2}} + (a-b) \frac{e^{-cx}}{x} \ \right) \ dx$$

$$ = 0 - \lim_{x \to 0} \left[ \frac{e^{-bx} -e^{-ax}}{x} + a \left(-\ln ax - \gamma \right) - b \left(-\ln bx - \gamma \right) -(a-b) \left(-\ln cx - \gamma \right) \right]$$

$$= - \lim_{x \to 0} \left[ \frac{e^{-bx} -e^{-ax}}{x} - a \ln \left(\frac{a}{c} \right) + b \left(\frac{b}{c} \right) \right]$$

$$ = b-a + a \ln \left(\frac{a}{c} \right) - b \ln \left(\frac{b}{c} \right) $$

Last edited by a moderator: