3

How can I obtain the following representation?

enter image description here

2
  • Have you tried a \bordermatrix (see for example this answer?
    – mickep
    Jul 6, 2022 at 16:54
  • The nicematrix package does this well.
    – frougon
    Jul 6, 2022 at 17:00

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .