How to Write the Perpendicular Symbol (⊥) in LaTeX

In LaTeX, you can write the perpendicular symbol (⊥) using the \perp command.

The following examples show how to write the perpendicular symbol in LaTeX.

How to Write the Perpendicular Symbol in Text

We can use the \perp command to write the perpendicular symbol in LaTeX document for text.

Suppose we want to write the perpendicular symbol in the text.

We can use the following LaTeX code to do so:

\documentclass{article}
\begin{document}

This is an example of using the perpendicular symbol \( A \perp B \) in a sentence.

\end{document}

Output: 👇️

This is an example of using the perpendicular symbol A ⊥ B in a sentence.

In this example, we use the \perp command to display the perpendicular symbol in the text.

How to Write the Perpendicular Symbol in Mathematical Expressions

For mathematical expressions, we can use the \perp command to ensure proper formatting.

Suppose we would like to write mathematical expressions that contain the perpendicular symbol.

We can use the following LaTeX code to do so:

\documentclass{article}
\begin{document}

An inline mathematical expression: \( A \perp B \).

A displayed mathematical expression:
\[
A \perp B
\]

\end{document}

Output: 👇️

Perpendicular Symbol

In this example, we use the \perp command to denote the perpendicular symbol in both inline and displayed mathematical expressions.

Conclusion

We can use the \perp command for both text and mathematical expressions. This ensures that the perpendicular symbol is properly formatted and displayed in your LaTeX document.