A stick of length 2 is broken into two pieces at a uniformly random chose point. What is the expected value of the largest piece?
Here is what I have
$U(X) = 2-x$ if $0\leq x \leq 1$
$U(X) = x$ if $0\leq x \leq 1$
But how do I proceed to find the expected value?