- #1
enslay
Gold Member
- 15
- 2
- TL;DR Summary
- Inverse cube "law" appears in my probability density functions. I either did something wrong or somehow something "cancels" to make it squared.
Hello,
This is my first post. For background, I have asked Ask The Physicist who has posted our correspondences and answers here:
https://www.askthephysicist.com/ask_phys_q&a.html
Search "My question is with regard to an apparent mathematical disagreement" or something like that to find the correspondence. Which reminds me, I ought to donate to that guy for spending his time answering my dumb question.
So, imagine you have a point-source positioned at (x_0,y_0,z_0) emitting photons in uniform random 3D directions and imagine you have a detector surface. It could be something like a plane, a cylinder, heck I've even derived it for a sphere. The probability density functions characterizing where photons strike the detector surface always seems to have a 1/r^3 in it. And this has been a great source of controversy with some physicists I work with!
So for a vertical plane positioned at x=R, you derive something like Bivariate Cauchy (Lorentz) distribution which takes this form:
$$\rho(y,z) = \frac{1}{4\pi} \frac{|R - x_0|}{r^3}$$
Where $$r= \sqrt{(R-x_0)^2 + (y-y_0)^2 + (z-z_0)^2}$$
NOTE: This "density" function integrates to 1/2 which reflects the fact that only half 1/2 the photons will hit the plane (the other 1/2 are going away from the plane). On paper, I end up with ##\frac{1}{2\pi}## but this isn't right in reality.
And for a cylinder of radius R and infinite length centered at (0,0,0) where circle cross sections are on the x-y plane... you get this:
$$\rho(z,\phi) = \frac{R}{4\pi} \frac{|R - x_0 \cos \phi - y_0 \sin\phi|}{r^3}$$
Where $$r = \sqrt{(R\cos\phi - x_0)^2 + (R\sin\phi - y_0)^2 + (z-z_0)^2}$$
Whenever I see inverse square law visually depicted, I always see this expanding surface of a sphere with points in some partition of the sphere, so I thought maybe the plane or cylinder geometry caused the 1/r^3 to appear. So it should be 1/r^2 in the spherical density function, right?
Unfortunately not. Here's what I get for the probability density function in a sphere of radius R centered at (0,0,0):
$$\rho(\theta,\phi) = \frac{R^2}{4\pi} \frac{|R - x_0 \sin\theta\cos\phi - y_0 \sin\theta\sin\phi - z_0\cos\theta| \sin\theta}{r^3}$$
Where $$r = \sqrt{(R\sin\theta\cos\phi - x_0)^2 + (R\sin\theta\sin\phi - y_0)^2 + (R\cos\theta - z_0)^2}$$
Here $$0 \leq \theta \leq \pi,\ -\pi \leq \phi < \pi$$
OK, well, I thought maybe probability density functions don't actually reflect the behavior of binning the photons like in those visual depictions you see of inverse square law... until I figured out a trick to accurately simulate what a detector histogram would look like directly from the density function. And it matches some simple Monte Carlo simulations!
If you have your histogram bin centered at ##\theta,\ \phi## and the histogram bin dimensions are ##\Delta \theta## and ##\Delta \phi##... then simply scaling the density function by ##N \Delta \theta \Delta \phi \rho(\theta,\phi)##, where ##N## is the total number of photons emitted, gives you something that looks a lot like a Monte Carlo simulation's histogram.
So what the heck? Why is there is a 1/r^3 in all of these density functions? What am I missing? Ask The Physicist suggests something cancels to give 1/r^2... what cancels? How? What am I missing? I'm doing something wrong or misinterpreting something.
There may be errors. Sorry. Hopefully I can edit mistakes later.
EDIT: Editing for LaTeX.
This is my first post. For background, I have asked Ask The Physicist who has posted our correspondences and answers here:
https://www.askthephysicist.com/ask_phys_q&a.html
Search "My question is with regard to an apparent mathematical disagreement" or something like that to find the correspondence. Which reminds me, I ought to donate to that guy for spending his time answering my dumb question.
So, imagine you have a point-source positioned at (x_0,y_0,z_0) emitting photons in uniform random 3D directions and imagine you have a detector surface. It could be something like a plane, a cylinder, heck I've even derived it for a sphere. The probability density functions characterizing where photons strike the detector surface always seems to have a 1/r^3 in it. And this has been a great source of controversy with some physicists I work with!
So for a vertical plane positioned at x=R, you derive something like Bivariate Cauchy (Lorentz) distribution which takes this form:
$$\rho(y,z) = \frac{1}{4\pi} \frac{|R - x_0|}{r^3}$$
Where $$r= \sqrt{(R-x_0)^2 + (y-y_0)^2 + (z-z_0)^2}$$
NOTE: This "density" function integrates to 1/2 which reflects the fact that only half 1/2 the photons will hit the plane (the other 1/2 are going away from the plane). On paper, I end up with ##\frac{1}{2\pi}## but this isn't right in reality.
And for a cylinder of radius R and infinite length centered at (0,0,0) where circle cross sections are on the x-y plane... you get this:
$$\rho(z,\phi) = \frac{R}{4\pi} \frac{|R - x_0 \cos \phi - y_0 \sin\phi|}{r^3}$$
Where $$r = \sqrt{(R\cos\phi - x_0)^2 + (R\sin\phi - y_0)^2 + (z-z_0)^2}$$
Whenever I see inverse square law visually depicted, I always see this expanding surface of a sphere with points in some partition of the sphere, so I thought maybe the plane or cylinder geometry caused the 1/r^3 to appear. So it should be 1/r^2 in the spherical density function, right?
Unfortunately not. Here's what I get for the probability density function in a sphere of radius R centered at (0,0,0):
$$\rho(\theta,\phi) = \frac{R^2}{4\pi} \frac{|R - x_0 \sin\theta\cos\phi - y_0 \sin\theta\sin\phi - z_0\cos\theta| \sin\theta}{r^3}$$
Where $$r = \sqrt{(R\sin\theta\cos\phi - x_0)^2 + (R\sin\theta\sin\phi - y_0)^2 + (R\cos\theta - z_0)^2}$$
Here $$0 \leq \theta \leq \pi,\ -\pi \leq \phi < \pi$$
OK, well, I thought maybe probability density functions don't actually reflect the behavior of binning the photons like in those visual depictions you see of inverse square law... until I figured out a trick to accurately simulate what a detector histogram would look like directly from the density function. And it matches some simple Monte Carlo simulations!
If you have your histogram bin centered at ##\theta,\ \phi## and the histogram bin dimensions are ##\Delta \theta## and ##\Delta \phi##... then simply scaling the density function by ##N \Delta \theta \Delta \phi \rho(\theta,\phi)##, where ##N## is the total number of photons emitted, gives you something that looks a lot like a Monte Carlo simulation's histogram.
So what the heck? Why is there is a 1/r^3 in all of these density functions? What am I missing? Ask The Physicist suggests something cancels to give 1/r^2... what cancels? How? What am I missing? I'm doing something wrong or misinterpreting something.
There may be errors. Sorry. Hopefully I can edit mistakes later.
EDIT: Editing for LaTeX.
Last edited: