Zero Matrix in LaTeX (\mathbf{0})
- LaTeX command
\mathbf{0}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Try Zero Matrix in a real LaTeX document
Open a ready-to-compile document that already uses \mathbf{0}, with the right packages loaded. Edit it and see the PDF, no install needed.
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 peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI
- Hasilkan diagram TikZ yang indah menggunakan AI
- Unggah gambar dan konversi ke LaTeX dengan mulus
- Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian