Consider the ring $\mathbb{Q}[x_1,\ldots,x_n]$ of multivariate polynomials with rational coefficients. Given a positive integer $d$, let $\mathcal{C}_d \subset \mathbb{Q}[x_1,\ldots,x_n]$ be the class of polynomials $f$ which can be written as
$$f = \operatorname{det}(A)$$
where $A$ is a $d$-by-$d$ matrix with entries which are affine in the $x_1, \ldots, x_n$ with rational coefficients. It is of course possible to consider entries which are simply in $\mathbb{Q}[x_1,\ldots,x_n]$, but in the problem I am interested in, I think it is enough to consider entries that are affine in the $x_1, \ldots, x_n$.
If $f \in \mathcal{C}_d$, let us say that $f$ has a degree $d$ determinantal representation (with affine entries).
Question 1: concretely, how to devise an algorithm to tell whether or not a polynomial $f \in \mathbb{Q}[x_1,\ldots,x_n]$ of degree $d$ is actually in $\mathcal{C}_d$ or not?
Question 2: assuming there exists at least one such determinantal representation, corresponding to some $d$-by-$d$ matrix $A$, then there are infinitely many other representations, since for instance we could replace $A$ with $PAQ$, where $P,Q \in \mathrm{SL}(d,\mathbb{Q})$. Is there a way to concretely devise an algorithm that would give the "nicest" such representation? For example, if there is a representation $A$ with entries that are affine with integer coefficients, then this is "nicer" than a representation with rational coefficients which are not integers. It is ambiguous, I agree, but if someone could make this more precise, either in the comments or as an answer, then I would appreciate it.
