# Improper integral

Show 40 post(s) from this thread on one page
Page 1 of 2 12 Last
• December 16th 2011, 05:52 AM
fareastmovement
Improper integral
Derive the integration formula
$\int_0^{\infty}\frac{cos(ax)-cos(bx)}{x^2}dx=\frac{\pi}{2}(b-a)$

By using the residue theorem, I integrated the function $\frac{e^iaz-e^ibz}{z^2}$ from $-\infty$to $\infty$, I can only obtain the result $2\pi i(b-a)$, which means my answer is $\pi(b-a)$.
I couldnt find my mistake.Thank you.
• December 16th 2011, 06:44 AM
girdav
Re: Improper integral
The function you have to integrate is even, so the integral on $\mathbb R$ is two times the integral on $\mathbb R_+$.
• December 16th 2011, 07:10 AM
fareastmovement
Re: Improper integral
Yes i did it (divided by 2)and still get $\pi(b-a)$ as answer, but not $\frac{\pi}{2}(b-a)$
• December 16th 2011, 07:23 AM
girdav
Re: Improper integral
Did you wrote the exponentials in terms of $\cos$?
• December 16th 2011, 07:50 AM
fareastmovement
Re: Improper integral
Yes, by integrating $\frac{e^{iaz}-e^{ibz}}{z^2}$ and compare the real part of both sides
• December 17th 2011, 08:41 AM
FernandoRevilla
Re: Improper integral
Another way: denote $I(\lambda)=\int_0^{+\infty}\frac{\cos \lambda x}{x^2}dx\;(\lambda >0)$ , then $I'(a)=-\int_0^{+\infty}\frac{\sin \lambda x}{x}dx$ . Using the substitution $t=\lambda x$ we get $I'(\lambda)=-\int_0^{+\infty}\frac{\sin t}{t}dt=-\frac{\pi}{2}$ (Dirichlet's integral) . So, $I(\lambda)=-\frac{\pi}{2}\lambda+C$ . For $\lambda =0$ we get $C=\int_0^{+\infty}\frac{dx}{x^2}$ .

Then,

$\int_0^{+\infty}\frac{\cos ax-\cos bx}{x^2}dx=-\frac{\pi}{2}a+C-\left(-\frac{\pi}{2}b+C\right)=\boxed{\frac{\pi (b-a)}{2}}$

@fareastmovement: Show your complete work by the method of residues (of course if you want) and we can check it.

Edited: Method not valid, see the posts below.
• December 17th 2011, 09:30 AM
fareastmovement
Re: Improper integral
Thank you, I got it now. You are really helpful :)
• December 18th 2011, 10:25 PM
chisigma
Re: Improper integral
Quote:

Originally Posted by FernandoRevilla
Another way: denote $I(\lambda)=\int_0^{+\infty}\frac{\cos \lambda x}{x^2}dx\;(\lambda >0)$ , then $I'(a)=-\int_0^{+\infty}\frac{\sin \lambda x}{x}dx$ . Using the substitution $t=\lambda x$ we get $I'(\lambda)=-\int_0^{+\infty}\frac{\sin t}{t}dt=-\frac{\pi}{2}$ (Dirichlet's integral) . So, $I(\lambda)=-\frac{\pi}{2}\lambda+C$ . For $\lambda =0$ we get $C=\int_0^{+\infty}\frac{dx}{x^2}$ .

Then,

$\int_0^{+\infty}\frac{\cos ax-\cos bx}{x^2}dx=-\frac{\pi}{2}a+C-\left(-\frac{\pi}{2}b+C\right)=\boxed{\frac{\pi (b-a)}{2}}$

@fareastmovement: Show your complete work by the method of residues (of course if you want) and we can check it.

There is only a minor detail: writing $C=\int_{0}^{+ \infty} \frac{dx}{x^{2}}$ is a nonsense because the integral diverges...

http://www.sv-luka.org/ikone/ikone180a.jpg

Marry Christmas from Serbia

$\chi$ $\sigma$
• December 18th 2011, 11:00 PM
chisigma
Re: Improper integral
In order to avoid criticity in the solution of the integral I would suggest to use the trigonometric identity...

$\cos \alpha - \cos \beta = 2\ \sin \frac{\beta + \alpha}{2}\ \sin \frac{\beta-\alpha}{2}$ (1)

... so that the integral becomes...

$I(a,b)=2\ \int_{0}^{\infty} \frac{\sin (\frac{b+a}{2}\ x)\ \sin (\frac{b-a}{2}\ x)}{x^{2}}\ dx$

http://www.sv-luka.org/ikone/ikone180a.jpg

Marry Christmas from Serbia

$\chi$ $\sigma$
• December 18th 2011, 11:01 PM
FernandoRevilla
Re: Improper integral
Quote:

Originally Posted by chisigma
There is only a minor detail: writing $C=\int_{0}^{+ \infty} \frac{dx}{x^{2}}$ is a nonsense because the integral diverges...

Right, just a lapse of concentration. Easily avoided: $I(1/2)$ is finite, so $I(1/2)=-\pi/4+C$ and $C=I(1/2)+\pi/4$ is finite.
• December 18th 2011, 11:18 PM
chisigma
Re: Improper integral
Quote:

Originally Posted by FernandoRevilla
Right, just a lapse of concentration. Easily avoided: $I(1/2)$ is finite, so $I(1/2)=-\pi/4+C$ and $C=I(1/2)+\pi/4$ is finite.

The real problem is in defining the function ...

$I(\lambda)= \int_{0}^{\infty} \frac{\cos (\lambda x)}{x^{2}}\ dx$ (2)

... because the integral diverges for any value of $\lambda$. In my previous post a way to overcame such type of criticity is indicated...

http://www.sv-luka.org/ikone/ikone180a.jpg

Marry Christmas from Serbia

$\chi$ $\sigma$
• December 18th 2011, 11:43 PM
FernandoRevilla
Re: Improper integral
Quote:

Originally Posted by chisigma
... because the integral diverges for any value of $\lambda$. In my previous post a way to overcame such type of criticity is indicated...

Not for all values of $\lambda$ but of course the method I used is not valid. Reviewing the situation I find the explanation: in a foolish way my mind thought about $1$ to $\infty$ instead of $0$ to $\infty$ and curiously at the end I made the substitution $\lambda=0$ . A complete disaster. :)

