In the x y z coordinate system, there is a solid sphere of radius 1 centered at ( 1 , 1 , 1 ) .
Suppose the distance from a random point within the spherical volume to the origin is D . What is the expected value of D 2 ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Shift the coordinate system so that the centre of the sphere is at the origin, and D is the distance from the point ( − 1 , − 1 , − 1 ) . Let a = ( 1 1 1 ) T . Then, integrating over the sphere, ∭ ∣ r − a ∣ 2 d V = ∭ ( ∣ r ∣ 2 − 2 a ⋅ r + ∣ a ∣ 2 ) d V = ∭ ∣ r ∣ 2 d V − 2 a ⋅ ∭ r d V + ∣ a ∣ 2 ∭ d V = ∫ 0 1 r 2 × 4 π r 2 d r − 2 a ⋅ 0 + 3 4 π ∣ a ∣ 2 = 5 4 π + 3 4 π × 3 = 5 2 4 π since the origin is the centre of mass of the sphere. Dividing by 3 4 π tells us that E [ D 2 ] = 5 1 8 = 3 . 6
@Mark Hennings Could you reply with the intuition you used. I feel like I'm missing on something profound in your solution.
Log in to reply
I just shifted coordinates to make it clear why the "cross term" ∭ r d V was zero.
More generally, consider a sphere of radius R centered at O = ( 0 , 0 , 0 ) , and let P = ( a , b , c ) .
Parametrically, we can represent a point inside the sphere by ( r cos θ sin ϕ , r sin θ sin ϕ , r cos ϕ ) , where 0 ≤ r ≤ R , 0 ≤ θ ≤ 2 π , and 0 ≤ ϕ ≤ π . If D is the distance from a point inside the sphere to P , then the expected value of D 2 is 3 4 π R 3 1 ∫ 0 R ∫ 0 2 π ∫ 0 π [ ( r cos θ sin ϕ − a ) 2 + ( r sin θ sin ϕ − b ) 2 + ( r cos ϕ − c ) 2 ] r 2 sin ϕ d r d θ d ϕ = 3 4 π R 3 1 ∫ 0 R ∫ 0 2 π ∫ 0 π ( r 2 cos 2 θ sin 2 ϕ − 2 a r cos θ sin ϕ + a 2 + r 2 sin 2 θ sin 2 ϕ − 2 b r sin θ sin ϕ + b 2 + r 2 cos 2 ϕ − 2 c r cos ϕ + c 2 ) r 2 sin ϕ d r d θ d ϕ = 3 4 π R 3 1 ∫ 0 R ∫ 0 2 π ∫ 0 π ( r 2 − 2 a r cos θ sin ϕ − 2 b r sin θ sin ϕ − 2 c r cos ϕ + a 2 + b 2 + c 2 ) r 2 sin ϕ d r d θ d ϕ = 3 4 π R 3 1 ∫ 0 R ∫ 0 2 π ∫ 0 π r 4 sin ϕ − r 3 ( 2 a cos θ sin 2 ϕ + 2 b sin θ sin 2 ϕ + 2 c cos ϕ sin ϕ ) + r 2 ( a 2 + b 2 + c 2 ) sin ϕ d r d θ d ϕ = 3 4 π R 3 1 ∫ 0 R ∫ 0 π 2 π r 4 sin ϕ − 4 π c r 3 cos ϕ sin ϕ + 2 π r 2 ( a 2 + b 2 + c 2 ) sin ϕ d r d ϕ = 3 4 π R 3 1 ∫ 0 R 4 π r 4 + 4 π r 2 ( a 2 + b 2 + c 2 ) d r = 3 4 π R 3 1 [ 5 4 π R 5 + 3 4 π R 3 ( a 2 + b 2 + c 2 ) ] = 5 3 R 2 + a 2 + b 2 + c 2 = 5 3 R 2 + O P 2 .
Problem Loading...
Note Loading...
Set Loading...
D 2 = x 2 + y 2 + z 2
What we want to find out is 3 4 π 1 ∭ P D 2 d x d y d z where P is the volume within the sphere ( x − 1 ) 2 + ( y − 1 ) 2 + ( z − 1 ) 2 = 1 .
Let us use a variable change of x = 1 + u , y = 1 + v and z = 1 + w . The Jacobian would simply be 1 .
we need to find the integral ∭ Q ( ( 1 + u ) 2 + ( 1 + v ) 2 + ( 1 + w ) 2 ) d u d v d w where Q is the volume within the sphere u 2 + v 2 + w 2 = 1
Now shifting into polar coordinates where u = r sin ( θ ) cos ( ϕ ) , v = r sin ( θ ) sin ( ϕ ) and w = r cos ( θ ) . The Jacobian of this transformation is ∣ J ∣ = r 2 sin ( θ ) We have:-
∫ 0 π ∫ 0 2 π ∫ 0 1 ( 3 + r 2 + 2 r ( sin ( θ ) cos ( ϕ ) + sin ( θ ) sin ( ϕ ) + cos ( θ ) ) ) r 2 sin ( θ ) d r d ϕ d θ
Now ∫ 0 2 π sin ( ϕ ) d ϕ = ∫ 0 2 π cos ( ϕ ) d ϕ = 0
and ∫ 0 π sin ( θ ) cos ( θ ) d θ = 0 .
Hence we have to find:-
∫ 0 π ∫ 0 2 π ∫ 0 1 ( 3 + r 2 ) r 2 sin ( θ ) d r d ϕ d θ (as the remaining integrals become 0).
We know ∫ 0 π sin ( θ ) d θ = 2 and ∫ 0 2 π d ϕ = 2 π
So our integral reduces to 4 π ( ∫ 0 1 ( 3 r 2 + r 5 ) d r )
So this integral is easy enough to evaluate and we will get the answer as 2 π ( 2 + 5 2 ) = 5 2 4 π .
So the expected value of D 2 is 3 4 π 5 2 4 π = 5 1 8 = 3 . 6