Skip to content

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 a^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 \triangle ABC
  • and then as the sum of areas of triangles \triangle AXC, \triangle CXB, \triangle BXA.

    \[A_{\triangle ABC} = \dfrac{AC \cdot BC}{2} = \dfrac{45 \cdot 60}{2} = 1350\]

    \[A_{\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}\]

    \[\dfrac{45 \cdot x}{2} + \dfrac{60 \cdot y}{2} + \dfrac{h\cdot 75}{2} = 1350\]

    \[\dfrac{h\cdot 75}{2} = 1350 - \dfrac{45 \cdot x}{2} - \dfrac{60 \cdot y}{2}\]

    \[h = 36 - \dfrac{3}{5} \cdot x - \dfrac{4}{5} \cdot y\]

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

    \[f(x,y) = x+ y + h\]

    \[f(x,y)=36+\dfrac{2}{5}\cdot x + \dfrac{1}{5} \cdot y\]

    \[f(x,y)=36+\dfrac{2}{5}\cdot x + \dfrac{1}{5} \cdot y\]

    \[\mathbb{E}[f(x,y)]=\mathbb{E}\left[ 36+\dfrac{2}{5}\cdot x + \dfrac{1}{5} \cdot y \right]\]

    \[\mathbb{E}[f(x,y)]=36 + \dfrac{1}{5} \cdot \mathbb{E}[2x+y]\]

    \[\mathbb{E}[f(x,y)]=36 + \dfrac{1}{5} \cdot \mathbb{E}[2x+y]\]

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

    \[\mathbb{E}[2x+y]=\dfrac{1}{45\cdot 60} \displaystyle\int_0^{60} - \dfrac{-39x^2}{32} + \dfrac{225}{x} + \dfrac{45^2}{2} dx\]

    \[\mathbb{E}[2x+y]=55 \Longrightarrow \mathbb{E}[f(x,y)]=47\]

Check the video to find an even easier way of arriving at the expected sum of distances!

Feel free to share your thoughts and ideas in the Latex-enabled comment section below!

Leave a Reply

Your email address will not be published. Required fields are marked *