# Using laplace transforms to solve integrals

1. Aug 9, 2013

### JBrandonS

1. The problem statement, all variables and given/known data

$\int_0^\infty \frac{a}{a^2+x^2} dx$

2. Relevant equations

All the basic integration techniques.

3. The attempt at a solution

So, I saw this problem and wanted to try it using a different method then substitution, which can obviously solve it pretty easy. Since it is a very clear laplace transform I figured I could easily use that but I am getting the wrong answer. Here is what I do:

$\int_0^\infty \frac{a}{a^2+x^2} dx = \int_0^\infty dx \int_0^\infty e^{-a t}Cos(x t) dt = \int_0^\infty e^{-a t} \int_0^\infty Cos(x t) dx dt= \int_0^\infty \pi e^{-a t} \delta(t) dt = \pi (1 - \theta(x))$

$\frac{\pi}{2}$ iff a > 0
0 iff a = 0
$-\frac{\pi}{2}$ iff a < 0

Last edited: Aug 9, 2013
2. Aug 9, 2013

### jfizzix

I don't think
$\int_0^\infty e^{-a t} \int_0^\infty Cos(x t) dx dt$
when the x-integral is taken has a proper value, since the integral doesn't really converge. By changing how you take that integral, you could get a positive, negative, or zero result.

It's an interesting idea, though.

3. Aug 9, 2013

### JBrandonS

Well, the dirac delta function is defined as $\delta(a) = 1/\pi \int_0^\infty cos(a x) dx$ So you use that to say that $\int_0^\infty cos(a x) dx = \pi \delta(a)$ and as you said this turns it into a piecewise function with a <0, a = 0, and a >0.

Having talked to some other people it seems that the delta function mucks this equation up and makes it so I cannot switch the terms of integration (or w/e the dxdt is called) which is something I didn't know about.

4. Aug 9, 2013

### Mandelbroth

I don't know how you got that definition of the Dirac delta distribution. I get the feeling it's wrong, mostly because the integral doesn't converge.

5. Aug 9, 2013

### JBrandonS

Initially it was brought in the notes of Feynman's numerical methods class that $\int_0^\infty cos(b x) dx = \pi \delta(b)$ I was unable to locate the origional link I used to download the file so I uploaded it here. That equality is first given on page 16 of the pdf (labeled as page 14 in the pdf).

The definition of the delta was found on some site, I cannot confirm it though but I still am very inclined to believe that feynman knew what he was talking about. :)

6. Aug 9, 2013

### vanhees71

The Fourier representation of the $\delta$ distribution (not function!) is correct, because
$$\int_0^{\infty} \mathrm{d} x \cos(a x)=\int_0^{\infty} \mathrm{d} x \frac{\exp(\mathrm{i} a x)+\exp(-\mathrm{i} a x)}{2}.$$
Now substitution of $x'=-x$ in the second term gives
$$\int_0^{\infty} \mathrm{d} x \cos(a x)=\frac{1}{2} \int_{\mathbb{R}} \mathrm{d} x \exp(\mathrm{i} a x)=\pi \delta(a).$$
What's wrong is the final integral, because you integrate only over the positive $t$ axis. Correct is
$$\int_0^{\infty} \mathrm{d} t \exp(-a t) \delta(t)=\int_{\mathbb{R}} \mathrm{d} t \exp(-a t) \Theta(t) \delta(t)=\Theta(0)=\frac{1}{2}.$$

To prove all this, one has to regularize the integrals. Let's start with the $\delta$ distribtion in terms of a cosine-Fourier transform. A regularization is
$$I_{\epsilon}(a)=\int_0^{\infty} \mathrm{d} t \exp(-\epsilon t) \cos(a t)=\frac{\epsilon}{a^2+\epsilon^2}.$$
To show that the weak limit for $\epsilon \rightarrow 0^+$ is indeed $\pi \delta(a)$, we have to integrate an arbitrary test function (e.g., from the space of quickly decaying functions, the Schwartz space) and then take the limit
$$l=\lim_{\epsilon \rightarrow 0^+} \int_{\mathbb{R}} \mathrm{d} a I_{\epsilon}(a) \phi(a).$$
To evaluate the integral we can use the theorem of residues by closing the integration path by a semicircle at infinity in the upper $a$-half plane:
$$l=\lim_{\epsilon \rightarrow 0^+} 2 \pi \mathrm{i} \frac{\epsilon}{2 \mathrm{i} \epsilon} \phi(\mathrm{i} \epsilon)=\pi \phi(0).$$
This means that indeed the week limit is $\pi \delta(a)$.

The final integral can also be evaluated with help of our approximation of the $\delta$ distribution. We have
$$\int_0^{\infty} \mathrm{d} t \frac{\epsilon}{\epsilon^2+t^2} \exp(-a t)=2 \mathrm{Ci}(\epsilon a) \sin(\epsilon a)+\frac{\pi \cos(a \epsilon)}{2} [\pi+2 \mathrm{Si}(a \epsilon)]\rightarrow \frac{\pi}{2}$$
for $\epsilon \rightarrow 0^+$.

