Inner Product in LaTeX (\langle x, y \rangle)

⟨x,y⟩\langle x, y \rangle
LaTeX command
\langle x, y \rangle
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Angle brackets around two vectors, denoting their inner product.

Inner products generalize the dot product: \langle x, y \rangle = \sum_i x_i y_i in R^n, and the Cauchy-Schwarz inequality |\langle x, y \rangle| \le \lVert x \rVert \lVert y \rVert is the classic example. Never type the less-than and greater-than signs instead; < and > are relations with wide spacing and the wrong angle. For large arguments, \left\langle ... \right\rangle scales the brackets. In quantum mechanics the same brackets build bra-ket notation, \langle \psi | \phi \rangle, with a bar in the middle. Some books write (x, y) or x \cdot y for the same quantity.

Minimal compilable example

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

∣⟨x,y⟩∣≤∥x∥ ∥y∥|\langle x, y \rangle| \leq \lVert x \rVert \, \lVert y \rVert
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Inner Product: $\langle x, y \rangle$

\[ |\langle x, y \rangle| \leq \lVert x \rVert \, \lVert y \rVert \]
\end{document}

Related symbols

All Lineaire Algebra →

Frequently asked questions

How do I write Inner Product in LaTeX?
Type \langle x, y \rangle in math mode, for example $|\langle x, y \rangle| \leq \lVert x \rVert \, \lVert y \rVert$. It works in plain LaTeX without loading any package.
Which package do I need for \langle x, y \rangle?
None. \langle x, y \rangle is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \langle x, y \rangle in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\langle x, y \rangle$ in running text.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen