Suppose we have a ($n-1$ dimensional) unit sphere centered at the origin: $$ \sum\_{i=1}^{n}{x\_i}^2 = 1$$
Given some some $d \in [0,1]$, what is the probability that a randomly selected point on the sphere, $ (x\_1,x\_2,x\_3,...,x\_n)$, has coordinates such that $$|x\_i| \leq d$$ for all $i$?


This is equivalent to finding the intersection of the $(n-1)$-hypersphere with the $n$-hypercube of side $2d$ centered at origin, and then taking the ratio of that $(n-1)$-volume over the $(n-1)$-volume of the $(n-1)$-hypersphere.


As there are closed-form formulas for the volume of a hypersphere, the problem reduces to finding the $(n-1)$-volume of the aforementioned intersection.


All attempts I've made to solve this intersection problem have led me to a series of nested integrals, where one or both limits of each integral depend on the coordinate outside that integral, and I know of no way to evaluate it. For example, using [hyperspherical coordinates](https://en.wikipedia.org/wiki/N-sphere#Hyperspherical_coordinates), I have obtained the following integral: $$ 2^n n! \int\_{\phi\_{n-1}=\tan^{-1}\frac{\sqrt{1-(n-1)d^2}}{d}}^{\tan^{-1}1} \int\_{\phi\_{n-2}=\tan^{-1}\frac{\sqrt{1-(n-2)d^2}}{d}}^{\tan^{-1}\frac{1}{\cos\phi\_{n-1}}}\ldots\int\_{\phi\_1=\tan^{-1}\frac{\sqrt{1-d^2}}{d}}^{\tan^{-1}\frac{1}{\cos\phi\_2}} d\_{S^{n-1}}V$$
where
$$d\_{S^{n-1}}V = \sin^{n-2}(\phi\_1)\sin^{n-3}(\phi\_2)\cdots \sin(\phi\_{n-2})\ d\phi\_1 \ d\phi\_2\ldots d\phi\_{n-1}$$ is the volume element of the $(n-1)$–sphere. But this is pretty useless as I can see no way of integrating this accurately for high dimensions (in the thousands, say).


Using cartesian coordinates, the problem can be restated as evaluating: $$ \int\_{\sum\_{i=1}^{n-1}{x\_i}^2\leq1, |x\_i| \leq d} \frac{1}{\sqrt{1-\sum\_{i=1}^{n-1}{x\_i}^2}}dx\_1 dx\_2 \ldots dx\_{n-1}$$ which, as far as I know, is un-integrable.


I would greatly appreciate any attempt at estimating this probability (giving an upper bound, say) and how it depends on $n$ and $d$. Or, given a particular probability and fixed $d$, to find $n$ which satisfies that probability.


Edit: This question leads to two questions that are slightly more general:


1. I think part of the difficulty is that neither spherical nor Cartesian coordinates work very well for this problem, because we're trying to find the intersection between a region that is best expressed in spherical coordinates (the sphere) and another that is best expressed in Cartesian coordinates (the cube). Are there other problems that are similar to this? And how are their solutions usually formulated?
2. Also, the problem with the integral is that the limits of each of the nested integrals is a function of the "outer" variable. Is there any general method of solving these kinds of integrals?



Probability of a point on a unit sphere lying within a cube
Denote the median of $\max\_{i=1,\dots,n}|x\_i|$ on the sphere by $M\_n$. It is known that the ratio between $M\_n$ and $\sqrt{\log n/n}$ is universally bounded and bounded away from zero. If you take $d=M\_n$ then the quantity you are looking for is exactly $1/2$. It is also known that the $\infty$-norm ($\max\_{i=1,\dots,n}|x\_i|$) is ``well concentrated" on the sphere meaning in particular that for any $\epsilon>0$, if you take $d<(1-\epsilon)M\_n$ the probability you're interested in tends to zero and if you take $d>(1+\epsilon)M\_n$, it tends to 1. Quite precise estimates are known.


The way these things are estimated is by relating the uniform distribution on the sphere to the distribution of a standard Gaussian vector:
If $g\_1,\dots,g\_n$ are independent standard Gaussian variables then the distribution of
$$
 \frac{(g\_1,\dots,g\_n)}{(\sum g\_i^2)^{1/2}}
 $$ is equal to the uniform distribution on the sphere. So the quantity you're looking for is the probability that $\max\_{i=1,\dots,n}|g\_i|\le d (\sum g\_i^2)^{1/2}$.
Since $(\sum g\_i^2)^{1/2}$ is very well concentrated near the constant $\sqrt n$, this is asymptotically the same as the probability that $\max\_{i=1,\dots,n}|g\_i|\le d \sqrt n$.


For general reference in a much more general setting you can look here: Milman, Schechtman, Asymptotic theory of finite-dimensional normed spaces. For a finer treatment of the special case of the $\infty$-norm, look here:
G. Schechtman: [The random version of Dvoretzky's theorem in $\ell\_n^\infty$](http://www.weizmann.ac.il/math/gideon/sites/math.gideon/files/uploads/ranDv.pdf).


