Suppose that $X_1$ and $X_2$ are independent with common pdf $f(x)$ and cdf $F(x)$. $Y_1=\max\{X_1, X_2\}$ and $Y=\min\{X_1, X_2\}$. Find the joint pdf of $(Y_1, Y_2)$.
My solution: I have no idea about the pdf of $(Y_1, Y_2)$ but I can find the cdf and pdf of $Y_1$, $Y_2$:
$$ P(Y_1\le y_1)=F(y_1)^2 $$ and then $f_{Y_1}(y_1)=2F(y_1)f(y_1)$ for $y_1\in A$.
Similarly, $$ P(Y_2\le y_2)=1-(1-F(y_2))^2 $$ and then $f_{Y_2}(y_2)=2(1-F(y_2))f(y_2)$ for $y_2\in A$.
How to go the next step?
Update:
$$ P(\max\{X_1, X_2\}\le x_1, \min\{X_1, X_2\}\le x_2)=1-P(\max\{X_1, X_2\}\le x_1, \min\{X_1, X_2\}> x_2) $$ $$ =1-P(X_1\le x_1, X_2\le x_1, X_1>x_2, X_2> x_2) $$
When $x_1>x_2$, we get $$ =1-(F(x_1)-F(x_2))^2 $$