Norm in LaTeX (\lVert x \rVert)

∥x∥\lVert x \rVert
LaTeX command
\lVert x \rVert
Package
Add to your preamble:\usepackage{amsmath}
Mode
Math mode only

Where it is used

Double vertical bars around x, denoting its norm, length or magnitude.

Using \lVert and \rVert instead of \| on both sides tells LaTeX which bar opens and which closes, giving correct spacing in expressions like \lVert -x \rVert, where \|-x\| would treat the minus as a binary operator. Subscripts select the norm: \lVert x \rVert_2 for Euclidean, \lVert x \rVert_1, \lVert x \rVert_\infty, or \lVert A \rVert_F for Frobenius. For tall contents, use \left\lVert ... \right\rVert. The triangle inequality \lVert x+y \rVert \le \lVert x \rVert + \lVert y \rVert is a typical use, and a \norm macro saves a lot of typing in long papers.

Minimal compilable example

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

∥x+y∥≤∥x∥+∥y∥\lVert x + y \rVert \leq \lVert x \rVert + \lVert y \rVert
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Norm: $\lVert x \rVert$

\[ \lVert x + y \rVert \leq \lVert x \rVert + \lVert y \rVert \]
\end{document}

Related symbols

All Algebra Linear →

Frequently asked questions

How do I write Norm in LaTeX?
Type \lVert x \rVert in math mode, for example $\lVert x + y \rVert \leq \lVert x \rVert + \lVert y \rVert$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \lVert x \rVert?
\lVert x \rVert needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \lVert x \rVert in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\lVert x \rVert$ in running text.
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