A point in randomly chosen in the unit cube, a sphere is then created using the random point as the center such that the sphere must be contained inside the cube (In other words, the largest sphere that fits). What is the probability that the center of the cube is contained inside the sphere created?

s2vunov

s2vunov

Answered question

2022-09-30

A random sphere containing the center of the unit cube
Inspired by a Putnam problem, I came up with the following question:
A point in randomly chosen in the unit cube, a sphere is then created using the random point as the center such that the sphere must be contained inside the cube (In other words, the largest sphere that fits). What is the probability that the center of the cube is contained inside the sphere created?
No real idea how to approach this one but thought some of you might find this interesting.

Answer & Explanation

Marshall Horne

Marshall Horne

Beginner2022-10-01Added 8 answers

Step 1
As the probability is the same in all cubes, we can calculate it in the cube [ 1 , 1 ] 3 .
We can limit ourselves to the sixth of the cube where z is positive and has the greatest absolute value of the three coordinates. Then the radius of the sphere is 1 z, and the centre of the cube is in the sphere if x 2 + y 2 + z 2 ( 1 z ) 2 . Thus the admissible area of (x,y) is the intersection of the square [ z , z ] 2 with the circle x 2 + y 2 = 1 2 z. A corner of the square lies on the circle if 3 z 2 = ( 1 z ) 2 , that is, z = 3 1 2 , and a midpoint of the square lies on the circle if 2 z 2 = ( 1 z ) 2 , that is, z = 2 1
Thus, for 0 z 3 1 2 , the entire square lies within the circle, so the area is 4 z 2 .
For 3 1 2 z 2 1 the circle and square intersect. The four segments of the circle that extend beyond the square each have area ( 1 2 z ) arccos z 1 2 z z 1 2 z z 2 , so the area is π ( 1 2 z ) 4 ( ( 1 2 z ) arccos z 1 2 z z 1 2 z z 2 )
For 2 1 z 1 2 the entire circle lies within the square, so the area is π ( 1 2 z ); and for z > 1 2 the area is 0.
Thus the desired probability is 6 8 ( 0 3 1 2 4 z 2 d z + 3 1 2 2 1 ( ( 1 2 z ) ( π 4 arccos z 1 2 z ) + 4 z 1 2 z z 2 ) d z + 2 1 1 2 π ( 1 2 z ) d z ) .
Step 2
The first and last integral evaluate to 4 3 ( 3 1 2 ) 3 = 3 5 3 and π 4 ( 1 2 ( 2 1 ) ) 2 = π ( 17 4 3 2 ) , respectively. Wolfram|Alpha evaluates the indefinite form of the second integral to
π z 2 + π z + 4 1 2 z z 2 ( z 2 3 + z 6 5 6 ) + ( 6 z ) 1 2 z z 2 + 15 2 arctan 1 + z 1 2 z z 2 + 1 2 arctan 1 3 z 1 2 z z 2 4 arcsin 1 + z 2 + 4 ( z 1 ) z arccos z 1 2 z
but refuses to evaluate it with limits. Substituting the limits by hand yields
π ( 3 2 2 ) + π ( 2 1 ) + 15 2 π 2 1 2 π 2 4 π 2 = ( 3 2 5 2 ) π
at the upper limit and
π ( 1 3 2 ) + π 3 1 2 + 2 3 3 + 7 2 3 4 + 15 2 5 π 12 + 1 2 ( π 12 ) 4 5 π 12 + 4 3 3 2 3 1 2 π 4 = 10 3 + 5 2 3 + 17 12 π
at the lower limit, so the second integral evaluates to
10 3 5 2 3 + ( 3 2 47 12 ) π .
Thus, the desired probability is
3 4 ( 3 5 3 + 10 3 5 2 3 + ( 3 2 47 12 ) π + π ( 17 4 3 2 ) ) = π 4 + 5 4 9 8 3 0.086841 ,
in agreement with Aaron’s calculation and simulation.
gsragator9

gsragator9

Beginner2022-10-02Added 2 answers

Step 1
So we're going to consider the cube [ 1 , 1 ] 3 and restrict to centers of the sphere in the pyramid 0 x y z 1. This means that the face z = 1 will be the closest. The origin will be (on or) inside such a sphere if and only if x 2 + y 2 + z 2 ( 1 z ) 2 , i.e., 2 z 1 ( x 2 + y 2 ).
Over what region in the xy-plane does our region project? Since x y z, or x 2 + ( y + 1 ) 2 2. This results in the portion of 0 x y lying inside the circle x 2 + ( y + 1 ) 2 2. Note that 0 x 3 1 2 .
Setting up the triple integral, the volume we desire is
0 3 1 2 x 2 x 2 1 y 1 2 ( 1 x 2 y 2 ) d z d y d x ,
and since we're comparing to the volume of the full pyramid, which is 1/6, we take 6 times this answer.
Step 2
(We can also set this up nicely in polar coordinates:
0 π / 4 0 cos 2 θ + 1 cos θ r sin θ 1 2 ( 1 r 2 ) r d z d r d θ . )
The integral, multiplied by 6, turns into
0 3 1 2 ( 5 + 4 2 x 2 + 3 x 2 2 x 2 2 x 2 ( 3 x 3 x 2 4 x 3 ) ) d x = 0 3 1 2 ( 5 3 x + 4 x 3 + 4 2 x 2 + 6 x 2 2 x 2 2 x 2 ) d x = 5 4 9 8 3 + π 4 .

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school geometry

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?