From A First Course in Linear Algebra

Version 2.00

© 2004.

Licensed under the GNU Free Documentation License.

http://linear.ups.edu/

Definition SET

Set

A set is an unordered collection of objects. If
$S$ is a set and
$x$ is an object that
is in the set $S$,
we write $x\in S$.
If $x$ is not in
$S$, then we
write $x\notin S$.
We refer to the objects in a set as its elements.

(This definition contains Notation SETM.) $\u25b3$

Hard to get much more basic than that. Notice that the objects in a set can be anything, and there is no notion of order among the elements of the set. A set can be finite as well as infinite. A set can contain other sets as its objects. At a primitive level, a set is just a way to break up some class of objects into two groupings: those objects in the set, and those objects not in the set.

Example SETM

Set membership

From the set of all possible symbols, construct the following set of three
symbols,

Then the statement $\u25a0\in S$ is true, while the statement $\u25b4\in S$ is false. However, then the statement $\u25b4\notin S$ is true. $\u22a0$

A portion of a set is known as a subset. Notice how the following definition uses an implication (if whenever…then…). Note too how the definition of a subset relies on the definition of a set through the idea of set membership.

Definition SSET

Subset

If $S$ and
$T$ are two
sets, then $S$ is
a subset of $T$,
written $S\subseteq T$ if
whenever $x\in S$
then $x\in T$.

(This definition contains Notation SSET.) $\u25b3$

If we want to disallow the possibility that $S$ is the same as $T$, we use the notation $S\subset T$ and we say that $S$ is a proper subset of $T$. We’ll do an example, but first we’ll define a special set.

Definition ES

Empty Set

The empty set is the set with no elements. Its is denoted by
$\varnothing $.

(This definition contains Notation ES.) $\u25b3$

Example SSET

Subset

If $S=\left\{\u25a0,\phantom{\rule{0em}{0ex}}\u2666,\phantom{\rule{0em}{0ex}}\star \right\}$,
$T=\left\{\star ,\phantom{\rule{0em}{0ex}}\u2666\right\}$,
$R=\left\{\u25b4,\phantom{\rule{0em}{0ex}}\star \right\}$,
then

What does it mean for two sets to be equal? They must be the same. Well, that explanation is not really too helpful, is it? How about: If $A\subseteq B$ and $B\subseteq A$, then $A$ equals $B$. This gives us something to work with, if $A$ is a subset of $B$, and vice versa, then they must really be the same set. We will now make the symbol “$=$” do double-duty and extend its use to statements like $A=B$, where $A$ and $B$ are sets. Here’s the definition, which we will reference often.

Definition SE

Set Equality

Two sets, $S$
and $T$, are
equal, if $S\subseteq T$ and
$T\subseteq S$. In this case,
we write $S=T$.

(This definition contains Notation SE.) $\u25b3$

Sets are typically written inside of braces, as $\left\{\phantom{\rule{0ex}{0ex}}\right\}$, as we have seen above. However, when sets have more than a few elements, a description will typically have two components. The first is a description of the general type of objects contained in a set, while the second is some sort of restriction on the properties the objects have. Every object in the set must be of the type described in the first part and it must satisfy the restrictions in the second part. Conversely, any object of the proper type for the first part, that also meets the conditions of the second part, will be in the set. These two parts are set off from each other somehow, often with a vertical bar ($|$) or a colon (:).

I like to think of sets as clubs. The first part is some description of the type of people who might belong to the club, the basic objects. For example, a bicycle club would describe its members as being people who like to ride bicycles. The second part is like a membership committee, it restricts the people who are allowed in the club. Continuing with our bicycle club analogy, we might decide to limit ourselves to “serious” riders and only have members who can document having ridden 100 kilometers or more in a single day at least one time.

The restrictions on membership can migrate around some between the first and second part, and there may be several ways to describe the same set of objects. Here’s a more mathematical example, employing the set of all integers, $\mathbb{Z}$, to describe the set of even integers.

$$\begin{array}{llll}\hfill E& =\left\{\left.x\in \mathbb{Z}\phantom{\rule{0em}{0ex}}\right|\phantom{\rule{0em}{0ex}}x\text{isanevennumber}\right\}\phantom{\rule{2em}{0ex}}& \hfill & \phantom{\rule{2em}{0ex}}\\ \hfill & =\left\{\left.x\in \mathbb{Z}\phantom{\rule{0em}{0ex}}\right|\phantom{\rule{0em}{0ex}}2\text{divides}x\text{evenly}\right\}\phantom{\rule{2em}{0ex}}& \hfill & \phantom{\rule{2em}{0ex}}\\ \hfill & =\left\{\left.2k\phantom{\rule{0em}{0ex}}\right|\phantom{\rule{0em}{0ex}}k\in \mathbb{Z}\right\}\phantom{\rule{2em}{0ex}}& \hfill & \phantom{\rule{2em}{0ex}}\end{array}$$Notice how this set tells us that its objects are integer numbers (not, say, matrices or functions, for example) and just those that are even. So we can write that $10\in E$, while $17\notin E$ once we check the membership criteria. We also recognize the question

$$\begin{array}{lll}\hfill \left[\begin{array}{ccc}\hfill 1\hfill & \hfill -3\hfill & \hfill 5\hfill \\ \hfill 2\hfill & \hfill 0\hfill & \hfill 3\hfill \end{array}\right]\in E\text{?}& \phantom{\rule{2em}{0ex}}& \hfill \end{array}$$as being simply ridiculous.

On occasion, we will be interested in the number of elements in a finite set. Here’s the definition and the associated notation.

Definition C

Cardinality

Suppose $S$
is a finite set. Then the number of elements in
$S$ is called the
cardinality or size of $S$,
and is denoted $\left|S\right|$.

(This definition contains Notation C.) $\u25b3$

Example CS

Cardinality and Size

If $S=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star ,\phantom{\rule{0em}{0ex}}\u25a0\right\}$,
then $\left|S\right|=3$.
$\u22a0$

In this subsection we define and illustrate the three most common basic ways to manipulate sets to create other sets. Since much of linear algebra is about sets, we will use these often.

Definition SU

Set Union

Suppose $S$ and
$T$ are sets. Then
the union of $S$
and $T$,
denoted $S\cup T$,
is the set whose elements are those that are elements of
$S$ or of
$T$, or
both. More formally,

(This definition contains Notation SU.) $\u25b3$

Notice that the use of the word “or” in this definition is meant to be non-exclusive. That is, it allows for $x$ to be an element of both $S$ and $T$ and still qualify for membership in $S\cup T$.

Example SU

Set union

If $S=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star ,\phantom{\rule{0em}{0ex}}\u25a0\right\}$
and $T=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star ,\phantom{\rule{0em}{0ex}}\u25b4\right\}$
then $S\cup T=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star ,\phantom{\rule{0em}{0ex}}\u25a0,\phantom{\rule{0em}{0ex}}\u25b4\right\}$.
$\u22a0$

Definition SI

Set Intersection

Suppose $S$ and
$T$ are sets. Then the
intersection of $S$
and $T$,
denoted $S\cap T$,
is the set whose elements are only those that are elements of
$S$ and
of $T$.
More formally,

(This definition contains Notation SI.) $\u25b3$

Example SI

Set intersection

If $S=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star ,\phantom{\rule{0em}{0ex}}\u25a0\right\}$
and $T=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star ,\phantom{\rule{0em}{0ex}}\u25b4\right\}$
then $S\cap T=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star \right\}$.
$\u22a0$

The union and intersection of sets are operations that begin with two sets and produce a third, new, set. Our final operation is the set complement, which we usually think of as an operation that takes a single set and creates a second, new, set. However, if you study the definition carefully, you will see that it needs to be computed relative to some “universal” set.

Definition SC

Set Complement

Suppose $S$ is a set that is a
subset of a universal set $U$.
Then the complement of $S$,
denoted $\overline{S}$,
is the set whose elements are those that are elements of
$U$ and not
elements of $S$.
More formally,

(This definition contains Notation SC.) $\u25b3$

Notice that there is nothing at all special about the universal set. This is simply a term that suggests that $U$ contains all of the possible objects we are considering. Often this set will be clear from the context, and we won’t think much about it, nor reference it in our notation. In other cases (rarely in our work in this course) the exact nature of the universal set must be made explicit, and reference to it will possibly be carried through in our choice of notation.

Example SC

Set complement

If $U=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star ,\phantom{\rule{0em}{0ex}}\u25a0,\phantom{\rule{0em}{0ex}}\u25b4\right\}$
and $S=\left\{\u2666,\phantom{\rule{0em}{0ex}}\star ,\phantom{\rule{0em}{0ex}}\u25a0\right\}$
then $\overline{S}=\left\{\u25b4\right\}$.
$\u22a0$

There are many more natural operations that can be performed on sets, such as an exclusive-or and the symmetric difference. Many of these can be defined in terms of the union, intersection and complement. We will not have much need of them in this course, and so we will not give precise descriptions here in this preliminary section.

There is also an interesting variety of basic results that describe the interplay of these operations with each other. We mention just two as an example, these are known as DeMorgan’s Laws.

$$\begin{array}{llll}\hfill \overline{\left(S\cup T\right)}& =\overline{S}\cap \overline{T}\phantom{\rule{2em}{0ex}}& \hfill & \phantom{\rule{2em}{0ex}}\\ \hfill \overline{\left(S\cap T\right)}& =\overline{S}\cup \overline{T}\phantom{\rule{2em}{0ex}}& \hfill & \phantom{\rule{2em}{0ex}}\\ \hfill & \phantom{\rule{2em}{0ex}}& \hfill \end{array}$$Besides having an appealing symmetry, we mention these two facts, since constructing the proofs of each is a useful exercise that will require a solid understanding of all but one of the definitions presented in this section. Give it a try.