Consider the determinant $$\begin{vmatrix}x+4&2&3\\-1&x+1&-3\\0&2&x+7\end{vmatrix}$$
I know that $x+3$ and $x+4$ are factors of this determinant. I wish to find the final factor (which is $(x+5)$) specifically by considering the coefficients of $x^2$ and $x^3$. How can I do this? Using this particular method?
Method $1$
If you already know that $(x+5)$ is a factor of the determinant, put $x = -5$ in the determinant
$$\begin{vmatrix}x+4&2&3\\-1&x+1&-3\\0&2&x+7\end{vmatrix}$$
and check if it vanishes.
$$\begin{vmatrix}-1&2&3\\-1&-4&-3\\0&2&2\end{vmatrix} = \begin{vmatrix}0&6&6\\-1&-4&-3\\0&2&2\end{vmatrix} = \begin{vmatrix}0&0&0\\-1&-4&-3\\0&2&2\end{vmatrix}=0$$
Method $2$
Expand the determinant $$\begin{vmatrix}x+4&2&3\\-1&x+1&-3\\0&2&x+7\end{vmatrix} = x^3 + 12x^2 + 47x + 60$$
and consider the equation $$x^3 + 12x^2 + 47x + 60 = 0$$
Sum of the three roots of the above equation is $-12$
If two roots are known to be $-3$ and $-4$, the third root must be $-12 - (-3-4) = -5$