Perpendicular in LaTeX (\perp)

⊥\perp
LaTeX command
\perp
Package
No package needed: built into LaTeX
Mode
Math mode only
Copy the Unicode character
⊥U+22A5

Where it is used

Perpendicular relation, marking orthogonal lines, vectors or subspaces, and independence of variables.

Geometry writes AB \perp CD, linear algebra writes u \perp v when \langle u, v \rangle = 0 and W^\perp for an orthogonal complement, and number theory sometimes uses a \perp b for coprime integers. Probabilists write X \perp Y for independence, often doubled as X \perp\!\!\!\perp Y to imitate the dedicated independence symbol. \perp is a relation with spacing on both sides, whereas \bot has the same shape but ordinary spacing, which suits the logical falsum or a bottom element. In a superscript like W^\perp either works, since spacing is suppressed there.

Also listed under: الاحتمالات والإحصاء, الهندسة, نظرية الأعداد

Minimal compilable example

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

W⊥={v∈V:v⊥w ∀w∈W}W^{\perp} = \{ v \in V : v \perp w \ \forall w \in W \}
\documentclass{article}
\begin{document}
Perpendicular: $\perp$

\[ W^{\perp} = \{ v \in V : v \perp w \ \forall w \in W \} \]
\end{document}

Related symbols

All العلاقات والمقارنات →

Frequently asked questions

How do I write Perpendicular in LaTeX?
Type \perp in math mode, for example $W^{\perp} = \{ v \in V : v \perp w \ \forall w \in W \}$. It works in plain LaTeX without loading any package.
Which package do I need for \perp?
None. \perp is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \perp in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\perp$ in running text. If you only need the glyph in text, paste the Unicode character ⊥ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

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

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

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