A Language for Belonging

Suppose we are interested in the even numbers from \(1\) through \(10\). We could keep describing them in words, or we could collect them together:

\[ E=\{2,4,6,8,10\}. \]

We have just made a set.

A set is a collection of distinct objects considered together. The objects belonging to a set are called its elements or members.

That may sound like a small idea, but sets become part of the language used throughout mathematics. Numbers can form sets. Points can form sets. Solutions to equations can form sets. Functions can form sets. Even other sets can be elements of a set.

The basic question is remarkably simple:

Does this object belong to this collection?

Learning how to answer that question precisely gives us the foundation for relations, functions, probability, logic, geometry, algebra, and much more.

Sets and Elements

Sets are normally named with capital letters such as \(A\), \(B\), or \(S\). Their elements are commonly written between curly braces.

For example, let

\[ A=\{1,3,5,7,9\}. \]

Here \(A\) is the name of the set, while

\[ 1,\quad 3,\quad 5,\quad 7,\quad 9 \]

are its elements.

Elements do not have to be numbers. We could just as easily write

\[ V=\{\text{a},\text{e},\text{i},\text{o},\text{u}\}. \]

The important idea is not what the objects are. The important idea is that we have specified which objects belong to the collection.

Sets Can Contain Mathematical Objects

As your mathematics develops, the elements of sets can become increasingly sophisticated. A set might contain:

This is one reason set notation becomes so useful. The same basic language continues working even when the mathematical objects become much more advanced.

Membership

Mathematics has a special symbol meaning is an element of:

\[ \in \]

If

\[ A=\{2,4,6,8\}, \]

then we may write

\[ 4\in A. \]

This is read:

“Four is an element of \(A\).”

or simply:

“Four belongs to \(A\).”

Because \(5\) is not in the set, we write

\[ 5\notin A. \]

The symbol

\[ \notin \]

means is not an element of.

Membership Is a Mathematical Statement

Notice that

\[ 4\in A \]

is not merely notation naming an object. It makes a statement that can be true or false.

For our set \(A\),

\[ 4\in A \]

is true, while

\[ 5\in A \]

is false.

This gives us an early connection between sets and logic. Membership can be treated as a question with two possible answers:

Later, this simple connection becomes extremely important when sets are defined using logical conditions.

Roster Notation

Writing the elements of a set between braces is called roster notation.

For example,

\[ P=\{2,3,5,7\} \]

describes the set of prime numbers less than \(10\).

Roster notation is especially convenient when a set contains a manageable number of elements.

The Braces Matter

Compare

\[ 5 \]

with

\[ \{5\}. \]

These are different mathematical objects.

The first is the number \(5\). The second is a set whose only element is the number \(5\).

This distinction will become increasingly important as we begin working with sets inside other sets.

Set-Builder Notation

Sometimes listing every member of a set would be inconvenient or impossible. Instead, we can describe the condition that an object must satisfy in order to belong.

This is called set-builder notation.

Consider

\[ E=\{x\in\mathbb{Z}\mid -6\leq x\leq 6 \text{ and }x\text{ is even}\}. \]

The vertical bar \(\mid\) can be read as “such that.”

So the expression says:

“The set of all integers \(x\) such that \(x\) is between \(-6\) and \(6\), inclusive, and \(x\) is even.”

Written as a roster, the same set is

\[ E=\{-6,-4,-2,0,2,4,6\}. \]

The General Pattern

Set-builder notation often has the form

\[ \{x\in U\mid \text{condition on }x\}, \]

where

This gives us a powerful way to build sets by rules rather than by lists.

Membership as a Test

Consider

\[ S=\{x\in\mathbb{R}\mid x^2<9\}. \]

To decide whether \(2\) belongs to \(S\), test the defining condition:

\[ 2^2<9. \] \[ 4<9. \]

Therefore,

\[ 2\in S. \]

But for \(4\),

\[ 4^2<9 \]

would require

\[ 16<9, \]

which is false. Therefore,

\[ 4\notin S. \]

A set-builder definition therefore acts much like a mathematical membership test.

When Two Lists Describe the Same Set

Sets have two properties that can feel unusual at first: order does not matter and repeated elements do not create new elements.

Order Does Not Matter

The sets

\[ A=\{1,2,3\} \]

and

\[ B=\{3,1,2\} \]

contain exactly the same elements. Therefore,

\[ A=B. \]

A set records membership, not position.

Repetition Does Not Matter

Similarly,

\[ \{1,2,2,3,3,3\}=\{1,2,3\}. \]

Once \(2\) belongs to the set, writing it again does not make it belong “more.”

This is different from an ordinary list, where order or repetition may carry information.

So when you see braces, remember that we are describing a set of distinct members, not merely writing a sequence of entries.

Infinite Sets

Some sets contain infinitely many elements.

The integers, for example, may be written

\[ \mathbb{Z} = \{\ldots,-3,-2,-1,0,1,2,3,\ldots\}. \]

The dots indicate that the established pattern continues indefinitely.

Dots should only be used when the intended pattern is reasonably clear. For a more precise description, set-builder notation is often better.

For example, the positive even integers can be written as

\[ E=\{2,4,6,8,\ldots\}, \]

or more explicitly as

\[ E=\{2n\mid n\in\mathbb{Z},\ n>0\}. \]

The second version tells us exactly how every element is produced.

The Empty Set

A set is allowed to contain no elements at all.

Such a set is called the empty set.

It is written

\[ \varnothing \]

or

\[ \{\}. \]

For example, consider the set of real numbers satisfying

\[ x^2=-1. \]

There are no real numbers with this property, so the solution set over the real numbers is

\[ \varnothing. \]

An Important Distinction

Do not confuse

\[ \varnothing \]

with

\[ \{\varnothing\}. \]

The first set has no elements.

The second set has one element, and that element happens to be the empty set.

This may look like a technical distinction now, but it is an excellent example of why mathematical notation must be read carefully.

Elements versus Sets of Elements

One of the most common early set-notation errors is confusing an element with a set containing that element.

Let

\[ A=\{2,4,6\}. \]

Then

\[ 2\in A. \]

The number \(2\) itself is an element of \(A\).

But

\[ \{2\}\notin A. \]

The set \(A\) does not contain the set \(\{2\}\) as one of its elements. It contains the number \(2\).

There is another relationship we can use to say that every member of \(\{2\}\) is also a member of \(A\):

\[ \{2\}\subseteq A. \]

The symbol \(\subseteq\) describes a subset relationship, not membership. We will study that relationship separately. For now, the important distinction is:

\[ \boxed{\text{objects belong to sets, while sets can be contained within sets}} \]

Those are related ideas, but they are not the same relationship.

Sets Can Themselves Be Elements

Now consider

\[ B=\{1,\{2,3\},4\}. \]

Here the set \(\{2,3\}\) really is one of the elements of \(B\). Therefore,

\[ \{2,3\}\in B. \]

However,

\[ 2\notin B. \]

The number \(2\) is inside the inner set \(\{2,3\}\), but it is not directly an element of \(B\).

Braces therefore tell us something about mathematical structure, not merely how far to the left or right a number appears on the page.

Sets in Mathematics

Sets become useful almost immediately because many mathematical questions can be interpreted as questions about which objects satisfy a condition.

Solution Sets

Consider the equation

\[ x^2=9. \]

Its real solutions are

\[ x=-3 \qquad\text{and}\qquad x=3. \]

We can collect those answers into a solution set:

\[ S=\{-3,3\}. \]

Then saying

\[ 3\in S \]

is another way of saying that \(3\) is a solution of the equation.

Domains

Suppose a function contains division by \(x\):

\[ f(x)=\frac{1}{x}. \]

Because division by zero is undefined, its real domain can be described as

\[ D=\{x\in\mathbb{R}\mid x\neq 0\}. \]

The domain is simply the set of inputs that are allowed.

Geometry as a Set of Points

A geometric object can also be described as a set.

For example, the circle centered at the origin with radius \(5\) consists of every point \((x,y)\) satisfying

\[ x^2+y^2=25. \]

We can therefore write the circle as

\[ C= \{(x,y)\in\mathbb{R}^2 \mid x^2+y^2=25\}. \]

This is an important mathematical perspective: a curve is not just a picture. It can be understood as a set of points satisfying a condition.

Probability

If a coin is tossed once, the possible outcomes can be collected into a set:

\[ \Omega=\{H,T\}. \]

Probability will eventually build events from collections of possible outcomes, so set language becomes part of the foundation of probability as well.

Classification and Data

Sets are also useful whenever objects must be classified according to a rule. A database query, for example, can be thought of as asking for the set of records that satisfy certain conditions.

The mathematical notation may be different from the software syntax, but the underlying idea is closely related:

Keep the objects that satisfy the condition.

Worked Examples

Example 1: Testing Membership

Let

\[ A=\{-4,-2,0,2,4\}. \]

Determine whether each statement is true.

a. \(-2\in A\)

Yes. The number \(-2\) appears among the elements of \(A\), so

\[ -2\in A. \]

b. \(3\in A\)

No. The number \(3\) is not an element of \(A\), so

\[ 3\notin A. \]

c. \(\{2\}\in A\)

No. The number \(2\) belongs to \(A\), but the set \(\{2\}\) does not.

