I am new to latex, so excuse me. 

I keep getting "argument of @sect has an extra run away argument" and I don't know how to fix it. Thanks

```
\documentclass{article}
\usepackage{amsmath}
\usepackage{enumitem}
\newenvironment{psmallmatrix}
  {\left(\begin{smallmatrix}}
  {\end{smallmatrix}\right)}

\begin{document}

\section{\small  $A= \begin{psmallmatrix}1 & 2\\-1 & 1\end{psmallmatrix}$ }

\end{document}

```