Consider these two polynomials:
$$f=x^2y+3xy-1$$ $$g=6x^2+y^2-4$$
I need to compute their resultant, denoted in my textbook as $h=Res(f,g,x)$.
Here's where I need help: setting up the Sylvester Matrix. I could be missing something obvious, but from the definitions I've read online, I kept getting a matrix like so:
$X =\begin{bmatrix} 1 & 0 & 0 & 6 & 0 & 0\\3 & 1 & 0 & 1 & 6 & 0\\-1 & 3 & 1 & -4 & 1 & 6\\0 & -1 & 3 & 0 & -4 & 1\\0 & 0 & -1 & 0 & 0 & -4\\\end{bmatrix}$
My understanding is that $X$ should be a square matrix- what am I missing?
Thanks in advance.
UPDATE:
Is this more like it?
$X =\begin{bmatrix} y & 0 & 6 \\-1 & y & 0 \\0 & -1 & y^2-4 \\\end{bmatrix}$