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.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기