LatexNotes

Element of (∈) in LaTeX

\in typesets the set membership symbol ∈; means the object x is an element of the set A.

LaTeX command

\in

Not the symbol you meant? Draw it to find the command →

Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →

Membership is the basic relation between an object and a set: says x is one of the things collected together in A. It is the workhorse symbol of set theory and appears everywhere quantifiers or set-builder notation are used, from defining domains of functions to stating hypotheses in a proof.

The most common mistake is mixing up \in with \subset. Membership links an element to a set (a point to a bag); subset links two sets to each other (a bag to a bigger bag). Write 2 \in \mathbb{N} but \mathbb{N} \subseteq \mathbb{Z}, never the other way round.

Negate membership with the dedicated \notin command rather than typing \not\in by hand; both render similarly in most engines but \notin has cleaner built-in spacing. The reversed relation \ni (, 'A contains ) is legal but rarely used outside a few stylistic contexts.

Other forms

\notinnot an element (∉)
\nicontains (∋)

Examples

$x \in \mathbb{R}$

x is a real number

$n \in \mathbb{Z}$

n is an integer

$\forall x \in S,\ x > 0$

restricting a quantified variable to a set

$2 \notin \{1, 3, 5\}$

negated membership

$\{x \in \mathbb{R} : x^2 < 4\}$

set-builder notation using \in for the domain

Tips and common mistakes

Working from handwritten notes?

LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.

See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).

Convert your maths to LaTeX →

FAQ

What is the difference between \in and \subset?

\in relates an element to a set ( means x is one of the things in A); \subset (or \subseteq) relates two sets to each other ( means every element of A is also in B). An element is not automatically a subset, and a subset is not an element, unless you are working with sets of sets.

How do I write 'not an element of' in LaTeX?

Use \notin, which renders as ∉. It works in any standard LaTeX or KaTeX math environment without extra packages.

Does \in need a package?

No. \in is a core TeX math symbol available in plain LaTeX and in KaTeX by default.

What is ∈ called?

It is usually read aloud as 'is an element of', 'belongs to', or 'in'; the symbol itself is called the membership sign or element-of sign.

See also