A rod of unit length is cut into pieces of length \(X\) and \(1-X\); the latter is then cut in half. The random variable \(X\) is uniformly distributed over \([0,1].\) For some values of \(X\) a triangle can be formed from the three pieces of the rod. Show that the conditional probability that, if a triangle can be formed, it will be obtuse-angled is \(3-2\sqrt{2.}\)
The bivariate distribution of the random variables \(X\) and \(Y\) is uniform over the triangle with vertices \((1,0),(1,1)\) and \((0,1).\) A pair of values \(x,y\) is chosen at random from this distribution and a (perhaps degenerate) triangle \(ABC\) is constructed with \(BC=x\) and \(CA=y\) and \(AB=2-x-y.\) Show that the construction is always possible and that \(\angle ABC\) is obtuse if and only if
\[
y>\frac{x^{2}-2x+2}{2-x}.
\]
Deduce that the probability that \(\angle ABC\) is obtuse is \(3-4\ln2.\)
Solution:
The construction is possible if \(x + y > 2-x-y \Rightarrow x+y > 1\) (which is as the triangle is above the diagonal line), and \(x + (2-x-y) > y \Rightarrow 1 > y\) (true as the triangle is below the horizontal line) and \(y + (2-x-y) > x \Rightarrow 1 > x\) (true as the triangle is left of the vertical arrow).
By the cosine rule:
\begin{align*}
&& y^2 &= x^2 + (2-x-y)^2 - 2 x (2-x-y) \cos \angle ABC \\
\Rightarrow && \cos \angle ABC &= \frac{x^2+(2-x-y)^2 - y^2}{2x(2-x-y)} \\
&&&= \frac{4+2x^2-4x-4y+2xy}{2x(2-x-y)} \\
\underbrace{\Rightarrow}_{\cos \angle ABC < 0} && 0 &> 4+2x^2-4x-4y+2xy \\
\Rightarrow && 0 &> 2x^2-4x+4 - 2(x-2)y \\
\Rightarrow && y &> \frac{x^2-2x+2}{2-x} \\
&&&= -x + \frac{2}{2-x}
\end{align*}
Therefore the area we want is:
\begin{align*}
A &= 1 - \int_0^1 \left ( -x + \frac{2}{2-x} \right)\d x \\
&= 1 - \left [-\frac12 x^2 - 2 \ln(2-x) \right]_0^1 \\
&= 1 + \frac12 -2 \ln 2 \\
&= \frac32 - 2 \ln 2
\end{align*}
Therefore the relative area is: \(\frac{\frac32 - 2 \ln 2}{1/2} = 3 - 4 \ln 2\)