Zero Matrix in LaTeX (\mathbf{0})
- LaTeX command
\mathbf{0}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Bold zero, denoting the zero vector or zero matrix as opposed to the scalar 0.
Bold distinguishes the additive identity of a vector space from the number zero, as in A\mathbf{x} = \mathbf{0} for a homogeneous system or \mathbf{v} + \mathbf{0} = \mathbf{v}. \mathbf works on digits, so this is the simplest form; \boldsymbol{0} gives the same result in most fonts. For a zero matrix of explicit size, write \mathbf{0}_{m \times n} or a capital O_{m \times n}. Many papers drop the bold and write 0 when context makes the type clear, which is acceptable if consistent. Match whichever bold style you use for other vectors.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Zero Matrix: $\mathbf{0}$
\[ A\mathbf{x} = \mathbf{0} \]
\end{document}Related symbols
- Lambda
\lambda - Identity Matrix
I_n - Matrix
\begin{bmatrix} a & b \\ c & d \end{bmatrix} - Kronecker Delta
\delta_{ij} - Column Vector
\begin{pmatrix} x \\ y \end{pmatrix} - Multiplication
\times
Frequently asked questions
- How do I write Zero Matrix in LaTeX?
- Type \mathbf{0} in math mode, for example $A\mathbf{x} = \mathbf{0}$. It works in plain LaTeX without loading any package.
- Which package do I need for \mathbf{0}?
- None. \mathbf{0} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \mathbf{0} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\mathbf{0}$ in running text.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI
- Jana diagram TikZ yang cantik menggunakan AI
- Muat naik imej dan tukar ke LaTeX dengan lancar
- Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan