To write a matrix in LaTeX, use the pmatrix, bmatrix, or vmatrix environment from amsmath. Vectors use \vec or \mathbf. Copy-paste templates for both inside.