Triangle Vertices on Two Line Segments

Calculus Level 5

Consider two straight line segments: Segment A goes from the origin to ( 1 , 2 , 3 ) (1,2,3) , and segment B goes from the origin to ( 4 , 1 , 2 ) (-4,-1,2) .

Two points are chosen randomly on segment A , and one point is chosen randomly on segment B . The three points form the vertices of a triangle.

What is the triangle's expected area?

Note: Assume uniform probability density as a function of length along each rod


The answer is 1.43.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Zico Quintina
Jun 15, 2018

We first note that segments A and B are perpendicular, since the dot product 1 , 2 , 3 4 , 1 , 2 = 0 \langle 1,2,3 \rangle \cdot \langle -4,-1,2 \rangle = 0 . Letting P P and Q Q be the points chosen on A , and R R the point chosen on B , we get the diagram below:

Then the triangle's area is clearly 1 2 ( P Q ) ( O R ) \dfrac{1}{2} (PQ)(OR) . Segments A and B have lengths 14 \sqrt{14} and 21 \sqrt{21} respectively. Since R R is chosen uniformly on B , the expected length of O R OR is clearly 21 2 \dfrac{\sqrt{21}}{2} . We claim that the expected length of P Q PQ is one-third of the length of A , i.e. 14 3 \dfrac{\sqrt{14}}{3} , by the argument below.

\\

Suppose we uniformly choose three random points X , Y X, Y and Z Z on a line segment of length l l , and let the expected distance between X X and Y Y be d d ; then the probability Z Z lies between X X and Y Y is d l \dfrac{d}{l} . But the probability that Z Z lies between X X and Y Y must be 1 3 \dfrac{1}{3} , as the possibilities that Z Z lies between X X and Y Y , X X lies between Z Z and Y Y , and Y Y lies between X X and Z Z , must all be equally likely. Thus d l = 1 3 \dfrac{d}{l} = \dfrac{1}{3} , i.e. d = l 3 d = \dfrac{l}{3} .

\\

Therefore the expected area of triangle P Q R PQR is 1 2 ( P Q ) ( O R ) = 1 2 ( 14 3 ) ( 21 2 ) = 7 6 12 \dfrac{1}{2} (PQ)(OR) = \dfrac{1}{2} \left( \dfrac{\sqrt{14}}{3} \right) \left( \dfrac{\sqrt{21}}{2} \right) = \boxed{\dfrac{7 \sqrt{6}}{12}}

How about an extra credit bonus problem: Find the probability density function of the random triangle's area.

Jack McMath - 2 years, 11 months ago
Frank Petiprin
Sep 13, 2018
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#Pythonista Program
import math
import random
'''Algorithm: Generated randomly 5,000,000 triangles meeting the problems conditions and
kept a running total of their areas.Found their average area and we thus have the
expected area.Program used the parametric equations of a line in three space
and Herons formula for a triangles area.'''
seed = 99999
#random.seed(seed) #Used as needed for testing
end = 5000000
sumtri = 0
for i in range(1,end + 1):
    l11, l12, l21 = (random.uniform(-1,0)),(random.uniform(-1,0)),(random.uniform(-1,0))
#(x,y,z) point ONE on line segment from the origin to A
    xl11, yl11, zl11 = l11 + 1, 2*l11 + 2, 3*l11 + 3
#(x,y,z) point TWO on line segment from the origin to A
    xl12, yl12, zl12 = l12 + 1, 2*l12 + 2, 3*l12 + 3
#(x,y,z) point ONE on line segment from the origin to B
    xl21, yl21, zl21 = -4*l21 - 4, -1*l21 - 1, 2*l21 + 2
    a = math.sqrt((xl11 - xl12)**2 + (yl11 - yl12)**2 + (zl11 - zl12)**2)
    b = math.sqrt((xl11 - xl21)**2 + (yl11 - yl21)**2 + (zl11 - zl21)**2)
    c = math.sqrt((xl12 - xl21)**2 + (yl12 - yl21)**2 + (zl12 - zl21)**2)
#Herons formula for area of triangle
    areatri =.25*(math.sqrt((a+b+c)*(-a+b+c)*(a-b+c)*(a+b-c)))
    sumtri += areatri
#*            *END OF LOOP**
print('Seed For Random Numbers Not Used',seed)
print('Total Area Of All Triangles', sumtri,'Number of loops', end)
expA = sumtri/end
print('Expected Area',expA)
#          **Run Of Program**
Seed For Random Numbers Not Used 99999
Total Area Of All Triangles 7145647.318103172 Number of loops 5000000
Expected Area 1.4291294636206344

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...