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.

    1 \\
    2 \\
    3 \\

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

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

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

A complete MWE:

\usepackage{amsmath} % for 'bmatrix' environment
  \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}

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.