Let $x_1, \ldots, x_n$ be a collection of distinct elements of a field $\mathbb{F}$ and let $B \in M_n(\mathbb{F})$ be the matrix with $a_{ij} = x^{j-1}_i$. Prove that $\operatorname{det}B= \prod_{i<j}(x_j - x_i)$. And find the matrix $B^{-1}$.
So I know that the matrix has the form
$\begin{pmatrix} 1 & x_1 & x_1^2 &\dots &x_1^{n-1}\\ 1 & x_2 & x_2^2 &\dots &x_2^{n-1}\\ \vdots &&&&\vdots\\ 1 & x_n & x_n^2 &\dots &x_n^{n-1}\\ \end{pmatrix}$
Using row operations this matrix can become
$\begin{pmatrix} 1 & x_1 & x_1^2 &\dots &x_1^{n-1}\\ 0 & x_2-x_1 & x_2^2-x_1^2 &\dots &x_2^n-x_1^{n-1}\\ \vdots &&&&\vdots\\ 0 & x_n-x_{n-1} & x_n^2-x_{n-1}^2 &\dots &x_n^n-x_{n-1}^{n-1}\\ \end{pmatrix}$
Not completely sure what to do from here. And I don't know how to find $B^{-1}$.
