Let $X_{1}, X_{2}, \ldots, X_{n}$ be independent random variables, each having distribution function $F$ and density function $f$. Find the distribution function of $U$ and the density functions of $U$ and $V$, where $U=\min \left\{X_{1}, X_{2}, \ldots, X_{n}\right\}$ and $V=\max \left\{X_{1}, X_{2}, \ldots, X_{n}\right\}$. Show that the joint density function of $U$ and $V$ is
$$
f_{U, V}(u, v)=n(n-1) f(u) f(v)[F(v)-F(u)]^{n-2} \quad \text { if } u<v
$$