Method not valid.
• December 19th 2011, 01:39 AM
Also sprach Zarathustra
Re: Improper integral
Quote:

Originally Posted by fareastmovement
Derive the integration formula
$\int_0^{\infty}\frac{cos(ax)-cos(bx)}{x^2}dx=\frac{\pi}{2}(b-a)$

By using the residue theorem, I integrated the function $\frac{e^iaz-e^ibz}{z^2}$ from $-\infty$to $\infty$, I can only obtain the result $2\pi i(b-a)$, which means my answer is $\pi(b-a)$.
I couldnt find my mistake.Thank you.

Perhaps, using integration by parts and aplaying Furlani's integrals we can conclude something.

$\int_0^{\infty} \frac{\cos{ax}-\cos{bx}}{x^2}dx=\frac{\cos{bx}-\cos{ax}}{x}\big{|}_{\mathbb{R^+}$ $+ \int_0^{\infty} \frac{b\sin{bx}-a\sin{ax}}{x} dx$

Now, using the theorem:

$\int_0^{\infty} \frac{f(ax)-f(bx)}{x} dx=\(f(0)-f(\infty))\ln\frac{b}{a}$

I stuck on evaluating:

$\int_0^{\infty} \frac{b\sin{bx}-a\sin{ax}}{x} dx$

Edit:

Ok... No Furalani needed.

Using only the well known Dirichlet's integral we get:

$\int_0^{\infty} \frac{b\sin{bx}-a\sin{ax}}{x} dx=\frac{\pi}{2}(b-a)$

(While $\frac{\cos{bx}-\cos{ax}}{x}\big{|}_{\mathbb{R^+}$ ${=0}$)
• December 19th 2011, 03:34 AM
FernandoRevilla
Re: Improper integral
(a) $I(a,b)=\int_0^{\infty}\frac{\cos ax-\cos bx}{x^2}dx$ is convergent for $a>0,b>0$ (easily proved using chisigma's answer #9 )

(b) $\frac{\partial I}{\partial a}=\ldots=-\frac{\pi}{2},\;\frac{\partial I}{\partial b}=\ldots=\frac{\pi}{2}$ (differentiation under the integral sign and Dirichlet's Integral).

(c) $I(a,b)=-\frac{\pi}{2}a+\varphi(b)$ , so $\frac{\partial I}{\partial b}=\varphi'(b)=\frac{\pi}{2}$ hence $\varphi(b)=\frac{\pi}{2}b+C$ . That is, $I(a,b)=\frac{\pi (b-a)}{2}+C\quad (*)$ .

(d) Taking limits in $(*)$ as $(a,b)\to (0,0)$ we get $C=0$ . So, $I(a,b)=\frac{\pi (b-a)}{2}$
• December 19th 2011, 11:19 AM
Random Variable
Re: Improper integral
$\int^{\infty}_{0} \frac{\cos ax - \cos bx}{x^{2}} \ dx$

$= \int_{0}^{\infty} \int_{a}^{b} \frac{\sin tx}{x} \ dt \ dx$

Fubini's theorem is not satsified. So to justify changing the order of integration, let's write the double integral more formally as a limit.

$= \lim_{n \to \infty} \int_{0}^{n} \int_{a}^{b} \frac{\sin tx}{x} \ dt \ dx = \lim_{n \to \infty} \int_{a}^{b} \int_{0}^{n} \frac{\sin tx}{x} \ dx \ dt$

$= \lim_{n \to \infty} \int_{a}^{b} \int_{0}^{nt} \frac{\sin u}{u} \ du \ dt = \lim_{n \to \infty} \int_{a}^{b} \text{Si} (nt) \ dt$

Since the Sine Integral is bounded above by 2, we can use the Dominated Convergence Theorem to justify bringing the limit inside of the integral.

$= \frac{\pi}{2} \int_{a}^{b} \ dt = \frac{\pi}{2} (b-a)$
Show 40 post(s) from this thread on one page
Page 1 of 2 12 Last