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.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기