Currently I am working on an assignment that needs me to typeset the following Sylvester matrix in LaTeX.
I have no idea how to typeset the two braces on the right side so I would like to ask for it. I am using the document class of amsart and I can implement any package if needed.
Thanks in advance..
ps. The enclosed is what I have so far
\begin{align*}
Syl_i(A,B)=
\underbrace{
\begin{bmatrix}
a_m & \cdots & a_0 & & \\
&\ddots & \cdots & \ddots & \\
& & a_m & \cdots & a_0 \\
b_n & \cdots & b_0 & & \\
&\ddots & \cdots & \ddots & \\
& &b_n & \cdots &b_0 \\
\end{bmatrix}
}_{m+n-i}
\end{align*}
The problem is that I don't know how to add the two braces right to the matrix..