Let $k$ be an algebraically closed field, and let $p(x)\in k[x]$. We can think of a general polynomial $p(x)=a_nx^n+a_{n-1}x^{n-1}+\dots+a_1x+a_0$ as a polynomial $q(x,a_n,a_{n-1},...,a_0)\in k[x,a_n,a_{n-1},...,a_0]$ where $a_i$ here are just formal coefficients, i.e "variables".
Let $\text{Disc}(p(x))=\prod_{i\neq j\text{ and }\lambda_i \text{ are all the roots of }p(x)}(\lambda_i-\lambda_j)$ be the discriminant, is it true that $\text{Disc}(p(x))=q(a_n,a_{n-1},...,a_0)\in k[x,a_n,a_{n-1},...,a_0]$? i.e a polynomial in the coefficients of $p(x)$?
I tried to prove it but I don't know how to involve the roots in a polynomial way.
Thanks in advance.