Find the part of the volume of the hyper sphere x 2 + y 2 + z 2 + w 2 = 2 5 that resides within the hypercube [ − 4 , 4 ] 4 . Express your answer in percent, rounded to the nearest integer.
Note that this problem deals with the hypersphere x 2 + y 2 + z 2 + w 2 = 2 5 , a three-dimensional manifold embedded in R 4 that has a volume (some people call it "hyper surface area"), not with the hyperball x 2 + y 2 + z 2 + w 2 ≤ 2 5 , a four-dimensional manifold that has a "hypervolume."
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.
Could you please explain the scaling factor? How do you calculate it?
I did the two- and threedimensional cases first, to warm up. They gave percentages 18% and 40%. The procedure is analogous.
The 4-dimensional case (4D hypersphere and tesseract):
The hypersphere is defined by
i
=
1
∑
4
x
i
2
=
R
2
In order to find the volume, we are going to integrate over and angle
φ
that runs from
0
to
π
. We set
x
4
=
R
cos
φ
For a fixed value of
φ
, the intersection of the hypersphere and the hyperplane
x
4
=
R
cos
φ
is defined by
i
=
1
∑
3
x
i
2
=
R
2
sin
2
φ
This is a (3D-)sphere with radius
R
sin
φ
and area
4
π
R
2
sin
2
φ
.
Integrating the area associated with each value for φ , with jacobian R gives the total volume of the (boundary of) the hypersphere:
V h y p e r s p h e r e = ∫ 0 π 4 π R 2 sin 2 φ R d φ = 2 π R 3 ∫ 0 π ( 1 − cos 2 φ ) d φ = 2 π R 3 ( φ − 2 1 sin 2 φ ) ∣ ∣ ∣ 0 π = 2 π 2 R 3
Letting φ run from 0 to arccos 5 4 , we find the volume sticking out one of the 3D-'faces' of the tesseract:
v b u l g e = 2 π R 3 ( φ − 2 1 sin 2 φ ) ∣ ∣ ∣ 0 arccos 5 4 = V h y p e r s p h e r e × π 1 ( arccos 5 4 − 2 1 sin ( 2 arccos 5 4 ) ) .
Now a tesseract has 8 'faces' (two for each cartesian axis), so 8 bulges are sticking out and a fraction π 8 ( arccos 5 4 − 2 1 sin ( 2 arccos 5 4 ) ) ( 4 1 . 6 . . . % ) of the hypersphere is outside the tesseract, hence a rounded 5 8 % is inside the tesseract.
2 5 π 2 2 ( 4 8 π − 5 0 π sin − 1 ( 5 3 ) + 2 5 π sin − 1 ( 2 5 7 ) ) is about 58.36%.
Problem Loading...
Note Loading...
Set Loading...
I'm posting a solution by our friend Steven Chase, who did not get the problem right at first due to a misunderstanding based on the wording of the problem.
I will post my own solution below.
Alright, I modified the code to generate points uniformly on the "surface" of the 4-sphere. I used the algorithm from this link (with x1-x4):
http://mathworld.wolfram.com/HyperspherePointPicking.html
Taking the ratio of (# points on 4-sphere AND in cube) / (# points on 4-sphere) yields a percentage of 58.35, which matches your result.
35 import math import random
N = 10**7
numcube = 0 numsphere = 0
for j in range(0,N):
print 100.0 * float(numcube) / float(numsphere) # Ratio gives fraction of 4-sphere "volume" inside 4-cube Steven Chase - 13 hours ago 1 Reply
By symmetry, we can at first restrict our attention to the "upper half" of the hypersphere, H , where w ≥ 0 . We can interpret H as the graph of the function f ( x , y , z ) = w = 2 5 − x 2 − y 2 − z 2 defined on the ball B 5 in R 3 given by x 2 + y 2 + z 2 ≤ 2 5 . The scaling factor (for volume) of this parameterization of H is 2 5 − x 2 − y 2 − z 2 5 . Thus the volume of H is ∫ ∫ ∫ B 5 2 5 − x 2 − y 2 − z 2 5 d V = 4 π ∫ 0 5 2 5 − ρ 2 5 ρ 2 d ρ = 1 2 5 π 2 and the volume of the whole hypersphere is V t o t a l = 2 5 0 π 2 .
This hypersphere has eight "caps" outside the hypercube, where the absolute value of one of the variables is ≥ 4 . Luckily, the intersection of any two of these caps is empty, since 4 2 + 4 2 > 5 2 . By symmetry, it suffices to find the volume of one of those caps; let's look at w ≥ 4 . Now, on the hypersphere, w ≥ 4 means that ρ ≤ 3 , so that V c a p = ∫ ∫ ∫ B 3 2 5 − x 2 − y 2 − z 2 5 d V = 4 π ∫ 0 3 2 5 − ρ 2 5 ρ 2 d ρ = 2 5 0 π arcsin ( 5 3 ) − 1 2 0 π The required proportion is V t o t a l V t o t a l − 8 V c a p ≈ 0 . 5 8 4 ≈ 5 8 %