Obtuse the right way

Two numbers x x and y y are chosen independently at random from the interval [ 0 , 1 ] [0, 1] . What is the probability that there exists an obtuse triangle with side lengths x , y , 1 x, y, 1 ?


The answer is 0.285.

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

The uniform sample space involved here is the unit square with lower left corner ( 0 , 0 ) (0,0) and upper right corner ( 1 , 1 ) . (1,1).

Now by the triangle inequality we know that in order for a triangle to be formed at all we require that ( x + y ) 1. (x + y) \ge 1.

Next, for a triangle to be obtuse we will require that ( x 2 + y 2 ) 1 , (x^{2} + y^{2}) \le 1, (as x , y 1 x,y \le 1 ).

The desired probability is then the area of the region of overlap of these two inequalities, which will be that of a quarter-circle of radius 1 1 minus that of a right, isosceles triangle of side length 1 , 1, i.e., π 4 1 2 = 0.285 \dfrac{\pi}{4} - \dfrac{1}{2} = \boxed{0.285} to 3 decimal places.

How did you immediately know that for it to be obtuse, it must be x 2 + y 2 1 x^2 + y^2 \le 1 ? I did the cosine rule thing, what's yours?

Pi Han Goh - 6 years ago

Log in to reply

Yes, I deduced that fact in the same way; I just took it as a matter of common knowledge when I should have offered an explanation. I've edited my solution to be (slightly) more informative. :)

Brian Charlesworth - 6 years ago

I missed the first inequality where x+y>1. So silly.

Shubham Bhargava - 5 years, 7 months ago
Tom Engelsman
Mar 20, 2019

Let's take a more rigorous approach here! By the Law of Cosines we desire 1 = x 2 + y 2 2 x y c o s ( θ ) 1 = x^2 + y^2 - 2xy \cdot cos(\theta) , and solving for θ \theta gives:

c o s ( θ ) = x 2 + y 2 1 2 x y cos(\theta) = \frac{x^2 + y^2 - 1}{2xy} (i)

and if we require an obtuse triangle, then:

1 < x 2 + y 2 1 2 x y < 0 -1 < \frac{x^2 + y^2 - 1}{2xy} < 0

which results in: x 2 + y 2 < 1 y < 1 x 2 x^2 + y^2 < 1 \Rightarrow \boxed{y < \sqrt{1-x^2}} AND 2 x y < x 2 + y 2 1 1 < ( x + y ) 2 1 < x + y -2xy < x^2 + y^2 - 1 \Rightarrow 1 < (x+y)^2 \Rightarrow \boxed{1 < x+y}

of which the latter satisfies the Triangle Inequality. If x , y x,y are each independent & uniformly distributed over [ 0 , 1 ] [0,1] , then their pdf's both equal f X ( x ) = f Y ( y ) = 1 1 0 = 1 f_{X}(x) = f_{Y}(y) = \frac{1}{1-0} = 1 . Finally, the required probability we seek:

P = 0 1 1 x 1 x 2 f X ( x ) f Y ( y ) d y d x = 0 1 1 x 1 x 2 d y d x = 0 1 1 x 2 1 + x d x P = \int_{0}^{1} \int_{1-x}^{\sqrt{1-x^2}} f_{X}(x) \cdot f_{Y}(y) dy dx = \int_{0}^{1} \int_{1-x}^{\sqrt{1-x^2}} dy dx = \int_{0}^{1} \sqrt{1-x^2} -1 + x dx ;

or x 2 1 x 2 + 1 2 a r c s i n ( x ) x + x 2 2 0 1 \frac{x}{2}\sqrt{1-x^2} + \frac{1}{2}arcsin(x) - x + \frac{x^2}{2}|_{0}^{1} ;

or π 4 1 2 . \boxed{\frac{\pi}{4} - \frac{1}{2}}.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...