We know that the quadratic equation $$f(x)=ax^2+bx+c=0$$ has roots $$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}=-\frac b{2a}\pm \frac 1a\sqrt{-\left(ac-\frac {b^2}4\right)}$$
Also, $f(x)$ can be written in matrix notation as follows: $$f(x)= \left(\begin{matrix}x&1\\\end{matrix}\right) \left(\begin{matrix}a&\frac b2\\\frac b2&c\end{matrix}\right) \left(\begin{matrix}x\\1\end{matrix}\right)=\mathbf{x^T Q x}$$ where the determinant of $\mathbf Q$ is $\left(ac-\frac {b^2}4\right)=-\frac 14\left(b^2-4ac\right)$, where coincidentally the familiar $(b^2-4ac)$ is the discriminant of the quadratic $f(x)$.
Hence the roots of the quadratic $f(x)=0$ may be written as $$x=-\frac b{2a}\pm \frac 1a\sqrt{-\det(\mathbf Q)}$$ This is equivalent to $$\left(x+\frac b{2a}\right)^2=\frac {-\det(\mathbf Q)}{a^2}$$ Or in neater form, $$\left(ax+\frac b{2}\right)^2={-\det(\mathbf Q)}$$
Question
Can the roots of $f(x)=0$ be derived and written completely in matrix notation, given the link between the determinant and discriminant as shown above?