Chaves horizontais dentro da matriz

Oct 19 2020

Estou tentando tornar este determinante:

Mas não sei como colocar as chaves. Eu tentei com, \underbracemas só consigo a cinta sob a_m, não o espaço inteiro.

Minha tentativa:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
R(f,g)=\begin{vmatrix}
    a_0 & & & & b_0 &  &  &  \\
    a_1 & a_0 & & & b_1 & b_0 &  &  \\
    a_2 & a_1 & a_0 & & b_2 & b_1 & b_0 &  \\
     & \cdots & & &  & \cdots &  &  \\
     & & & a_m &  &  &  & b_n \\
\end{vmatrix}   
\end{equation}

\end{document}

Respostas

7 Sebastiano Oct 19 2020 at 03:35

Aqui está a minha ideia: ter as chaves dentro da matriz do seu determinante sempre usei o underbracecomando.

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{equation}
R(f,g)=
\begin{vmatrix}
\underbrace{\begin{matrix}
a_0 &   &   &   \\
a_1 & a_0 &  &  \\
a_2 & a_1 & a_0 & \\
 & \ldots &  &  \\
 &   &   & a_m 
\end{matrix}}_{n \text{ columns}} & \underbrace{\begin{matrix}
b_0 &   &   &   \\
b_1 & b_0 &  &  \\
b_2 & b_1 & b_0 & \\
 & \ldots &  &  \\
 &   &   & b_m 
\end{matrix}}_{m \text{ columns}}\\
\end{vmatrix}
\end{equation}
\end{document}

Este MWE tem as chaves mais dentro:

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{equation}
R(f,g)=\begin{array}{c}
\begin{vmatrix}
\underbrace{\begin{matrix}
a_0 &   &   &   \\
a_1 & a_0 &  &  \\
a_2 & a_1 & a_0 & \\
 & \ldots &  &  \\
 &   &   & a_m 
\end{matrix}}_{n \text{ columns}} & \underbrace{\begin{matrix}
b_0 &   &   &   \\
b_1 & b_0 &  &  \\
b_2 & b_1 & b_0 & \\
 & \ldots &  &  \\
 &   &   & b_m 
\end{matrix}}_{m \text{ columns}}\\
 & 
\end{vmatrix}
\end{array}
\end{equation}
\end{document}

6 egreg Oct 19 2020 at 03:57

Você pode usar nicematrix. Algum trabalho é necessário para puxar as chaves para mais perto da matriz, mas não tanto: a ideia é usar uma matriz fantasma para definir a largura da estrutura; então ele é levantado.

\documentclass{article}
\usepackage{amsmath}
\usepackage{nicematrix}

\usepackage{lipsum} % mock text to show spacing around the display

\begin{document}

\lipsum[1]
\begin{equation}
R(f,g)=
\begin{vNiceMatrix}[last-row]
  a_0 & & & & b_0 &  &  &  \\
  a_1 & a_0 & & & b_1 & b_0 &  &  \\
  a_2 & a_1 & a_0 & & b_2 & b_1 & b_0 &  \\
  \multicolumn{3}{c}{\cdots} & &  \multicolumn{3}{c}{\cdots}  &  \\
  & & & a_m &  &  &  & b_n \\
  \multicolumn{4}{c}{%
    \raisebox{1ex}{$ \underbrace{% \hphantom{\begin{matrix} a_0 & a_1 & a_2 & a_m\end{matrix}} }_{\text{$n$ columns}} $}%
  }
  &
  \multicolumn{4}{c}{%
    \raisebox{1ex}{$ \underbrace{% \hphantom{\begin{matrix} b_0 & b_1 & b_2 & b_n\end{matrix}} }_{\text{$m$ columns}} $}%
  }
\end{vNiceMatrix}
\end{equation}
\lipsum[2]

\end{document}

Observe as \multicolumninstruções no corpo para evitar desalinhamentos.

4 Mico Oct 19 2020 at 03:28

Eu colocaria as duas expressões explicativas pouco sustentadas fora das barras verticais. Isso pode ser feito com a ajuda de 2 ambientes \smash"ed" matrixe duas estruturas tipográficas criteriosamente escolhidas - uma dentro do \left\vert ... \right\vertgrupo, contendo uma matriz com 5 colunas, e outra fora desse grupo, contendo uma matriz com 7 colunas (e uma \smash[t]diretiva )

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
R(f,g)=
\left\vert 
  \smash{\underbrace{\begin{matrix}
    a_0 &     &     &    \\
    a_1 & a_0 &     &   \\
    a_2 & a_1 & a_0 &   \\
        & \cdots   \\
     & & & a_m  
     \end{matrix}}_{\text{$n$ columns}}}\;
  \smash{\underbrace{\begin{matrix}
    b_0 &     &     &    \\
    b_1 & b_0 &     &   \\
    b_2 & b_1 & b_0 &   \\
        & \cdots   \\
     & & & b_n  
     \end{matrix}}_{\text{$m$ columns}}}
  %% insert a first typographic strut:
  \vphantom{\begin{matrix} 1\\2\\3\\4\\5 \end{matrix}}
\right\vert
%% insert a second typographic strut:
\smash[t]{\vphantom{\begin{matrix} 1\\2\\3\\4\\5\\6\\7 \end{matrix}}}
\end{equation}
\end{document}