Let $X_1, X_2$ be two independent, non-negative random variables with finite means from the same distribution function $F(x)$ and density function $f(x)$. Denote their order statistics with $0 < Y_1 < Y_2$.
I want to compute $E(Y_2 | Y_1 = y_1)$ or to be more specific I want to show for $y_1 > 0$: \begin{align*} E(Y_2 | Y_1 = y_1) = y_1 + \frac{\int_{y_1}^{\infty} 1 - F(u) du}{1 - F(y_1)}. \end{align*} The joint density function of $Y_1,Y_2$ is given by \begin{align*} f_{Y_1, Y_2}(y_1,y_2) = 2 f(y_1) f(y_2) \chi_{y_1 < y_2}, \end{align*} where $\chi$ is the indicator function. The conditional expectation above can be computed by \begin{align*} \frac{\int_0^{\infty} y_2 f_{Y_1,Y_2}(y_1,y_2) dy_2} {\int_0^{\infty} f_{Y_1,Y_2}(y_1,y_2) dy_2} = \frac{\int_{y_1}^{\infty} y_2 f(y_1) f(y_2) dy_2} {\int_{y_1}^{\infty} f(y_1) f(y_2) dy_2} = \frac{\int_{y_1}^{\infty} y_2 f(y_2) dy_2} {\int_{y_1}^{\infty} f(y_2) dy_2} = \frac{\int_{y_1}^{\infty} y_2 f(y_2) dy_2} {1 - F(y_1)} \end{align*} At this point I am stuck.