How to write parenthesis () in LaTeX?

In LaTeX, you can write parentheses using the standard keyboard characters ( and ). These characters are treated as normal text and do not require any special commands.

For larger mathematical expressions you can use \left and \right commands to add parentheses in LaTeX.

The following examples shows how to write parentheses in LaTeX.

How to Write Parentheses in Text

You can directly use parentheses in LaTeX document for text.

Example: Parentheses in Text

Suppose we want to write parentheses in the text.

We can use the following LaTeX code to do so:

\documentclass{article}
\begin{document}

This is an example of using parentheses (like this) in a sentence.

\end{document}

Output: 👇️

This is an example of using parentheses (like this) in a sentence.

In this example, we use the parentheses to enclose a part of the sentence.

How to Write Parentheses in Mathematical Expressions

For larger mathematical expressions, we can use the \left and \right commands to automatically adjust the size of the parentheses.

Example: Parentheses in Mathematical Expressions

Suppose we would like to write mathematical expressions that contain parentheses and ensure the parentheses scale appropriately to the size of the content inside.

We can use the following LaTeX code to do so:

\documentclass{article}
\begin{document}

Inline mathematical expression: \( (a + b) \times c \).

A displayed mathematical expression:
\[
\left( \frac{a}{b} \right) + \left( \frac{c}{d} \right)
\]

\end{document}

Output: 👇️

Parentheses

In this example, we use the \left and \right commands to adjust the size of the parentheses to fit the enclosed fractions. This ensures that the parentheses dynamically resize to match the size of the enclosed contents.

Conclusion

You can use the standard keyboard characters () for text and mathematical expressions.

For larger expressions, the \left and \right commands help in adjusting the size of the parentheses automatically.