Example 2: Converting Set-Builder Notation to a Roster

Consider

\[ B= \{x\in\mathbb{Z}\mid -3\leq x<4\}. \]

We want integers beginning at \(-3\) and continuing up to, but not including, \(4\).

Therefore,

\[ B=\{-3,-2,-1,0,1,2,3\}. \]

Example 3: Finding a Solution Set

Find the integer solution set of

\[ x^2-5x+6=0. \]

Factor:

\[ (x-2)(x-3)=0. \]

Therefore,

\[ x=2 \qquad\text{or}\qquad x=3. \]

The solution set is

\[ S=\{2,3\}. \]

So we can say

\[ 2\in S \qquad\text{and}\qquad 3\in S. \]

Example 4: A Set of Points

Let

\[ L= \{(x,y)\in\mathbb{R}^2\mid y=2x+1\}. \]

Is the point \((2,5)\) an element of \(L\)?

Test the defining condition:

\[ 5=2(2)+1. \] \[ 5=5. \]

The condition is true, so

\[ (2,5)\in L. \]

Notice what happened: membership in this set is exactly the same as lying on the line.

Common Errors

1. Confusing an Element with a Set Containing the Element

If

\[ A=\{1,2,3\}, \]

then

\[ 2\in A, \]

but

\[ \{2\}\notin A. \]

2. Treating Order as Important

The sets

\[ \{1,2,3\} \]

and

\[ \{3,2,1\} \]

are equal.

3. Counting Repeated Entries More Than Once

\[ \{1,1,2,2,3\}=\{1,2,3\}. \]

A set records whether an element belongs, not how many times it was written.

4. Confusing the Empty Set with a Set Containing the Empty Set

\[ \varnothing\neq\{\varnothing\}. \]

The first has no elements. The second has one.

5. Using Dots When the Pattern Is Ambiguous

An expression such as

\[ \{1,2,4,\ldots\} \]

does not tell us enough by itself. Are we doubling? Listing divisors? Following some other rule?

When the continuation is not obvious, describe the membership condition explicitly.

Practice

Let

\[ A=\{-5,-3,-1,1,3,5\}. \]
  1. Is \(3\in A\)?
  2. Is \(0\in A\)?
  3. Is \(-5\notin A\)?
  4. Is \(\{1\}\in A\)?
Check Answers
  1. Yes: \[ 3\in A. \]
  2. No: \[ 0\notin A. \]
  3. No. Because \(-5\) is an element of \(A\), the statement \[ -5\notin A \] is false.
  4. No. The number \(1\) is an element of \(A\), but the set \(\{1\}\) is not: \[ \{1\}\notin A. \]

Set-Builder Practice

Write the following set in roster notation:

\[ B= \{x\in\mathbb{Z}\mid -4 Check Answer \[ B=\{-3,-2,-1,0,1,2,3\}. \]

The value \(-4\) is excluded because the inequality is strict, while \(3\) is included because the inequality allows equality.

Membership as a Condition

Let

\[ C= \{x\in\mathbb{R}\mid x^2\leq 16\}. \]

Decide whether each number belongs to \(C\):

  1. \(4\)
  2. \(-4\)
  3. \(5\)
  4. \(-3\)
Check Answers

Both \(4\) and \(-4\) belong because

\[ 4^2=(-4)^2=16. \]

The number \(5\) does not belong because

\[ 5^2=25>16. \]

The number \(-3\) belongs because

\[ (-3)^2=9\leq16. \]

Therefore,

\[ 4\in C,\qquad -4\in C,\qquad 5\notin C,\qquad -3\in C. \]

The Deeper Idea

Sets may initially look like little more than lists inside braces. Their real importance is deeper.

A set allows us to turn a condition into a mathematical object.

For example,

\[ \{x\in\mathbb{R}\mid x^2<9\} \]

takes the statement

\[ x^2<9 \]

and collects every real number for which that statement is true.

Similarly,

\[ \{(x,y)\in\mathbb{R}^2\mid x^2+y^2=25\} \]

collects every point satisfying the equation of a circle.

This pattern appears everywhere:

\[ \boxed{ \text{objects} \;+\; \text{condition} \;\longrightarrow\; \text{set of objects satisfying the condition} } \]

That is one of the reasons set language sits so close to the foundations of modern mathematics. It gives us a common way to describe many seemingly different mathematical ideas.

Summary

A set is a collection of distinct mathematical objects, called its elements or members.

The most useful habit to develop is simple: whenever you encounter a set, ask what objects are allowed to belong, and what condition decides membership?

That question will carry directly into subsets, relations, functions, solution sets, domains, probability, and many other parts of mathematics.

Sets, Relations, and Functions