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 الجبر الخطي →

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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث