3

How can I obtain the following representation?

enter image description here

sam wolfe
  • 257

1 Answers1

8

This is a job for nicematrix:

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

\begin{document}

[ \begin{pNiceMatrix}[first-col,first-row] & C & D \ C & b-c & -c \ D & b & 0 \end{pNiceMatrix} ]

\end{document}

enter image description here

egreg
  • 1,121,712