# PDF of Distance between the centre of a regular hexagon of radius R and any point within it

What is the probability distribution function of the distnace between the centre of a regular hexagon of radius R and any point within it?

I have done the following and would appreciate if you could criticise my ideas:

Assuming a hexagon with radius $R$, and the distance between the centre and any point in the hexagon to be denoted by $d$ we can write the pdf in two parts:

$P(d)=$ (circumference of a circle with radius $d$)/ Hexagon area, $d<\frac{\sqrt(3)}{2}*R^2$

$P(d)=$ (6 * arch length)/ Hexagon area, $\frac{\sqrt(3)}{2}*R^2<d<R$

• What attempts have you made at solving this problem? Are the difficulties conceptual (setting up the calculation) or are they mechanical (computing the relevant areas)? – whuber Dec 2 '14 at 21:27
• See the edit :) – Pioneer83 Dec 2 '14 at 21:47
• the distribution of the distance would depend on the distribution of points within the region. You don't specify one. One might assume uniformity, but if that's what you mean, you should be explicit. – Glen_b -Reinstate Monica Dec 2 '14 at 23:40

In closed form this will be : $P(d)=\left\{\begin{array}{cc} \frac{4\pi{d}}{3\sqrt{3}R^2} & 0\leq{d}\leq\frac{\sqrt{3}{R}}{2} \\ \frac{4\pi{d}-24d\cos^{-1}{\frac{\sqrt{3}R}{2d}}}{3\sqrt{3}R^2} & \frac{\sqrt{3}{R}}{2}\leq{d}\leq{R} \\ \end{array}\right.$