Duplicate the method used in the proof of Theorem 16 to show that the joint density of $Y_{1}$ and $Y_{n}$ is given by
$$
\begin{gathered}
g\left(y_{1}, y_{n}\right)=n(n-1) f\left(y_{1}\right) f\left(y_{n}\right)\left[\int_{y_{1}}^{y_{n}} f(x) d x\right]^{n-2} \\
\text { for }-\infty<y_{1}<y_{n}<\infty
\end{gathered}
$$
and $g\left(y_{1}, y_{n}\right)=0$ elsewhere.
(a) Use this result to find the joint density of $Y_{1}$ and $Y_{n}$ for random samples of size $n$ from an exponential population.
(b) Use this result to find the joint density of $Y_{1}$ and $Y_{n}$ for the population of Exercise 46 .