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 poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기