Inner Product in LaTeX (\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.
\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
- Tensor Product
\otimes - Norm
\| x \| - Direct Sum
\oplus - Norm
\lVert x \rVert - Dot Product
\cdot - Rank
\text{rank}(A)
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.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI
- Hasilkan diagram TikZ yang indah menggunakan AI
- Unggah gambar dan konversi ke LaTeX dengan mulus
- Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian