Zero Matrix in LaTeX (\mathbf{0})

0\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.

Ax=0A\mathbf{x} = \mathbf{0}
\documentclass{article}
\begin{document}
Zero Matrix: $\mathbf{0}$

\[ A\mathbf{x} = \mathbf{0} \]
\end{document}

Related symbols

All Lineaire Algebra →

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.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen