2

I want to assign an equation number to the following matrix equation; I want a number in brackets on the right side, after the equation.

\[
  \begin{bmatrix}
    1 \\
    2 \\
    3 \\
  \end{bmatrix}
\]

But adding \begin{equation} \end{equation} around this throws an error at \[. How can I number this matrix equation properly?

1
  • 5
    use equation instead of \[ \] not in addition to it. – David Carlisle Sep 29 '16 at 16:04
3

Replace \[ with \begin{equation} and \] with \end{equation}.

A complete MWE:

\documentclass{article}
\usepackage{amsmath} % for 'bmatrix' environment
\begin{document}
\begin{equation}
  \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}
\end{equation}
\end{document}

For more on \[... \], the equation environment, and still other methods for creating displaystyle equations, see What are the differences between $$, \[, align, equation and displaymath?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.