# Disk (mathematics)

Disk with circumference (C) in black, diameter (D) in cyan, radius (R) in red, and center (O) in green.

In geometry, a disk (also spelled disc)[1] is the region in a plane bounded by a circle. A disk is said to be closed if it contains the circle that constitutes its boundary, and open if it does not.[2]

For a radius ${\displaystyle r}$ an open disk is usually denoted as ${\displaystyle D_{r}}$ and a closed disk is ${\displaystyle {\overline {D_{r}}}}$. However in the field of topology the closed disk is usually denoted as ${\displaystyle D^{2}}$ while the open disk is ${\displaystyle \operatorname {Int} D^{2}}$.

## Formulas

In Cartesian coordinates, the open disk of center ${\displaystyle (a,b)}$ and radius R is given by the formula[1]

${\displaystyle D=\{(x,y)\in {\mathbb {R} ^{2}}:(x-a)^{2}+(y-b)^{2}

while the closed disk of the same center and radius is given by

${\displaystyle {\overline {D}}=\{(x,y)\in {\mathbb {R} ^{2}}:(x-a)^{2}+(y-b)^{2}\leq R^{2}\}.}$

The area of a closed or open disk of radius R is πR2 (see area of a disk).[3]

## Properties

The disk has circular symmetry.[4]

The open disk and the closed disk are not topologically equivalent (that is, they are not homeomorphic), as they have different topological properties from each other. For instance, every closed disk is compact whereas every open disk is not compact.[5] However from the viewpoint of algebraic topology they share many properties: both of them are contractible[6] and so are homotopy equivalent to a single point. This implies that their fundamental groups are trivial, and all homology groups are trivial except the 0th one, which is isomorphic to Z. The Euler characteristic of a point (and therefore also that of a closed or open disk) is 1.[7]

Every continuous map from the closed disk to itself has at least one fixed point (we don't require the map to be bijective or even surjective); this is the case n=2 of the Brouwer fixed point theorem.[8] The statement is false for the open disk:[9]

Consider for example the function ${\displaystyle f(x,y)=\left({\frac {x+{\sqrt {1-y^{2}}}}{2}},y\right)}$ which maps every point of the open unit disk to another point on the open unit disk to the right of the given one. But for the closed unit disk it fixes every point on the half circle ${\displaystyle x^{2}+y^{2}=1,x>0.}$

## As a statistical distribution

The average distance to a location from points on a disc

A uniform distribution on a unit circular disk is occasionally encountered in statistics. It most commonly occurs in operations research in the mathematics of urban planning, where it may be used to model a population within a city. Other uses may take advantage of the fact that it is a distribution for which it is easy to compute the probability that a given set of linear inequalities will be satisfied. (This requires numerical quadrature for Gaussian distributions in the plane.)

"An ingenious argument via elementary functions" shows the mean Euclidean distance between two points in the disk to be 128/45π ≈ 0.90541,[10] while direct integration in polar coordinates shows the mean squared distance to be 1.

If we are given an arbitrary location at a distance q from the center of the disk, it is also of interest to determine the average distance b(q) from points in the distribution to this location and the average square of such distances. The latter value can be computed directly as q2+1/2.

### Average distance to an arbitrary internal point

The average distance from a disk to an internal point

To find b(q) we need to look separately at the cases in which the location is internal or external, i.e. in which q ≶ 1, and we find that in both cases the result can only be expressed in terms of complete elliptic integrals.

If we consider an internal location, our aim (looking at the diagram) is to compute the expected value of r under a distribution whose density is 1/π for 0 ≤ rs(θ), integrating in polar coordinates centered on the fixed location for which the area of a cell is r dr ; hence

${\displaystyle b(q)={\frac {1}{\pi }}\int _{0}^{2\pi }{\textrm {d}}\theta \int _{0}^{s(\theta )}r^{2}{\textrm {d}}r={\frac {1}{3\pi }}\int _{0}^{2\pi }s(\theta )^{3}{\textrm {d}}\theta .}$

Here s(θ) can be found in terms of q and θ using the Law of cosines. The steps needed to evaluate the integral, together with several references, will be found in the paper by Lew et al.;[10] the result is that

${\displaystyle b(q)={\frac {4}{9\pi }}{\biggl \{}4(q^{2}-1)K(q^{2})+(q^{2}+7)E(q^{2}){\biggr \}}}$
where K and E are complete elliptic integrals of the first and second kinds.[11] b(0) = 2/3; b(1) = 32/ ≈ 1.13177.

### Average distance to an arbitrary external point

The average distance from a disk to an external point

Turning to an external location, we can set up the integral in a similar way, this time obtaining

${\displaystyle b(q)={\frac {2}{3\pi }}\int _{0}^{{\textrm {sin}}^{-1}{\tfrac {1}{q}}}{\biggl \{}s_{+}(\theta )^{3}-s_{-}(\theta )^{3}{\biggr \}}{\textrm {d}}\theta }$
where the law of cosines tells us that s+(θ) and s(θ) are the roots for s of the equation
${\displaystyle s^{2}-2qs\,{\textrm {cos}}\theta +q^{2}\!-\!1=0.}$
Hence
${\displaystyle b(q)={\frac {4}{3\pi }}\int _{0}^{{\textrm {sin}}^{-1}{\tfrac {1}{q}}}{\biggl \{}3q^{2}{\textrm {cos}}^{2}\theta {\sqrt {1-q^{2}{\textrm {sin}}^{2}\theta }}+{\Bigl (}1-q^{2}{\textrm {sin}}^{2}\theta {\Bigr )}^{\tfrac {3}{2}}{\biggl \}}{\textrm {d}}\theta .}$
We may substitute u = q sinθ to get
{\displaystyle {\begin{aligned}b(q)&={\frac {4}{3\pi }}\int _{0}^{1}{\biggl \{}3{\sqrt {q^{2}-u^{2}}}{\sqrt {1-u^{2}}}+{\frac {(1-u^{2})^{\tfrac {3}{2}}}{\sqrt {q^{2}-u^{2}}}}{\biggr \}}{\textrm {d}}u\\[0.6ex]&={\frac {4}{3\pi }}\int _{0}^{1}{\biggl \{}4{\sqrt {q^{2}-u^{2}}}{\sqrt {1-u^{2}}}-{\frac {q^{2}-1}{q}}{\frac {\sqrt {1-u^{2}}}{\sqrt {q^{2}-u^{2}}}}{\biggr \}}{\textrm {d}}u\\[0.6ex]&={\frac {4}{3\pi }}{\biggl \{}{\frac {4q}{3}}{\biggl (}(q^{2}+1)E({\tfrac {1}{q^{2}}})-(q^{2}-1)K({\tfrac {1}{q^{2}}}){\biggr )}-(q^{2}-1){\biggl (}qE({\tfrac {1}{q^{2}}})-{\frac {q^{2}-1}{q}}K({\tfrac {1}{q^{2}}}){\biggr )}{\biggr \}}\\[0.6ex]&={\frac {4}{9\pi }}{\biggl \{}q(q^{2}+7)E({\tfrac {1}{q^{2}}})-{\frac {q^{2}-1}{q}}(q^{2}+3)K({\tfrac {1}{q^{2}}}){\biggr \}}\end{aligned}}}
using standard integrals.[12]

Hence again b(1) = 32/, while also[13]

${\displaystyle \lim _{q\to \infty }b(q)=q+{\tfrac {1}{8q}}.}$

### Computation

Complete elliptic integrals can be computed by the method of the arithmetic-geometric mean.[14] b(q) can then be determined to good accuracy by code along the following lines:

  double discdist(double q)
{ double x,a,b,c,oldc,adash,mult,csum,K,KminusE,qsq,pi=3.141592653589793 ;
if(q==0) return 2.0/3.0 ; else q = fabs(q) ;
if(q==1) return 32/(9*pi) ;
qsq = q * q ;
if(q<1) x = qsq ; else x = 1/qsq ;

// agm
b = sqrt(1-x) ;
c = sqrt(x) ;
for(a=1,oldc=c+1,csum=c*c/2,mult=1;c>1e-15&&c<oldc;csum+=mult*c*c,mult*=2)
{ oldc = c ; c = (a-b)/2 ; adash = (a+b)/2 ; b = sqrt(a*b) ; a = adash ; }
K = pi / (2*a) ;
KminusE = K * csum ;

if(q<1) return (4/(9*pi)) * ((5*qsq+3)*K   - (qsq+7)*KminusE) ;
else    return (4/(9*pi)) * ((5*qsq+3)*K/q - (qsq+7)*KminusE*q) ;
}


## References

1. ^ a b Clapham, Christopher; Nicholson, James (2014), The Concise Oxford Dictionary of Mathematics, Oxford University Press, p. 138, ISBN 9780199679591.
2. ^ Arnold, B. H. (2013), Intuitive Concepts in Elementary Topology, Dover Books on Mathematics, Courier Dover Publications, p. 58, ISBN 9780486275765.
3. ^ Rotman, Joseph J. (2013), Journey into Mathematics: An Introduction to Proofs, Dover Books on Mathematics, Courier Dover Publications, p. 44, ISBN 9780486151687.
4. ^ Altmann, Simon L. (1992). Icons and Symmetries. Oxford University Press. ISBN 9780198555995. disc circular symmetry.
5. ^ Maudlin, Tim (2014), New Foundations for Physical Geometry: The Theory of Linear Structures, Oxford University Press, p. 339, ISBN 9780191004551.
6. ^ Cohen, Daniel E. (1989), Combinatorial Group Theory: A Topological Approach, London Mathematical Society Student Texts, vol. 14, Cambridge University Press, p. 79, ISBN 9780521349369.
7. ^ In higher dimensions, the Euler characteristic of a closed ball remains equal to +1, but the Euler characteristic of an open ball is +1 for even-dimensional balls and −1 for odd-dimensional balls. See Klain, Daniel A.; Rota, Gian-Carlo (1997), Introduction to Geometric Probability, Lezioni Lincee, Cambridge University Press, pp. 46–50.
8. ^ Arnold (2013), p. 132.
9. ^ Arnold (2013), Ex. 1, p. 135.
10. ^ a b J. S. Lew et al., "On the Average Distances in a Circular Disc" (1977).
11. ^ Abramowitz and Stegun, 17.3.
12. ^ Gradshteyn and Ryzhik 3.155.7 and 3.169.9, taking due account of the difference in notation from Abramowitz and Stegun. (Compare A&S 17.3.11 with G&R 8.113.) This article follows A&S's notation.
13. ^ Abramowitz and Stegun, 17.3.11 et seq.
14. ^ Abramowitz and Stegun, 17.6.