## Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Latex > FAQ > Latex - FAQ > Latex complement symbol

# Latex complement symbol

The complement of a set A is the set of all elements that are not in A. In LaTeX, the complement of a set can be represented using the \complement command from the amssymb package.

## Complement in LaTeX

The complement of a set A is the set of all elements that are not in A. In LaTeX, the complement of a set can be represented using the \complement command from the amssymb package.

To write the complement of a set A in LaTeX, use the following command:


$$A^\complement$$


$$A^\complement$$

This represents the complement of set A.

Here are some examples of using the \complement command:


$$\mathbb{R}^\complement = \varnothing$$


$$\mathbb{R}^\complement = \varnothing$$

This represents the complement of the set of real numbers, which is the empty set.


$$\mathcal{P}(\mathbb{N})^\complement = \varnothing$$


$$\mathcal{P}(\mathbb{N})^\complement = \varnothing$$

This represents the complement of the power set of natural numbers, which is also the empty set.

Remember that to use the \complement command in LaTeX, you need to include the package amssymb in the preamble of your LaTeX document.