This question has appeared here before requesting the expected length of the smallest piece and of the largest piece. What about the middle piece?
I break a meter long pole into three random pieces. What is the expected value of the second longest piece?
We could do this by one minus the expected value of the largest plus the expected value of the smallest (I think?) but I would prefer a more direct calculation.
Denote the break points by $X,Y\sim \operatorname{Unif}(0,1)$.
Suppose that $X<Y$. In this case, the three pieces have length $X$, $Y-X$, $1-Y$. There are three cases for the longest piece: $$\begin{array}{rclr|clrcl|rcl} X & &\text{longest} & & & Y-X & & \text{longest} & & & 1-Y & & \text{longest}\\\hline X&>&Y-X & & & Y-X&>&X & & & 1-Y &>& X\\ X&>&1-Y & & & Y-X&>&1-Y & & & 1 - Y &>& Y - X\\ \end{array}$$ This divides the upper half of the unit square (above the line $y=x$) into three parts. I found them on paper by drawing the lines and highlighting where the conditions in the above table were true in three colors, but I don't have a scanner. There is a good picture here (but it is of the smallest case, rather than the largest, which is similar but not identical).
After this, I think we divide each region into the cases of which is second longest, then calculate the value times the integral over each region?
Is there a better way to do it?