The question is set up as follows: Let $Y_1,Y_2,...,Y_n$ be a random sample from the distribution $Uni[-1,1]$. We are asked to find the density of $U=Y_{(n)} - Y_{(1)}$ (the n-th and 1st ordered statistic).
My initial thinking was the fact that this difference represents the range of the distribution and therefore the pdf I am looking for would represent the range of the uniform distribution from $[-1,1]$ but I could not mathematically make this work. Another thought was using the method of moments since the difference of ordered statistics would easily be represented as the division of mgf's but this also left me nowhere. Does anyone have any advice on how to approach this problem?
Suppose that $X_1, \dotsc, X_n$ are i.i.d with common distribution function $F$. First the joint density of the extremes is given by $$ f_{X_{(1)}, X_{(n)}}(x,y)= n(n-1)(F(y)-F(x))^{n-2} f(y)f(x) I(x<y)\tag{0} $$ which can be proven by considering the following identity below for the relating distribution functions namely $$ P(X_{(n)}\leq y) = P(X_{(1)}\leq x, X_{(n)}\leq y) + P(X_{(1)}\gt x, X_{(n)}\leq y) $$ where $$ P(X_{(1)} > x, X(n)\leq y) = \prod_{i=1}^{n} P(x\lt X_i\leq y) = (F(y) - F(x))^n $$ for $y\gt x$, since $X_{(1)} > x , X(n)\leq y$ iff $x\lt X_{i}\leq {y} $ for all $i$.
From $(0)$ one can deduce that the range $R= X_{(n)} - X_{(1)}$ has density $$ f_{R}(r)=n(n-1)\int_{-\infty}^\infty (F(u+r)-F(u))^{n-2} f(u+r)f(u)\, du $$ for $r>0$. Specialize to your problem.