D'Alembertian in LaTeX (\Box)

□\Box
LaTeX command
\Box
Package
Add to your preamble:\usepackage{amssymb}
Mode
Math mode only
Copy the Unicode character
□U+25A1

Where it is used

Square box symbol, the d'Alembert wave operator in relativity and the necessity operator in modal logic.

In special relativity \Box = \partial^\mu \partial_\mu combines time and space derivatives, so the wave equation is \Box \phi = 0 and the Klein-Gordon equation (\Box + m^2)\phi = 0. Sign conventions differ with the metric signature, so state yours. Modal logicians read \Box p as 'necessarily p', with \Diamond p for 'possibly p'. Some texts write \Box^2 for the operator by analogy with \nabla^2. The visually similar \square is commonly used as an end-of-proof mark; check which glyph your document class uses for QED.

Also listed under: Logik Modal

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

□ϕ=1c2∂2ϕ∂t2−∇2ϕ\Box \phi = \frac{1}{c^2}\frac{\partial^2 \phi}{\partial t^2} - \nabla^2 \phi
\documentclass{article}
\usepackage{amssymb}
\begin{document}
D'Alembertian: $\Box$

\[ \Box \phi = \frac{1}{c^2}\frac{\partial^2 \phi}{\partial t^2} - \nabla^2 \phi \]
\end{document}

Related symbols

All Fizik →

Frequently asked questions

How do I write D'Alembertian in LaTeX?
Type \Box in math mode, for example $\Box \phi = \frac{1}{c^2}\frac{\partial^2 \phi}{\partial t^2} - \nabla^2 \phi$. Load amssymb first with \usepackage{amssymb}.
Which package do I need for \Box?
\Box needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
Can I use \Box in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\Box$ in running text. If you only need the glyph in text, paste the Unicode character □ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredTulis LaTeX menggunakan AI

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