Gaussian integral
26-Jul-2023
In the previous post Deriving probability distribution from entropy, I mentioned about Gaussian integral and said it deserves its own post. So here it is, and hopefully a short article as well.
Gaussian integral as an introductary “integral” trick
The integral is quite famous for being an example of an expression that doesn’t have elementary indefinite form, but it does converge to a certain value in the definite form. Moreover, the result involves which is usually related with a circle.
The integral (E1) doesn’t have elementary indefinite expression. But we can still calculate it using circular symmetry. The exact proof needs formal justification, but the idea is as follow.
Let the integral (E1) has convergent value, and we call it .
Note that, if we change the variable from to , the value should be the same. However, if both and is a perpendicular axis, then by Pythagorean Theorem, with being the hypotenuse.
The trick is to realize that .
Step (2) to step (3) is justified because we kind of assume that is converged, so we can swap and mix the integral, just like a sum. This is known as Fubini’s Theorem.
Step (3) to (4) is just circle identity we mentioned earlier.
Now this equation becomes a double integral. In other words, it measures an area or volume with the function as its density. The integral with respect to Cartesian coordinate differentials can be integrated the same way using a polar coordinate with differentials. Technically, the conversion is done using Jacobian matrix. But we can accept it as fact for now.
Step (5) to (6) is due the differentials changes. So the integration boundaries also changes.
Step (6) to (7) is applying Fubini’s Theorem again, since and is independent. We also substitute .
The rests just follows.
We now understand that there is a circle symmetry at works, which is why the constant appears.
Interpreting Gaussian integral as flux
An alternative way of interpreting Gaussian integral can be perceived using Gauss’s Law.
If you haven’t already know, an alternative of formulation for Coulomb’s Law and Newton’s Universal Gravitation is by using Gauss Law with spherical symmetry for constant electric flux. In the original derivation, it was known from observation/experimental results that the magnitude of electric field from a point charge in vacuum is a constant . If we take the flux along a spherical area , we got:
If we observe above equation, we know that is a function of , and it measures the strength of the electric field. The above formulation has an equivalent expression using divergence theorem.
Where is the density of the charge.
Now if we use some kind of analogy, given this gaussian integral:
We can imagine that it is equivalent of a surface integral for a flat circle , with is a vector field along the axis direction, so that it was integrated with parameter . So .
Since a total flux of zero means there are no charge inside, we can imagine that if the boundary contains charge inside, then we can choose a cylindrical shape. So we have two circle surface, and one surface wraps around the cylinder. Suppose that field is completely in the direction of axis, then the flux around the cylinder (along the direction) is zero. The total flux is then:
What is interesting with above equation is that the total flux is capped at when is very large. The total flux is proportional with the charge quantity contained inside the surface.
If we follow along the divergence theorem, then equivalently we can construct the field vector in cylindrical coordinate.
Interestingly, the divergence becomes zero this way because there are no parameter in direction. Meanwhile if the total flux is non-zero then the divergence must be proportional to the density of the volume.
If we inspect the flux equation in more detail, in order for the flux to not be zero then the sign of the vector must change. Thus, if we “patched” the vector function , then it was supposed to be like this:
Here, is a function that returns the sign of variable z. It will be -1 if , 1 if , and 0 if .
We have an interesting connection that the divergence now non-zero and involves the derivative of the sign function .
If we treat as just a unit constant (to make sure the unit dimension is correct in electromagnetic theory), then the general connection directly follows from divergence theorem that the density is the amount of charge contained in the cylindrical volume we decided earlier.
Now if we consider a step function , we can intuitively imagine that the value of is zero everywhere, except around 0. So, let’s just suppose we are inspecting the charge density around only. The density of the charge is proportional to the derivative.
The volume element for a cylindrical coordinate is . Substituting this for density:
Combining both results confirms that for some region near .
But the question then remains on how to formally express this region?
Why there is such a strange connection from an entirely different perspectives? If we consider as field vector that penetrates an area, then calculate it using gaussian integral, we got a certain factor . This factor, coincidentally be the same factor needed in order for us to have the correct divergence, by the divergence theorem.
In other words, the factor appears because on Divergence theorem we observed shows circular symmetry. Then since it is proportional to the surface integral (power of two), then the gaussian integral along one single axis/dimension is .
Isn’t it fascinating? If the distribution has a factor of , then total flux is , implying that the total amount of charge contained inside the volume when goes to infinity, is . It doesn’t care about the unit.
If you are interested, you can also try using the same distribution, but apply it in all 3 axis. To calculate the flux, either use spherical or cylindrical coordinates, the result has to be the same.