7. Aug 9, 2013

### Mandelbroth

Feynmann is pretty awesome, but he was definitely talking about physics. What he said was mathematically incorrect. He later justifies his equation by saying "for all physical systems, $\sin\beta L$ will eventually dampen out." This is not a mathematical justification.

8. Aug 9, 2013

### JBrandonS

Let me first say that I am self taught, I have only taken 1 semister's worth of calc classes but I have taught my self several courses. Getting on this site, however, makes me feel like I know so very little. So, thank you for your help but a lot of it I didn't understand. I will try and outline everything that is unclear for me.

Two things here. First: How is it you are able to make that substitution? If I assume that substitution is possible I understand the outcome, just don't see how it is possible.
Second: Am I correct in thinking that $\int_{\mathbb{R}}$ is shorthand for $\int_{-\infty}^\infty$

I believe that the $\Theta(t)$ here is the Heavside Theta, correct? If so, why is it you are saying that $\Theta(0)=\frac{1}{2}$? I have never seen it be defined at 0. Also, where did the $\pi$ go to?

Pretty much all the above went above my head. If someone wants to try and dumb that down for me it would be great but otherwise I can look into it a lot more when I get home. But any recommendations on books / articles on the topics discussed would be great.

9. Aug 9, 2013

### lurflurf

The natural thing to consider is
$$\int_0^\infty \frac{a}{a^2+x^2} \mathrm{d}x=\mathcal{L} \{ \sin(t)/t \} |_{s=0}=\int_0^\infty \frac{\sin(t)}{t} \mathrm{d}t=\pi/2$$
Usually it is done in reverse as the sin(t)/t integral is considered harder than the a/(a^2+x^2) integral.

10. Aug 9, 2013

### JBrandonS

Well, after vanhees71's explanation do you still believe this to be the case? And if so, under what conditions do you think this would be false or true?

That is quite interesting. The main concern I have for that method is how can I handle the cases of a < 0 and a = 0, both of which provide different answers.

11. Aug 9, 2013

### Mandelbroth

vanhees71's explanation comes from an older, less agreeable argument for the definition of the delta distribution. Again, it's a physics argument. The math is wrong. The integral still doesn't converge to anything.

12. Aug 9, 2013

### lurflurf

oops that should have been

$$\int_0^\infty \frac{a}{a^2+x^2} \mathrm{d}x=\mathcal{L} \{ \sin(a \, t)/t \} |_{s=0}=\int_0^\infty \frac{\sin(a \, t)}{t} \mathrm{d}t=\mathrm{sign}(a) \, \pi/2$$

13. Aug 9, 2013

### lurflurf

I would not say the math is wrong and the integral does not converge. A different definition of convergence is being used.

14. Aug 9, 2013

### Mandelbroth

I don't know what to say to that. The definition is not one I consider canonical, and I don't think it advisable to define convergence that way in math. It's really just physics.

15. Aug 9, 2013

### lurflurf

^Using different definitions is not a problem except when it becomes unclear which one is being used. One should mention the definition being used. Often an integral sign is used without comment and who knows what integral is intended.

16. Aug 10, 2013

### micromass

The math isn't wrong. This is all very standard and canonical mathematics. And this is certainly not physics, although it was originally invented in physics. But it can certainly be made rigorous in mathematics.

17. Aug 10, 2013

### vanhees71

What is wrong, and why is this an "older, less agreeable argument"? Of course, the first part of my posting was a quick and dirty physicists evaluation of the final integral, particularly, because I multiplied two distributions, namely the Heaviside unitstep and the Dirac $\delta$ distribution. Then I used the rule of thumb $\Theta(0)=1/2$, which is correct in Fourier analysis, because Fourier series or integrals converge to the mean of a function where this function has jumps.

The second part, where I try to prove that these assumptions are correct in the given case, should be ok. I defined the $\delta$ distribution over the test-function space with the domain $\mathbb{R}_{\geq 0}$ as a weak limit of a standard "$\delta$ series" of test functions. What's old-fashioned with this and (more importantly) wrong with this? What would be the modern way to evaluate the final integral in the OP with the correct result?

I think, we all agree that this method to evaluate the very first integral, is not very elegant, because this you can do much better directly by simply evaluating the integral, since
$$\int \mathrm{d} x \frac{a}{a^2+x^2}=\arctan(a x).$$
Then you get everything correct for both signs of $a$. It's also clear that for $a=0$ the integral doesn't exist, because it diverges at the lower boundary $x=0$.

18. Aug 11, 2013

### JBrandonS

Can anyone explain how this substitution works and how you are able to use this to combine the two exp's. Still not seeing how that is possible.

19. Aug 11, 2013

### Mandelbroth

It's a linear combination of complex exponentials. The integral is a linear operator.

20. Aug 11, 2013

### JBrandonS

I am still failing to see where the x' goes when we combine them.