beginbmatrix
The bmatrix environment is a LaTeX tool for typesetting matrices with square brackets, provided by the amsmath package. It is commonly used in mathematical documents to clearly denote matrix structures without additional notation.
To use it, place the environment in math mode and enclose your matrix between \begin{bmatrix} and \end{bmatrix}.
You can use the bmatrix environment inline within a mathematical expression or in displayed equations. For
The bmatrix environment is one of several delimiter-based matrix environments in amsmath. Others include pmatrix (parentheses),
Note that using bmatrix requires including \usepackage{amsmath} in the document preamble. The environment itself automatically scales