Expected Sum of Distances in a Triangle

In a triangle with sides 45, 60, respectively 75, what is the expected sum of distances from a point to its sides?

Solution:

Before we can actually find the expected sum of distances, we need to better understand our problem. Knowing that the sides of our triangle are 45, 60, and 75, we can see that they are proportional to 3, 4, and 5, which is a Pythagorean triple. This means that our triangle is as well.

More formally, we would use the Converse of the Pythagorean Theorem:

For any triangle with sides a, b, and c, if a2+b2=c2a^2+b^2=c^2 Then the angle between a and b measures 90°

Expected sum of distances

Now we take a point (x, y) and draw the 3 distances to the sides. The distances to CB and CA are just y and x. We are left with finding the last value, h.

To find this value, we compute ABC’s area in two ways:

  • first, using the area formula in ABC\triangle ABC
  • and then as the sum of areas of triangles AXC,CXB,BXA\triangle AXC, \triangle CXB, \triangle BXA.

AABC=ACBC2=45602=1350A_{\triangle ABC} = \dfrac{AC \cdot BC}{2} = \dfrac{45 \cdot 60}{2} = 1350

AABC=AAXC+ACXB+ABXA=45x2+60y2+h752A_{\triangle ABC} = A_{\triangle AXC} + A_{\triangle CXB} + A_{\triangle BXA} = \dfrac{45 \cdot x}{2} + \dfrac{60 \cdot y}{2} + \dfrac{h\cdot 75}{2}

45x2+60y2+h752=1350\dfrac{45 \cdot x}{2} + \dfrac{60 \cdot y}{2} + \dfrac{h\cdot 75}{2} = 1350

h752=135045x260y2\dfrac{h\cdot 75}{2} = 1350 - \dfrac{45 \cdot x}{2} - \dfrac{60 \cdot y}{2}

h=3635x45yh = 36 - \dfrac{3}{5} \cdot x - \dfrac{4}{5} \cdot y

Find E(f(x,y))\mathbb{E}(f(x,y)), where (x,y) are coordinates on ABC\triangle ABC

f(x,y)=x+y+hf(x,y) = x+ y + h

f(x,y)=36+25x+15yf(x,y)=36+\dfrac{2}{5}\cdot x + \dfrac{1}{5} \cdot y

f(x,y)=36+25x+15yf(x,y)=36+\dfrac{2}{5}\cdot x + \dfrac{1}{5} \cdot y

E=E[36+25x+15y]\mathbb{E}=\mathbb{E}\left[ 36+\dfrac{2}{5}\cdot x + \dfrac{1}{5} \cdot y \right]

E=36+15E\mathbb{E}=36 + \dfrac{1}{5} \cdot \mathbb{E}

E=36+15E\mathbb{E}=36 + \dfrac{1}{5} \cdot \mathbb{E}

E=1AABC060034x+45(2x+y)dydx\mathbb{E}=\dfrac{1}{A_{\triangle ABC}} \cdot \displaystyle\int_0^{60} \displaystyle\int_0^{-\frac{3}{4}\cdot x + 45} \left( 2x + y \right) dydx

E=1456006039x232+225x+4522dx\mathbb{E}=\dfrac{1}{45\cdot 60} \displaystyle\int_0^{60} - \dfrac{-39x^2}{32} + \dfrac{225}{x} + \dfrac{45^2}{2} dx

E=55E=47\mathbb{E}=55 \Longrightarrow \mathbb{E}=47