I'm having a bad time trying to figure out how to place Example 1 in the left and the math material one line below and centered. How do I do that?
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\newtheorem{xmp}{Example}
\begin{document}
\begin{xmp}
$ \mathbf{A}_{4\times 4}=\begin{pmatrix}
5 & -2 & 4 & 7 \\
-1 & 3 & 0 & -6 \\
2 & -9 & 5 & 8 \\
0 & 3 & 4 & 1
\end{pmatrix} $
\end{xmp}
\end{document}

amsmathandmathtools. – barbara beeton Jul 31 '18 at 12:52