Let $X = [x^i_j]$ be an $r \times r$ matrix of indeterminates and $f_k(X) \in \Bbb Z[x^i_j]$ be the coefficients of the characteristic polynomial $$\det(\lambda I + X) = \sum_{k=0}^r f_k(X)\lambda^{r-k}.$$
Given the above data, I am trying to get an idea about these polynomials $f_k(X)$. We were going over this in our lecture and our professor mentioned that each $f_k$ here is a polynomial of degree $k$. I find this hard to believe as if for example $X$ is the $2 \times 2$ matrix
$$ X=\begin{pmatrix}a&b\\ c&d\end{pmatrix} $$
then
$$ \begin{align*} \det(\lambda I + X)&=(\lambda+a)(\lambda+d)-bc \\ &= \lambda^2 + \lambda(a+d)+ad-bc\\ &= \lambda^2+\lambda\mathrm{tr}(X) + \det(X) \end{align*} $$
and $f_0(X)=1,f_1(X)=a+d,f_2(X)=ad-bc$, but none of these are polynomials with the respective degrees?
I might not have understood what $f_k(X) \in \Bbb Z[x^i_j]$ means here. What even is the ring $\Bbb Z[x^i_j]$ is it the polynomials with coefficients in $\Bbb Z$ in one variable $x^i_j$ for fixed $i$ and $j$ or something else?