The definition of the resultant $\text{res}(f,g)$ of two (monic) polynomials $f,g\in {\mathbb Z}[x]$ as the determinant of the corresponding Sylvester matrix, readily implies
that if $\alpha_1,\ldots,\alpha_n$ are the roots of $f(x)$ (say, in ${\mathbb C}$) then
$$\text{res}(f,g)=\prod_{i=1}^ng(\alpha_i).$$
Now, if you define the discriminant of the (monic) polynomial $f(x)$ as
$$\Delta(f(x))=\text{res}(f(x),f'(x))=\prod_{i=1}^nf'(\alpha_i),$$
writing $f(x)=(x-\alpha_1)\cdots (x-\alpha_n)$ it follows that
$$f'(\alpha_j)=\prod_{i\neq j}^n(\alpha_j-\alpha_i).$$
In this equality, once you order the indices, for each pair $i<j$ there are two factors $\pm(\alpha_i-\alpha_j)$ and thus
\begin{align*}
\Delta(f(x))&=\prod_{i=1}^nf'(\alpha_i)=\prod_{i\neq j}^n(\alpha_j-\alpha_i)\\
&=(-1)^{n(n-1)/2}\prod_{i< j}^n(\alpha_j-\alpha_i)^2
\end{align*}
where the sign is because there are precisely $n(n-1)/2$ pairs $\pm(\alpha_i-\alpha_j)$.