Let $X_1, \ldots, X_n$ iid from a $Unif(0,\theta)$ distribution, and let $X_{(n)}$ be the $n$th order statistic, that is, the maximum of $X_1, \ldots, X_n$. I would like to find $E(X_1|X_{(n)})$. I have that when $X_{(n)}=t$, $X_1=t$ with probability $\frac{1}{n}$, and that with probability $\frac{n-1}{n}$, $X_1$ appears to be uniform on $(0,t)$ (not sure why). I am unable to translate these into a functional form. It seems like:
\begin{align} E(X_1|X_{(n)}=t) &= E(X_1=t|X_{(n)}=t)P(X_1=t)+E(X_1\in (0,t)|X_{(n)}=t)P(X_1\in (0,t))\\ &= t\cdot\frac{1}{n}+ \int_0^{t}x\ f(x|X_{(n)}=t)dx \end{align}
But I am unsure why it is that with probability $\frac{n-1}{n}$, $X_1$ appears to be uniform on $(0,t)$ and if the integral approach even makes sense?